Documentation ¶
Index ¶
- Constants
- type CreateMTOShipment
- type CreateMTOShipmentBadRequest
- func (o *CreateMTOShipmentBadRequest) SetPayload(payload *internalmessages.ClientError)
- func (o *CreateMTOShipmentBadRequest) WithPayload(payload *internalmessages.ClientError) *CreateMTOShipmentBadRequest
- func (o *CreateMTOShipmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateMTOShipmentForbidden
- func (o *CreateMTOShipmentForbidden) SetPayload(payload *internalmessages.ClientError)
- func (o *CreateMTOShipmentForbidden) WithPayload(payload *internalmessages.ClientError) *CreateMTOShipmentForbidden
- func (o *CreateMTOShipmentForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateMTOShipmentHandler
- type CreateMTOShipmentHandlerFunc
- type CreateMTOShipmentInternalServerError
- func (o *CreateMTOShipmentInternalServerError) SetPayload(payload *internalmessages.Error)
- func (o *CreateMTOShipmentInternalServerError) WithPayload(payload *internalmessages.Error) *CreateMTOShipmentInternalServerError
- func (o *CreateMTOShipmentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateMTOShipmentNotFound
- func (o *CreateMTOShipmentNotFound) SetPayload(payload *internalmessages.ClientError)
- func (o *CreateMTOShipmentNotFound) WithPayload(payload *internalmessages.ClientError) *CreateMTOShipmentNotFound
- func (o *CreateMTOShipmentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateMTOShipmentOK
- type CreateMTOShipmentParams
- type CreateMTOShipmentURL
- func (o *CreateMTOShipmentURL) Build() (*url.URL, error)
- func (o *CreateMTOShipmentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateMTOShipmentURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateMTOShipmentURL) SetBasePath(bp string)
- func (o *CreateMTOShipmentURL) String() string
- func (o *CreateMTOShipmentURL) StringFull(scheme, host string) string
- func (o *CreateMTOShipmentURL) WithBasePath(bp string) *CreateMTOShipmentURL
- type CreateMTOShipmentUnauthorized
- func (o *CreateMTOShipmentUnauthorized) SetPayload(payload *internalmessages.ClientError)
- func (o *CreateMTOShipmentUnauthorized) WithPayload(payload *internalmessages.ClientError) *CreateMTOShipmentUnauthorized
- func (o *CreateMTOShipmentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateMTOShipmentUnprocessableEntity
- func (o *CreateMTOShipmentUnprocessableEntity) SetPayload(payload *internalmessages.ValidationError)
- func (o *CreateMTOShipmentUnprocessableEntity) WithPayload(payload *internalmessages.ValidationError) *CreateMTOShipmentUnprocessableEntity
- func (o *CreateMTOShipmentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteShipment
- type DeleteShipmentBadRequest
- type DeleteShipmentConflict
- type DeleteShipmentForbidden
- type DeleteShipmentHandler
- type DeleteShipmentHandlerFunc
- type DeleteShipmentInternalServerError
- func (o *DeleteShipmentInternalServerError) SetPayload(payload *internalmessages.Error)
- func (o *DeleteShipmentInternalServerError) WithPayload(payload *internalmessages.Error) *DeleteShipmentInternalServerError
- func (o *DeleteShipmentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteShipmentNoContent
- type DeleteShipmentNotFound
- type DeleteShipmentParams
- type DeleteShipmentURL
- func (o *DeleteShipmentURL) Build() (*url.URL, error)
- func (o *DeleteShipmentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteShipmentURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteShipmentURL) SetBasePath(bp string)
- func (o *DeleteShipmentURL) String() string
- func (o *DeleteShipmentURL) StringFull(scheme, host string) string
- func (o *DeleteShipmentURL) WithBasePath(bp string) *DeleteShipmentURL
- type DeleteShipmentUnprocessableEntity
- func (o *DeleteShipmentUnprocessableEntity) SetPayload(payload *internalmessages.ValidationError)
- func (o *DeleteShipmentUnprocessableEntity) WithPayload(payload *internalmessages.ValidationError) *DeleteShipmentUnprocessableEntity
- func (o *DeleteShipmentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListMTOShipments
- type ListMTOShipmentsBadRequest
- func (o *ListMTOShipmentsBadRequest) SetPayload(payload *internalmessages.ClientError)
- func (o *ListMTOShipmentsBadRequest) WithPayload(payload *internalmessages.ClientError) *ListMTOShipmentsBadRequest
- func (o *ListMTOShipmentsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListMTOShipmentsHandler
- type ListMTOShipmentsHandlerFunc
- type ListMTOShipmentsInternalServerError
- func (o *ListMTOShipmentsInternalServerError) SetPayload(payload *internalmessages.Error)
- func (o *ListMTOShipmentsInternalServerError) WithPayload(payload *internalmessages.Error) *ListMTOShipmentsInternalServerError
- func (o *ListMTOShipmentsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListMTOShipmentsNotFound
- type ListMTOShipmentsOK
- type ListMTOShipmentsParams
- type ListMTOShipmentsURL
- func (o *ListMTOShipmentsURL) Build() (*url.URL, error)
- func (o *ListMTOShipmentsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListMTOShipmentsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListMTOShipmentsURL) SetBasePath(bp string)
- func (o *ListMTOShipmentsURL) String() string
- func (o *ListMTOShipmentsURL) StringFull(scheme, host string) string
- func (o *ListMTOShipmentsURL) WithBasePath(bp string) *ListMTOShipmentsURL
- type ListMTOShipmentsUnauthorized
- func (o *ListMTOShipmentsUnauthorized) SetPayload(payload *internalmessages.ClientError)
- func (o *ListMTOShipmentsUnauthorized) WithPayload(payload *internalmessages.ClientError) *ListMTOShipmentsUnauthorized
- func (o *ListMTOShipmentsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipment
- type UpdateMTOShipmentBadRequest
- func (o *UpdateMTOShipmentBadRequest) SetPayload(payload *internalmessages.ClientError)
- func (o *UpdateMTOShipmentBadRequest) WithPayload(payload *internalmessages.ClientError) *UpdateMTOShipmentBadRequest
- func (o *UpdateMTOShipmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentForbidden
- func (o *UpdateMTOShipmentForbidden) SetPayload(payload *internalmessages.ClientError)
- func (o *UpdateMTOShipmentForbidden) WithPayload(payload *internalmessages.ClientError) *UpdateMTOShipmentForbidden
- func (o *UpdateMTOShipmentForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentHandler
- type UpdateMTOShipmentHandlerFunc
- type UpdateMTOShipmentInternalServerError
- func (o *UpdateMTOShipmentInternalServerError) SetPayload(payload *internalmessages.Error)
- func (o *UpdateMTOShipmentInternalServerError) WithPayload(payload *internalmessages.Error) *UpdateMTOShipmentInternalServerError
- func (o *UpdateMTOShipmentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentNotFound
- func (o *UpdateMTOShipmentNotFound) SetPayload(payload *internalmessages.ClientError)
- func (o *UpdateMTOShipmentNotFound) WithPayload(payload *internalmessages.ClientError) *UpdateMTOShipmentNotFound
- func (o *UpdateMTOShipmentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentOK
- type UpdateMTOShipmentParams
- type UpdateMTOShipmentPreconditionFailed
- func (o *UpdateMTOShipmentPreconditionFailed) SetPayload(payload *internalmessages.ClientError)
- func (o *UpdateMTOShipmentPreconditionFailed) WithPayload(payload *internalmessages.ClientError) *UpdateMTOShipmentPreconditionFailed
- func (o *UpdateMTOShipmentPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentURL
- func (o *UpdateMTOShipmentURL) Build() (*url.URL, error)
- func (o *UpdateMTOShipmentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateMTOShipmentURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateMTOShipmentURL) SetBasePath(bp string)
- func (o *UpdateMTOShipmentURL) String() string
- func (o *UpdateMTOShipmentURL) StringFull(scheme, host string) string
- func (o *UpdateMTOShipmentURL) WithBasePath(bp string) *UpdateMTOShipmentURL
- type UpdateMTOShipmentUnauthorized
- func (o *UpdateMTOShipmentUnauthorized) SetPayload(payload *internalmessages.ClientError)
- func (o *UpdateMTOShipmentUnauthorized) WithPayload(payload *internalmessages.ClientError) *UpdateMTOShipmentUnauthorized
- func (o *UpdateMTOShipmentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentUnprocessableEntity
- func (o *UpdateMTOShipmentUnprocessableEntity) SetPayload(payload *internalmessages.ValidationError)
- func (o *UpdateMTOShipmentUnprocessableEntity) WithPayload(payload *internalmessages.ValidationError) *UpdateMTOShipmentUnprocessableEntity
- func (o *UpdateMTOShipmentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const CreateMTOShipmentBadRequestCode int = 400
CreateMTOShipmentBadRequestCode is the HTTP code returned for type CreateMTOShipmentBadRequest
const CreateMTOShipmentForbiddenCode int = 403
CreateMTOShipmentForbiddenCode is the HTTP code returned for type CreateMTOShipmentForbidden
const CreateMTOShipmentInternalServerErrorCode int = 500
CreateMTOShipmentInternalServerErrorCode is the HTTP code returned for type CreateMTOShipmentInternalServerError
const CreateMTOShipmentNotFoundCode int = 404
CreateMTOShipmentNotFoundCode is the HTTP code returned for type CreateMTOShipmentNotFound
const CreateMTOShipmentOKCode int = 200
CreateMTOShipmentOKCode is the HTTP code returned for type CreateMTOShipmentOK
CreateMTOShipmentUnauthorizedCode is the HTTP code returned for type CreateMTOShipmentUnauthorized
const CreateMTOShipmentUnprocessableEntityCode int = 422
CreateMTOShipmentUnprocessableEntityCode is the HTTP code returned for type CreateMTOShipmentUnprocessableEntity
const DeleteShipmentBadRequestCode int = 400
DeleteShipmentBadRequestCode is the HTTP code returned for type DeleteShipmentBadRequest
const DeleteShipmentConflictCode int = 409
DeleteShipmentConflictCode is the HTTP code returned for type DeleteShipmentConflict
const DeleteShipmentForbiddenCode int = 403
DeleteShipmentForbiddenCode is the HTTP code returned for type DeleteShipmentForbidden
const DeleteShipmentInternalServerErrorCode int = 500
DeleteShipmentInternalServerErrorCode is the HTTP code returned for type DeleteShipmentInternalServerError
const DeleteShipmentNoContentCode int = 204
DeleteShipmentNoContentCode is the HTTP code returned for type DeleteShipmentNoContent
const DeleteShipmentNotFoundCode int = 404
DeleteShipmentNotFoundCode is the HTTP code returned for type DeleteShipmentNotFound
const DeleteShipmentUnprocessableEntityCode int = 422
DeleteShipmentUnprocessableEntityCode is the HTTP code returned for type DeleteShipmentUnprocessableEntity
const ListMTOShipmentsBadRequestCode int = 400
ListMTOShipmentsBadRequestCode is the HTTP code returned for type ListMTOShipmentsBadRequest
const ListMTOShipmentsInternalServerErrorCode int = 500
ListMTOShipmentsInternalServerErrorCode is the HTTP code returned for type ListMTOShipmentsInternalServerError
const ListMTOShipmentsNotFoundCode int = 404
ListMTOShipmentsNotFoundCode is the HTTP code returned for type ListMTOShipmentsNotFound
const ListMTOShipmentsOKCode int = 200
ListMTOShipmentsOKCode is the HTTP code returned for type ListMTOShipmentsOK
ListMTOShipmentsUnauthorizedCode is the HTTP code returned for type ListMTOShipmentsUnauthorized
const UpdateMTOShipmentBadRequestCode int = 400
UpdateMTOShipmentBadRequestCode is the HTTP code returned for type UpdateMTOShipmentBadRequest
const UpdateMTOShipmentForbiddenCode int = 403
UpdateMTOShipmentForbiddenCode is the HTTP code returned for type UpdateMTOShipmentForbidden
const UpdateMTOShipmentInternalServerErrorCode int = 500
UpdateMTOShipmentInternalServerErrorCode is the HTTP code returned for type UpdateMTOShipmentInternalServerError
const UpdateMTOShipmentNotFoundCode int = 404
UpdateMTOShipmentNotFoundCode is the HTTP code returned for type UpdateMTOShipmentNotFound
const UpdateMTOShipmentOKCode int = 200
UpdateMTOShipmentOKCode is the HTTP code returned for type UpdateMTOShipmentOK
const UpdateMTOShipmentPreconditionFailedCode int = 412
UpdateMTOShipmentPreconditionFailedCode is the HTTP code returned for type UpdateMTOShipmentPreconditionFailed
UpdateMTOShipmentUnauthorizedCode is the HTTP code returned for type UpdateMTOShipmentUnauthorized
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 ¶
func (o *CreateMTOShipmentBadRequest) SetPayload(payload *internalmessages.ClientError)
SetPayload sets the payload to the create m t o shipment bad request response
func (*CreateMTOShipmentBadRequest) WithPayload ¶
func (o *CreateMTOShipmentBadRequest) WithPayload(payload *internalmessages.ClientError) *CreateMTOShipmentBadRequest
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 ¶
func (o *CreateMTOShipmentForbidden) SetPayload(payload *internalmessages.ClientError)
SetPayload sets the payload to the create m t o shipment forbidden response
func (*CreateMTOShipmentForbidden) WithPayload ¶
func (o *CreateMTOShipmentForbidden) WithPayload(payload *internalmessages.ClientError) *CreateMTOShipmentForbidden
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 ¶
func (fn CreateMTOShipmentHandlerFunc) Handle(params CreateMTOShipmentParams) middleware.Responder
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 ¶
func (o *CreateMTOShipmentInternalServerError) SetPayload(payload *internalmessages.Error)
SetPayload sets the payload to the create m t o shipment internal server error response
func (*CreateMTOShipmentInternalServerError) WithPayload ¶
func (o *CreateMTOShipmentInternalServerError) WithPayload(payload *internalmessages.Error) *CreateMTOShipmentInternalServerError
WithPayload adds the payload to the create m t o shipment internal server error response
func (*CreateMTOShipmentInternalServerError) WriteResponse ¶
func (o *CreateMTOShipmentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *CreateMTOShipmentNotFound) WithPayload(payload *internalmessages.ClientError) *CreateMTOShipmentNotFound
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 ¶
func (o *CreateMTOShipmentOK) WithPayload(payload *internalmessages.MTOShipment) *CreateMTOShipmentOK
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 ¶
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 { internalmessages.ClientError `json:"body,omitempty"` }Payload *
CreateMTOShipmentUnauthorized The request was denied.
swagger:response createMTOShipmentUnauthorized
func NewCreateMTOShipmentUnauthorized ¶
func NewCreateMTOShipmentUnauthorized() *CreateMTOShipmentUnauthorized
NewCreateMTOShipmentUnauthorized creates CreateMTOShipmentUnauthorized with default headers values
func (*CreateMTOShipmentUnauthorized) SetPayload ¶
func (o *CreateMTOShipmentUnauthorized) SetPayload(payload *internalmessages.ClientError)
SetPayload sets the payload to the create m t o shipment unauthorized response
func (*CreateMTOShipmentUnauthorized) WithPayload ¶
func (o *CreateMTOShipmentUnauthorized) WithPayload(payload *internalmessages.ClientError) *CreateMTOShipmentUnauthorized
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 ¶
func (o *CreateMTOShipmentUnprocessableEntity) SetPayload(payload *internalmessages.ValidationError)
SetPayload sets the payload to the create m t o shipment unprocessable entity response
func (*CreateMTOShipmentUnprocessableEntity) WithPayload ¶
func (o *CreateMTOShipmentUnprocessableEntity) WithPayload(payload *internalmessages.ValidationError) *CreateMTOShipmentUnprocessableEntity
WithPayload adds the payload to the create m t o shipment unprocessable entity response
func (*CreateMTOShipmentUnprocessableEntity) WriteResponse ¶
func (o *CreateMTOShipmentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *DeleteShipmentBadRequest) WithPayload(payload *internalmessages.ClientError) *DeleteShipmentBadRequest
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 ¶
func (o *DeleteShipmentConflict) WithPayload(payload *internalmessages.ClientError) *DeleteShipmentConflict
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 ¶
func (o *DeleteShipmentForbidden) WithPayload(payload *internalmessages.ClientError) *DeleteShipmentForbidden
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 ¶
func (fn DeleteShipmentHandlerFunc) Handle(params DeleteShipmentParams) middleware.Responder
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 ¶
func (o *DeleteShipmentInternalServerError) SetPayload(payload *internalmessages.Error)
SetPayload sets the payload to the delete shipment internal server error response
func (*DeleteShipmentInternalServerError) WithPayload ¶
func (o *DeleteShipmentInternalServerError) WithPayload(payload *internalmessages.Error) *DeleteShipmentInternalServerError
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 ¶
func (o *DeleteShipmentNotFound) WithPayload(payload *internalmessages.ClientError) *DeleteShipmentNotFound
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 ¶
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 ¶
func (o *DeleteShipmentUnprocessableEntity) SetPayload(payload *internalmessages.ValidationError)
SetPayload sets the payload to the delete shipment unprocessable entity response
func (*DeleteShipmentUnprocessableEntity) WithPayload ¶
func (o *DeleteShipmentUnprocessableEntity) WithPayload(payload *internalmessages.ValidationError) *DeleteShipmentUnprocessableEntity
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 ¶
func (o *ListMTOShipmentsBadRequest) SetPayload(payload *internalmessages.ClientError)
SetPayload sets the payload to the list m t o shipments bad request response
func (*ListMTOShipmentsBadRequest) WithPayload ¶
func (o *ListMTOShipmentsBadRequest) WithPayload(payload *internalmessages.ClientError) *ListMTOShipmentsBadRequest
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 ¶
func (fn ListMTOShipmentsHandlerFunc) Handle(params ListMTOShipmentsParams) middleware.Responder
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 ¶
func (o *ListMTOShipmentsInternalServerError) SetPayload(payload *internalmessages.Error)
SetPayload sets the payload to the list m t o shipments internal server error response
func (*ListMTOShipmentsInternalServerError) WithPayload ¶
func (o *ListMTOShipmentsInternalServerError) WithPayload(payload *internalmessages.Error) *ListMTOShipmentsInternalServerError
WithPayload adds the payload to the list m t o shipments internal server error response
func (*ListMTOShipmentsInternalServerError) WriteResponse ¶
func (o *ListMTOShipmentsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *ListMTOShipmentsNotFound) WithPayload(payload *internalmessages.ClientError) *ListMTOShipmentsNotFound
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 ¶
func (o *ListMTOShipmentsOK) WithPayload(payload internalmessages.MTOShipments) *ListMTOShipmentsOK
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 ¶
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 { internalmessages.ClientError `json:"body,omitempty"` }Payload *
ListMTOShipmentsUnauthorized The request was denied.
swagger:response listMTOShipmentsUnauthorized
func NewListMTOShipmentsUnauthorized ¶
func NewListMTOShipmentsUnauthorized() *ListMTOShipmentsUnauthorized
NewListMTOShipmentsUnauthorized creates ListMTOShipmentsUnauthorized with default headers values
func (*ListMTOShipmentsUnauthorized) SetPayload ¶
func (o *ListMTOShipmentsUnauthorized) SetPayload(payload *internalmessages.ClientError)
SetPayload sets the payload to the list m t o shipments unauthorized response
func (*ListMTOShipmentsUnauthorized) WithPayload ¶
func (o *ListMTOShipmentsUnauthorized) WithPayload(payload *internalmessages.ClientError) *ListMTOShipmentsUnauthorized
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 ¶
func (o *UpdateMTOShipmentBadRequest) SetPayload(payload *internalmessages.ClientError)
SetPayload sets the payload to the update m t o shipment bad request response
func (*UpdateMTOShipmentBadRequest) WithPayload ¶
func (o *UpdateMTOShipmentBadRequest) WithPayload(payload *internalmessages.ClientError) *UpdateMTOShipmentBadRequest
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 ¶
func (o *UpdateMTOShipmentForbidden) SetPayload(payload *internalmessages.ClientError)
SetPayload sets the payload to the update m t o shipment forbidden response
func (*UpdateMTOShipmentForbidden) WithPayload ¶
func (o *UpdateMTOShipmentForbidden) WithPayload(payload *internalmessages.ClientError) *UpdateMTOShipmentForbidden
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 ¶
func (fn UpdateMTOShipmentHandlerFunc) Handle(params UpdateMTOShipmentParams) middleware.Responder
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 ¶
func (o *UpdateMTOShipmentInternalServerError) SetPayload(payload *internalmessages.Error)
SetPayload sets the payload to the update m t o shipment internal server error response
func (*UpdateMTOShipmentInternalServerError) WithPayload ¶
func (o *UpdateMTOShipmentInternalServerError) WithPayload(payload *internalmessages.Error) *UpdateMTOShipmentInternalServerError
WithPayload adds the payload to the update m t o shipment internal server error response
func (*UpdateMTOShipmentInternalServerError) WriteResponse ¶
func (o *UpdateMTOShipmentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *UpdateMTOShipmentNotFound) WithPayload(payload *internalmessages.ClientError) *UpdateMTOShipmentNotFound
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 ¶
func (o *UpdateMTOShipmentOK) WithPayload(payload *internalmessages.MTOShipment) *UpdateMTOShipmentOK
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 ¶
func (o *UpdateMTOShipmentPreconditionFailed) SetPayload(payload *internalmessages.ClientError)
SetPayload sets the payload to the update m t o shipment precondition failed response
func (*UpdateMTOShipmentPreconditionFailed) WithPayload ¶
func (o *UpdateMTOShipmentPreconditionFailed) WithPayload(payload *internalmessages.ClientError) *UpdateMTOShipmentPreconditionFailed
WithPayload adds the payload to the update m t o shipment precondition failed response
func (*UpdateMTOShipmentPreconditionFailed) WriteResponse ¶
func (o *UpdateMTOShipmentPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
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 { internalmessages.ClientError `json:"body,omitempty"` }Payload *
UpdateMTOShipmentUnauthorized The request was denied.
swagger:response updateMTOShipmentUnauthorized
func NewUpdateMTOShipmentUnauthorized ¶
func NewUpdateMTOShipmentUnauthorized() *UpdateMTOShipmentUnauthorized
NewUpdateMTOShipmentUnauthorized creates UpdateMTOShipmentUnauthorized with default headers values
func (*UpdateMTOShipmentUnauthorized) SetPayload ¶
func (o *UpdateMTOShipmentUnauthorized) SetPayload(payload *internalmessages.ClientError)
SetPayload sets the payload to the update m t o shipment unauthorized response
func (*UpdateMTOShipmentUnauthorized) WithPayload ¶
func (o *UpdateMTOShipmentUnauthorized) WithPayload(payload *internalmessages.ClientError) *UpdateMTOShipmentUnauthorized
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 ¶
func (o *UpdateMTOShipmentUnprocessableEntity) SetPayload(payload *internalmessages.ValidationError)
SetPayload sets the payload to the update m t o shipment unprocessable entity response
func (*UpdateMTOShipmentUnprocessableEntity) WithPayload ¶
func (o *UpdateMTOShipmentUnprocessableEntity) WithPayload(payload *internalmessages.ValidationError) *UpdateMTOShipmentUnprocessableEntity
WithPayload adds the payload to the update m t o shipment unprocessable entity response
func (*UpdateMTOShipmentUnprocessableEntity) WriteResponse ¶
func (o *UpdateMTOShipmentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- create_m_t_o_shipment.go
- create_m_t_o_shipment_parameters.go
- create_m_t_o_shipment_responses.go
- create_m_t_o_shipment_urlbuilder.go
- delete_shipment.go
- delete_shipment_parameters.go
- delete_shipment_responses.go
- delete_shipment_urlbuilder.go
- list_m_t_o_shipments.go
- list_m_t_o_shipments_parameters.go
- list_m_t_o_shipments_responses.go
- list_m_t_o_shipments_urlbuilder.go
- update_m_t_o_shipment.go
- update_m_t_o_shipment_parameters.go
- update_m_t_o_shipment_responses.go
- update_m_t_o_shipment_urlbuilder.go