mto_shipment

package
v0.0.0-...-c486877 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CreateMTOShipmentBadRequestCode int = 400

CreateMTOShipmentBadRequestCode is the HTTP code returned for type CreateMTOShipmentBadRequest

View Source
const CreateMTOShipmentForbiddenCode int = 403

CreateMTOShipmentForbiddenCode is the HTTP code returned for type CreateMTOShipmentForbidden

View Source
const CreateMTOShipmentInternalServerErrorCode int = 500

CreateMTOShipmentInternalServerErrorCode is the HTTP code returned for type CreateMTOShipmentInternalServerError

View Source
const CreateMTOShipmentNotFoundCode int = 404

CreateMTOShipmentNotFoundCode is the HTTP code returned for type CreateMTOShipmentNotFound

View Source
const CreateMTOShipmentOKCode int = 200

CreateMTOShipmentOKCode is the HTTP code returned for type CreateMTOShipmentOK

View Source
const CreateMTOShipmentUnauthorizedCode int = 401

CreateMTOShipmentUnauthorizedCode is the HTTP code returned for type CreateMTOShipmentUnauthorized

View Source
const CreateMTOShipmentUnprocessableEntityCode int = 422

CreateMTOShipmentUnprocessableEntityCode is the HTTP code returned for type CreateMTOShipmentUnprocessableEntity

View Source
const DeleteShipmentBadRequestCode int = 400

DeleteShipmentBadRequestCode is the HTTP code returned for type DeleteShipmentBadRequest

View Source
const DeleteShipmentConflictCode int = 409

DeleteShipmentConflictCode is the HTTP code returned for type DeleteShipmentConflict

View Source
const DeleteShipmentForbiddenCode int = 403

DeleteShipmentForbiddenCode is the HTTP code returned for type DeleteShipmentForbidden

View Source
const DeleteShipmentInternalServerErrorCode int = 500

DeleteShipmentInternalServerErrorCode is the HTTP code returned for type DeleteShipmentInternalServerError

View Source
const DeleteShipmentNoContentCode int = 204

DeleteShipmentNoContentCode is the HTTP code returned for type DeleteShipmentNoContent

View Source
const DeleteShipmentNotFoundCode int = 404

DeleteShipmentNotFoundCode is the HTTP code returned for type DeleteShipmentNotFound

View Source
const DeleteShipmentUnprocessableEntityCode int = 422

DeleteShipmentUnprocessableEntityCode is the HTTP code returned for type DeleteShipmentUnprocessableEntity

View Source
const ListMTOShipmentsBadRequestCode int = 400

ListMTOShipmentsBadRequestCode is the HTTP code returned for type ListMTOShipmentsBadRequest

View Source
const ListMTOShipmentsInternalServerErrorCode int = 500

ListMTOShipmentsInternalServerErrorCode is the HTTP code returned for type ListMTOShipmentsInternalServerError

View Source
const ListMTOShipmentsNotFoundCode int = 404

ListMTOShipmentsNotFoundCode is the HTTP code returned for type ListMTOShipmentsNotFound

View Source
const ListMTOShipmentsOKCode int = 200

ListMTOShipmentsOKCode is the HTTP code returned for type ListMTOShipmentsOK

View Source
const ListMTOShipmentsUnauthorizedCode int = 401

ListMTOShipmentsUnauthorizedCode is the HTTP code returned for type ListMTOShipmentsUnauthorized

View Source
const UpdateMTOShipmentBadRequestCode int = 400

UpdateMTOShipmentBadRequestCode is the HTTP code returned for type UpdateMTOShipmentBadRequest

View Source
const UpdateMTOShipmentForbiddenCode int = 403

UpdateMTOShipmentForbiddenCode is the HTTP code returned for type UpdateMTOShipmentForbidden

View Source
const UpdateMTOShipmentInternalServerErrorCode int = 500

UpdateMTOShipmentInternalServerErrorCode is the HTTP code returned for type UpdateMTOShipmentInternalServerError

View Source
const UpdateMTOShipmentNotFoundCode int = 404

UpdateMTOShipmentNotFoundCode is the HTTP code returned for type UpdateMTOShipmentNotFound

View Source
const UpdateMTOShipmentOKCode int = 200

UpdateMTOShipmentOKCode is the HTTP code returned for type UpdateMTOShipmentOK

View Source
const UpdateMTOShipmentPreconditionFailedCode int = 412

UpdateMTOShipmentPreconditionFailedCode is the HTTP code returned for type UpdateMTOShipmentPreconditionFailed

View Source
const UpdateMTOShipmentUnauthorizedCode int = 401

UpdateMTOShipmentUnauthorizedCode is the HTTP code returned for type UpdateMTOShipmentUnauthorized

View Source
const UpdateMTOShipmentUnprocessableEntityCode int = 422

UpdateMTOShipmentUnprocessableEntityCode is the HTTP code returned for type UpdateMTOShipmentUnprocessableEntity

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateMTOShipment

type CreateMTOShipment struct {
	Context *middleware.Context
	Handler CreateMTOShipmentHandler
}
CreateMTOShipment swagger:route POST /mto_shipments mtoShipment createMTOShipment

createMTOShipment

Creates a MTO shipment for the specified Move Task Order. Required fields include: * Shipment Type * Customer requested pick-up date * Pick-up Address * Delivery Address

Optional fields include: * Customer Remarks * Releasing / Receiving agents

func NewCreateMTOShipment

func NewCreateMTOShipment(ctx *middleware.Context, handler CreateMTOShipmentHandler) *CreateMTOShipment

NewCreateMTOShipment creates a new http.Handler for the create m t o shipment operation

func (*CreateMTOShipment) ServeHTTP

func (o *CreateMTOShipment) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateMTOShipmentBadRequest

type CreateMTOShipmentBadRequest struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

CreateMTOShipmentBadRequest The request payload is invalid.

swagger:response createMTOShipmentBadRequest

func NewCreateMTOShipmentBadRequest

func NewCreateMTOShipmentBadRequest() *CreateMTOShipmentBadRequest

NewCreateMTOShipmentBadRequest creates CreateMTOShipmentBadRequest with default headers values

func (*CreateMTOShipmentBadRequest) SetPayload

SetPayload sets the payload to the create m t o shipment bad request response

func (*CreateMTOShipmentBadRequest) WithPayload

WithPayload adds the payload to the create m t o shipment bad request response

func (*CreateMTOShipmentBadRequest) WriteResponse

func (o *CreateMTOShipmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateMTOShipmentForbidden

type CreateMTOShipmentForbidden struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

CreateMTOShipmentForbidden The request was denied.

swagger:response createMTOShipmentForbidden

func NewCreateMTOShipmentForbidden

func NewCreateMTOShipmentForbidden() *CreateMTOShipmentForbidden

NewCreateMTOShipmentForbidden creates CreateMTOShipmentForbidden with default headers values

func (*CreateMTOShipmentForbidden) SetPayload

SetPayload sets the payload to the create m t o shipment forbidden response

func (*CreateMTOShipmentForbidden) WithPayload

WithPayload adds the payload to the create m t o shipment forbidden response

func (*CreateMTOShipmentForbidden) WriteResponse

func (o *CreateMTOShipmentForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateMTOShipmentHandler

type CreateMTOShipmentHandler interface {
	Handle(CreateMTOShipmentParams) middleware.Responder
}

CreateMTOShipmentHandler interface for that can handle valid create m t o shipment params

type CreateMTOShipmentHandlerFunc

type CreateMTOShipmentHandlerFunc func(CreateMTOShipmentParams) middleware.Responder

CreateMTOShipmentHandlerFunc turns a function with the right signature into a create m t o shipment handler

func (CreateMTOShipmentHandlerFunc) Handle

Handle executing the request and returning a response

type CreateMTOShipmentInternalServerError

type CreateMTOShipmentInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.Error `json:"body,omitempty"`
}

CreateMTOShipmentInternalServerError A server error occurred.

swagger:response createMTOShipmentInternalServerError

func NewCreateMTOShipmentInternalServerError

func NewCreateMTOShipmentInternalServerError() *CreateMTOShipmentInternalServerError

NewCreateMTOShipmentInternalServerError creates CreateMTOShipmentInternalServerError with default headers values

func (*CreateMTOShipmentInternalServerError) SetPayload

SetPayload sets the payload to the create m t o shipment internal server error response

func (*CreateMTOShipmentInternalServerError) WithPayload

WithPayload adds the payload to the create m t o shipment internal server error response

func (*CreateMTOShipmentInternalServerError) WriteResponse

WriteResponse to the client

type CreateMTOShipmentNotFound

type CreateMTOShipmentNotFound struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

CreateMTOShipmentNotFound The requested resource wasn't found.

swagger:response createMTOShipmentNotFound

func NewCreateMTOShipmentNotFound

func NewCreateMTOShipmentNotFound() *CreateMTOShipmentNotFound

NewCreateMTOShipmentNotFound creates CreateMTOShipmentNotFound with default headers values

func (*CreateMTOShipmentNotFound) SetPayload

func (o *CreateMTOShipmentNotFound) SetPayload(payload *internalmessages.ClientError)

SetPayload sets the payload to the create m t o shipment not found response

func (*CreateMTOShipmentNotFound) WithPayload

WithPayload adds the payload to the create m t o shipment not found response

func (*CreateMTOShipmentNotFound) WriteResponse

func (o *CreateMTOShipmentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateMTOShipmentOK

type CreateMTOShipmentOK struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.MTOShipment `json:"body,omitempty"`
}

CreateMTOShipmentOK Successfully created a MTO shipment.

swagger:response createMTOShipmentOK

func NewCreateMTOShipmentOK

func NewCreateMTOShipmentOK() *CreateMTOShipmentOK

NewCreateMTOShipmentOK creates CreateMTOShipmentOK with default headers values

func (*CreateMTOShipmentOK) SetPayload

func (o *CreateMTOShipmentOK) SetPayload(payload *internalmessages.MTOShipment)

SetPayload sets the payload to the create m t o shipment o k response

func (*CreateMTOShipmentOK) WithPayload

WithPayload adds the payload to the create m t o shipment o k response

func (*CreateMTOShipmentOK) WriteResponse

func (o *CreateMTOShipmentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateMTOShipmentParams

type CreateMTOShipmentParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: body
	*/
	Body *internalmessages.CreateShipment
}

CreateMTOShipmentParams contains all the bound params for the create m t o shipment operation typically these are obtained from a http.Request

swagger:parameters createMTOShipment

func NewCreateMTOShipmentParams

func NewCreateMTOShipmentParams() CreateMTOShipmentParams

NewCreateMTOShipmentParams creates a new CreateMTOShipmentParams object

There are no default values defined in the spec.

func (*CreateMTOShipmentParams) BindRequest

func (o *CreateMTOShipmentParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateMTOShipmentParams() beforehand.

type CreateMTOShipmentURL

type CreateMTOShipmentURL struct {
	// contains filtered or unexported fields
}

CreateMTOShipmentURL generates an URL for the create m t o shipment operation

func (*CreateMTOShipmentURL) Build

func (o *CreateMTOShipmentURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateMTOShipmentURL) BuildFull

func (o *CreateMTOShipmentURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateMTOShipmentURL) Must

func (o *CreateMTOShipmentURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateMTOShipmentURL) SetBasePath

func (o *CreateMTOShipmentURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreateMTOShipmentURL) String

func (o *CreateMTOShipmentURL) String() string

String returns the string representation of the path with query string

func (*CreateMTOShipmentURL) StringFull

func (o *CreateMTOShipmentURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateMTOShipmentURL) WithBasePath

func (o *CreateMTOShipmentURL) WithBasePath(bp string) *CreateMTOShipmentURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CreateMTOShipmentUnauthorized

type CreateMTOShipmentUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

CreateMTOShipmentUnauthorized The request was denied.

swagger:response createMTOShipmentUnauthorized

func NewCreateMTOShipmentUnauthorized

func NewCreateMTOShipmentUnauthorized() *CreateMTOShipmentUnauthorized

NewCreateMTOShipmentUnauthorized creates CreateMTOShipmentUnauthorized with default headers values

func (*CreateMTOShipmentUnauthorized) SetPayload

SetPayload sets the payload to the create m t o shipment unauthorized response

func (*CreateMTOShipmentUnauthorized) WithPayload

WithPayload adds the payload to the create m t o shipment unauthorized response

func (*CreateMTOShipmentUnauthorized) WriteResponse

func (o *CreateMTOShipmentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateMTOShipmentUnprocessableEntity

type CreateMTOShipmentUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ValidationError `json:"body,omitempty"`
}

CreateMTOShipmentUnprocessableEntity The payload was unprocessable.

swagger:response createMTOShipmentUnprocessableEntity

func NewCreateMTOShipmentUnprocessableEntity

func NewCreateMTOShipmentUnprocessableEntity() *CreateMTOShipmentUnprocessableEntity

NewCreateMTOShipmentUnprocessableEntity creates CreateMTOShipmentUnprocessableEntity with default headers values

func (*CreateMTOShipmentUnprocessableEntity) SetPayload

SetPayload sets the payload to the create m t o shipment unprocessable entity response

func (*CreateMTOShipmentUnprocessableEntity) WithPayload

WithPayload adds the payload to the create m t o shipment unprocessable entity response

func (*CreateMTOShipmentUnprocessableEntity) WriteResponse

WriteResponse to the client

type DeleteShipment

type DeleteShipment struct {
	Context *middleware.Context
	Handler DeleteShipmentHandler
}
DeleteShipment swagger:route DELETE /mto-shipments/{mtoShipmentId} mtoShipment deleteShipment

Soft deletes a shipment by ID

Soft deletes a shipment by ID

func NewDeleteShipment

func NewDeleteShipment(ctx *middleware.Context, handler DeleteShipmentHandler) *DeleteShipment

NewDeleteShipment creates a new http.Handler for the delete shipment operation

func (*DeleteShipment) ServeHTTP

func (o *DeleteShipment) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteShipmentBadRequest

type DeleteShipmentBadRequest struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

DeleteShipmentBadRequest The request payload is invalid.

swagger:response deleteShipmentBadRequest

func NewDeleteShipmentBadRequest

func NewDeleteShipmentBadRequest() *DeleteShipmentBadRequest

NewDeleteShipmentBadRequest creates DeleteShipmentBadRequest with default headers values

func (*DeleteShipmentBadRequest) SetPayload

func (o *DeleteShipmentBadRequest) SetPayload(payload *internalmessages.ClientError)

SetPayload sets the payload to the delete shipment bad request response

func (*DeleteShipmentBadRequest) WithPayload

WithPayload adds the payload to the delete shipment bad request response

func (*DeleteShipmentBadRequest) WriteResponse

func (o *DeleteShipmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteShipmentConflict

type DeleteShipmentConflict struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

DeleteShipmentConflict The request could not be processed because of conflict in the current state of the resource.

swagger:response deleteShipmentConflict

func NewDeleteShipmentConflict

func NewDeleteShipmentConflict() *DeleteShipmentConflict

NewDeleteShipmentConflict creates DeleteShipmentConflict with default headers values

func (*DeleteShipmentConflict) SetPayload

func (o *DeleteShipmentConflict) SetPayload(payload *internalmessages.ClientError)

SetPayload sets the payload to the delete shipment conflict response

func (*DeleteShipmentConflict) WithPayload

WithPayload adds the payload to the delete shipment conflict response

func (*DeleteShipmentConflict) WriteResponse

func (o *DeleteShipmentConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteShipmentForbidden

type DeleteShipmentForbidden struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

DeleteShipmentForbidden The request was denied.

swagger:response deleteShipmentForbidden

func NewDeleteShipmentForbidden

func NewDeleteShipmentForbidden() *DeleteShipmentForbidden

NewDeleteShipmentForbidden creates DeleteShipmentForbidden with default headers values

func (*DeleteShipmentForbidden) SetPayload

func (o *DeleteShipmentForbidden) SetPayload(payload *internalmessages.ClientError)

SetPayload sets the payload to the delete shipment forbidden response

func (*DeleteShipmentForbidden) WithPayload

WithPayload adds the payload to the delete shipment forbidden response

func (*DeleteShipmentForbidden) WriteResponse

func (o *DeleteShipmentForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteShipmentHandler

type DeleteShipmentHandler interface {
	Handle(DeleteShipmentParams) middleware.Responder
}

DeleteShipmentHandler interface for that can handle valid delete shipment params

type DeleteShipmentHandlerFunc

type DeleteShipmentHandlerFunc func(DeleteShipmentParams) middleware.Responder

DeleteShipmentHandlerFunc turns a function with the right signature into a delete shipment handler

func (DeleteShipmentHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteShipmentInternalServerError

type DeleteShipmentInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.Error `json:"body,omitempty"`
}

DeleteShipmentInternalServerError A server error occurred.

swagger:response deleteShipmentInternalServerError

func NewDeleteShipmentInternalServerError

func NewDeleteShipmentInternalServerError() *DeleteShipmentInternalServerError

NewDeleteShipmentInternalServerError creates DeleteShipmentInternalServerError with default headers values

func (*DeleteShipmentInternalServerError) SetPayload

SetPayload sets the payload to the delete shipment internal server error response

func (*DeleteShipmentInternalServerError) WithPayload

WithPayload adds the payload to the delete shipment internal server error response

func (*DeleteShipmentInternalServerError) WriteResponse

func (o *DeleteShipmentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteShipmentNoContent

type DeleteShipmentNoContent struct {
}

DeleteShipmentNoContent Successfully soft deleted the shipment

swagger:response deleteShipmentNoContent

func NewDeleteShipmentNoContent

func NewDeleteShipmentNoContent() *DeleteShipmentNoContent

NewDeleteShipmentNoContent creates DeleteShipmentNoContent with default headers values

func (*DeleteShipmentNoContent) WriteResponse

func (o *DeleteShipmentNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteShipmentNotFound

type DeleteShipmentNotFound struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

DeleteShipmentNotFound The requested resource wasn't found.

swagger:response deleteShipmentNotFound

func NewDeleteShipmentNotFound

func NewDeleteShipmentNotFound() *DeleteShipmentNotFound

NewDeleteShipmentNotFound creates DeleteShipmentNotFound with default headers values

func (*DeleteShipmentNotFound) SetPayload

func (o *DeleteShipmentNotFound) SetPayload(payload *internalmessages.ClientError)

SetPayload sets the payload to the delete shipment not found response

func (*DeleteShipmentNotFound) WithPayload

WithPayload adds the payload to the delete shipment not found response

func (*DeleteShipmentNotFound) WriteResponse

func (o *DeleteShipmentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteShipmentParams

type DeleteShipmentParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID of the shipment to be deleted
	  Required: true
	  In: path
	*/
	MtoShipmentID strfmt.UUID
}

DeleteShipmentParams contains all the bound params for the delete shipment operation typically these are obtained from a http.Request

swagger:parameters deleteShipment

func NewDeleteShipmentParams

func NewDeleteShipmentParams() DeleteShipmentParams

NewDeleteShipmentParams creates a new DeleteShipmentParams object

There are no default values defined in the spec.

func (*DeleteShipmentParams) BindRequest

func (o *DeleteShipmentParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDeleteShipmentParams() beforehand.

type DeleteShipmentURL

type DeleteShipmentURL struct {
	MtoShipmentID strfmt.UUID
	// contains filtered or unexported fields
}

DeleteShipmentURL generates an URL for the delete shipment operation

func (*DeleteShipmentURL) Build

func (o *DeleteShipmentURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteShipmentURL) BuildFull

func (o *DeleteShipmentURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteShipmentURL) Must

func (o *DeleteShipmentURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteShipmentURL) SetBasePath

func (o *DeleteShipmentURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeleteShipmentURL) String

func (o *DeleteShipmentURL) String() string

String returns the string representation of the path with query string

func (*DeleteShipmentURL) StringFull

func (o *DeleteShipmentURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteShipmentURL) WithBasePath

func (o *DeleteShipmentURL) WithBasePath(bp string) *DeleteShipmentURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DeleteShipmentUnprocessableEntity

type DeleteShipmentUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ValidationError `json:"body,omitempty"`
}

DeleteShipmentUnprocessableEntity The payload was unprocessable.

swagger:response deleteShipmentUnprocessableEntity

func NewDeleteShipmentUnprocessableEntity

func NewDeleteShipmentUnprocessableEntity() *DeleteShipmentUnprocessableEntity

NewDeleteShipmentUnprocessableEntity creates DeleteShipmentUnprocessableEntity with default headers values

func (*DeleteShipmentUnprocessableEntity) SetPayload

SetPayload sets the payload to the delete shipment unprocessable entity response

func (*DeleteShipmentUnprocessableEntity) WithPayload

WithPayload adds the payload to the delete shipment unprocessable entity response

func (*DeleteShipmentUnprocessableEntity) WriteResponse

func (o *DeleteShipmentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMTOShipments

type ListMTOShipments struct {
	Context *middleware.Context
	Handler ListMTOShipmentsHandler
}
ListMTOShipments swagger:route GET /moves/{moveTaskOrderID}/mto_shipments mtoShipment listMTOShipments

Gets all shipments for a move task order

Gets all MTO shipments for the specified Move Task Order.

func NewListMTOShipments

func NewListMTOShipments(ctx *middleware.Context, handler ListMTOShipmentsHandler) *ListMTOShipments

NewListMTOShipments creates a new http.Handler for the list m t o shipments operation

func (*ListMTOShipments) ServeHTTP

func (o *ListMTOShipments) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListMTOShipmentsBadRequest

type ListMTOShipmentsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

ListMTOShipmentsBadRequest The request payload is invalid.

swagger:response listMTOShipmentsBadRequest

func NewListMTOShipmentsBadRequest

func NewListMTOShipmentsBadRequest() *ListMTOShipmentsBadRequest

NewListMTOShipmentsBadRequest creates ListMTOShipmentsBadRequest with default headers values

func (*ListMTOShipmentsBadRequest) SetPayload

SetPayload sets the payload to the list m t o shipments bad request response

func (*ListMTOShipmentsBadRequest) WithPayload

WithPayload adds the payload to the list m t o shipments bad request response

func (*ListMTOShipmentsBadRequest) WriteResponse

func (o *ListMTOShipmentsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMTOShipmentsHandler

type ListMTOShipmentsHandler interface {
	Handle(ListMTOShipmentsParams) middleware.Responder
}

ListMTOShipmentsHandler interface for that can handle valid list m t o shipments params

type ListMTOShipmentsHandlerFunc

type ListMTOShipmentsHandlerFunc func(ListMTOShipmentsParams) middleware.Responder

ListMTOShipmentsHandlerFunc turns a function with the right signature into a list m t o shipments handler

func (ListMTOShipmentsHandlerFunc) Handle

Handle executing the request and returning a response

type ListMTOShipmentsInternalServerError

type ListMTOShipmentsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.Error `json:"body,omitempty"`
}

ListMTOShipmentsInternalServerError A server error occurred.

swagger:response listMTOShipmentsInternalServerError

func NewListMTOShipmentsInternalServerError

func NewListMTOShipmentsInternalServerError() *ListMTOShipmentsInternalServerError

NewListMTOShipmentsInternalServerError creates ListMTOShipmentsInternalServerError with default headers values

func (*ListMTOShipmentsInternalServerError) SetPayload

SetPayload sets the payload to the list m t o shipments internal server error response

func (*ListMTOShipmentsInternalServerError) WithPayload

WithPayload adds the payload to the list m t o shipments internal server error response

func (*ListMTOShipmentsInternalServerError) WriteResponse

WriteResponse to the client

type ListMTOShipmentsNotFound

type ListMTOShipmentsNotFound struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

ListMTOShipmentsNotFound The requested resource wasn't found.

swagger:response listMTOShipmentsNotFound

func NewListMTOShipmentsNotFound

func NewListMTOShipmentsNotFound() *ListMTOShipmentsNotFound

NewListMTOShipmentsNotFound creates ListMTOShipmentsNotFound with default headers values

func (*ListMTOShipmentsNotFound) SetPayload

func (o *ListMTOShipmentsNotFound) SetPayload(payload *internalmessages.ClientError)

SetPayload sets the payload to the list m t o shipments not found response

func (*ListMTOShipmentsNotFound) WithPayload

WithPayload adds the payload to the list m t o shipments not found response

func (*ListMTOShipmentsNotFound) WriteResponse

func (o *ListMTOShipmentsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMTOShipmentsOK

type ListMTOShipmentsOK struct {

	/*
	  In: Body
	*/
	Payload internalmessages.MTOShipments `json:"body,omitempty"`
}

ListMTOShipmentsOK Successfully retrieved all mto shipments for a move task order.

swagger:response listMTOShipmentsOK

func NewListMTOShipmentsOK

func NewListMTOShipmentsOK() *ListMTOShipmentsOK

NewListMTOShipmentsOK creates ListMTOShipmentsOK with default headers values

func (*ListMTOShipmentsOK) SetPayload

func (o *ListMTOShipmentsOK) SetPayload(payload internalmessages.MTOShipments)

SetPayload sets the payload to the list m t o shipments o k response

func (*ListMTOShipmentsOK) WithPayload

WithPayload adds the payload to the list m t o shipments o k response

func (*ListMTOShipmentsOK) WriteResponse

func (o *ListMTOShipmentsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMTOShipmentsParams

type ListMTOShipmentsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID of move task order for mto shipment to use
	  Required: true
	  In: path
	*/
	MoveTaskOrderID strfmt.UUID
}

ListMTOShipmentsParams contains all the bound params for the list m t o shipments operation typically these are obtained from a http.Request

swagger:parameters listMTOShipments

func NewListMTOShipmentsParams

func NewListMTOShipmentsParams() ListMTOShipmentsParams

NewListMTOShipmentsParams creates a new ListMTOShipmentsParams object

There are no default values defined in the spec.

func (*ListMTOShipmentsParams) BindRequest

func (o *ListMTOShipmentsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListMTOShipmentsParams() beforehand.

type ListMTOShipmentsURL

type ListMTOShipmentsURL struct {
	MoveTaskOrderID strfmt.UUID
	// contains filtered or unexported fields
}

ListMTOShipmentsURL generates an URL for the list m t o shipments operation

func (*ListMTOShipmentsURL) Build

func (o *ListMTOShipmentsURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListMTOShipmentsURL) BuildFull

func (o *ListMTOShipmentsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListMTOShipmentsURL) Must

func (o *ListMTOShipmentsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListMTOShipmentsURL) SetBasePath

func (o *ListMTOShipmentsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListMTOShipmentsURL) String

func (o *ListMTOShipmentsURL) String() string

String returns the string representation of the path with query string

func (*ListMTOShipmentsURL) StringFull

func (o *ListMTOShipmentsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListMTOShipmentsURL) WithBasePath

func (o *ListMTOShipmentsURL) WithBasePath(bp string) *ListMTOShipmentsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListMTOShipmentsUnauthorized

type ListMTOShipmentsUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

ListMTOShipmentsUnauthorized The request was denied.

swagger:response listMTOShipmentsUnauthorized

func NewListMTOShipmentsUnauthorized

func NewListMTOShipmentsUnauthorized() *ListMTOShipmentsUnauthorized

NewListMTOShipmentsUnauthorized creates ListMTOShipmentsUnauthorized with default headers values

func (*ListMTOShipmentsUnauthorized) SetPayload

SetPayload sets the payload to the list m t o shipments unauthorized response

func (*ListMTOShipmentsUnauthorized) WithPayload

WithPayload adds the payload to the list m t o shipments unauthorized response

func (*ListMTOShipmentsUnauthorized) WriteResponse

func (o *ListMTOShipmentsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateMTOShipment

type UpdateMTOShipment struct {
	Context *middleware.Context
	Handler UpdateMTOShipmentHandler
}
UpdateMTOShipment swagger:route PATCH /mto-shipments/{mtoShipmentId} mtoShipment updateMTOShipment

updateMTOShipment

Updates a specified MTO shipment.

Required fields include: * MTO Shipment ID required in path * If-Match required in headers * Shipment type is required in body

Optional fields include: * New shipment status type * Customer requested pick-up date * Pick-up Address * Delivery Address * Customer Remarks * Releasing / Receiving agents * Actual Pro Gear Weight * Actual Spouse Pro Gear Weight

func NewUpdateMTOShipment

func NewUpdateMTOShipment(ctx *middleware.Context, handler UpdateMTOShipmentHandler) *UpdateMTOShipment

NewUpdateMTOShipment creates a new http.Handler for the update m t o shipment operation

func (*UpdateMTOShipment) ServeHTTP

func (o *UpdateMTOShipment) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdateMTOShipmentBadRequest

type UpdateMTOShipmentBadRequest struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

UpdateMTOShipmentBadRequest The request payload is invalid.

swagger:response updateMTOShipmentBadRequest

func NewUpdateMTOShipmentBadRequest

func NewUpdateMTOShipmentBadRequest() *UpdateMTOShipmentBadRequest

NewUpdateMTOShipmentBadRequest creates UpdateMTOShipmentBadRequest with default headers values

func (*UpdateMTOShipmentBadRequest) SetPayload

SetPayload sets the payload to the update m t o shipment bad request response

func (*UpdateMTOShipmentBadRequest) WithPayload

WithPayload adds the payload to the update m t o shipment bad request response

func (*UpdateMTOShipmentBadRequest) WriteResponse

func (o *UpdateMTOShipmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateMTOShipmentForbidden

type UpdateMTOShipmentForbidden struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

UpdateMTOShipmentForbidden The request was denied.

swagger:response updateMTOShipmentForbidden

func NewUpdateMTOShipmentForbidden

func NewUpdateMTOShipmentForbidden() *UpdateMTOShipmentForbidden

NewUpdateMTOShipmentForbidden creates UpdateMTOShipmentForbidden with default headers values

func (*UpdateMTOShipmentForbidden) SetPayload

SetPayload sets the payload to the update m t o shipment forbidden response

func (*UpdateMTOShipmentForbidden) WithPayload

WithPayload adds the payload to the update m t o shipment forbidden response

func (*UpdateMTOShipmentForbidden) WriteResponse

func (o *UpdateMTOShipmentForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateMTOShipmentHandler

type UpdateMTOShipmentHandler interface {
	Handle(UpdateMTOShipmentParams) middleware.Responder
}

UpdateMTOShipmentHandler interface for that can handle valid update m t o shipment params

type UpdateMTOShipmentHandlerFunc

type UpdateMTOShipmentHandlerFunc func(UpdateMTOShipmentParams) middleware.Responder

UpdateMTOShipmentHandlerFunc turns a function with the right signature into a update m t o shipment handler

func (UpdateMTOShipmentHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateMTOShipmentInternalServerError

type UpdateMTOShipmentInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.Error `json:"body,omitempty"`
}

UpdateMTOShipmentInternalServerError A server error occurred.

swagger:response updateMTOShipmentInternalServerError

func NewUpdateMTOShipmentInternalServerError

func NewUpdateMTOShipmentInternalServerError() *UpdateMTOShipmentInternalServerError

NewUpdateMTOShipmentInternalServerError creates UpdateMTOShipmentInternalServerError with default headers values

func (*UpdateMTOShipmentInternalServerError) SetPayload

SetPayload sets the payload to the update m t o shipment internal server error response

func (*UpdateMTOShipmentInternalServerError) WithPayload

WithPayload adds the payload to the update m t o shipment internal server error response

func (*UpdateMTOShipmentInternalServerError) WriteResponse

WriteResponse to the client

type UpdateMTOShipmentNotFound

type UpdateMTOShipmentNotFound struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

UpdateMTOShipmentNotFound The requested resource wasn't found.

swagger:response updateMTOShipmentNotFound

func NewUpdateMTOShipmentNotFound

func NewUpdateMTOShipmentNotFound() *UpdateMTOShipmentNotFound

NewUpdateMTOShipmentNotFound creates UpdateMTOShipmentNotFound with default headers values

func (*UpdateMTOShipmentNotFound) SetPayload

func (o *UpdateMTOShipmentNotFound) SetPayload(payload *internalmessages.ClientError)

SetPayload sets the payload to the update m t o shipment not found response

func (*UpdateMTOShipmentNotFound) WithPayload

WithPayload adds the payload to the update m t o shipment not found response

func (*UpdateMTOShipmentNotFound) WriteResponse

func (o *UpdateMTOShipmentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateMTOShipmentOK

type UpdateMTOShipmentOK struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.MTOShipment `json:"body,omitempty"`
}

UpdateMTOShipmentOK Successfully updated the specified MTO shipment.

swagger:response updateMTOShipmentOK

func NewUpdateMTOShipmentOK

func NewUpdateMTOShipmentOK() *UpdateMTOShipmentOK

NewUpdateMTOShipmentOK creates UpdateMTOShipmentOK with default headers values

func (*UpdateMTOShipmentOK) SetPayload

func (o *UpdateMTOShipmentOK) SetPayload(payload *internalmessages.MTOShipment)

SetPayload sets the payload to the update m t o shipment o k response

func (*UpdateMTOShipmentOK) WithPayload

WithPayload adds the payload to the update m t o shipment o k response

func (*UpdateMTOShipmentOK) WriteResponse

func (o *UpdateMTOShipmentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateMTOShipmentParams

type UpdateMTOShipmentParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.

	  Required: true
	  In: header
	*/
	IfMatch string
	/*
	  In: body
	*/
	Body *internalmessages.UpdateShipment
	/*UUID of the MTO Shipment to update
	  Required: true
	  In: path
	*/
	MtoShipmentID strfmt.UUID
}

UpdateMTOShipmentParams contains all the bound params for the update m t o shipment operation typically these are obtained from a http.Request

swagger:parameters updateMTOShipment

func NewUpdateMTOShipmentParams

func NewUpdateMTOShipmentParams() UpdateMTOShipmentParams

NewUpdateMTOShipmentParams creates a new UpdateMTOShipmentParams object

There are no default values defined in the spec.

func (*UpdateMTOShipmentParams) BindRequest

func (o *UpdateMTOShipmentParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewUpdateMTOShipmentParams() beforehand.

type UpdateMTOShipmentPreconditionFailed

type UpdateMTOShipmentPreconditionFailed struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

UpdateMTOShipmentPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.

swagger:response updateMTOShipmentPreconditionFailed

func NewUpdateMTOShipmentPreconditionFailed

func NewUpdateMTOShipmentPreconditionFailed() *UpdateMTOShipmentPreconditionFailed

NewUpdateMTOShipmentPreconditionFailed creates UpdateMTOShipmentPreconditionFailed with default headers values

func (*UpdateMTOShipmentPreconditionFailed) SetPayload

SetPayload sets the payload to the update m t o shipment precondition failed response

func (*UpdateMTOShipmentPreconditionFailed) WithPayload

WithPayload adds the payload to the update m t o shipment precondition failed response

func (*UpdateMTOShipmentPreconditionFailed) WriteResponse

WriteResponse to the client

type UpdateMTOShipmentURL

type UpdateMTOShipmentURL struct {
	MtoShipmentID strfmt.UUID
	// contains filtered or unexported fields
}

UpdateMTOShipmentURL generates an URL for the update m t o shipment operation

func (*UpdateMTOShipmentURL) Build

func (o *UpdateMTOShipmentURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateMTOShipmentURL) BuildFull

func (o *UpdateMTOShipmentURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateMTOShipmentURL) Must

func (o *UpdateMTOShipmentURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdateMTOShipmentURL) SetBasePath

func (o *UpdateMTOShipmentURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*UpdateMTOShipmentURL) String

func (o *UpdateMTOShipmentURL) String() string

String returns the string representation of the path with query string

func (*UpdateMTOShipmentURL) StringFull

func (o *UpdateMTOShipmentURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateMTOShipmentURL) WithBasePath

func (o *UpdateMTOShipmentURL) WithBasePath(bp string) *UpdateMTOShipmentURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UpdateMTOShipmentUnauthorized

type UpdateMTOShipmentUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ClientError `json:"body,omitempty"`
}

UpdateMTOShipmentUnauthorized The request was denied.

swagger:response updateMTOShipmentUnauthorized

func NewUpdateMTOShipmentUnauthorized

func NewUpdateMTOShipmentUnauthorized() *UpdateMTOShipmentUnauthorized

NewUpdateMTOShipmentUnauthorized creates UpdateMTOShipmentUnauthorized with default headers values

func (*UpdateMTOShipmentUnauthorized) SetPayload

SetPayload sets the payload to the update m t o shipment unauthorized response

func (*UpdateMTOShipmentUnauthorized) WithPayload

WithPayload adds the payload to the update m t o shipment unauthorized response

func (*UpdateMTOShipmentUnauthorized) WriteResponse

func (o *UpdateMTOShipmentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateMTOShipmentUnprocessableEntity

type UpdateMTOShipmentUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.ValidationError `json:"body,omitempty"`
}

UpdateMTOShipmentUnprocessableEntity The payload was unprocessable.

swagger:response updateMTOShipmentUnprocessableEntity

func NewUpdateMTOShipmentUnprocessableEntity

func NewUpdateMTOShipmentUnprocessableEntity() *UpdateMTOShipmentUnprocessableEntity

NewUpdateMTOShipmentUnprocessableEntity creates UpdateMTOShipmentUnprocessableEntity with default headers values

func (*UpdateMTOShipmentUnprocessableEntity) SetPayload

SetPayload sets the payload to the update m t o shipment unprocessable entity response

func (*UpdateMTOShipmentUnprocessableEntity) WithPayload

WithPayload adds the payload to the update m t o shipment unprocessable entity response

func (*UpdateMTOShipmentUnprocessableEntity) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL