Documentation ¶
Index ¶
- Constants
- type CreateMTOShipment
- type CreateMTOShipmentBadRequest
- type CreateMTOShipmentHandler
- type CreateMTOShipmentHandlerFunc
- type CreateMTOShipmentInternalServerError
- func (o *CreateMTOShipmentInternalServerError) SetPayload(payload *ghcmessages.Error)
- func (o *CreateMTOShipmentInternalServerError) WithPayload(payload *ghcmessages.Error) *CreateMTOShipmentInternalServerError
- func (o *CreateMTOShipmentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateMTOShipmentNotFound
- 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 CreateMTOShipmentUnprocessableEntity
- func (o *CreateMTOShipmentUnprocessableEntity) SetPayload(payload *ghcmessages.ValidationError)
- func (o *CreateMTOShipmentUnprocessableEntity) WithPayload(payload *ghcmessages.ValidationError) *CreateMTOShipmentUnprocessableEntity
- func (o *CreateMTOShipmentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetShipment
- type GetShipmentBadRequest
- type GetShipmentForbidden
- type GetShipmentHandler
- type GetShipmentHandlerFunc
- type GetShipmentInternalServerError
- type GetShipmentNotFound
- type GetShipmentOK
- type GetShipmentParams
- type GetShipmentURL
- func (o *GetShipmentURL) Build() (*url.URL, error)
- func (o *GetShipmentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetShipmentURL) Must(u *url.URL, err error) *url.URL
- func (o *GetShipmentURL) SetBasePath(bp string)
- func (o *GetShipmentURL) String() string
- func (o *GetShipmentURL) StringFull(scheme, host string) string
- func (o *GetShipmentURL) WithBasePath(bp string) *GetShipmentURL
- type GetShipmentUnprocessableEntity
- func (o *GetShipmentUnprocessableEntity) SetPayload(payload *ghcmessages.ValidationError)
- func (o *GetShipmentUnprocessableEntity) WithPayload(payload *ghcmessages.ValidationError) *GetShipmentUnprocessableEntity
- func (o *GetShipmentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListMTOShipments
- type ListMTOShipmentsForbidden
- type ListMTOShipmentsHandler
- type ListMTOShipmentsHandlerFunc
- type ListMTOShipmentsInternalServerError
- func (o *ListMTOShipmentsInternalServerError) SetPayload(payload *ghcmessages.Error)
- func (o *ListMTOShipmentsInternalServerError) WithPayload(payload *ghcmessages.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 ListMTOShipmentsUnprocessableEntity
- func (o *ListMTOShipmentsUnprocessableEntity) SetPayload(payload *ghcmessages.ValidationError)
- func (o *ListMTOShipmentsUnprocessableEntity) WithPayload(payload *ghcmessages.ValidationError) *ListMTOShipmentsUnprocessableEntity
- func (o *ListMTOShipmentsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipment
- type UpdateMTOShipmentBadRequest
- type UpdateMTOShipmentForbidden
- type UpdateMTOShipmentHandler
- type UpdateMTOShipmentHandlerFunc
- type UpdateMTOShipmentInternalServerError
- func (o *UpdateMTOShipmentInternalServerError) SetPayload(payload *ghcmessages.Error)
- func (o *UpdateMTOShipmentInternalServerError) WithPayload(payload *ghcmessages.Error) *UpdateMTOShipmentInternalServerError
- func (o *UpdateMTOShipmentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentNotFound
- type UpdateMTOShipmentOK
- type UpdateMTOShipmentParams
- type UpdateMTOShipmentPreconditionFailed
- func (o *UpdateMTOShipmentPreconditionFailed) SetPayload(payload *ghcmessages.Error)
- func (o *UpdateMTOShipmentPreconditionFailed) WithPayload(payload *ghcmessages.Error) *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
- type UpdateMTOShipmentUnprocessableEntity
- func (o *UpdateMTOShipmentUnprocessableEntity) SetPayload(payload *ghcmessages.ValidationError)
- func (o *UpdateMTOShipmentUnprocessableEntity) WithPayload(payload *ghcmessages.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 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
const CreateMTOShipmentUnprocessableEntityCode int = 422
CreateMTOShipmentUnprocessableEntityCode is the HTTP code returned for type CreateMTOShipmentUnprocessableEntity
const GetShipmentBadRequestCode int = 400
GetShipmentBadRequestCode is the HTTP code returned for type GetShipmentBadRequest
const GetShipmentForbiddenCode int = 403
GetShipmentForbiddenCode is the HTTP code returned for type GetShipmentForbidden
const GetShipmentInternalServerErrorCode int = 500
GetShipmentInternalServerErrorCode is the HTTP code returned for type GetShipmentInternalServerError
const GetShipmentNotFoundCode int = 404
GetShipmentNotFoundCode is the HTTP code returned for type GetShipmentNotFound
const GetShipmentOKCode int = 200
GetShipmentOKCode is the HTTP code returned for type GetShipmentOK
const GetShipmentUnprocessableEntityCode int = 422
GetShipmentUnprocessableEntityCode is the HTTP code returned for type GetShipmentUnprocessableEntity
const ListMTOShipmentsForbiddenCode int = 403
ListMTOShipmentsForbiddenCode is the HTTP code returned for type ListMTOShipmentsForbidden
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
const ListMTOShipmentsUnprocessableEntityCode int = 422
ListMTOShipmentsUnprocessableEntityCode is the HTTP code returned for type ListMTOShipmentsUnprocessableEntity
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 * Releasing / Receiving agents Optional fields include: * Delivery Address Type * Customer Remarks * Releasing / Receiving agents * An array of optional accessorial service item codes
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 *ghcmessages.Error `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 *ghcmessages.Error)
SetPayload sets the payload to the create m t o shipment bad request response
func (*CreateMTOShipmentBadRequest) WithPayload ¶
func (o *CreateMTOShipmentBadRequest) WithPayload(payload *ghcmessages.Error) *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 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 *ghcmessages.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 *ghcmessages.Error)
SetPayload sets the payload to the create m t o shipment internal server error response
func (*CreateMTOShipmentInternalServerError) WithPayload ¶
func (o *CreateMTOShipmentInternalServerError) WithPayload(payload *ghcmessages.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 *ghcmessages.Error `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 *ghcmessages.Error)
SetPayload sets the payload to the create m t o shipment not found response
func (*CreateMTOShipmentNotFound) WithPayload ¶
func (o *CreateMTOShipmentNotFound) WithPayload(payload *ghcmessages.Error) *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 *ghcmessages.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 *ghcmessages.MTOShipment)
SetPayload sets the payload to the create m t o shipment o k response
func (*CreateMTOShipmentOK) WithPayload ¶
func (o *CreateMTOShipmentOK) WithPayload(payload *ghcmessages.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 *ghcmessages.CreateMTOShipment }
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 CreateMTOShipmentUnprocessableEntity ¶
type CreateMTOShipmentUnprocessableEntity struct { /* In: Body */ Payload *ghcmessages.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 *ghcmessages.ValidationError)
SetPayload sets the payload to the create m t o shipment unprocessable entity response
func (*CreateMTOShipmentUnprocessableEntity) WithPayload ¶
func (o *CreateMTOShipmentUnprocessableEntity) WithPayload(payload *ghcmessages.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 GetShipment ¶
type GetShipment struct { Context *middleware.Context Handler GetShipmentHandler }
GetShipment swagger:route GET /shipments/{shipmentID} mtoShipment getShipment
fetches a shipment by ID
fetches a shipment by ID
func NewGetShipment ¶
func NewGetShipment(ctx *middleware.Context, handler GetShipmentHandler) *GetShipment
NewGetShipment creates a new http.Handler for the get shipment operation
func (*GetShipment) ServeHTTP ¶
func (o *GetShipment) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetShipmentBadRequest ¶
type GetShipmentBadRequest struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetShipmentBadRequest The request payload is invalid
swagger:response getShipmentBadRequest
func NewGetShipmentBadRequest ¶
func NewGetShipmentBadRequest() *GetShipmentBadRequest
NewGetShipmentBadRequest creates GetShipmentBadRequest with default headers values
func (*GetShipmentBadRequest) SetPayload ¶
func (o *GetShipmentBadRequest) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get shipment bad request response
func (*GetShipmentBadRequest) WithPayload ¶
func (o *GetShipmentBadRequest) WithPayload(payload *ghcmessages.Error) *GetShipmentBadRequest
WithPayload adds the payload to the get shipment bad request response
func (*GetShipmentBadRequest) WriteResponse ¶
func (o *GetShipmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetShipmentForbidden ¶
type GetShipmentForbidden struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetShipmentForbidden The request was denied
swagger:response getShipmentForbidden
func NewGetShipmentForbidden ¶
func NewGetShipmentForbidden() *GetShipmentForbidden
NewGetShipmentForbidden creates GetShipmentForbidden with default headers values
func (*GetShipmentForbidden) SetPayload ¶
func (o *GetShipmentForbidden) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get shipment forbidden response
func (*GetShipmentForbidden) WithPayload ¶
func (o *GetShipmentForbidden) WithPayload(payload *ghcmessages.Error) *GetShipmentForbidden
WithPayload adds the payload to the get shipment forbidden response
func (*GetShipmentForbidden) WriteResponse ¶
func (o *GetShipmentForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetShipmentHandler ¶
type GetShipmentHandler interface {
Handle(GetShipmentParams) middleware.Responder
}
GetShipmentHandler interface for that can handle valid get shipment params
type GetShipmentHandlerFunc ¶
type GetShipmentHandlerFunc func(GetShipmentParams) middleware.Responder
GetShipmentHandlerFunc turns a function with the right signature into a get shipment handler
func (GetShipmentHandlerFunc) Handle ¶
func (fn GetShipmentHandlerFunc) Handle(params GetShipmentParams) middleware.Responder
Handle executing the request and returning a response
type GetShipmentInternalServerError ¶
type GetShipmentInternalServerError struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetShipmentInternalServerError A server error occurred
swagger:response getShipmentInternalServerError
func NewGetShipmentInternalServerError ¶
func NewGetShipmentInternalServerError() *GetShipmentInternalServerError
NewGetShipmentInternalServerError creates GetShipmentInternalServerError with default headers values
func (*GetShipmentInternalServerError) SetPayload ¶
func (o *GetShipmentInternalServerError) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get shipment internal server error response
func (*GetShipmentInternalServerError) WithPayload ¶
func (o *GetShipmentInternalServerError) WithPayload(payload *ghcmessages.Error) *GetShipmentInternalServerError
WithPayload adds the payload to the get shipment internal server error response
func (*GetShipmentInternalServerError) WriteResponse ¶
func (o *GetShipmentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetShipmentNotFound ¶
type GetShipmentNotFound struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
GetShipmentNotFound The requested resource wasn't found
swagger:response getShipmentNotFound
func NewGetShipmentNotFound ¶
func NewGetShipmentNotFound() *GetShipmentNotFound
NewGetShipmentNotFound creates GetShipmentNotFound with default headers values
func (*GetShipmentNotFound) SetPayload ¶
func (o *GetShipmentNotFound) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the get shipment not found response
func (*GetShipmentNotFound) WithPayload ¶
func (o *GetShipmentNotFound) WithPayload(payload *ghcmessages.Error) *GetShipmentNotFound
WithPayload adds the payload to the get shipment not found response
func (*GetShipmentNotFound) WriteResponse ¶
func (o *GetShipmentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetShipmentOK ¶
type GetShipmentOK struct { /* In: Body */ Payload *ghcmessages.MTOShipment `json:"body,omitempty"` }
GetShipmentOK Successfully fetched the shipment
swagger:response getShipmentOK
func NewGetShipmentOK ¶
func NewGetShipmentOK() *GetShipmentOK
NewGetShipmentOK creates GetShipmentOK with default headers values
func (*GetShipmentOK) SetPayload ¶
func (o *GetShipmentOK) SetPayload(payload *ghcmessages.MTOShipment)
SetPayload sets the payload to the get shipment o k response
func (*GetShipmentOK) WithPayload ¶
func (o *GetShipmentOK) WithPayload(payload *ghcmessages.MTOShipment) *GetShipmentOK
WithPayload adds the payload to the get shipment o k response
func (*GetShipmentOK) WriteResponse ¶
func (o *GetShipmentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetShipmentParams ¶
type GetShipmentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of the shipment to be fetched Required: true In: path */ ShipmentID strfmt.UUID }
GetShipmentParams contains all the bound params for the get shipment operation typically these are obtained from a http.Request
swagger:parameters getShipment
func NewGetShipmentParams ¶
func NewGetShipmentParams() GetShipmentParams
NewGetShipmentParams creates a new GetShipmentParams object
There are no default values defined in the spec.
func (*GetShipmentParams) BindRequest ¶
func (o *GetShipmentParams) 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 NewGetShipmentParams() beforehand.
type GetShipmentURL ¶
GetShipmentURL generates an URL for the get shipment operation
func (*GetShipmentURL) Build ¶
func (o *GetShipmentURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetShipmentURL) BuildFull ¶
func (o *GetShipmentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetShipmentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetShipmentURL) SetBasePath ¶
func (o *GetShipmentURL) 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 (*GetShipmentURL) String ¶
func (o *GetShipmentURL) String() string
String returns the string representation of the path with query string
func (*GetShipmentURL) StringFull ¶
func (o *GetShipmentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetShipmentURL) WithBasePath ¶
func (o *GetShipmentURL) WithBasePath(bp string) *GetShipmentURL
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 GetShipmentUnprocessableEntity ¶
type GetShipmentUnprocessableEntity struct { /* In: Body */ Payload *ghcmessages.ValidationError `json:"body,omitempty"` }
GetShipmentUnprocessableEntity The payload was unprocessable.
swagger:response getShipmentUnprocessableEntity
func NewGetShipmentUnprocessableEntity ¶
func NewGetShipmentUnprocessableEntity() *GetShipmentUnprocessableEntity
NewGetShipmentUnprocessableEntity creates GetShipmentUnprocessableEntity with default headers values
func (*GetShipmentUnprocessableEntity) SetPayload ¶
func (o *GetShipmentUnprocessableEntity) SetPayload(payload *ghcmessages.ValidationError)
SetPayload sets the payload to the get shipment unprocessable entity response
func (*GetShipmentUnprocessableEntity) WithPayload ¶
func (o *GetShipmentUnprocessableEntity) WithPayload(payload *ghcmessages.ValidationError) *GetShipmentUnprocessableEntity
WithPayload adds the payload to the get shipment unprocessable entity response
func (*GetShipmentUnprocessableEntity) WriteResponse ¶
func (o *GetShipmentUnprocessableEntity) 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 /move_task_orders/{moveTaskOrderID}/mto_shipments mtoShipment listMTOShipments
Gets all shipments for a move task order ¶
Gets all shipments for a 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 ListMTOShipmentsForbidden ¶
type ListMTOShipmentsForbidden struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
ListMTOShipmentsForbidden The request was denied
swagger:response listMTOShipmentsForbidden
func NewListMTOShipmentsForbidden ¶
func NewListMTOShipmentsForbidden() *ListMTOShipmentsForbidden
NewListMTOShipmentsForbidden creates ListMTOShipmentsForbidden with default headers values
func (*ListMTOShipmentsForbidden) SetPayload ¶
func (o *ListMTOShipmentsForbidden) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the list m t o shipments forbidden response
func (*ListMTOShipmentsForbidden) WithPayload ¶
func (o *ListMTOShipmentsForbidden) WithPayload(payload *ghcmessages.Error) *ListMTOShipmentsForbidden
WithPayload adds the payload to the list m t o shipments forbidden response
func (*ListMTOShipmentsForbidden) WriteResponse ¶
func (o *ListMTOShipmentsForbidden) 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 *ghcmessages.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 *ghcmessages.Error)
SetPayload sets the payload to the list m t o shipments internal server error response
func (*ListMTOShipmentsInternalServerError) WithPayload ¶
func (o *ListMTOShipmentsInternalServerError) WithPayload(payload *ghcmessages.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 *ghcmessages.Error `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 *ghcmessages.Error)
SetPayload sets the payload to the list m t o shipments not found response
func (*ListMTOShipmentsNotFound) WithPayload ¶
func (o *ListMTOShipmentsNotFound) WithPayload(payload *ghcmessages.Error) *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 ghcmessages.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 ghcmessages.MTOShipments)
SetPayload sets the payload to the list m t o shipments o k response
func (*ListMTOShipmentsOK) WithPayload ¶
func (o *ListMTOShipmentsOK) WithPayload(payload ghcmessages.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 ListMTOShipmentsUnprocessableEntity ¶
type ListMTOShipmentsUnprocessableEntity struct { /* In: Body */ Payload *ghcmessages.ValidationError `json:"body,omitempty"` }
ListMTOShipmentsUnprocessableEntity The payload was unprocessable.
swagger:response listMTOShipmentsUnprocessableEntity
func NewListMTOShipmentsUnprocessableEntity ¶
func NewListMTOShipmentsUnprocessableEntity() *ListMTOShipmentsUnprocessableEntity
NewListMTOShipmentsUnprocessableEntity creates ListMTOShipmentsUnprocessableEntity with default headers values
func (*ListMTOShipmentsUnprocessableEntity) SetPayload ¶
func (o *ListMTOShipmentsUnprocessableEntity) SetPayload(payload *ghcmessages.ValidationError)
SetPayload sets the payload to the list m t o shipments unprocessable entity response
func (*ListMTOShipmentsUnprocessableEntity) WithPayload ¶
func (o *ListMTOShipmentsUnprocessableEntity) WithPayload(payload *ghcmessages.ValidationError) *ListMTOShipmentsUnprocessableEntity
WithPayload adds the payload to the list m t o shipments unprocessable entity response
func (*ListMTOShipmentsUnprocessableEntity) WriteResponse ¶
func (o *ListMTOShipmentsUnprocessableEntity) 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 /move_task_orders/{moveTaskOrderID}/mto_shipments/{shipmentID} mtoShipment updateMTOShipment
updateMTOShipment
Updates a specified MTO shipment. Required fields include: * MTO Shipment ID required in path * If-Match required in headers * No fields required in body Optional fields include: * New shipment status type * Shipment Type * Customer requested pick-up date * Pick-up Address * Delivery Address * Secondary Pick-up Address * SecondaryDelivery Address * Delivery Address Type * Customer Remarks * Counselor 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 *ghcmessages.Error `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 *ghcmessages.Error)
SetPayload sets the payload to the update m t o shipment bad request response
func (*UpdateMTOShipmentBadRequest) WithPayload ¶
func (o *UpdateMTOShipmentBadRequest) WithPayload(payload *ghcmessages.Error) *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 *ghcmessages.Error `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 *ghcmessages.Error)
SetPayload sets the payload to the update m t o shipment forbidden response
func (*UpdateMTOShipmentForbidden) WithPayload ¶
func (o *UpdateMTOShipmentForbidden) WithPayload(payload *ghcmessages.Error) *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 *ghcmessages.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 *ghcmessages.Error)
SetPayload sets the payload to the update m t o shipment internal server error response
func (*UpdateMTOShipmentInternalServerError) WithPayload ¶
func (o *UpdateMTOShipmentInternalServerError) WithPayload(payload *ghcmessages.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 *ghcmessages.Error `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 *ghcmessages.Error)
SetPayload sets the payload to the update m t o shipment not found response
func (*UpdateMTOShipmentNotFound) WithPayload ¶
func (o *UpdateMTOShipmentNotFound) WithPayload(payload *ghcmessages.Error) *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 *ghcmessages.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 *ghcmessages.MTOShipment)
SetPayload sets the payload to the update m t o shipment o k response
func (*UpdateMTOShipmentOK) WithPayload ¶
func (o *UpdateMTOShipmentOK) WithPayload(payload *ghcmessages.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 *ghcmessages.UpdateShipment /*ID of move task order for mto shipment to use Required: true In: path */ MoveTaskOrderID strfmt.UUID /*UUID of the MTO Shipment to update Required: true In: path */ ShipmentID 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 *ghcmessages.Error `json:"body,omitempty"` }
UpdateMTOShipmentPreconditionFailed Precondition failed
swagger:response updateMTOShipmentPreconditionFailed
func NewUpdateMTOShipmentPreconditionFailed ¶
func NewUpdateMTOShipmentPreconditionFailed() *UpdateMTOShipmentPreconditionFailed
NewUpdateMTOShipmentPreconditionFailed creates UpdateMTOShipmentPreconditionFailed with default headers values
func (*UpdateMTOShipmentPreconditionFailed) SetPayload ¶
func (o *UpdateMTOShipmentPreconditionFailed) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the update m t o shipment precondition failed response
func (*UpdateMTOShipmentPreconditionFailed) WithPayload ¶
func (o *UpdateMTOShipmentPreconditionFailed) WithPayload(payload *ghcmessages.Error) *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 { MoveTaskOrderID strfmt.UUID ShipmentID 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 { ghcmessages.Error `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 *ghcmessages.Error)
SetPayload sets the payload to the update m t o shipment unauthorized response
func (*UpdateMTOShipmentUnauthorized) WithPayload ¶
func (o *UpdateMTOShipmentUnauthorized) WithPayload(payload *ghcmessages.Error) *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 *ghcmessages.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 *ghcmessages.ValidationError)
SetPayload sets the payload to the update m t o shipment unprocessable entity response
func (*UpdateMTOShipmentUnprocessableEntity) WithPayload ¶
func (o *UpdateMTOShipmentUnprocessableEntity) WithPayload(payload *ghcmessages.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
- get_shipment.go
- get_shipment_parameters.go
- get_shipment_responses.go
- get_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