Documentation ¶
Index ¶
- Constants
- type CreateMTOAgent
- type CreateMTOAgentBadRequest
- type CreateMTOAgentConflict
- type CreateMTOAgentForbidden
- type CreateMTOAgentHandler
- type CreateMTOAgentHandlerFunc
- type CreateMTOAgentInternalServerError
- func (o *CreateMTOAgentInternalServerError) SetPayload(payload *primemessages.Error)
- func (o *CreateMTOAgentInternalServerError) WithPayload(payload *primemessages.Error) *CreateMTOAgentInternalServerError
- func (o *CreateMTOAgentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateMTOAgentNotFound
- type CreateMTOAgentOK
- type CreateMTOAgentParams
- type CreateMTOAgentURL
- func (o *CreateMTOAgentURL) Build() (*url.URL, error)
- func (o *CreateMTOAgentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateMTOAgentURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateMTOAgentURL) SetBasePath(bp string)
- func (o *CreateMTOAgentURL) String() string
- func (o *CreateMTOAgentURL) StringFull(scheme, host string) string
- func (o *CreateMTOAgentURL) WithBasePath(bp string) *CreateMTOAgentURL
- type CreateMTOAgentUnauthorized
- type CreateMTOAgentUnprocessableEntity
- func (o *CreateMTOAgentUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
- func (o *CreateMTOAgentUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *CreateMTOAgentUnprocessableEntity
- func (o *CreateMTOAgentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateMTOShipment
- type CreateMTOShipmentBadRequest
- func (o *CreateMTOShipmentBadRequest) SetPayload(payload *primemessages.ClientError)
- func (o *CreateMTOShipmentBadRequest) WithPayload(payload *primemessages.ClientError) *CreateMTOShipmentBadRequest
- func (o *CreateMTOShipmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateMTOShipmentHandler
- type CreateMTOShipmentHandlerFunc
- type CreateMTOShipmentInternalServerError
- func (o *CreateMTOShipmentInternalServerError) SetPayload(payload *primemessages.Error)
- func (o *CreateMTOShipmentInternalServerError) WithPayload(payload *primemessages.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 *primemessages.ValidationError)
- func (o *CreateMTOShipmentUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *CreateMTOShipmentUnprocessableEntity
- func (o *CreateMTOShipmentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateSITExtension
- type CreateSITExtensionBadRequest
- func (o *CreateSITExtensionBadRequest) SetPayload(payload *primemessages.ClientError)
- func (o *CreateSITExtensionBadRequest) WithPayload(payload *primemessages.ClientError) *CreateSITExtensionBadRequest
- func (o *CreateSITExtensionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateSITExtensionConflict
- type CreateSITExtensionCreated
- type CreateSITExtensionForbidden
- func (o *CreateSITExtensionForbidden) SetPayload(payload *primemessages.ClientError)
- func (o *CreateSITExtensionForbidden) WithPayload(payload *primemessages.ClientError) *CreateSITExtensionForbidden
- func (o *CreateSITExtensionForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateSITExtensionHandler
- type CreateSITExtensionHandlerFunc
- type CreateSITExtensionInternalServerError
- func (o *CreateSITExtensionInternalServerError) SetPayload(payload *primemessages.Error)
- func (o *CreateSITExtensionInternalServerError) WithPayload(payload *primemessages.Error) *CreateSITExtensionInternalServerError
- func (o *CreateSITExtensionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateSITExtensionNotFound
- type CreateSITExtensionParams
- type CreateSITExtensionURL
- func (o *CreateSITExtensionURL) Build() (*url.URL, error)
- func (o *CreateSITExtensionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateSITExtensionURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateSITExtensionURL) SetBasePath(bp string)
- func (o *CreateSITExtensionURL) String() string
- func (o *CreateSITExtensionURL) StringFull(scheme, host string) string
- func (o *CreateSITExtensionURL) WithBasePath(bp string) *CreateSITExtensionURL
- type CreateSITExtensionUnauthorized
- func (o *CreateSITExtensionUnauthorized) SetPayload(payload *primemessages.ClientError)
- func (o *CreateSITExtensionUnauthorized) WithPayload(payload *primemessages.ClientError) *CreateSITExtensionUnauthorized
- func (o *CreateSITExtensionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateSITExtensionUnprocessableEntity
- func (o *CreateSITExtensionUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
- func (o *CreateSITExtensionUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *CreateSITExtensionUnprocessableEntity
- func (o *CreateSITExtensionUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteMTOShipment
- type DeleteMTOShipmentBadRequest
- func (o *DeleteMTOShipmentBadRequest) SetPayload(payload *primemessages.ClientError)
- func (o *DeleteMTOShipmentBadRequest) WithPayload(payload *primemessages.ClientError) *DeleteMTOShipmentBadRequest
- func (o *DeleteMTOShipmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteMTOShipmentConflict
- type DeleteMTOShipmentForbidden
- type DeleteMTOShipmentHandler
- type DeleteMTOShipmentHandlerFunc
- type DeleteMTOShipmentInternalServerError
- func (o *DeleteMTOShipmentInternalServerError) SetPayload(payload *primemessages.Error)
- func (o *DeleteMTOShipmentInternalServerError) WithPayload(payload *primemessages.Error) *DeleteMTOShipmentInternalServerError
- func (o *DeleteMTOShipmentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteMTOShipmentNoContent
- type DeleteMTOShipmentNotFound
- type DeleteMTOShipmentParams
- type DeleteMTOShipmentURL
- func (o *DeleteMTOShipmentURL) Build() (*url.URL, error)
- func (o *DeleteMTOShipmentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteMTOShipmentURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteMTOShipmentURL) SetBasePath(bp string)
- func (o *DeleteMTOShipmentURL) String() string
- func (o *DeleteMTOShipmentURL) StringFull(scheme, host string) string
- func (o *DeleteMTOShipmentURL) WithBasePath(bp string) *DeleteMTOShipmentURL
- type DeleteMTOShipmentUnprocessableEntity
- func (o *DeleteMTOShipmentUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
- func (o *DeleteMTOShipmentUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *DeleteMTOShipmentUnprocessableEntity
- func (o *DeleteMTOShipmentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOAgent
- type UpdateMTOAgentBadRequest
- type UpdateMTOAgentForbidden
- type UpdateMTOAgentHandler
- type UpdateMTOAgentHandlerFunc
- type UpdateMTOAgentInternalServerError
- func (o *UpdateMTOAgentInternalServerError) SetPayload(payload *primemessages.Error)
- func (o *UpdateMTOAgentInternalServerError) WithPayload(payload *primemessages.Error) *UpdateMTOAgentInternalServerError
- func (o *UpdateMTOAgentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOAgentNotFound
- type UpdateMTOAgentOK
- type UpdateMTOAgentParams
- type UpdateMTOAgentPreconditionFailed
- func (o *UpdateMTOAgentPreconditionFailed) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateMTOAgentPreconditionFailed) WithPayload(payload *primemessages.ClientError) *UpdateMTOAgentPreconditionFailed
- func (o *UpdateMTOAgentPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOAgentURL
- func (o *UpdateMTOAgentURL) Build() (*url.URL, error)
- func (o *UpdateMTOAgentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateMTOAgentURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateMTOAgentURL) SetBasePath(bp string)
- func (o *UpdateMTOAgentURL) String() string
- func (o *UpdateMTOAgentURL) StringFull(scheme, host string) string
- func (o *UpdateMTOAgentURL) WithBasePath(bp string) *UpdateMTOAgentURL
- type UpdateMTOAgentUnauthorized
- type UpdateMTOAgentUnprocessableEntity
- func (o *UpdateMTOAgentUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
- func (o *UpdateMTOAgentUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *UpdateMTOAgentUnprocessableEntity
- func (o *UpdateMTOAgentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipment
- type UpdateMTOShipmentAddress
- type UpdateMTOShipmentAddressBadRequest
- func (o *UpdateMTOShipmentAddressBadRequest) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateMTOShipmentAddressBadRequest) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentAddressBadRequest
- func (o *UpdateMTOShipmentAddressBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentAddressConflict
- func (o *UpdateMTOShipmentAddressConflict) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateMTOShipmentAddressConflict) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentAddressConflict
- func (o *UpdateMTOShipmentAddressConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentAddressForbidden
- func (o *UpdateMTOShipmentAddressForbidden) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateMTOShipmentAddressForbidden) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentAddressForbidden
- func (o *UpdateMTOShipmentAddressForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentAddressHandler
- type UpdateMTOShipmentAddressHandlerFunc
- type UpdateMTOShipmentAddressInternalServerError
- func (o *UpdateMTOShipmentAddressInternalServerError) SetPayload(payload *primemessages.Error)
- func (o *UpdateMTOShipmentAddressInternalServerError) WithPayload(payload *primemessages.Error) *UpdateMTOShipmentAddressInternalServerError
- func (o *UpdateMTOShipmentAddressInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentAddressNotFound
- func (o *UpdateMTOShipmentAddressNotFound) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateMTOShipmentAddressNotFound) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentAddressNotFound
- func (o *UpdateMTOShipmentAddressNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentAddressOK
- type UpdateMTOShipmentAddressParams
- type UpdateMTOShipmentAddressPreconditionFailed
- func (o *UpdateMTOShipmentAddressPreconditionFailed) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateMTOShipmentAddressPreconditionFailed) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentAddressPreconditionFailed
- func (o *UpdateMTOShipmentAddressPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentAddressURL
- func (o *UpdateMTOShipmentAddressURL) Build() (*url.URL, error)
- func (o *UpdateMTOShipmentAddressURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateMTOShipmentAddressURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateMTOShipmentAddressURL) SetBasePath(bp string)
- func (o *UpdateMTOShipmentAddressURL) String() string
- func (o *UpdateMTOShipmentAddressURL) StringFull(scheme, host string) string
- func (o *UpdateMTOShipmentAddressURL) WithBasePath(bp string) *UpdateMTOShipmentAddressURL
- type UpdateMTOShipmentAddressUnauthorized
- func (o *UpdateMTOShipmentAddressUnauthorized) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateMTOShipmentAddressUnauthorized) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentAddressUnauthorized
- func (o *UpdateMTOShipmentAddressUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentAddressUnprocessableEntity
- func (o *UpdateMTOShipmentAddressUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
- func (o *UpdateMTOShipmentAddressUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *UpdateMTOShipmentAddressUnprocessableEntity
- func (o *UpdateMTOShipmentAddressUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentBadRequest
- func (o *UpdateMTOShipmentBadRequest) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateMTOShipmentBadRequest) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentBadRequest
- func (o *UpdateMTOShipmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentForbidden
- type UpdateMTOShipmentHandler
- type UpdateMTOShipmentHandlerFunc
- type UpdateMTOShipmentInternalServerError
- func (o *UpdateMTOShipmentInternalServerError) SetPayload(payload *primemessages.Error)
- func (o *UpdateMTOShipmentInternalServerError) WithPayload(payload *primemessages.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 *primemessages.ClientError)
- func (o *UpdateMTOShipmentPreconditionFailed) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentPreconditionFailed
- func (o *UpdateMTOShipmentPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentStatus
- type UpdateMTOShipmentStatusBadRequest
- func (o *UpdateMTOShipmentStatusBadRequest) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateMTOShipmentStatusBadRequest) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentStatusBadRequest
- func (o *UpdateMTOShipmentStatusBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentStatusConflict
- func (o *UpdateMTOShipmentStatusConflict) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateMTOShipmentStatusConflict) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentStatusConflict
- func (o *UpdateMTOShipmentStatusConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentStatusForbidden
- func (o *UpdateMTOShipmentStatusForbidden) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateMTOShipmentStatusForbidden) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentStatusForbidden
- func (o *UpdateMTOShipmentStatusForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentStatusHandler
- type UpdateMTOShipmentStatusHandlerFunc
- type UpdateMTOShipmentStatusInternalServerError
- func (o *UpdateMTOShipmentStatusInternalServerError) SetPayload(payload *primemessages.Error)
- func (o *UpdateMTOShipmentStatusInternalServerError) WithPayload(payload *primemessages.Error) *UpdateMTOShipmentStatusInternalServerError
- func (o *UpdateMTOShipmentStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentStatusNotFound
- func (o *UpdateMTOShipmentStatusNotFound) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateMTOShipmentStatusNotFound) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentStatusNotFound
- func (o *UpdateMTOShipmentStatusNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentStatusOK
- type UpdateMTOShipmentStatusParams
- type UpdateMTOShipmentStatusPreconditionFailed
- func (o *UpdateMTOShipmentStatusPreconditionFailed) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateMTOShipmentStatusPreconditionFailed) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentStatusPreconditionFailed
- func (o *UpdateMTOShipmentStatusPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentStatusURL
- func (o *UpdateMTOShipmentStatusURL) Build() (*url.URL, error)
- func (o *UpdateMTOShipmentStatusURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateMTOShipmentStatusURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateMTOShipmentStatusURL) SetBasePath(bp string)
- func (o *UpdateMTOShipmentStatusURL) String() string
- func (o *UpdateMTOShipmentStatusURL) StringFull(scheme, host string) string
- func (o *UpdateMTOShipmentStatusURL) WithBasePath(bp string) *UpdateMTOShipmentStatusURL
- type UpdateMTOShipmentStatusUnauthorized
- func (o *UpdateMTOShipmentStatusUnauthorized) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateMTOShipmentStatusUnauthorized) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentStatusUnauthorized
- func (o *UpdateMTOShipmentStatusUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentStatusUnprocessableEntity
- func (o *UpdateMTOShipmentStatusUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
- func (o *UpdateMTOShipmentStatusUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *UpdateMTOShipmentStatusUnprocessableEntity
- func (o *UpdateMTOShipmentStatusUnprocessableEntity) 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 *primemessages.ClientError)
- func (o *UpdateMTOShipmentUnauthorized) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentUnauthorized
- func (o *UpdateMTOShipmentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateMTOShipmentUnprocessableEntity
- func (o *UpdateMTOShipmentUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
- func (o *UpdateMTOShipmentUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *UpdateMTOShipmentUnprocessableEntity
- func (o *UpdateMTOShipmentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateReweigh
- type UpdateReweighBadRequest
- type UpdateReweighConflict
- type UpdateReweighForbidden
- type UpdateReweighHandler
- type UpdateReweighHandlerFunc
- type UpdateReweighInternalServerError
- func (o *UpdateReweighInternalServerError) SetPayload(payload *primemessages.Error)
- func (o *UpdateReweighInternalServerError) WithPayload(payload *primemessages.Error) *UpdateReweighInternalServerError
- func (o *UpdateReweighInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateReweighNotFound
- type UpdateReweighOK
- type UpdateReweighParams
- type UpdateReweighPreconditionFailed
- func (o *UpdateReweighPreconditionFailed) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateReweighPreconditionFailed) WithPayload(payload *primemessages.ClientError) *UpdateReweighPreconditionFailed
- func (o *UpdateReweighPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateReweighURL
- func (o *UpdateReweighURL) Build() (*url.URL, error)
- func (o *UpdateReweighURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateReweighURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateReweighURL) SetBasePath(bp string)
- func (o *UpdateReweighURL) String() string
- func (o *UpdateReweighURL) StringFull(scheme, host string) string
- func (o *UpdateReweighURL) WithBasePath(bp string) *UpdateReweighURL
- type UpdateReweighUnauthorized
- type UpdateReweighUnprocessableEntity
- func (o *UpdateReweighUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
- func (o *UpdateReweighUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *UpdateReweighUnprocessableEntity
- func (o *UpdateReweighUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateShipmentDestinationAddress
- type UpdateShipmentDestinationAddressBadRequest
- func (o *UpdateShipmentDestinationAddressBadRequest) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateShipmentDestinationAddressBadRequest) WithPayload(payload *primemessages.ClientError) *UpdateShipmentDestinationAddressBadRequest
- func (o *UpdateShipmentDestinationAddressBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateShipmentDestinationAddressConflict
- func (o *UpdateShipmentDestinationAddressConflict) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateShipmentDestinationAddressConflict) WithPayload(payload *primemessages.ClientError) *UpdateShipmentDestinationAddressConflict
- func (o *UpdateShipmentDestinationAddressConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateShipmentDestinationAddressCreated
- func (o *UpdateShipmentDestinationAddressCreated) SetPayload(payload *primemessages.ShipmentAddressUpdate)
- func (o *UpdateShipmentDestinationAddressCreated) WithPayload(payload *primemessages.ShipmentAddressUpdate) *UpdateShipmentDestinationAddressCreated
- func (o *UpdateShipmentDestinationAddressCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateShipmentDestinationAddressForbidden
- func (o *UpdateShipmentDestinationAddressForbidden) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateShipmentDestinationAddressForbidden) WithPayload(payload *primemessages.ClientError) *UpdateShipmentDestinationAddressForbidden
- func (o *UpdateShipmentDestinationAddressForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateShipmentDestinationAddressHandler
- type UpdateShipmentDestinationAddressHandlerFunc
- type UpdateShipmentDestinationAddressInternalServerError
- func (o *UpdateShipmentDestinationAddressInternalServerError) SetPayload(payload *primemessages.Error)
- func (o *UpdateShipmentDestinationAddressInternalServerError) WithPayload(payload *primemessages.Error) *UpdateShipmentDestinationAddressInternalServerError
- func (o *UpdateShipmentDestinationAddressInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateShipmentDestinationAddressNotFound
- func (o *UpdateShipmentDestinationAddressNotFound) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateShipmentDestinationAddressNotFound) WithPayload(payload *primemessages.ClientError) *UpdateShipmentDestinationAddressNotFound
- func (o *UpdateShipmentDestinationAddressNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateShipmentDestinationAddressParams
- type UpdateShipmentDestinationAddressPreconditionFailed
- func (o *UpdateShipmentDestinationAddressPreconditionFailed) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateShipmentDestinationAddressPreconditionFailed) WithPayload(payload *primemessages.ClientError) *UpdateShipmentDestinationAddressPreconditionFailed
- func (o *UpdateShipmentDestinationAddressPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateShipmentDestinationAddressURL
- func (o *UpdateShipmentDestinationAddressURL) Build() (*url.URL, error)
- func (o *UpdateShipmentDestinationAddressURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdateShipmentDestinationAddressURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdateShipmentDestinationAddressURL) SetBasePath(bp string)
- func (o *UpdateShipmentDestinationAddressURL) String() string
- func (o *UpdateShipmentDestinationAddressURL) StringFull(scheme, host string) string
- func (o *UpdateShipmentDestinationAddressURL) WithBasePath(bp string) *UpdateShipmentDestinationAddressURL
- type UpdateShipmentDestinationAddressUnauthorized
- func (o *UpdateShipmentDestinationAddressUnauthorized) SetPayload(payload *primemessages.ClientError)
- func (o *UpdateShipmentDestinationAddressUnauthorized) WithPayload(payload *primemessages.ClientError) *UpdateShipmentDestinationAddressUnauthorized
- func (o *UpdateShipmentDestinationAddressUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdateShipmentDestinationAddressUnprocessableEntity
- func (o *UpdateShipmentDestinationAddressUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
- func (o *UpdateShipmentDestinationAddressUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *UpdateShipmentDestinationAddressUnprocessableEntity
- func (o *UpdateShipmentDestinationAddressUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const CreateMTOAgentBadRequestCode int = 400
CreateMTOAgentBadRequestCode is the HTTP code returned for type CreateMTOAgentBadRequest
const CreateMTOAgentConflictCode int = 409
CreateMTOAgentConflictCode is the HTTP code returned for type CreateMTOAgentConflict
const CreateMTOAgentForbiddenCode int = 403
CreateMTOAgentForbiddenCode is the HTTP code returned for type CreateMTOAgentForbidden
const CreateMTOAgentInternalServerErrorCode int = 500
CreateMTOAgentInternalServerErrorCode is the HTTP code returned for type CreateMTOAgentInternalServerError
const CreateMTOAgentNotFoundCode int = 404
CreateMTOAgentNotFoundCode is the HTTP code returned for type CreateMTOAgentNotFound
const CreateMTOAgentOKCode int = 200
CreateMTOAgentOKCode is the HTTP code returned for type CreateMTOAgentOK
CreateMTOAgentUnauthorizedCode is the HTTP code returned for type CreateMTOAgentUnauthorized
const CreateMTOAgentUnprocessableEntityCode int = 422
CreateMTOAgentUnprocessableEntityCode is the HTTP code returned for type CreateMTOAgentUnprocessableEntity
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 CreateSITExtensionBadRequestCode int = 400
CreateSITExtensionBadRequestCode is the HTTP code returned for type CreateSITExtensionBadRequest
const CreateSITExtensionConflictCode int = 409
CreateSITExtensionConflictCode is the HTTP code returned for type CreateSITExtensionConflict
const CreateSITExtensionCreatedCode int = 201
CreateSITExtensionCreatedCode is the HTTP code returned for type CreateSITExtensionCreated
const CreateSITExtensionForbiddenCode int = 403
CreateSITExtensionForbiddenCode is the HTTP code returned for type CreateSITExtensionForbidden
const CreateSITExtensionInternalServerErrorCode int = 500
CreateSITExtensionInternalServerErrorCode is the HTTP code returned for type CreateSITExtensionInternalServerError
const CreateSITExtensionNotFoundCode int = 404
CreateSITExtensionNotFoundCode is the HTTP code returned for type CreateSITExtensionNotFound
CreateSITExtensionUnauthorizedCode is the HTTP code returned for type CreateSITExtensionUnauthorized
const CreateSITExtensionUnprocessableEntityCode int = 422
CreateSITExtensionUnprocessableEntityCode is the HTTP code returned for type CreateSITExtensionUnprocessableEntity
const DeleteMTOShipmentBadRequestCode int = 400
DeleteMTOShipmentBadRequestCode is the HTTP code returned for type DeleteMTOShipmentBadRequest
const DeleteMTOShipmentConflictCode int = 409
DeleteMTOShipmentConflictCode is the HTTP code returned for type DeleteMTOShipmentConflict
const DeleteMTOShipmentForbiddenCode int = 403
DeleteMTOShipmentForbiddenCode is the HTTP code returned for type DeleteMTOShipmentForbidden
const DeleteMTOShipmentInternalServerErrorCode int = 500
DeleteMTOShipmentInternalServerErrorCode is the HTTP code returned for type DeleteMTOShipmentInternalServerError
const DeleteMTOShipmentNoContentCode int = 204
DeleteMTOShipmentNoContentCode is the HTTP code returned for type DeleteMTOShipmentNoContent
const DeleteMTOShipmentNotFoundCode int = 404
DeleteMTOShipmentNotFoundCode is the HTTP code returned for type DeleteMTOShipmentNotFound
const DeleteMTOShipmentUnprocessableEntityCode int = 422
DeleteMTOShipmentUnprocessableEntityCode is the HTTP code returned for type DeleteMTOShipmentUnprocessableEntity
const UpdateMTOAgentBadRequestCode int = 400
UpdateMTOAgentBadRequestCode is the HTTP code returned for type UpdateMTOAgentBadRequest
const UpdateMTOAgentForbiddenCode int = 403
UpdateMTOAgentForbiddenCode is the HTTP code returned for type UpdateMTOAgentForbidden
const UpdateMTOAgentInternalServerErrorCode int = 500
UpdateMTOAgentInternalServerErrorCode is the HTTP code returned for type UpdateMTOAgentInternalServerError
const UpdateMTOAgentNotFoundCode int = 404
UpdateMTOAgentNotFoundCode is the HTTP code returned for type UpdateMTOAgentNotFound
const UpdateMTOAgentOKCode int = 200
UpdateMTOAgentOKCode is the HTTP code returned for type UpdateMTOAgentOK
const UpdateMTOAgentPreconditionFailedCode int = 412
UpdateMTOAgentPreconditionFailedCode is the HTTP code returned for type UpdateMTOAgentPreconditionFailed
UpdateMTOAgentUnauthorizedCode is the HTTP code returned for type UpdateMTOAgentUnauthorized
const UpdateMTOAgentUnprocessableEntityCode int = 422
UpdateMTOAgentUnprocessableEntityCode is the HTTP code returned for type UpdateMTOAgentUnprocessableEntity
const UpdateMTOShipmentAddressBadRequestCode int = 400
UpdateMTOShipmentAddressBadRequestCode is the HTTP code returned for type UpdateMTOShipmentAddressBadRequest
const UpdateMTOShipmentAddressConflictCode int = 409
UpdateMTOShipmentAddressConflictCode is the HTTP code returned for type UpdateMTOShipmentAddressConflict
const UpdateMTOShipmentAddressForbiddenCode int = 403
UpdateMTOShipmentAddressForbiddenCode is the HTTP code returned for type UpdateMTOShipmentAddressForbidden
const UpdateMTOShipmentAddressInternalServerErrorCode int = 500
UpdateMTOShipmentAddressInternalServerErrorCode is the HTTP code returned for type UpdateMTOShipmentAddressInternalServerError
const UpdateMTOShipmentAddressNotFoundCode int = 404
UpdateMTOShipmentAddressNotFoundCode is the HTTP code returned for type UpdateMTOShipmentAddressNotFound
const UpdateMTOShipmentAddressOKCode int = 200
UpdateMTOShipmentAddressOKCode is the HTTP code returned for type UpdateMTOShipmentAddressOK
const UpdateMTOShipmentAddressPreconditionFailedCode int = 412
UpdateMTOShipmentAddressPreconditionFailedCode is the HTTP code returned for type UpdateMTOShipmentAddressPreconditionFailed
UpdateMTOShipmentAddressUnauthorizedCode is the HTTP code returned for type UpdateMTOShipmentAddressUnauthorized
const UpdateMTOShipmentAddressUnprocessableEntityCode int = 422
UpdateMTOShipmentAddressUnprocessableEntityCode is the HTTP code returned for type UpdateMTOShipmentAddressUnprocessableEntity
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
const UpdateMTOShipmentStatusBadRequestCode int = 400
UpdateMTOShipmentStatusBadRequestCode is the HTTP code returned for type UpdateMTOShipmentStatusBadRequest
const UpdateMTOShipmentStatusConflictCode int = 409
UpdateMTOShipmentStatusConflictCode is the HTTP code returned for type UpdateMTOShipmentStatusConflict
const UpdateMTOShipmentStatusForbiddenCode int = 403
UpdateMTOShipmentStatusForbiddenCode is the HTTP code returned for type UpdateMTOShipmentStatusForbidden
const UpdateMTOShipmentStatusInternalServerErrorCode int = 500
UpdateMTOShipmentStatusInternalServerErrorCode is the HTTP code returned for type UpdateMTOShipmentStatusInternalServerError
const UpdateMTOShipmentStatusNotFoundCode int = 404
UpdateMTOShipmentStatusNotFoundCode is the HTTP code returned for type UpdateMTOShipmentStatusNotFound
const UpdateMTOShipmentStatusOKCode int = 200
UpdateMTOShipmentStatusOKCode is the HTTP code returned for type UpdateMTOShipmentStatusOK
const UpdateMTOShipmentStatusPreconditionFailedCode int = 412
UpdateMTOShipmentStatusPreconditionFailedCode is the HTTP code returned for type UpdateMTOShipmentStatusPreconditionFailed
UpdateMTOShipmentStatusUnauthorizedCode is the HTTP code returned for type UpdateMTOShipmentStatusUnauthorized
const UpdateMTOShipmentStatusUnprocessableEntityCode int = 422
UpdateMTOShipmentStatusUnprocessableEntityCode is the HTTP code returned for type UpdateMTOShipmentStatusUnprocessableEntity
UpdateMTOShipmentUnauthorizedCode is the HTTP code returned for type UpdateMTOShipmentUnauthorized
const UpdateMTOShipmentUnprocessableEntityCode int = 422
UpdateMTOShipmentUnprocessableEntityCode is the HTTP code returned for type UpdateMTOShipmentUnprocessableEntity
const UpdateReweighBadRequestCode int = 400
UpdateReweighBadRequestCode is the HTTP code returned for type UpdateReweighBadRequest
const UpdateReweighConflictCode int = 409
UpdateReweighConflictCode is the HTTP code returned for type UpdateReweighConflict
const UpdateReweighForbiddenCode int = 403
UpdateReweighForbiddenCode is the HTTP code returned for type UpdateReweighForbidden
const UpdateReweighInternalServerErrorCode int = 500
UpdateReweighInternalServerErrorCode is the HTTP code returned for type UpdateReweighInternalServerError
const UpdateReweighNotFoundCode int = 404
UpdateReweighNotFoundCode is the HTTP code returned for type UpdateReweighNotFound
const UpdateReweighOKCode int = 200
UpdateReweighOKCode is the HTTP code returned for type UpdateReweighOK
const UpdateReweighPreconditionFailedCode int = 412
UpdateReweighPreconditionFailedCode is the HTTP code returned for type UpdateReweighPreconditionFailed
UpdateReweighUnauthorizedCode is the HTTP code returned for type UpdateReweighUnauthorized
const UpdateReweighUnprocessableEntityCode int = 422
UpdateReweighUnprocessableEntityCode is the HTTP code returned for type UpdateReweighUnprocessableEntity
const UpdateShipmentDestinationAddressBadRequestCode int = 400
UpdateShipmentDestinationAddressBadRequestCode is the HTTP code returned for type UpdateShipmentDestinationAddressBadRequest
const UpdateShipmentDestinationAddressConflictCode int = 409
UpdateShipmentDestinationAddressConflictCode is the HTTP code returned for type UpdateShipmentDestinationAddressConflict
const UpdateShipmentDestinationAddressCreatedCode int = 201
UpdateShipmentDestinationAddressCreatedCode is the HTTP code returned for type UpdateShipmentDestinationAddressCreated
const UpdateShipmentDestinationAddressForbiddenCode int = 403
UpdateShipmentDestinationAddressForbiddenCode is the HTTP code returned for type UpdateShipmentDestinationAddressForbidden
const UpdateShipmentDestinationAddressInternalServerErrorCode int = 500
UpdateShipmentDestinationAddressInternalServerErrorCode is the HTTP code returned for type UpdateShipmentDestinationAddressInternalServerError
const UpdateShipmentDestinationAddressNotFoundCode int = 404
UpdateShipmentDestinationAddressNotFoundCode is the HTTP code returned for type UpdateShipmentDestinationAddressNotFound
const UpdateShipmentDestinationAddressPreconditionFailedCode int = 412
UpdateShipmentDestinationAddressPreconditionFailedCode is the HTTP code returned for type UpdateShipmentDestinationAddressPreconditionFailed
UpdateShipmentDestinationAddressUnauthorizedCode is the HTTP code returned for type UpdateShipmentDestinationAddressUnauthorized
const UpdateShipmentDestinationAddressUnprocessableEntityCode int = 422
UpdateShipmentDestinationAddressUnprocessableEntityCode is the HTTP code returned for type UpdateShipmentDestinationAddressUnprocessableEntity
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateMTOAgent ¶
type CreateMTOAgent struct { Context *middleware.Context Handler CreateMTOAgentHandler }
CreateMTOAgent swagger:route POST /mto-shipments/{mtoShipmentID}/agents mtoShipment createMTOAgent
createMTOAgent
### Functionality This endpoint is used to **create** and add agents for an existing MTO Shipment. Only the fields being modified need to be sent in the request body.
### Errors The agent must always have a name and at least one method of contact (either `email` or `phone`).
The agent must be associated with the MTO shipment passed in the url.
The shipment should be associated with an MTO that is available to the Pime. If the caller requests a new agent, and the shipment is not on an available MTO, the caller will receive a **NotFound** response.
func NewCreateMTOAgent ¶
func NewCreateMTOAgent(ctx *middleware.Context, handler CreateMTOAgentHandler) *CreateMTOAgent
NewCreateMTOAgent creates a new http.Handler for the create m t o agent operation
func (*CreateMTOAgent) ServeHTTP ¶
func (o *CreateMTOAgent) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateMTOAgentBadRequest ¶
type CreateMTOAgentBadRequest struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
CreateMTOAgentBadRequest The request payload is invalid.
swagger:response createMTOAgentBadRequest
func NewCreateMTOAgentBadRequest ¶
func NewCreateMTOAgentBadRequest() *CreateMTOAgentBadRequest
NewCreateMTOAgentBadRequest creates CreateMTOAgentBadRequest with default headers values
func (*CreateMTOAgentBadRequest) SetPayload ¶
func (o *CreateMTOAgentBadRequest) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the create m t o agent bad request response
func (*CreateMTOAgentBadRequest) WithPayload ¶
func (o *CreateMTOAgentBadRequest) WithPayload(payload *primemessages.ClientError) *CreateMTOAgentBadRequest
WithPayload adds the payload to the create m t o agent bad request response
func (*CreateMTOAgentBadRequest) WriteResponse ¶
func (o *CreateMTOAgentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateMTOAgentConflict ¶
type CreateMTOAgentConflict struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
CreateMTOAgentConflict The request could not be processed because of conflict in the current state of the resource.
swagger:response createMTOAgentConflict
func NewCreateMTOAgentConflict ¶
func NewCreateMTOAgentConflict() *CreateMTOAgentConflict
NewCreateMTOAgentConflict creates CreateMTOAgentConflict with default headers values
func (*CreateMTOAgentConflict) SetPayload ¶
func (o *CreateMTOAgentConflict) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the create m t o agent conflict response
func (*CreateMTOAgentConflict) WithPayload ¶
func (o *CreateMTOAgentConflict) WithPayload(payload *primemessages.ClientError) *CreateMTOAgentConflict
WithPayload adds the payload to the create m t o agent conflict response
func (*CreateMTOAgentConflict) WriteResponse ¶
func (o *CreateMTOAgentConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateMTOAgentForbidden ¶
type CreateMTOAgentForbidden struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
CreateMTOAgentForbidden The request was denied.
swagger:response createMTOAgentForbidden
func NewCreateMTOAgentForbidden ¶
func NewCreateMTOAgentForbidden() *CreateMTOAgentForbidden
NewCreateMTOAgentForbidden creates CreateMTOAgentForbidden with default headers values
func (*CreateMTOAgentForbidden) SetPayload ¶
func (o *CreateMTOAgentForbidden) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the create m t o agent forbidden response
func (*CreateMTOAgentForbidden) WithPayload ¶
func (o *CreateMTOAgentForbidden) WithPayload(payload *primemessages.ClientError) *CreateMTOAgentForbidden
WithPayload adds the payload to the create m t o agent forbidden response
func (*CreateMTOAgentForbidden) WriteResponse ¶
func (o *CreateMTOAgentForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateMTOAgentHandler ¶
type CreateMTOAgentHandler interface {
Handle(CreateMTOAgentParams) middleware.Responder
}
CreateMTOAgentHandler interface for that can handle valid create m t o agent params
type CreateMTOAgentHandlerFunc ¶
type CreateMTOAgentHandlerFunc func(CreateMTOAgentParams) middleware.Responder
CreateMTOAgentHandlerFunc turns a function with the right signature into a create m t o agent handler
func (CreateMTOAgentHandlerFunc) Handle ¶
func (fn CreateMTOAgentHandlerFunc) Handle(params CreateMTOAgentParams) middleware.Responder
Handle executing the request and returning a response
type CreateMTOAgentInternalServerError ¶
type CreateMTOAgentInternalServerError struct { /* In: Body */ Payload *primemessages.Error `json:"body,omitempty"` }
CreateMTOAgentInternalServerError A server error occurred.
swagger:response createMTOAgentInternalServerError
func NewCreateMTOAgentInternalServerError ¶
func NewCreateMTOAgentInternalServerError() *CreateMTOAgentInternalServerError
NewCreateMTOAgentInternalServerError creates CreateMTOAgentInternalServerError with default headers values
func (*CreateMTOAgentInternalServerError) SetPayload ¶
func (o *CreateMTOAgentInternalServerError) SetPayload(payload *primemessages.Error)
SetPayload sets the payload to the create m t o agent internal server error response
func (*CreateMTOAgentInternalServerError) WithPayload ¶
func (o *CreateMTOAgentInternalServerError) WithPayload(payload *primemessages.Error) *CreateMTOAgentInternalServerError
WithPayload adds the payload to the create m t o agent internal server error response
func (*CreateMTOAgentInternalServerError) WriteResponse ¶
func (o *CreateMTOAgentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateMTOAgentNotFound ¶
type CreateMTOAgentNotFound struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
CreateMTOAgentNotFound The requested resource wasn't found.
swagger:response createMTOAgentNotFound
func NewCreateMTOAgentNotFound ¶
func NewCreateMTOAgentNotFound() *CreateMTOAgentNotFound
NewCreateMTOAgentNotFound creates CreateMTOAgentNotFound with default headers values
func (*CreateMTOAgentNotFound) SetPayload ¶
func (o *CreateMTOAgentNotFound) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the create m t o agent not found response
func (*CreateMTOAgentNotFound) WithPayload ¶
func (o *CreateMTOAgentNotFound) WithPayload(payload *primemessages.ClientError) *CreateMTOAgentNotFound
WithPayload adds the payload to the create m t o agent not found response
func (*CreateMTOAgentNotFound) WriteResponse ¶
func (o *CreateMTOAgentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateMTOAgentOK ¶
type CreateMTOAgentOK struct { /* In: Body */ Payload *primemessages.MTOAgent `json:"body,omitempty"` }
CreateMTOAgentOK Successfully added the agent.
swagger:response createMTOAgentOK
func NewCreateMTOAgentOK ¶
func NewCreateMTOAgentOK() *CreateMTOAgentOK
NewCreateMTOAgentOK creates CreateMTOAgentOK with default headers values
func (*CreateMTOAgentOK) SetPayload ¶
func (o *CreateMTOAgentOK) SetPayload(payload *primemessages.MTOAgent)
SetPayload sets the payload to the create m t o agent o k response
func (*CreateMTOAgentOK) WithPayload ¶
func (o *CreateMTOAgentOK) WithPayload(payload *primemessages.MTOAgent) *CreateMTOAgentOK
WithPayload adds the payload to the create m t o agent o k response
func (*CreateMTOAgentOK) WriteResponse ¶
func (o *CreateMTOAgentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateMTOAgentParams ¶
type CreateMTOAgentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *primemessages.MTOAgent /*UUID of the shipment associated with the agent Required: true In: path */ MtoShipmentID strfmt.UUID }
CreateMTOAgentParams contains all the bound params for the create m t o agent operation typically these are obtained from a http.Request
swagger:parameters createMTOAgent
func NewCreateMTOAgentParams ¶
func NewCreateMTOAgentParams() CreateMTOAgentParams
NewCreateMTOAgentParams creates a new CreateMTOAgentParams object
There are no default values defined in the spec.
func (*CreateMTOAgentParams) BindRequest ¶
func (o *CreateMTOAgentParams) 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 NewCreateMTOAgentParams() beforehand.
type CreateMTOAgentURL ¶
type CreateMTOAgentURL struct { MtoShipmentID strfmt.UUID // contains filtered or unexported fields }
CreateMTOAgentURL generates an URL for the create m t o agent operation
func (*CreateMTOAgentURL) Build ¶
func (o *CreateMTOAgentURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateMTOAgentURL) BuildFull ¶
func (o *CreateMTOAgentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateMTOAgentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateMTOAgentURL) SetBasePath ¶
func (o *CreateMTOAgentURL) 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 (*CreateMTOAgentURL) String ¶
func (o *CreateMTOAgentURL) String() string
String returns the string representation of the path with query string
func (*CreateMTOAgentURL) StringFull ¶
func (o *CreateMTOAgentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateMTOAgentURL) WithBasePath ¶
func (o *CreateMTOAgentURL) WithBasePath(bp string) *CreateMTOAgentURL
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 CreateMTOAgentUnauthorized ¶
type CreateMTOAgentUnauthorized struct { primemessages.ClientError `json:"body,omitempty"` }Payload *
CreateMTOAgentUnauthorized The request was denied.
swagger:response createMTOAgentUnauthorized
func NewCreateMTOAgentUnauthorized ¶
func NewCreateMTOAgentUnauthorized() *CreateMTOAgentUnauthorized
NewCreateMTOAgentUnauthorized creates CreateMTOAgentUnauthorized with default headers values
func (*CreateMTOAgentUnauthorized) SetPayload ¶
func (o *CreateMTOAgentUnauthorized) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the create m t o agent unauthorized response
func (*CreateMTOAgentUnauthorized) WithPayload ¶
func (o *CreateMTOAgentUnauthorized) WithPayload(payload *primemessages.ClientError) *CreateMTOAgentUnauthorized
WithPayload adds the payload to the create m t o agent unauthorized response
func (*CreateMTOAgentUnauthorized) WriteResponse ¶
func (o *CreateMTOAgentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateMTOAgentUnprocessableEntity ¶
type CreateMTOAgentUnprocessableEntity struct { /* In: Body */ Payload *primemessages.ValidationError `json:"body,omitempty"` }
CreateMTOAgentUnprocessableEntity The request was unprocessable, likely due to bad input from the requester.
swagger:response createMTOAgentUnprocessableEntity
func NewCreateMTOAgentUnprocessableEntity ¶
func NewCreateMTOAgentUnprocessableEntity() *CreateMTOAgentUnprocessableEntity
NewCreateMTOAgentUnprocessableEntity creates CreateMTOAgentUnprocessableEntity with default headers values
func (*CreateMTOAgentUnprocessableEntity) SetPayload ¶
func (o *CreateMTOAgentUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
SetPayload sets the payload to the create m t o agent unprocessable entity response
func (*CreateMTOAgentUnprocessableEntity) WithPayload ¶
func (o *CreateMTOAgentUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *CreateMTOAgentUnprocessableEntity
WithPayload adds the payload to the create m t o agent unprocessable entity response
func (*CreateMTOAgentUnprocessableEntity) WriteResponse ¶
func (o *CreateMTOAgentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateMTOShipment ¶
type CreateMTOShipment struct { Context *middleware.Context Handler CreateMTOShipmentHandler }
CreateMTOShipment swagger:route POST /mto-shipments mtoShipment createMTOShipment
createMTOShipment
_[Deprecated: sunset on 2024-04-08]_ This endpoint is deprecated and will be removed in a future version. Please use the new endpoint at `/prime/v2/createMTOShipment` instead.
Creates a new shipment within the specified move. This endpoint should be used whenever the movers identify a need for an additional shipment. The new shipment will be submitted to the TOO for review, and the TOO must approve it before the contractor can proceed with billing.
**WIP**: The Prime should be notified by a push notification whenever the TOO approves a shipment connected to one of their moves. Otherwise, the Prime can fetch the related move using the [getMoveTaskOrder](#operation/getMoveTaskOrder) endpoint and see if this shipment has the status `"APPROVED"`.
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 *primemessages.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 *primemessages.ClientError)
SetPayload sets the payload to the create m t o shipment bad request response
func (*CreateMTOShipmentBadRequest) WithPayload ¶
func (o *CreateMTOShipmentBadRequest) WithPayload(payload *primemessages.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 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 *primemessages.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 *primemessages.Error)
SetPayload sets the payload to the create m t o shipment internal server error response
func (*CreateMTOShipmentInternalServerError) WithPayload ¶
func (o *CreateMTOShipmentInternalServerError) WithPayload(payload *primemessages.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 *primemessages.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 *primemessages.ClientError)
SetPayload sets the payload to the create m t o shipment not found response
func (*CreateMTOShipmentNotFound) WithPayload ¶
func (o *CreateMTOShipmentNotFound) WithPayload(payload *primemessages.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 *primemessages.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 *primemessages.MTOShipment)
SetPayload sets the payload to the create m t o shipment o k response
func (*CreateMTOShipmentOK) WithPayload ¶
func (o *CreateMTOShipmentOK) WithPayload(payload *primemessages.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 *primemessages.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 *primemessages.ValidationError `json:"body,omitempty"` }
CreateMTOShipmentUnprocessableEntity The request was unprocessable, likely due to bad input from the requester.
swagger:response createMTOShipmentUnprocessableEntity
func NewCreateMTOShipmentUnprocessableEntity ¶
func NewCreateMTOShipmentUnprocessableEntity() *CreateMTOShipmentUnprocessableEntity
NewCreateMTOShipmentUnprocessableEntity creates CreateMTOShipmentUnprocessableEntity with default headers values
func (*CreateMTOShipmentUnprocessableEntity) SetPayload ¶
func (o *CreateMTOShipmentUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
SetPayload sets the payload to the create m t o shipment unprocessable entity response
func (*CreateMTOShipmentUnprocessableEntity) WithPayload ¶
func (o *CreateMTOShipmentUnprocessableEntity) WithPayload(payload *primemessages.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 CreateSITExtension ¶
type CreateSITExtension struct { Context *middleware.Context Handler CreateSITExtensionHandler }
CreateSITExtension swagger:route POST /mto-shipments/{mtoShipmentID}/sit-extensions mtoShipment createSITExtension
createSITExtension
### Functionality This endpoint creates a storage in transit (SIT) extension request for a shipment. A SIT extension request is a request an increase in the shipment day allowance for the number of days a shipment is allowed to be in SIT. The total SIT day allowance includes time spent in both origin and destination SIT.
func NewCreateSITExtension ¶
func NewCreateSITExtension(ctx *middleware.Context, handler CreateSITExtensionHandler) *CreateSITExtension
NewCreateSITExtension creates a new http.Handler for the create s i t extension operation
func (*CreateSITExtension) ServeHTTP ¶
func (o *CreateSITExtension) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateSITExtensionBadRequest ¶
type CreateSITExtensionBadRequest struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
CreateSITExtensionBadRequest The request payload is invalid.
swagger:response createSITExtensionBadRequest
func NewCreateSITExtensionBadRequest ¶
func NewCreateSITExtensionBadRequest() *CreateSITExtensionBadRequest
NewCreateSITExtensionBadRequest creates CreateSITExtensionBadRequest with default headers values
func (*CreateSITExtensionBadRequest) SetPayload ¶
func (o *CreateSITExtensionBadRequest) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the create s i t extension bad request response
func (*CreateSITExtensionBadRequest) WithPayload ¶
func (o *CreateSITExtensionBadRequest) WithPayload(payload *primemessages.ClientError) *CreateSITExtensionBadRequest
WithPayload adds the payload to the create s i t extension bad request response
func (*CreateSITExtensionBadRequest) WriteResponse ¶
func (o *CreateSITExtensionBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSITExtensionConflict ¶
type CreateSITExtensionConflict struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
CreateSITExtensionConflict The request could not be processed because of conflict in the current state of the resource.
swagger:response createSITExtensionConflict
func NewCreateSITExtensionConflict ¶
func NewCreateSITExtensionConflict() *CreateSITExtensionConflict
NewCreateSITExtensionConflict creates CreateSITExtensionConflict with default headers values
func (*CreateSITExtensionConflict) SetPayload ¶
func (o *CreateSITExtensionConflict) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the create s i t extension conflict response
func (*CreateSITExtensionConflict) WithPayload ¶
func (o *CreateSITExtensionConflict) WithPayload(payload *primemessages.ClientError) *CreateSITExtensionConflict
WithPayload adds the payload to the create s i t extension conflict response
func (*CreateSITExtensionConflict) WriteResponse ¶
func (o *CreateSITExtensionConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSITExtensionCreated ¶
type CreateSITExtensionCreated struct { /* In: Body */ Payload *primemessages.SITExtension `json:"body,omitempty"` }
CreateSITExtensionCreated Successfully created the sit extension request.
swagger:response createSITExtensionCreated
func NewCreateSITExtensionCreated ¶
func NewCreateSITExtensionCreated() *CreateSITExtensionCreated
NewCreateSITExtensionCreated creates CreateSITExtensionCreated with default headers values
func (*CreateSITExtensionCreated) SetPayload ¶
func (o *CreateSITExtensionCreated) SetPayload(payload *primemessages.SITExtension)
SetPayload sets the payload to the create s i t extension created response
func (*CreateSITExtensionCreated) WithPayload ¶
func (o *CreateSITExtensionCreated) WithPayload(payload *primemessages.SITExtension) *CreateSITExtensionCreated
WithPayload adds the payload to the create s i t extension created response
func (*CreateSITExtensionCreated) WriteResponse ¶
func (o *CreateSITExtensionCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSITExtensionForbidden ¶
type CreateSITExtensionForbidden struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
CreateSITExtensionForbidden The request was denied.
swagger:response createSITExtensionForbidden
func NewCreateSITExtensionForbidden ¶
func NewCreateSITExtensionForbidden() *CreateSITExtensionForbidden
NewCreateSITExtensionForbidden creates CreateSITExtensionForbidden with default headers values
func (*CreateSITExtensionForbidden) SetPayload ¶
func (o *CreateSITExtensionForbidden) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the create s i t extension forbidden response
func (*CreateSITExtensionForbidden) WithPayload ¶
func (o *CreateSITExtensionForbidden) WithPayload(payload *primemessages.ClientError) *CreateSITExtensionForbidden
WithPayload adds the payload to the create s i t extension forbidden response
func (*CreateSITExtensionForbidden) WriteResponse ¶
func (o *CreateSITExtensionForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSITExtensionHandler ¶
type CreateSITExtensionHandler interface {
Handle(CreateSITExtensionParams) middleware.Responder
}
CreateSITExtensionHandler interface for that can handle valid create s i t extension params
type CreateSITExtensionHandlerFunc ¶
type CreateSITExtensionHandlerFunc func(CreateSITExtensionParams) middleware.Responder
CreateSITExtensionHandlerFunc turns a function with the right signature into a create s i t extension handler
func (CreateSITExtensionHandlerFunc) Handle ¶
func (fn CreateSITExtensionHandlerFunc) Handle(params CreateSITExtensionParams) middleware.Responder
Handle executing the request and returning a response
type CreateSITExtensionInternalServerError ¶
type CreateSITExtensionInternalServerError struct { /* In: Body */ Payload *primemessages.Error `json:"body,omitempty"` }
CreateSITExtensionInternalServerError A server error occurred.
swagger:response createSITExtensionInternalServerError
func NewCreateSITExtensionInternalServerError ¶
func NewCreateSITExtensionInternalServerError() *CreateSITExtensionInternalServerError
NewCreateSITExtensionInternalServerError creates CreateSITExtensionInternalServerError with default headers values
func (*CreateSITExtensionInternalServerError) SetPayload ¶
func (o *CreateSITExtensionInternalServerError) SetPayload(payload *primemessages.Error)
SetPayload sets the payload to the create s i t extension internal server error response
func (*CreateSITExtensionInternalServerError) WithPayload ¶
func (o *CreateSITExtensionInternalServerError) WithPayload(payload *primemessages.Error) *CreateSITExtensionInternalServerError
WithPayload adds the payload to the create s i t extension internal server error response
func (*CreateSITExtensionInternalServerError) WriteResponse ¶
func (o *CreateSITExtensionInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSITExtensionNotFound ¶
type CreateSITExtensionNotFound struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
CreateSITExtensionNotFound The requested resource wasn't found.
swagger:response createSITExtensionNotFound
func NewCreateSITExtensionNotFound ¶
func NewCreateSITExtensionNotFound() *CreateSITExtensionNotFound
NewCreateSITExtensionNotFound creates CreateSITExtensionNotFound with default headers values
func (*CreateSITExtensionNotFound) SetPayload ¶
func (o *CreateSITExtensionNotFound) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the create s i t extension not found response
func (*CreateSITExtensionNotFound) WithPayload ¶
func (o *CreateSITExtensionNotFound) WithPayload(payload *primemessages.ClientError) *CreateSITExtensionNotFound
WithPayload adds the payload to the create s i t extension not found response
func (*CreateSITExtensionNotFound) WriteResponse ¶
func (o *CreateSITExtensionNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSITExtensionParams ¶
type CreateSITExtensionParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *primemessages.CreateSITExtension /*UUID of the shipment associated with the agent Required: true In: path */ MtoShipmentID strfmt.UUID }
CreateSITExtensionParams contains all the bound params for the create s i t extension operation typically these are obtained from a http.Request
swagger:parameters createSITExtension
func NewCreateSITExtensionParams ¶
func NewCreateSITExtensionParams() CreateSITExtensionParams
NewCreateSITExtensionParams creates a new CreateSITExtensionParams object
There are no default values defined in the spec.
func (*CreateSITExtensionParams) BindRequest ¶
func (o *CreateSITExtensionParams) 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 NewCreateSITExtensionParams() beforehand.
type CreateSITExtensionURL ¶
type CreateSITExtensionURL struct { MtoShipmentID strfmt.UUID // contains filtered or unexported fields }
CreateSITExtensionURL generates an URL for the create s i t extension operation
func (*CreateSITExtensionURL) Build ¶
func (o *CreateSITExtensionURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateSITExtensionURL) BuildFull ¶
func (o *CreateSITExtensionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateSITExtensionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateSITExtensionURL) SetBasePath ¶
func (o *CreateSITExtensionURL) 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 (*CreateSITExtensionURL) String ¶
func (o *CreateSITExtensionURL) String() string
String returns the string representation of the path with query string
func (*CreateSITExtensionURL) StringFull ¶
func (o *CreateSITExtensionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateSITExtensionURL) WithBasePath ¶
func (o *CreateSITExtensionURL) WithBasePath(bp string) *CreateSITExtensionURL
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 CreateSITExtensionUnauthorized ¶
type CreateSITExtensionUnauthorized struct { primemessages.ClientError `json:"body,omitempty"` }Payload *
CreateSITExtensionUnauthorized The request was denied.
swagger:response createSITExtensionUnauthorized
func NewCreateSITExtensionUnauthorized ¶
func NewCreateSITExtensionUnauthorized() *CreateSITExtensionUnauthorized
NewCreateSITExtensionUnauthorized creates CreateSITExtensionUnauthorized with default headers values
func (*CreateSITExtensionUnauthorized) SetPayload ¶
func (o *CreateSITExtensionUnauthorized) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the create s i t extension unauthorized response
func (*CreateSITExtensionUnauthorized) WithPayload ¶
func (o *CreateSITExtensionUnauthorized) WithPayload(payload *primemessages.ClientError) *CreateSITExtensionUnauthorized
WithPayload adds the payload to the create s i t extension unauthorized response
func (*CreateSITExtensionUnauthorized) WriteResponse ¶
func (o *CreateSITExtensionUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSITExtensionUnprocessableEntity ¶
type CreateSITExtensionUnprocessableEntity struct { /* In: Body */ Payload *primemessages.ValidationError `json:"body,omitempty"` }
CreateSITExtensionUnprocessableEntity The request was unprocessable, likely due to bad input from the requester.
swagger:response createSITExtensionUnprocessableEntity
func NewCreateSITExtensionUnprocessableEntity ¶
func NewCreateSITExtensionUnprocessableEntity() *CreateSITExtensionUnprocessableEntity
NewCreateSITExtensionUnprocessableEntity creates CreateSITExtensionUnprocessableEntity with default headers values
func (*CreateSITExtensionUnprocessableEntity) SetPayload ¶
func (o *CreateSITExtensionUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
SetPayload sets the payload to the create s i t extension unprocessable entity response
func (*CreateSITExtensionUnprocessableEntity) WithPayload ¶
func (o *CreateSITExtensionUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *CreateSITExtensionUnprocessableEntity
WithPayload adds the payload to the create s i t extension unprocessable entity response
func (*CreateSITExtensionUnprocessableEntity) WriteResponse ¶
func (o *CreateSITExtensionUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteMTOShipment ¶
type DeleteMTOShipment struct { Context *middleware.Context Handler DeleteMTOShipmentHandler }
DeleteMTOShipment swagger:route DELETE /mto-shipments/{mtoShipmentID} mtoShipment deleteMTOShipment
deleteMTOShipment
### Functionality This endpoint deletes an individual shipment by ID.
### Errors * The mtoShipment should be associated with an MTO that is available to prime. * The mtoShipment must be a PPM shipment. * Counseling should not have already been completed for the associated MTO.
func NewDeleteMTOShipment ¶
func NewDeleteMTOShipment(ctx *middleware.Context, handler DeleteMTOShipmentHandler) *DeleteMTOShipment
NewDeleteMTOShipment creates a new http.Handler for the delete m t o shipment operation
func (*DeleteMTOShipment) ServeHTTP ¶
func (o *DeleteMTOShipment) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteMTOShipmentBadRequest ¶
type DeleteMTOShipmentBadRequest struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
DeleteMTOShipmentBadRequest The request payload is invalid.
swagger:response deleteMTOShipmentBadRequest
func NewDeleteMTOShipmentBadRequest ¶
func NewDeleteMTOShipmentBadRequest() *DeleteMTOShipmentBadRequest
NewDeleteMTOShipmentBadRequest creates DeleteMTOShipmentBadRequest with default headers values
func (*DeleteMTOShipmentBadRequest) SetPayload ¶
func (o *DeleteMTOShipmentBadRequest) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the delete m t o shipment bad request response
func (*DeleteMTOShipmentBadRequest) WithPayload ¶
func (o *DeleteMTOShipmentBadRequest) WithPayload(payload *primemessages.ClientError) *DeleteMTOShipmentBadRequest
WithPayload adds the payload to the delete m t o shipment bad request response
func (*DeleteMTOShipmentBadRequest) WriteResponse ¶
func (o *DeleteMTOShipmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteMTOShipmentConflict ¶
type DeleteMTOShipmentConflict struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
DeleteMTOShipmentConflict The request could not be processed because of conflict in the current state of the resource.
swagger:response deleteMTOShipmentConflict
func NewDeleteMTOShipmentConflict ¶
func NewDeleteMTOShipmentConflict() *DeleteMTOShipmentConflict
NewDeleteMTOShipmentConflict creates DeleteMTOShipmentConflict with default headers values
func (*DeleteMTOShipmentConflict) SetPayload ¶
func (o *DeleteMTOShipmentConflict) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the delete m t o shipment conflict response
func (*DeleteMTOShipmentConflict) WithPayload ¶
func (o *DeleteMTOShipmentConflict) WithPayload(payload *primemessages.ClientError) *DeleteMTOShipmentConflict
WithPayload adds the payload to the delete m t o shipment conflict response
func (*DeleteMTOShipmentConflict) WriteResponse ¶
func (o *DeleteMTOShipmentConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteMTOShipmentForbidden ¶
type DeleteMTOShipmentForbidden struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
DeleteMTOShipmentForbidden The request was denied.
swagger:response deleteMTOShipmentForbidden
func NewDeleteMTOShipmentForbidden ¶
func NewDeleteMTOShipmentForbidden() *DeleteMTOShipmentForbidden
NewDeleteMTOShipmentForbidden creates DeleteMTOShipmentForbidden with default headers values
func (*DeleteMTOShipmentForbidden) SetPayload ¶
func (o *DeleteMTOShipmentForbidden) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the delete m t o shipment forbidden response
func (*DeleteMTOShipmentForbidden) WithPayload ¶
func (o *DeleteMTOShipmentForbidden) WithPayload(payload *primemessages.ClientError) *DeleteMTOShipmentForbidden
WithPayload adds the payload to the delete m t o shipment forbidden response
func (*DeleteMTOShipmentForbidden) WriteResponse ¶
func (o *DeleteMTOShipmentForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteMTOShipmentHandler ¶
type DeleteMTOShipmentHandler interface {
Handle(DeleteMTOShipmentParams) middleware.Responder
}
DeleteMTOShipmentHandler interface for that can handle valid delete m t o shipment params
type DeleteMTOShipmentHandlerFunc ¶
type DeleteMTOShipmentHandlerFunc func(DeleteMTOShipmentParams) middleware.Responder
DeleteMTOShipmentHandlerFunc turns a function with the right signature into a delete m t o shipment handler
func (DeleteMTOShipmentHandlerFunc) Handle ¶
func (fn DeleteMTOShipmentHandlerFunc) Handle(params DeleteMTOShipmentParams) middleware.Responder
Handle executing the request and returning a response
type DeleteMTOShipmentInternalServerError ¶
type DeleteMTOShipmentInternalServerError struct { /* In: Body */ Payload *primemessages.Error `json:"body,omitempty"` }
DeleteMTOShipmentInternalServerError A server error occurred.
swagger:response deleteMTOShipmentInternalServerError
func NewDeleteMTOShipmentInternalServerError ¶
func NewDeleteMTOShipmentInternalServerError() *DeleteMTOShipmentInternalServerError
NewDeleteMTOShipmentInternalServerError creates DeleteMTOShipmentInternalServerError with default headers values
func (*DeleteMTOShipmentInternalServerError) SetPayload ¶
func (o *DeleteMTOShipmentInternalServerError) SetPayload(payload *primemessages.Error)
SetPayload sets the payload to the delete m t o shipment internal server error response
func (*DeleteMTOShipmentInternalServerError) WithPayload ¶
func (o *DeleteMTOShipmentInternalServerError) WithPayload(payload *primemessages.Error) *DeleteMTOShipmentInternalServerError
WithPayload adds the payload to the delete m t o shipment internal server error response
func (*DeleteMTOShipmentInternalServerError) WriteResponse ¶
func (o *DeleteMTOShipmentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteMTOShipmentNoContent ¶
type DeleteMTOShipmentNoContent struct { }
DeleteMTOShipmentNoContent Successfully deleted the MTO shipment.
swagger:response deleteMTOShipmentNoContent
func NewDeleteMTOShipmentNoContent ¶
func NewDeleteMTOShipmentNoContent() *DeleteMTOShipmentNoContent
NewDeleteMTOShipmentNoContent creates DeleteMTOShipmentNoContent with default headers values
func (*DeleteMTOShipmentNoContent) WriteResponse ¶
func (o *DeleteMTOShipmentNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteMTOShipmentNotFound ¶
type DeleteMTOShipmentNotFound struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
DeleteMTOShipmentNotFound The requested resource wasn't found.
swagger:response deleteMTOShipmentNotFound
func NewDeleteMTOShipmentNotFound ¶
func NewDeleteMTOShipmentNotFound() *DeleteMTOShipmentNotFound
NewDeleteMTOShipmentNotFound creates DeleteMTOShipmentNotFound with default headers values
func (*DeleteMTOShipmentNotFound) SetPayload ¶
func (o *DeleteMTOShipmentNotFound) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the delete m t o shipment not found response
func (*DeleteMTOShipmentNotFound) WithPayload ¶
func (o *DeleteMTOShipmentNotFound) WithPayload(payload *primemessages.ClientError) *DeleteMTOShipmentNotFound
WithPayload adds the payload to the delete m t o shipment not found response
func (*DeleteMTOShipmentNotFound) WriteResponse ¶
func (o *DeleteMTOShipmentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteMTOShipmentParams ¶
type DeleteMTOShipmentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*UUID of the shipment to be deleted Required: true In: path */ MtoShipmentID strfmt.UUID }
DeleteMTOShipmentParams contains all the bound params for the delete m t o shipment operation typically these are obtained from a http.Request
swagger:parameters deleteMTOShipment
func NewDeleteMTOShipmentParams ¶
func NewDeleteMTOShipmentParams() DeleteMTOShipmentParams
NewDeleteMTOShipmentParams creates a new DeleteMTOShipmentParams object
There are no default values defined in the spec.
func (*DeleteMTOShipmentParams) BindRequest ¶
func (o *DeleteMTOShipmentParams) 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 NewDeleteMTOShipmentParams() beforehand.
type DeleteMTOShipmentURL ¶
type DeleteMTOShipmentURL struct { MtoShipmentID strfmt.UUID // contains filtered or unexported fields }
DeleteMTOShipmentURL generates an URL for the delete m t o shipment operation
func (*DeleteMTOShipmentURL) Build ¶
func (o *DeleteMTOShipmentURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteMTOShipmentURL) BuildFull ¶
func (o *DeleteMTOShipmentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteMTOShipmentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteMTOShipmentURL) SetBasePath ¶
func (o *DeleteMTOShipmentURL) 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 (*DeleteMTOShipmentURL) String ¶
func (o *DeleteMTOShipmentURL) String() string
String returns the string representation of the path with query string
func (*DeleteMTOShipmentURL) StringFull ¶
func (o *DeleteMTOShipmentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteMTOShipmentURL) WithBasePath ¶
func (o *DeleteMTOShipmentURL) WithBasePath(bp string) *DeleteMTOShipmentURL
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 DeleteMTOShipmentUnprocessableEntity ¶
type DeleteMTOShipmentUnprocessableEntity struct { /* In: Body */ Payload *primemessages.ValidationError `json:"body,omitempty"` }
DeleteMTOShipmentUnprocessableEntity The request was unprocessable, likely due to bad input from the requester.
swagger:response deleteMTOShipmentUnprocessableEntity
func NewDeleteMTOShipmentUnprocessableEntity ¶
func NewDeleteMTOShipmentUnprocessableEntity() *DeleteMTOShipmentUnprocessableEntity
NewDeleteMTOShipmentUnprocessableEntity creates DeleteMTOShipmentUnprocessableEntity with default headers values
func (*DeleteMTOShipmentUnprocessableEntity) SetPayload ¶
func (o *DeleteMTOShipmentUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
SetPayload sets the payload to the delete m t o shipment unprocessable entity response
func (*DeleteMTOShipmentUnprocessableEntity) WithPayload ¶
func (o *DeleteMTOShipmentUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *DeleteMTOShipmentUnprocessableEntity
WithPayload adds the payload to the delete m t o shipment unprocessable entity response
func (*DeleteMTOShipmentUnprocessableEntity) WriteResponse ¶
func (o *DeleteMTOShipmentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOAgent ¶
type UpdateMTOAgent struct { Context *middleware.Context Handler UpdateMTOAgentHandler }
UpdateMTOAgent swagger:route PUT /mto-shipments/{mtoShipmentID}/agents/{agentID} mtoShipment updateMTOAgent
updateMTOAgent
### Functionality This endpoint is used to **update** the agents for an MTO Shipment. Only the fields being modified need to be sent in the request body.
### Errors: The agent must always have a name and at least one method of contact (either `email` or `phone`).
The agent must be associated with the MTO shipment passed in the url.
The shipment should be associated with an MTO that is available to the Prime. If the caller requests an update to an agent, and the shipment is not on an available MTO, the caller will receive a **NotFound** response.
func NewUpdateMTOAgent ¶
func NewUpdateMTOAgent(ctx *middleware.Context, handler UpdateMTOAgentHandler) *UpdateMTOAgent
NewUpdateMTOAgent creates a new http.Handler for the update m t o agent operation
func (*UpdateMTOAgent) ServeHTTP ¶
func (o *UpdateMTOAgent) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateMTOAgentBadRequest ¶
type UpdateMTOAgentBadRequest struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateMTOAgentBadRequest The request payload is invalid.
swagger:response updateMTOAgentBadRequest
func NewUpdateMTOAgentBadRequest ¶
func NewUpdateMTOAgentBadRequest() *UpdateMTOAgentBadRequest
NewUpdateMTOAgentBadRequest creates UpdateMTOAgentBadRequest with default headers values
func (*UpdateMTOAgentBadRequest) SetPayload ¶
func (o *UpdateMTOAgentBadRequest) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o agent bad request response
func (*UpdateMTOAgentBadRequest) WithPayload ¶
func (o *UpdateMTOAgentBadRequest) WithPayload(payload *primemessages.ClientError) *UpdateMTOAgentBadRequest
WithPayload adds the payload to the update m t o agent bad request response
func (*UpdateMTOAgentBadRequest) WriteResponse ¶
func (o *UpdateMTOAgentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOAgentForbidden ¶
type UpdateMTOAgentForbidden struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateMTOAgentForbidden The request was denied.
swagger:response updateMTOAgentForbidden
func NewUpdateMTOAgentForbidden ¶
func NewUpdateMTOAgentForbidden() *UpdateMTOAgentForbidden
NewUpdateMTOAgentForbidden creates UpdateMTOAgentForbidden with default headers values
func (*UpdateMTOAgentForbidden) SetPayload ¶
func (o *UpdateMTOAgentForbidden) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o agent forbidden response
func (*UpdateMTOAgentForbidden) WithPayload ¶
func (o *UpdateMTOAgentForbidden) WithPayload(payload *primemessages.ClientError) *UpdateMTOAgentForbidden
WithPayload adds the payload to the update m t o agent forbidden response
func (*UpdateMTOAgentForbidden) WriteResponse ¶
func (o *UpdateMTOAgentForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOAgentHandler ¶
type UpdateMTOAgentHandler interface {
Handle(UpdateMTOAgentParams) middleware.Responder
}
UpdateMTOAgentHandler interface for that can handle valid update m t o agent params
type UpdateMTOAgentHandlerFunc ¶
type UpdateMTOAgentHandlerFunc func(UpdateMTOAgentParams) middleware.Responder
UpdateMTOAgentHandlerFunc turns a function with the right signature into a update m t o agent handler
func (UpdateMTOAgentHandlerFunc) Handle ¶
func (fn UpdateMTOAgentHandlerFunc) Handle(params UpdateMTOAgentParams) middleware.Responder
Handle executing the request and returning a response
type UpdateMTOAgentInternalServerError ¶
type UpdateMTOAgentInternalServerError struct { /* In: Body */ Payload *primemessages.Error `json:"body,omitempty"` }
UpdateMTOAgentInternalServerError A server error occurred.
swagger:response updateMTOAgentInternalServerError
func NewUpdateMTOAgentInternalServerError ¶
func NewUpdateMTOAgentInternalServerError() *UpdateMTOAgentInternalServerError
NewUpdateMTOAgentInternalServerError creates UpdateMTOAgentInternalServerError with default headers values
func (*UpdateMTOAgentInternalServerError) SetPayload ¶
func (o *UpdateMTOAgentInternalServerError) SetPayload(payload *primemessages.Error)
SetPayload sets the payload to the update m t o agent internal server error response
func (*UpdateMTOAgentInternalServerError) WithPayload ¶
func (o *UpdateMTOAgentInternalServerError) WithPayload(payload *primemessages.Error) *UpdateMTOAgentInternalServerError
WithPayload adds the payload to the update m t o agent internal server error response
func (*UpdateMTOAgentInternalServerError) WriteResponse ¶
func (o *UpdateMTOAgentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOAgentNotFound ¶
type UpdateMTOAgentNotFound struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateMTOAgentNotFound The requested resource wasn't found.
swagger:response updateMTOAgentNotFound
func NewUpdateMTOAgentNotFound ¶
func NewUpdateMTOAgentNotFound() *UpdateMTOAgentNotFound
NewUpdateMTOAgentNotFound creates UpdateMTOAgentNotFound with default headers values
func (*UpdateMTOAgentNotFound) SetPayload ¶
func (o *UpdateMTOAgentNotFound) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o agent not found response
func (*UpdateMTOAgentNotFound) WithPayload ¶
func (o *UpdateMTOAgentNotFound) WithPayload(payload *primemessages.ClientError) *UpdateMTOAgentNotFound
WithPayload adds the payload to the update m t o agent not found response
func (*UpdateMTOAgentNotFound) WriteResponse ¶
func (o *UpdateMTOAgentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOAgentOK ¶
type UpdateMTOAgentOK struct { /* In: Body */ Payload *primemessages.MTOAgent `json:"body,omitempty"` }
UpdateMTOAgentOK Successfully updated the agent.
swagger:response updateMTOAgentOK
func NewUpdateMTOAgentOK ¶
func NewUpdateMTOAgentOK() *UpdateMTOAgentOK
NewUpdateMTOAgentOK creates UpdateMTOAgentOK with default headers values
func (*UpdateMTOAgentOK) SetPayload ¶
func (o *UpdateMTOAgentOK) SetPayload(payload *primemessages.MTOAgent)
SetPayload sets the payload to the update m t o agent o k response
func (*UpdateMTOAgentOK) WithPayload ¶
func (o *UpdateMTOAgentOK) WithPayload(payload *primemessages.MTOAgent) *UpdateMTOAgentOK
WithPayload adds the payload to the update m t o agent o k response
func (*UpdateMTOAgentOK) WriteResponse ¶
func (o *UpdateMTOAgentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOAgentParams ¶
type UpdateMTOAgentParams 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 /*UUID of the agent being updated Required: true In: path */ AgentID strfmt.UUID /* Required: true In: body */ Body *primemessages.MTOAgent /*UUID of the shipment associated with the agent Required: true In: path */ MtoShipmentID strfmt.UUID }
UpdateMTOAgentParams contains all the bound params for the update m t o agent operation typically these are obtained from a http.Request
swagger:parameters updateMTOAgent
func NewUpdateMTOAgentParams ¶
func NewUpdateMTOAgentParams() UpdateMTOAgentParams
NewUpdateMTOAgentParams creates a new UpdateMTOAgentParams object
There are no default values defined in the spec.
func (*UpdateMTOAgentParams) BindRequest ¶
func (o *UpdateMTOAgentParams) 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 NewUpdateMTOAgentParams() beforehand.
type UpdateMTOAgentPreconditionFailed ¶
type UpdateMTOAgentPreconditionFailed struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateMTOAgentPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
swagger:response updateMTOAgentPreconditionFailed
func NewUpdateMTOAgentPreconditionFailed ¶
func NewUpdateMTOAgentPreconditionFailed() *UpdateMTOAgentPreconditionFailed
NewUpdateMTOAgentPreconditionFailed creates UpdateMTOAgentPreconditionFailed with default headers values
func (*UpdateMTOAgentPreconditionFailed) SetPayload ¶
func (o *UpdateMTOAgentPreconditionFailed) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o agent precondition failed response
func (*UpdateMTOAgentPreconditionFailed) WithPayload ¶
func (o *UpdateMTOAgentPreconditionFailed) WithPayload(payload *primemessages.ClientError) *UpdateMTOAgentPreconditionFailed
WithPayload adds the payload to the update m t o agent precondition failed response
func (*UpdateMTOAgentPreconditionFailed) WriteResponse ¶
func (o *UpdateMTOAgentPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOAgentURL ¶
type UpdateMTOAgentURL struct { AgentID strfmt.UUID MtoShipmentID strfmt.UUID // contains filtered or unexported fields }
UpdateMTOAgentURL generates an URL for the update m t o agent operation
func (*UpdateMTOAgentURL) Build ¶
func (o *UpdateMTOAgentURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateMTOAgentURL) BuildFull ¶
func (o *UpdateMTOAgentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateMTOAgentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateMTOAgentURL) SetBasePath ¶
func (o *UpdateMTOAgentURL) 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 (*UpdateMTOAgentURL) String ¶
func (o *UpdateMTOAgentURL) String() string
String returns the string representation of the path with query string
func (*UpdateMTOAgentURL) StringFull ¶
func (o *UpdateMTOAgentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateMTOAgentURL) WithBasePath ¶
func (o *UpdateMTOAgentURL) WithBasePath(bp string) *UpdateMTOAgentURL
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 UpdateMTOAgentUnauthorized ¶
type UpdateMTOAgentUnauthorized struct { primemessages.ClientError `json:"body,omitempty"` }Payload *
UpdateMTOAgentUnauthorized The request was denied.
swagger:response updateMTOAgentUnauthorized
func NewUpdateMTOAgentUnauthorized ¶
func NewUpdateMTOAgentUnauthorized() *UpdateMTOAgentUnauthorized
NewUpdateMTOAgentUnauthorized creates UpdateMTOAgentUnauthorized with default headers values
func (*UpdateMTOAgentUnauthorized) SetPayload ¶
func (o *UpdateMTOAgentUnauthorized) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o agent unauthorized response
func (*UpdateMTOAgentUnauthorized) WithPayload ¶
func (o *UpdateMTOAgentUnauthorized) WithPayload(payload *primemessages.ClientError) *UpdateMTOAgentUnauthorized
WithPayload adds the payload to the update m t o agent unauthorized response
func (*UpdateMTOAgentUnauthorized) WriteResponse ¶
func (o *UpdateMTOAgentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOAgentUnprocessableEntity ¶
type UpdateMTOAgentUnprocessableEntity struct { /* In: Body */ Payload *primemessages.ValidationError `json:"body,omitempty"` }
UpdateMTOAgentUnprocessableEntity The request was unprocessable, likely due to bad input from the requester.
swagger:response updateMTOAgentUnprocessableEntity
func NewUpdateMTOAgentUnprocessableEntity ¶
func NewUpdateMTOAgentUnprocessableEntity() *UpdateMTOAgentUnprocessableEntity
NewUpdateMTOAgentUnprocessableEntity creates UpdateMTOAgentUnprocessableEntity with default headers values
func (*UpdateMTOAgentUnprocessableEntity) SetPayload ¶
func (o *UpdateMTOAgentUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
SetPayload sets the payload to the update m t o agent unprocessable entity response
func (*UpdateMTOAgentUnprocessableEntity) WithPayload ¶
func (o *UpdateMTOAgentUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *UpdateMTOAgentUnprocessableEntity
WithPayload adds the payload to the update m t o agent unprocessable entity response
func (*UpdateMTOAgentUnprocessableEntity) WriteResponse ¶
func (o *UpdateMTOAgentUnprocessableEntity) 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
_[Deprecated: sunset on August 5th, 2024]_ This endpoint is deprecated and will be removed in a future version. Please use the new endpoint at `/prime/v2/updateMTOShipment` instead.
**DEPRECATION ON AUGUST 5TH, 2024** Following deprecation, there is an edge case scenario where a PPM shipment with no addresses could be updated and it would also update the final destination SIT address for SIT service items. This edge case has been removed as you should not be able to update items using this endpoint. Third-party APIs have confirmed they will require deprecation for this change.
Updates an existing shipment for a move.
Note that there are some restrictions on nested objects:
* Service items: You cannot add or update service items using this endpoint. Please use [createMTOServiceItem](#operation/createMTOServiceItem) and [updateMTOServiceItem](#operation/updateMTOServiceItem) instead. * Agents: You cannot add or update agents using this endpoint. Please use [createMTOAgent](#operation/createMTOAgent) and [updateMTOAgent](#operation/updateMTOAgent) instead. * Addresses: You can add new addresses using this endpoint (and must use this endpoint to do so), but you cannot update existing ones. Please use [updateMTOShipmentAddress](#operation/updateMTOShipmentAddress) instead.
These restrictions are due to our [optimistic locking/concurrency control](https://transcom.github.io/mymove-docs/docs/dev/contributing/backend/use-optimistic-locking) mechanism.
Note that some fields cannot be manually changed but will still be updated automatically, such as `primeEstimatedWeightRecordedDate` and `requiredDeliveryDate`.
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 UpdateMTOShipmentAddress ¶
type UpdateMTOShipmentAddress struct { Context *middleware.Context Handler UpdateMTOShipmentAddressHandler }
UpdateMTOShipmentAddress swagger:route PUT /mto-shipments/{mtoShipmentID}/addresses/{addressID} mtoShipment updateMTOShipmentAddress
updateMTOShipmentAddress
### Functionality This endpoint is used to **update** the pickup, secondary, and destination addresses on an MTO Shipment. mto-shipments/{mtoShipmentID}/shipment-address-updates is for updating a delivery address. The address details completely replace the original, except for the UUID. Therefore a complete address should be sent in the request. When a destination address on a shipment is updated, the destination SIT service items address ID will also be updated so that shipment and service item final destinations match.
This endpoint **cannot create** an address. To create an address on an MTO shipment, the caller must use [updateMTOShipment](#operation/updateMTOShipment) as the parent shipment has to be updated with the appropriate link to the address.
### Errors The address must be associated with the mtoShipment passed in the url. In other words, it should be listed as pickupAddress, destinationAddress, secondaryPickupAddress or secondaryDeliveryAddress on the mtoShipment provided. If it is not, caller will receive a **Conflict** Error.
The mtoShipment should be associated with an MTO that is available to prime. If the caller requests an update to an address, and the shipment is not on an available MTO, the caller will receive a **NotFound** Error.
func NewUpdateMTOShipmentAddress ¶
func NewUpdateMTOShipmentAddress(ctx *middleware.Context, handler UpdateMTOShipmentAddressHandler) *UpdateMTOShipmentAddress
NewUpdateMTOShipmentAddress creates a new http.Handler for the update m t o shipment address operation
func (*UpdateMTOShipmentAddress) ServeHTTP ¶
func (o *UpdateMTOShipmentAddress) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateMTOShipmentAddressBadRequest ¶
type UpdateMTOShipmentAddressBadRequest struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateMTOShipmentAddressBadRequest The request payload is invalid.
swagger:response updateMTOShipmentAddressBadRequest
func NewUpdateMTOShipmentAddressBadRequest ¶
func NewUpdateMTOShipmentAddressBadRequest() *UpdateMTOShipmentAddressBadRequest
NewUpdateMTOShipmentAddressBadRequest creates UpdateMTOShipmentAddressBadRequest with default headers values
func (*UpdateMTOShipmentAddressBadRequest) SetPayload ¶
func (o *UpdateMTOShipmentAddressBadRequest) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment address bad request response
func (*UpdateMTOShipmentAddressBadRequest) WithPayload ¶
func (o *UpdateMTOShipmentAddressBadRequest) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentAddressBadRequest
WithPayload adds the payload to the update m t o shipment address bad request response
func (*UpdateMTOShipmentAddressBadRequest) WriteResponse ¶
func (o *UpdateMTOShipmentAddressBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentAddressConflict ¶
type UpdateMTOShipmentAddressConflict struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateMTOShipmentAddressConflict The request could not be processed because of conflict in the current state of the resource.
swagger:response updateMTOShipmentAddressConflict
func NewUpdateMTOShipmentAddressConflict ¶
func NewUpdateMTOShipmentAddressConflict() *UpdateMTOShipmentAddressConflict
NewUpdateMTOShipmentAddressConflict creates UpdateMTOShipmentAddressConflict with default headers values
func (*UpdateMTOShipmentAddressConflict) SetPayload ¶
func (o *UpdateMTOShipmentAddressConflict) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment address conflict response
func (*UpdateMTOShipmentAddressConflict) WithPayload ¶
func (o *UpdateMTOShipmentAddressConflict) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentAddressConflict
WithPayload adds the payload to the update m t o shipment address conflict response
func (*UpdateMTOShipmentAddressConflict) WriteResponse ¶
func (o *UpdateMTOShipmentAddressConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentAddressForbidden ¶
type UpdateMTOShipmentAddressForbidden struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateMTOShipmentAddressForbidden The request was denied.
swagger:response updateMTOShipmentAddressForbidden
func NewUpdateMTOShipmentAddressForbidden ¶
func NewUpdateMTOShipmentAddressForbidden() *UpdateMTOShipmentAddressForbidden
NewUpdateMTOShipmentAddressForbidden creates UpdateMTOShipmentAddressForbidden with default headers values
func (*UpdateMTOShipmentAddressForbidden) SetPayload ¶
func (o *UpdateMTOShipmentAddressForbidden) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment address forbidden response
func (*UpdateMTOShipmentAddressForbidden) WithPayload ¶
func (o *UpdateMTOShipmentAddressForbidden) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentAddressForbidden
WithPayload adds the payload to the update m t o shipment address forbidden response
func (*UpdateMTOShipmentAddressForbidden) WriteResponse ¶
func (o *UpdateMTOShipmentAddressForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentAddressHandler ¶
type UpdateMTOShipmentAddressHandler interface {
Handle(UpdateMTOShipmentAddressParams) middleware.Responder
}
UpdateMTOShipmentAddressHandler interface for that can handle valid update m t o shipment address params
type UpdateMTOShipmentAddressHandlerFunc ¶
type UpdateMTOShipmentAddressHandlerFunc func(UpdateMTOShipmentAddressParams) middleware.Responder
UpdateMTOShipmentAddressHandlerFunc turns a function with the right signature into a update m t o shipment address handler
func (UpdateMTOShipmentAddressHandlerFunc) Handle ¶
func (fn UpdateMTOShipmentAddressHandlerFunc) Handle(params UpdateMTOShipmentAddressParams) middleware.Responder
Handle executing the request and returning a response
type UpdateMTOShipmentAddressInternalServerError ¶
type UpdateMTOShipmentAddressInternalServerError struct { /* In: Body */ Payload *primemessages.Error `json:"body,omitempty"` }
UpdateMTOShipmentAddressInternalServerError A server error occurred.
swagger:response updateMTOShipmentAddressInternalServerError
func NewUpdateMTOShipmentAddressInternalServerError ¶
func NewUpdateMTOShipmentAddressInternalServerError() *UpdateMTOShipmentAddressInternalServerError
NewUpdateMTOShipmentAddressInternalServerError creates UpdateMTOShipmentAddressInternalServerError with default headers values
func (*UpdateMTOShipmentAddressInternalServerError) SetPayload ¶
func (o *UpdateMTOShipmentAddressInternalServerError) SetPayload(payload *primemessages.Error)
SetPayload sets the payload to the update m t o shipment address internal server error response
func (*UpdateMTOShipmentAddressInternalServerError) WithPayload ¶
func (o *UpdateMTOShipmentAddressInternalServerError) WithPayload(payload *primemessages.Error) *UpdateMTOShipmentAddressInternalServerError
WithPayload adds the payload to the update m t o shipment address internal server error response
func (*UpdateMTOShipmentAddressInternalServerError) WriteResponse ¶
func (o *UpdateMTOShipmentAddressInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentAddressNotFound ¶
type UpdateMTOShipmentAddressNotFound struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateMTOShipmentAddressNotFound The requested resource wasn't found.
swagger:response updateMTOShipmentAddressNotFound
func NewUpdateMTOShipmentAddressNotFound ¶
func NewUpdateMTOShipmentAddressNotFound() *UpdateMTOShipmentAddressNotFound
NewUpdateMTOShipmentAddressNotFound creates UpdateMTOShipmentAddressNotFound with default headers values
func (*UpdateMTOShipmentAddressNotFound) SetPayload ¶
func (o *UpdateMTOShipmentAddressNotFound) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment address not found response
func (*UpdateMTOShipmentAddressNotFound) WithPayload ¶
func (o *UpdateMTOShipmentAddressNotFound) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentAddressNotFound
WithPayload adds the payload to the update m t o shipment address not found response
func (*UpdateMTOShipmentAddressNotFound) WriteResponse ¶
func (o *UpdateMTOShipmentAddressNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentAddressOK ¶
type UpdateMTOShipmentAddressOK struct { /* In: Body */ Payload *primemessages.Address `json:"body,omitempty"` }
UpdateMTOShipmentAddressOK Successfully updated the address.
swagger:response updateMTOShipmentAddressOK
func NewUpdateMTOShipmentAddressOK ¶
func NewUpdateMTOShipmentAddressOK() *UpdateMTOShipmentAddressOK
NewUpdateMTOShipmentAddressOK creates UpdateMTOShipmentAddressOK with default headers values
func (*UpdateMTOShipmentAddressOK) SetPayload ¶
func (o *UpdateMTOShipmentAddressOK) SetPayload(payload *primemessages.Address)
SetPayload sets the payload to the update m t o shipment address o k response
func (*UpdateMTOShipmentAddressOK) WithPayload ¶
func (o *UpdateMTOShipmentAddressOK) WithPayload(payload *primemessages.Address) *UpdateMTOShipmentAddressOK
WithPayload adds the payload to the update m t o shipment address o k response
func (*UpdateMTOShipmentAddressOK) WriteResponse ¶
func (o *UpdateMTOShipmentAddressOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentAddressParams ¶
type UpdateMTOShipmentAddressParams 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 /*UUID of the address being updated Required: true In: path */ AddressID strfmt.UUID /* Required: true In: body */ Body *primemessages.Address /*UUID of the shipment associated with the address Required: true In: path */ MtoShipmentID strfmt.UUID }
UpdateMTOShipmentAddressParams contains all the bound params for the update m t o shipment address operation typically these are obtained from a http.Request
swagger:parameters updateMTOShipmentAddress
func NewUpdateMTOShipmentAddressParams ¶
func NewUpdateMTOShipmentAddressParams() UpdateMTOShipmentAddressParams
NewUpdateMTOShipmentAddressParams creates a new UpdateMTOShipmentAddressParams object
There are no default values defined in the spec.
func (*UpdateMTOShipmentAddressParams) BindRequest ¶
func (o *UpdateMTOShipmentAddressParams) 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 NewUpdateMTOShipmentAddressParams() beforehand.
type UpdateMTOShipmentAddressPreconditionFailed ¶
type UpdateMTOShipmentAddressPreconditionFailed struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateMTOShipmentAddressPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
swagger:response updateMTOShipmentAddressPreconditionFailed
func NewUpdateMTOShipmentAddressPreconditionFailed ¶
func NewUpdateMTOShipmentAddressPreconditionFailed() *UpdateMTOShipmentAddressPreconditionFailed
NewUpdateMTOShipmentAddressPreconditionFailed creates UpdateMTOShipmentAddressPreconditionFailed with default headers values
func (*UpdateMTOShipmentAddressPreconditionFailed) SetPayload ¶
func (o *UpdateMTOShipmentAddressPreconditionFailed) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment address precondition failed response
func (*UpdateMTOShipmentAddressPreconditionFailed) WithPayload ¶
func (o *UpdateMTOShipmentAddressPreconditionFailed) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentAddressPreconditionFailed
WithPayload adds the payload to the update m t o shipment address precondition failed response
func (*UpdateMTOShipmentAddressPreconditionFailed) WriteResponse ¶
func (o *UpdateMTOShipmentAddressPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentAddressURL ¶
type UpdateMTOShipmentAddressURL struct { AddressID strfmt.UUID MtoShipmentID strfmt.UUID // contains filtered or unexported fields }
UpdateMTOShipmentAddressURL generates an URL for the update m t o shipment address operation
func (*UpdateMTOShipmentAddressURL) Build ¶
func (o *UpdateMTOShipmentAddressURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateMTOShipmentAddressURL) BuildFull ¶
func (o *UpdateMTOShipmentAddressURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateMTOShipmentAddressURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateMTOShipmentAddressURL) SetBasePath ¶
func (o *UpdateMTOShipmentAddressURL) 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 (*UpdateMTOShipmentAddressURL) String ¶
func (o *UpdateMTOShipmentAddressURL) String() string
String returns the string representation of the path with query string
func (*UpdateMTOShipmentAddressURL) StringFull ¶
func (o *UpdateMTOShipmentAddressURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateMTOShipmentAddressURL) WithBasePath ¶
func (o *UpdateMTOShipmentAddressURL) WithBasePath(bp string) *UpdateMTOShipmentAddressURL
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 UpdateMTOShipmentAddressUnauthorized ¶
type UpdateMTOShipmentAddressUnauthorized struct { primemessages.ClientError `json:"body,omitempty"` }Payload *
UpdateMTOShipmentAddressUnauthorized The request was denied.
swagger:response updateMTOShipmentAddressUnauthorized
func NewUpdateMTOShipmentAddressUnauthorized ¶
func NewUpdateMTOShipmentAddressUnauthorized() *UpdateMTOShipmentAddressUnauthorized
NewUpdateMTOShipmentAddressUnauthorized creates UpdateMTOShipmentAddressUnauthorized with default headers values
func (*UpdateMTOShipmentAddressUnauthorized) SetPayload ¶
func (o *UpdateMTOShipmentAddressUnauthorized) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment address unauthorized response
func (*UpdateMTOShipmentAddressUnauthorized) WithPayload ¶
func (o *UpdateMTOShipmentAddressUnauthorized) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentAddressUnauthorized
WithPayload adds the payload to the update m t o shipment address unauthorized response
func (*UpdateMTOShipmentAddressUnauthorized) WriteResponse ¶
func (o *UpdateMTOShipmentAddressUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentAddressUnprocessableEntity ¶
type UpdateMTOShipmentAddressUnprocessableEntity struct { /* In: Body */ Payload *primemessages.ValidationError `json:"body,omitempty"` }
UpdateMTOShipmentAddressUnprocessableEntity The request was unprocessable, likely due to bad input from the requester.
swagger:response updateMTOShipmentAddressUnprocessableEntity
func NewUpdateMTOShipmentAddressUnprocessableEntity ¶
func NewUpdateMTOShipmentAddressUnprocessableEntity() *UpdateMTOShipmentAddressUnprocessableEntity
NewUpdateMTOShipmentAddressUnprocessableEntity creates UpdateMTOShipmentAddressUnprocessableEntity with default headers values
func (*UpdateMTOShipmentAddressUnprocessableEntity) SetPayload ¶
func (o *UpdateMTOShipmentAddressUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
SetPayload sets the payload to the update m t o shipment address unprocessable entity response
func (*UpdateMTOShipmentAddressUnprocessableEntity) WithPayload ¶
func (o *UpdateMTOShipmentAddressUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *UpdateMTOShipmentAddressUnprocessableEntity
WithPayload adds the payload to the update m t o shipment address unprocessable entity response
func (*UpdateMTOShipmentAddressUnprocessableEntity) WriteResponse ¶
func (o *UpdateMTOShipmentAddressUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentBadRequest ¶
type UpdateMTOShipmentBadRequest struct { /* In: Body */ Payload *primemessages.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 *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment bad request response
func (*UpdateMTOShipmentBadRequest) WithPayload ¶
func (o *UpdateMTOShipmentBadRequest) WithPayload(payload *primemessages.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 *primemessages.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 *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment forbidden response
func (*UpdateMTOShipmentForbidden) WithPayload ¶
func (o *UpdateMTOShipmentForbidden) WithPayload(payload *primemessages.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 *primemessages.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 *primemessages.Error)
SetPayload sets the payload to the update m t o shipment internal server error response
func (*UpdateMTOShipmentInternalServerError) WithPayload ¶
func (o *UpdateMTOShipmentInternalServerError) WithPayload(payload *primemessages.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 *primemessages.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 *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment not found response
func (*UpdateMTOShipmentNotFound) WithPayload ¶
func (o *UpdateMTOShipmentNotFound) WithPayload(payload *primemessages.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 *primemessages.MTOShipment `json:"body,omitempty"` }
UpdateMTOShipmentOK Successfully updated the 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 *primemessages.MTOShipment)
SetPayload sets the payload to the update m t o shipment o k response
func (*UpdateMTOShipmentOK) WithPayload ¶
func (o *UpdateMTOShipmentOK) WithPayload(payload *primemessages.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 /* Required: true In: body */ Body *primemessages.UpdateMTOShipment /*UUID of the shipment being updated. 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 *primemessages.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 *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment precondition failed response
func (*UpdateMTOShipmentPreconditionFailed) WithPayload ¶
func (o *UpdateMTOShipmentPreconditionFailed) WithPayload(payload *primemessages.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 UpdateMTOShipmentStatus ¶
type UpdateMTOShipmentStatus struct { Context *middleware.Context Handler UpdateMTOShipmentStatusHandler }
UpdateMTOShipmentStatus swagger:route PATCH /mto-shipments/{mtoShipmentID}/status mtoShipment updateMTOShipmentStatus
updateMTOShipmentStatus
### Functionality This endpoint should be used by the Prime to confirm the cancellation of a shipment. It allows the shipment status to be changed to "CANCELED." Currently, the Prime cannot update the shipment to any other status.
func NewUpdateMTOShipmentStatus ¶
func NewUpdateMTOShipmentStatus(ctx *middleware.Context, handler UpdateMTOShipmentStatusHandler) *UpdateMTOShipmentStatus
NewUpdateMTOShipmentStatus creates a new http.Handler for the update m t o shipment status operation
func (*UpdateMTOShipmentStatus) ServeHTTP ¶
func (o *UpdateMTOShipmentStatus) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateMTOShipmentStatusBadRequest ¶
type UpdateMTOShipmentStatusBadRequest struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateMTOShipmentStatusBadRequest The request payload is invalid.
swagger:response updateMTOShipmentStatusBadRequest
func NewUpdateMTOShipmentStatusBadRequest ¶
func NewUpdateMTOShipmentStatusBadRequest() *UpdateMTOShipmentStatusBadRequest
NewUpdateMTOShipmentStatusBadRequest creates UpdateMTOShipmentStatusBadRequest with default headers values
func (*UpdateMTOShipmentStatusBadRequest) SetPayload ¶
func (o *UpdateMTOShipmentStatusBadRequest) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment status bad request response
func (*UpdateMTOShipmentStatusBadRequest) WithPayload ¶
func (o *UpdateMTOShipmentStatusBadRequest) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentStatusBadRequest
WithPayload adds the payload to the update m t o shipment status bad request response
func (*UpdateMTOShipmentStatusBadRequest) WriteResponse ¶
func (o *UpdateMTOShipmentStatusBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentStatusConflict ¶
type UpdateMTOShipmentStatusConflict struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateMTOShipmentStatusConflict The request could not be processed because of conflict in the current state of the resource.
swagger:response updateMTOShipmentStatusConflict
func NewUpdateMTOShipmentStatusConflict ¶
func NewUpdateMTOShipmentStatusConflict() *UpdateMTOShipmentStatusConflict
NewUpdateMTOShipmentStatusConflict creates UpdateMTOShipmentStatusConflict with default headers values
func (*UpdateMTOShipmentStatusConflict) SetPayload ¶
func (o *UpdateMTOShipmentStatusConflict) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment status conflict response
func (*UpdateMTOShipmentStatusConflict) WithPayload ¶
func (o *UpdateMTOShipmentStatusConflict) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentStatusConflict
WithPayload adds the payload to the update m t o shipment status conflict response
func (*UpdateMTOShipmentStatusConflict) WriteResponse ¶
func (o *UpdateMTOShipmentStatusConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentStatusForbidden ¶
type UpdateMTOShipmentStatusForbidden struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateMTOShipmentStatusForbidden The request was denied.
swagger:response updateMTOShipmentStatusForbidden
func NewUpdateMTOShipmentStatusForbidden ¶
func NewUpdateMTOShipmentStatusForbidden() *UpdateMTOShipmentStatusForbidden
NewUpdateMTOShipmentStatusForbidden creates UpdateMTOShipmentStatusForbidden with default headers values
func (*UpdateMTOShipmentStatusForbidden) SetPayload ¶
func (o *UpdateMTOShipmentStatusForbidden) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment status forbidden response
func (*UpdateMTOShipmentStatusForbidden) WithPayload ¶
func (o *UpdateMTOShipmentStatusForbidden) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentStatusForbidden
WithPayload adds the payload to the update m t o shipment status forbidden response
func (*UpdateMTOShipmentStatusForbidden) WriteResponse ¶
func (o *UpdateMTOShipmentStatusForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentStatusHandler ¶
type UpdateMTOShipmentStatusHandler interface {
Handle(UpdateMTOShipmentStatusParams) middleware.Responder
}
UpdateMTOShipmentStatusHandler interface for that can handle valid update m t o shipment status params
type UpdateMTOShipmentStatusHandlerFunc ¶
type UpdateMTOShipmentStatusHandlerFunc func(UpdateMTOShipmentStatusParams) middleware.Responder
UpdateMTOShipmentStatusHandlerFunc turns a function with the right signature into a update m t o shipment status handler
func (UpdateMTOShipmentStatusHandlerFunc) Handle ¶
func (fn UpdateMTOShipmentStatusHandlerFunc) Handle(params UpdateMTOShipmentStatusParams) middleware.Responder
Handle executing the request and returning a response
type UpdateMTOShipmentStatusInternalServerError ¶
type UpdateMTOShipmentStatusInternalServerError struct { /* In: Body */ Payload *primemessages.Error `json:"body,omitempty"` }
UpdateMTOShipmentStatusInternalServerError A server error occurred.
swagger:response updateMTOShipmentStatusInternalServerError
func NewUpdateMTOShipmentStatusInternalServerError ¶
func NewUpdateMTOShipmentStatusInternalServerError() *UpdateMTOShipmentStatusInternalServerError
NewUpdateMTOShipmentStatusInternalServerError creates UpdateMTOShipmentStatusInternalServerError with default headers values
func (*UpdateMTOShipmentStatusInternalServerError) SetPayload ¶
func (o *UpdateMTOShipmentStatusInternalServerError) SetPayload(payload *primemessages.Error)
SetPayload sets the payload to the update m t o shipment status internal server error response
func (*UpdateMTOShipmentStatusInternalServerError) WithPayload ¶
func (o *UpdateMTOShipmentStatusInternalServerError) WithPayload(payload *primemessages.Error) *UpdateMTOShipmentStatusInternalServerError
WithPayload adds the payload to the update m t o shipment status internal server error response
func (*UpdateMTOShipmentStatusInternalServerError) WriteResponse ¶
func (o *UpdateMTOShipmentStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentStatusNotFound ¶
type UpdateMTOShipmentStatusNotFound struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateMTOShipmentStatusNotFound The requested resource wasn't found.
swagger:response updateMTOShipmentStatusNotFound
func NewUpdateMTOShipmentStatusNotFound ¶
func NewUpdateMTOShipmentStatusNotFound() *UpdateMTOShipmentStatusNotFound
NewUpdateMTOShipmentStatusNotFound creates UpdateMTOShipmentStatusNotFound with default headers values
func (*UpdateMTOShipmentStatusNotFound) SetPayload ¶
func (o *UpdateMTOShipmentStatusNotFound) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment status not found response
func (*UpdateMTOShipmentStatusNotFound) WithPayload ¶
func (o *UpdateMTOShipmentStatusNotFound) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentStatusNotFound
WithPayload adds the payload to the update m t o shipment status not found response
func (*UpdateMTOShipmentStatusNotFound) WriteResponse ¶
func (o *UpdateMTOShipmentStatusNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentStatusOK ¶
type UpdateMTOShipmentStatusOK struct { /* In: Body */ Payload *primemessages.MTOShipment `json:"body,omitempty"` }
UpdateMTOShipmentStatusOK Successfully updated the shipment's status.
swagger:response updateMTOShipmentStatusOK
func NewUpdateMTOShipmentStatusOK ¶
func NewUpdateMTOShipmentStatusOK() *UpdateMTOShipmentStatusOK
NewUpdateMTOShipmentStatusOK creates UpdateMTOShipmentStatusOK with default headers values
func (*UpdateMTOShipmentStatusOK) SetPayload ¶
func (o *UpdateMTOShipmentStatusOK) SetPayload(payload *primemessages.MTOShipment)
SetPayload sets the payload to the update m t o shipment status o k response
func (*UpdateMTOShipmentStatusOK) WithPayload ¶
func (o *UpdateMTOShipmentStatusOK) WithPayload(payload *primemessages.MTOShipment) *UpdateMTOShipmentStatusOK
WithPayload adds the payload to the update m t o shipment status o k response
func (*UpdateMTOShipmentStatusOK) WriteResponse ¶
func (o *UpdateMTOShipmentStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentStatusParams ¶
type UpdateMTOShipmentStatusParams 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 /* Required: true In: body */ Body *primemessages.UpdateMTOShipmentStatus /*UUID of the shipment associated with the agent Required: true In: path */ MtoShipmentID strfmt.UUID }
UpdateMTOShipmentStatusParams contains all the bound params for the update m t o shipment status operation typically these are obtained from a http.Request
swagger:parameters updateMTOShipmentStatus
func NewUpdateMTOShipmentStatusParams ¶
func NewUpdateMTOShipmentStatusParams() UpdateMTOShipmentStatusParams
NewUpdateMTOShipmentStatusParams creates a new UpdateMTOShipmentStatusParams object
There are no default values defined in the spec.
func (*UpdateMTOShipmentStatusParams) BindRequest ¶
func (o *UpdateMTOShipmentStatusParams) 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 NewUpdateMTOShipmentStatusParams() beforehand.
type UpdateMTOShipmentStatusPreconditionFailed ¶
type UpdateMTOShipmentStatusPreconditionFailed struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateMTOShipmentStatusPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
swagger:response updateMTOShipmentStatusPreconditionFailed
func NewUpdateMTOShipmentStatusPreconditionFailed ¶
func NewUpdateMTOShipmentStatusPreconditionFailed() *UpdateMTOShipmentStatusPreconditionFailed
NewUpdateMTOShipmentStatusPreconditionFailed creates UpdateMTOShipmentStatusPreconditionFailed with default headers values
func (*UpdateMTOShipmentStatusPreconditionFailed) SetPayload ¶
func (o *UpdateMTOShipmentStatusPreconditionFailed) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment status precondition failed response
func (*UpdateMTOShipmentStatusPreconditionFailed) WithPayload ¶
func (o *UpdateMTOShipmentStatusPreconditionFailed) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentStatusPreconditionFailed
WithPayload adds the payload to the update m t o shipment status precondition failed response
func (*UpdateMTOShipmentStatusPreconditionFailed) WriteResponse ¶
func (o *UpdateMTOShipmentStatusPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentStatusURL ¶
type UpdateMTOShipmentStatusURL struct { MtoShipmentID strfmt.UUID // contains filtered or unexported fields }
UpdateMTOShipmentStatusURL generates an URL for the update m t o shipment status operation
func (*UpdateMTOShipmentStatusURL) Build ¶
func (o *UpdateMTOShipmentStatusURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateMTOShipmentStatusURL) BuildFull ¶
func (o *UpdateMTOShipmentStatusURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateMTOShipmentStatusURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateMTOShipmentStatusURL) SetBasePath ¶
func (o *UpdateMTOShipmentStatusURL) 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 (*UpdateMTOShipmentStatusURL) String ¶
func (o *UpdateMTOShipmentStatusURL) String() string
String returns the string representation of the path with query string
func (*UpdateMTOShipmentStatusURL) StringFull ¶
func (o *UpdateMTOShipmentStatusURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateMTOShipmentStatusURL) WithBasePath ¶
func (o *UpdateMTOShipmentStatusURL) WithBasePath(bp string) *UpdateMTOShipmentStatusURL
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 UpdateMTOShipmentStatusUnauthorized ¶
type UpdateMTOShipmentStatusUnauthorized struct { primemessages.ClientError `json:"body,omitempty"` }Payload *
UpdateMTOShipmentStatusUnauthorized The request was denied.
swagger:response updateMTOShipmentStatusUnauthorized
func NewUpdateMTOShipmentStatusUnauthorized ¶
func NewUpdateMTOShipmentStatusUnauthorized() *UpdateMTOShipmentStatusUnauthorized
NewUpdateMTOShipmentStatusUnauthorized creates UpdateMTOShipmentStatusUnauthorized with default headers values
func (*UpdateMTOShipmentStatusUnauthorized) SetPayload ¶
func (o *UpdateMTOShipmentStatusUnauthorized) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment status unauthorized response
func (*UpdateMTOShipmentStatusUnauthorized) WithPayload ¶
func (o *UpdateMTOShipmentStatusUnauthorized) WithPayload(payload *primemessages.ClientError) *UpdateMTOShipmentStatusUnauthorized
WithPayload adds the payload to the update m t o shipment status unauthorized response
func (*UpdateMTOShipmentStatusUnauthorized) WriteResponse ¶
func (o *UpdateMTOShipmentStatusUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateMTOShipmentStatusUnprocessableEntity ¶
type UpdateMTOShipmentStatusUnprocessableEntity struct { /* In: Body */ Payload *primemessages.ValidationError `json:"body,omitempty"` }
UpdateMTOShipmentStatusUnprocessableEntity The request was unprocessable, likely due to bad input from the requester.
swagger:response updateMTOShipmentStatusUnprocessableEntity
func NewUpdateMTOShipmentStatusUnprocessableEntity ¶
func NewUpdateMTOShipmentStatusUnprocessableEntity() *UpdateMTOShipmentStatusUnprocessableEntity
NewUpdateMTOShipmentStatusUnprocessableEntity creates UpdateMTOShipmentStatusUnprocessableEntity with default headers values
func (*UpdateMTOShipmentStatusUnprocessableEntity) SetPayload ¶
func (o *UpdateMTOShipmentStatusUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
SetPayload sets the payload to the update m t o shipment status unprocessable entity response
func (*UpdateMTOShipmentStatusUnprocessableEntity) WithPayload ¶
func (o *UpdateMTOShipmentStatusUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *UpdateMTOShipmentStatusUnprocessableEntity
WithPayload adds the payload to the update m t o shipment status unprocessable entity response
func (*UpdateMTOShipmentStatusUnprocessableEntity) WriteResponse ¶
func (o *UpdateMTOShipmentStatusUnprocessableEntity) 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 { primemessages.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 *primemessages.ClientError)
SetPayload sets the payload to the update m t o shipment unauthorized response
func (*UpdateMTOShipmentUnauthorized) WithPayload ¶
func (o *UpdateMTOShipmentUnauthorized) WithPayload(payload *primemessages.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 *primemessages.ValidationError `json:"body,omitempty"` }
UpdateMTOShipmentUnprocessableEntity The request was unprocessable, likely due to bad input from the requester.
swagger:response updateMTOShipmentUnprocessableEntity
func NewUpdateMTOShipmentUnprocessableEntity ¶
func NewUpdateMTOShipmentUnprocessableEntity() *UpdateMTOShipmentUnprocessableEntity
NewUpdateMTOShipmentUnprocessableEntity creates UpdateMTOShipmentUnprocessableEntity with default headers values
func (*UpdateMTOShipmentUnprocessableEntity) SetPayload ¶
func (o *UpdateMTOShipmentUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
SetPayload sets the payload to the update m t o shipment unprocessable entity response
func (*UpdateMTOShipmentUnprocessableEntity) WithPayload ¶
func (o *UpdateMTOShipmentUnprocessableEntity) WithPayload(payload *primemessages.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
type UpdateReweigh ¶
type UpdateReweigh struct { Context *middleware.Context Handler UpdateReweighHandler }
UpdateReweigh swagger:route PATCH /mto-shipments/{mtoShipmentID}/reweighs/{reweighID} mtoShipment updateReweigh
updateReweigh
### Functionality This endpoint can be used to update a reweigh with a new weight or to provide the reason why a reweigh did not occur. Only one of weight or verificationReason should be sent in the request body.
A reweigh is the second recorded weight for a shipment, as validated by certified weight tickets. Applies to one shipment. A reweigh can be triggered automatically, or requested by the customer or transportation office. Not all shipments are reweighed, so not all shipments will have a reweigh weight.
func NewUpdateReweigh ¶
func NewUpdateReweigh(ctx *middleware.Context, handler UpdateReweighHandler) *UpdateReweigh
NewUpdateReweigh creates a new http.Handler for the update reweigh operation
func (*UpdateReweigh) ServeHTTP ¶
func (o *UpdateReweigh) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateReweighBadRequest ¶
type UpdateReweighBadRequest struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateReweighBadRequest The request payload is invalid.
swagger:response updateReweighBadRequest
func NewUpdateReweighBadRequest ¶
func NewUpdateReweighBadRequest() *UpdateReweighBadRequest
NewUpdateReweighBadRequest creates UpdateReweighBadRequest with default headers values
func (*UpdateReweighBadRequest) SetPayload ¶
func (o *UpdateReweighBadRequest) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update reweigh bad request response
func (*UpdateReweighBadRequest) WithPayload ¶
func (o *UpdateReweighBadRequest) WithPayload(payload *primemessages.ClientError) *UpdateReweighBadRequest
WithPayload adds the payload to the update reweigh bad request response
func (*UpdateReweighBadRequest) WriteResponse ¶
func (o *UpdateReweighBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateReweighConflict ¶
type UpdateReweighConflict struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateReweighConflict The request could not be processed because of conflict in the current state of the resource.
swagger:response updateReweighConflict
func NewUpdateReweighConflict ¶
func NewUpdateReweighConflict() *UpdateReweighConflict
NewUpdateReweighConflict creates UpdateReweighConflict with default headers values
func (*UpdateReweighConflict) SetPayload ¶
func (o *UpdateReweighConflict) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update reweigh conflict response
func (*UpdateReweighConflict) WithPayload ¶
func (o *UpdateReweighConflict) WithPayload(payload *primemessages.ClientError) *UpdateReweighConflict
WithPayload adds the payload to the update reweigh conflict response
func (*UpdateReweighConflict) WriteResponse ¶
func (o *UpdateReweighConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateReweighForbidden ¶
type UpdateReweighForbidden struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateReweighForbidden The request was denied.
swagger:response updateReweighForbidden
func NewUpdateReweighForbidden ¶
func NewUpdateReweighForbidden() *UpdateReweighForbidden
NewUpdateReweighForbidden creates UpdateReweighForbidden with default headers values
func (*UpdateReweighForbidden) SetPayload ¶
func (o *UpdateReweighForbidden) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update reweigh forbidden response
func (*UpdateReweighForbidden) WithPayload ¶
func (o *UpdateReweighForbidden) WithPayload(payload *primemessages.ClientError) *UpdateReweighForbidden
WithPayload adds the payload to the update reweigh forbidden response
func (*UpdateReweighForbidden) WriteResponse ¶
func (o *UpdateReweighForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateReweighHandler ¶
type UpdateReweighHandler interface {
Handle(UpdateReweighParams) middleware.Responder
}
UpdateReweighHandler interface for that can handle valid update reweigh params
type UpdateReweighHandlerFunc ¶
type UpdateReweighHandlerFunc func(UpdateReweighParams) middleware.Responder
UpdateReweighHandlerFunc turns a function with the right signature into a update reweigh handler
func (UpdateReweighHandlerFunc) Handle ¶
func (fn UpdateReweighHandlerFunc) Handle(params UpdateReweighParams) middleware.Responder
Handle executing the request and returning a response
type UpdateReweighInternalServerError ¶
type UpdateReweighInternalServerError struct { /* In: Body */ Payload *primemessages.Error `json:"body,omitempty"` }
UpdateReweighInternalServerError A server error occurred.
swagger:response updateReweighInternalServerError
func NewUpdateReweighInternalServerError ¶
func NewUpdateReweighInternalServerError() *UpdateReweighInternalServerError
NewUpdateReweighInternalServerError creates UpdateReweighInternalServerError with default headers values
func (*UpdateReweighInternalServerError) SetPayload ¶
func (o *UpdateReweighInternalServerError) SetPayload(payload *primemessages.Error)
SetPayload sets the payload to the update reweigh internal server error response
func (*UpdateReweighInternalServerError) WithPayload ¶
func (o *UpdateReweighInternalServerError) WithPayload(payload *primemessages.Error) *UpdateReweighInternalServerError
WithPayload adds the payload to the update reweigh internal server error response
func (*UpdateReweighInternalServerError) WriteResponse ¶
func (o *UpdateReweighInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateReweighNotFound ¶
type UpdateReweighNotFound struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateReweighNotFound The requested resource wasn't found.
swagger:response updateReweighNotFound
func NewUpdateReweighNotFound ¶
func NewUpdateReweighNotFound() *UpdateReweighNotFound
NewUpdateReweighNotFound creates UpdateReweighNotFound with default headers values
func (*UpdateReweighNotFound) SetPayload ¶
func (o *UpdateReweighNotFound) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update reweigh not found response
func (*UpdateReweighNotFound) WithPayload ¶
func (o *UpdateReweighNotFound) WithPayload(payload *primemessages.ClientError) *UpdateReweighNotFound
WithPayload adds the payload to the update reweigh not found response
func (*UpdateReweighNotFound) WriteResponse ¶
func (o *UpdateReweighNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateReweighOK ¶
type UpdateReweighOK struct { /* In: Body */ Payload *primemessages.Reweigh `json:"body,omitempty"` }
UpdateReweighOK Successfully updated the reweigh.
swagger:response updateReweighOK
func NewUpdateReweighOK ¶
func NewUpdateReweighOK() *UpdateReweighOK
NewUpdateReweighOK creates UpdateReweighOK with default headers values
func (*UpdateReweighOK) SetPayload ¶
func (o *UpdateReweighOK) SetPayload(payload *primemessages.Reweigh)
SetPayload sets the payload to the update reweigh o k response
func (*UpdateReweighOK) WithPayload ¶
func (o *UpdateReweighOK) WithPayload(payload *primemessages.Reweigh) *UpdateReweighOK
WithPayload adds the payload to the update reweigh o k response
func (*UpdateReweighOK) WriteResponse ¶
func (o *UpdateReweighOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateReweighParams ¶
type UpdateReweighParams 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 /* Required: true In: body */ Body *primemessages.UpdateReweigh /*UUID of the shipment associated with the reweigh Required: true In: path */ MtoShipmentID strfmt.UUID /*UUID of the reweigh being updated Required: true In: path */ ReweighID strfmt.UUID }
UpdateReweighParams contains all the bound params for the update reweigh operation typically these are obtained from a http.Request
swagger:parameters updateReweigh
func NewUpdateReweighParams ¶
func NewUpdateReweighParams() UpdateReweighParams
NewUpdateReweighParams creates a new UpdateReweighParams object
There are no default values defined in the spec.
func (*UpdateReweighParams) BindRequest ¶
func (o *UpdateReweighParams) 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 NewUpdateReweighParams() beforehand.
type UpdateReweighPreconditionFailed ¶
type UpdateReweighPreconditionFailed struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateReweighPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
swagger:response updateReweighPreconditionFailed
func NewUpdateReweighPreconditionFailed ¶
func NewUpdateReweighPreconditionFailed() *UpdateReweighPreconditionFailed
NewUpdateReweighPreconditionFailed creates UpdateReweighPreconditionFailed with default headers values
func (*UpdateReweighPreconditionFailed) SetPayload ¶
func (o *UpdateReweighPreconditionFailed) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update reweigh precondition failed response
func (*UpdateReweighPreconditionFailed) WithPayload ¶
func (o *UpdateReweighPreconditionFailed) WithPayload(payload *primemessages.ClientError) *UpdateReweighPreconditionFailed
WithPayload adds the payload to the update reweigh precondition failed response
func (*UpdateReweighPreconditionFailed) WriteResponse ¶
func (o *UpdateReweighPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateReweighURL ¶
type UpdateReweighURL struct { MtoShipmentID strfmt.UUID ReweighID strfmt.UUID // contains filtered or unexported fields }
UpdateReweighURL generates an URL for the update reweigh operation
func (*UpdateReweighURL) Build ¶
func (o *UpdateReweighURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateReweighURL) BuildFull ¶
func (o *UpdateReweighURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateReweighURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateReweighURL) SetBasePath ¶
func (o *UpdateReweighURL) 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 (*UpdateReweighURL) String ¶
func (o *UpdateReweighURL) String() string
String returns the string representation of the path with query string
func (*UpdateReweighURL) StringFull ¶
func (o *UpdateReweighURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateReweighURL) WithBasePath ¶
func (o *UpdateReweighURL) WithBasePath(bp string) *UpdateReweighURL
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 UpdateReweighUnauthorized ¶
type UpdateReweighUnauthorized struct { primemessages.ClientError `json:"body,omitempty"` }Payload *
UpdateReweighUnauthorized The request was denied.
swagger:response updateReweighUnauthorized
func NewUpdateReweighUnauthorized ¶
func NewUpdateReweighUnauthorized() *UpdateReweighUnauthorized
NewUpdateReweighUnauthorized creates UpdateReweighUnauthorized with default headers values
func (*UpdateReweighUnauthorized) SetPayload ¶
func (o *UpdateReweighUnauthorized) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update reweigh unauthorized response
func (*UpdateReweighUnauthorized) WithPayload ¶
func (o *UpdateReweighUnauthorized) WithPayload(payload *primemessages.ClientError) *UpdateReweighUnauthorized
WithPayload adds the payload to the update reweigh unauthorized response
func (*UpdateReweighUnauthorized) WriteResponse ¶
func (o *UpdateReweighUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateReweighUnprocessableEntity ¶
type UpdateReweighUnprocessableEntity struct { /* In: Body */ Payload *primemessages.ValidationError `json:"body,omitempty"` }
UpdateReweighUnprocessableEntity The request was unprocessable, likely due to bad input from the requester.
swagger:response updateReweighUnprocessableEntity
func NewUpdateReweighUnprocessableEntity ¶
func NewUpdateReweighUnprocessableEntity() *UpdateReweighUnprocessableEntity
NewUpdateReweighUnprocessableEntity creates UpdateReweighUnprocessableEntity with default headers values
func (*UpdateReweighUnprocessableEntity) SetPayload ¶
func (o *UpdateReweighUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
SetPayload sets the payload to the update reweigh unprocessable entity response
func (*UpdateReweighUnprocessableEntity) WithPayload ¶
func (o *UpdateReweighUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *UpdateReweighUnprocessableEntity
WithPayload adds the payload to the update reweigh unprocessable entity response
func (*UpdateReweighUnprocessableEntity) WriteResponse ¶
func (o *UpdateReweighUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateShipmentDestinationAddress ¶
type UpdateShipmentDestinationAddress struct { Context *middleware.Context Handler UpdateShipmentDestinationAddressHandler }
UpdateShipmentDestinationAddress swagger:route POST /mto-shipments/{mtoShipmentID}/shipment-address-updates mtoShipment updateShipmentDestinationAddress
updateShipmentDestinationAddress
### Functionality This endpoint is used so the Prime can request an **update** for the destination address on an MTO Shipment, after the destination address has already been approved. If automatically approved or TOO approves, this will update the final destination address values for destination SIT service items to be the same as the changed destination address that was approved. Address updates will be automatically approved unless they change:
- The service area
- Mileage bracket for direct delivery
- the address and the distance between the old and new address is > 50
- Domestic Short Haul to Domestic Line Haul or vice versa
- Shipments that start and end in one ZIP3 use Short Haul pricing
- Shipments that start and end in different ZIP3s use Line Haul pricing
For those, changes will require TOO approval.
func NewUpdateShipmentDestinationAddress ¶
func NewUpdateShipmentDestinationAddress(ctx *middleware.Context, handler UpdateShipmentDestinationAddressHandler) *UpdateShipmentDestinationAddress
NewUpdateShipmentDestinationAddress creates a new http.Handler for the update shipment destination address operation
func (*UpdateShipmentDestinationAddress) ServeHTTP ¶
func (o *UpdateShipmentDestinationAddress) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdateShipmentDestinationAddressBadRequest ¶
type UpdateShipmentDestinationAddressBadRequest struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateShipmentDestinationAddressBadRequest The request payload is invalid.
swagger:response updateShipmentDestinationAddressBadRequest
func NewUpdateShipmentDestinationAddressBadRequest ¶
func NewUpdateShipmentDestinationAddressBadRequest() *UpdateShipmentDestinationAddressBadRequest
NewUpdateShipmentDestinationAddressBadRequest creates UpdateShipmentDestinationAddressBadRequest with default headers values
func (*UpdateShipmentDestinationAddressBadRequest) SetPayload ¶
func (o *UpdateShipmentDestinationAddressBadRequest) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update shipment destination address bad request response
func (*UpdateShipmentDestinationAddressBadRequest) WithPayload ¶
func (o *UpdateShipmentDestinationAddressBadRequest) WithPayload(payload *primemessages.ClientError) *UpdateShipmentDestinationAddressBadRequest
WithPayload adds the payload to the update shipment destination address bad request response
func (*UpdateShipmentDestinationAddressBadRequest) WriteResponse ¶
func (o *UpdateShipmentDestinationAddressBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateShipmentDestinationAddressConflict ¶
type UpdateShipmentDestinationAddressConflict struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateShipmentDestinationAddressConflict The request could not be processed because of conflict in the current state of the resource.
swagger:response updateShipmentDestinationAddressConflict
func NewUpdateShipmentDestinationAddressConflict ¶
func NewUpdateShipmentDestinationAddressConflict() *UpdateShipmentDestinationAddressConflict
NewUpdateShipmentDestinationAddressConflict creates UpdateShipmentDestinationAddressConflict with default headers values
func (*UpdateShipmentDestinationAddressConflict) SetPayload ¶
func (o *UpdateShipmentDestinationAddressConflict) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update shipment destination address conflict response
func (*UpdateShipmentDestinationAddressConflict) WithPayload ¶
func (o *UpdateShipmentDestinationAddressConflict) WithPayload(payload *primemessages.ClientError) *UpdateShipmentDestinationAddressConflict
WithPayload adds the payload to the update shipment destination address conflict response
func (*UpdateShipmentDestinationAddressConflict) WriteResponse ¶
func (o *UpdateShipmentDestinationAddressConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateShipmentDestinationAddressCreated ¶
type UpdateShipmentDestinationAddressCreated struct { /* In: Body */ Payload *primemessages.ShipmentAddressUpdate `json:"body,omitempty"` }
UpdateShipmentDestinationAddressCreated Successfully created the address update request.
swagger:response updateShipmentDestinationAddressCreated
func NewUpdateShipmentDestinationAddressCreated ¶
func NewUpdateShipmentDestinationAddressCreated() *UpdateShipmentDestinationAddressCreated
NewUpdateShipmentDestinationAddressCreated creates UpdateShipmentDestinationAddressCreated with default headers values
func (*UpdateShipmentDestinationAddressCreated) SetPayload ¶
func (o *UpdateShipmentDestinationAddressCreated) SetPayload(payload *primemessages.ShipmentAddressUpdate)
SetPayload sets the payload to the update shipment destination address created response
func (*UpdateShipmentDestinationAddressCreated) WithPayload ¶
func (o *UpdateShipmentDestinationAddressCreated) WithPayload(payload *primemessages.ShipmentAddressUpdate) *UpdateShipmentDestinationAddressCreated
WithPayload adds the payload to the update shipment destination address created response
func (*UpdateShipmentDestinationAddressCreated) WriteResponse ¶
func (o *UpdateShipmentDestinationAddressCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateShipmentDestinationAddressForbidden ¶
type UpdateShipmentDestinationAddressForbidden struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateShipmentDestinationAddressForbidden The request was denied.
swagger:response updateShipmentDestinationAddressForbidden
func NewUpdateShipmentDestinationAddressForbidden ¶
func NewUpdateShipmentDestinationAddressForbidden() *UpdateShipmentDestinationAddressForbidden
NewUpdateShipmentDestinationAddressForbidden creates UpdateShipmentDestinationAddressForbidden with default headers values
func (*UpdateShipmentDestinationAddressForbidden) SetPayload ¶
func (o *UpdateShipmentDestinationAddressForbidden) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update shipment destination address forbidden response
func (*UpdateShipmentDestinationAddressForbidden) WithPayload ¶
func (o *UpdateShipmentDestinationAddressForbidden) WithPayload(payload *primemessages.ClientError) *UpdateShipmentDestinationAddressForbidden
WithPayload adds the payload to the update shipment destination address forbidden response
func (*UpdateShipmentDestinationAddressForbidden) WriteResponse ¶
func (o *UpdateShipmentDestinationAddressForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateShipmentDestinationAddressHandler ¶
type UpdateShipmentDestinationAddressHandler interface {
Handle(UpdateShipmentDestinationAddressParams) middleware.Responder
}
UpdateShipmentDestinationAddressHandler interface for that can handle valid update shipment destination address params
type UpdateShipmentDestinationAddressHandlerFunc ¶
type UpdateShipmentDestinationAddressHandlerFunc func(UpdateShipmentDestinationAddressParams) middleware.Responder
UpdateShipmentDestinationAddressHandlerFunc turns a function with the right signature into a update shipment destination address handler
func (UpdateShipmentDestinationAddressHandlerFunc) Handle ¶
func (fn UpdateShipmentDestinationAddressHandlerFunc) Handle(params UpdateShipmentDestinationAddressParams) middleware.Responder
Handle executing the request and returning a response
type UpdateShipmentDestinationAddressInternalServerError ¶
type UpdateShipmentDestinationAddressInternalServerError struct { /* In: Body */ Payload *primemessages.Error `json:"body,omitempty"` }
UpdateShipmentDestinationAddressInternalServerError A server error occurred.
swagger:response updateShipmentDestinationAddressInternalServerError
func NewUpdateShipmentDestinationAddressInternalServerError ¶
func NewUpdateShipmentDestinationAddressInternalServerError() *UpdateShipmentDestinationAddressInternalServerError
NewUpdateShipmentDestinationAddressInternalServerError creates UpdateShipmentDestinationAddressInternalServerError with default headers values
func (*UpdateShipmentDestinationAddressInternalServerError) SetPayload ¶
func (o *UpdateShipmentDestinationAddressInternalServerError) SetPayload(payload *primemessages.Error)
SetPayload sets the payload to the update shipment destination address internal server error response
func (*UpdateShipmentDestinationAddressInternalServerError) WithPayload ¶
func (o *UpdateShipmentDestinationAddressInternalServerError) WithPayload(payload *primemessages.Error) *UpdateShipmentDestinationAddressInternalServerError
WithPayload adds the payload to the update shipment destination address internal server error response
func (*UpdateShipmentDestinationAddressInternalServerError) WriteResponse ¶
func (o *UpdateShipmentDestinationAddressInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateShipmentDestinationAddressNotFound ¶
type UpdateShipmentDestinationAddressNotFound struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateShipmentDestinationAddressNotFound The requested resource wasn't found.
swagger:response updateShipmentDestinationAddressNotFound
func NewUpdateShipmentDestinationAddressNotFound ¶
func NewUpdateShipmentDestinationAddressNotFound() *UpdateShipmentDestinationAddressNotFound
NewUpdateShipmentDestinationAddressNotFound creates UpdateShipmentDestinationAddressNotFound with default headers values
func (*UpdateShipmentDestinationAddressNotFound) SetPayload ¶
func (o *UpdateShipmentDestinationAddressNotFound) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update shipment destination address not found response
func (*UpdateShipmentDestinationAddressNotFound) WithPayload ¶
func (o *UpdateShipmentDestinationAddressNotFound) WithPayload(payload *primemessages.ClientError) *UpdateShipmentDestinationAddressNotFound
WithPayload adds the payload to the update shipment destination address not found response
func (*UpdateShipmentDestinationAddressNotFound) WriteResponse ¶
func (o *UpdateShipmentDestinationAddressNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateShipmentDestinationAddressParams ¶
type UpdateShipmentDestinationAddressParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Needs to be the eTag of the mtoShipment. 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 /* Required: true In: body */ Body *primemessages.UpdateShipmentDestinationAddress /*UUID of the shipment associated with the address Required: true In: path */ MtoShipmentID strfmt.UUID }
UpdateShipmentDestinationAddressParams contains all the bound params for the update shipment destination address operation typically these are obtained from a http.Request
swagger:parameters updateShipmentDestinationAddress
func NewUpdateShipmentDestinationAddressParams ¶
func NewUpdateShipmentDestinationAddressParams() UpdateShipmentDestinationAddressParams
NewUpdateShipmentDestinationAddressParams creates a new UpdateShipmentDestinationAddressParams object
There are no default values defined in the spec.
func (*UpdateShipmentDestinationAddressParams) BindRequest ¶
func (o *UpdateShipmentDestinationAddressParams) 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 NewUpdateShipmentDestinationAddressParams() beforehand.
type UpdateShipmentDestinationAddressPreconditionFailed ¶
type UpdateShipmentDestinationAddressPreconditionFailed struct { /* In: Body */ Payload *primemessages.ClientError `json:"body,omitempty"` }
UpdateShipmentDestinationAddressPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
swagger:response updateShipmentDestinationAddressPreconditionFailed
func NewUpdateShipmentDestinationAddressPreconditionFailed ¶
func NewUpdateShipmentDestinationAddressPreconditionFailed() *UpdateShipmentDestinationAddressPreconditionFailed
NewUpdateShipmentDestinationAddressPreconditionFailed creates UpdateShipmentDestinationAddressPreconditionFailed with default headers values
func (*UpdateShipmentDestinationAddressPreconditionFailed) SetPayload ¶
func (o *UpdateShipmentDestinationAddressPreconditionFailed) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update shipment destination address precondition failed response
func (*UpdateShipmentDestinationAddressPreconditionFailed) WithPayload ¶
func (o *UpdateShipmentDestinationAddressPreconditionFailed) WithPayload(payload *primemessages.ClientError) *UpdateShipmentDestinationAddressPreconditionFailed
WithPayload adds the payload to the update shipment destination address precondition failed response
func (*UpdateShipmentDestinationAddressPreconditionFailed) WriteResponse ¶
func (o *UpdateShipmentDestinationAddressPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateShipmentDestinationAddressURL ¶
type UpdateShipmentDestinationAddressURL struct { MtoShipmentID strfmt.UUID // contains filtered or unexported fields }
UpdateShipmentDestinationAddressURL generates an URL for the update shipment destination address operation
func (*UpdateShipmentDestinationAddressURL) Build ¶
func (o *UpdateShipmentDestinationAddressURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdateShipmentDestinationAddressURL) BuildFull ¶
func (o *UpdateShipmentDestinationAddressURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdateShipmentDestinationAddressURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdateShipmentDestinationAddressURL) SetBasePath ¶
func (o *UpdateShipmentDestinationAddressURL) 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 (*UpdateShipmentDestinationAddressURL) String ¶
func (o *UpdateShipmentDestinationAddressURL) String() string
String returns the string representation of the path with query string
func (*UpdateShipmentDestinationAddressURL) StringFull ¶
func (o *UpdateShipmentDestinationAddressURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdateShipmentDestinationAddressURL) WithBasePath ¶
func (o *UpdateShipmentDestinationAddressURL) WithBasePath(bp string) *UpdateShipmentDestinationAddressURL
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 UpdateShipmentDestinationAddressUnauthorized ¶
type UpdateShipmentDestinationAddressUnauthorized struct { primemessages.ClientError `json:"body,omitempty"` }Payload *
UpdateShipmentDestinationAddressUnauthorized The request was denied.
swagger:response updateShipmentDestinationAddressUnauthorized
func NewUpdateShipmentDestinationAddressUnauthorized ¶
func NewUpdateShipmentDestinationAddressUnauthorized() *UpdateShipmentDestinationAddressUnauthorized
NewUpdateShipmentDestinationAddressUnauthorized creates UpdateShipmentDestinationAddressUnauthorized with default headers values
func (*UpdateShipmentDestinationAddressUnauthorized) SetPayload ¶
func (o *UpdateShipmentDestinationAddressUnauthorized) SetPayload(payload *primemessages.ClientError)
SetPayload sets the payload to the update shipment destination address unauthorized response
func (*UpdateShipmentDestinationAddressUnauthorized) WithPayload ¶
func (o *UpdateShipmentDestinationAddressUnauthorized) WithPayload(payload *primemessages.ClientError) *UpdateShipmentDestinationAddressUnauthorized
WithPayload adds the payload to the update shipment destination address unauthorized response
func (*UpdateShipmentDestinationAddressUnauthorized) WriteResponse ¶
func (o *UpdateShipmentDestinationAddressUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdateShipmentDestinationAddressUnprocessableEntity ¶
type UpdateShipmentDestinationAddressUnprocessableEntity struct { /* In: Body */ Payload *primemessages.ValidationError `json:"body,omitempty"` }
UpdateShipmentDestinationAddressUnprocessableEntity The request was unprocessable, likely due to bad input from the requester.
swagger:response updateShipmentDestinationAddressUnprocessableEntity
func NewUpdateShipmentDestinationAddressUnprocessableEntity ¶
func NewUpdateShipmentDestinationAddressUnprocessableEntity() *UpdateShipmentDestinationAddressUnprocessableEntity
NewUpdateShipmentDestinationAddressUnprocessableEntity creates UpdateShipmentDestinationAddressUnprocessableEntity with default headers values
func (*UpdateShipmentDestinationAddressUnprocessableEntity) SetPayload ¶
func (o *UpdateShipmentDestinationAddressUnprocessableEntity) SetPayload(payload *primemessages.ValidationError)
SetPayload sets the payload to the update shipment destination address unprocessable entity response
func (*UpdateShipmentDestinationAddressUnprocessableEntity) WithPayload ¶
func (o *UpdateShipmentDestinationAddressUnprocessableEntity) WithPayload(payload *primemessages.ValidationError) *UpdateShipmentDestinationAddressUnprocessableEntity
WithPayload adds the payload to the update shipment destination address unprocessable entity response
func (*UpdateShipmentDestinationAddressUnprocessableEntity) WriteResponse ¶
func (o *UpdateShipmentDestinationAddressUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files ¶
- create_m_t_o_agent.go
- create_m_t_o_agent_parameters.go
- create_m_t_o_agent_responses.go
- create_m_t_o_agent_urlbuilder.go
- 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
- create_s_i_t_extension.go
- create_s_i_t_extension_parameters.go
- create_s_i_t_extension_responses.go
- create_s_i_t_extension_urlbuilder.go
- delete_m_t_o_shipment.go
- delete_m_t_o_shipment_parameters.go
- delete_m_t_o_shipment_responses.go
- delete_m_t_o_shipment_urlbuilder.go
- update_m_t_o_agent.go
- update_m_t_o_agent_parameters.go
- update_m_t_o_agent_responses.go
- update_m_t_o_agent_urlbuilder.go
- update_m_t_o_shipment.go
- update_m_t_o_shipment_address.go
- update_m_t_o_shipment_address_parameters.go
- update_m_t_o_shipment_address_responses.go
- update_m_t_o_shipment_address_urlbuilder.go
- update_m_t_o_shipment_parameters.go
- update_m_t_o_shipment_responses.go
- update_m_t_o_shipment_status.go
- update_m_t_o_shipment_status_parameters.go
- update_m_t_o_shipment_status_responses.go
- update_m_t_o_shipment_status_urlbuilder.go
- update_m_t_o_shipment_urlbuilder.go
- update_reweigh.go
- update_reweigh_parameters.go
- update_reweigh_responses.go
- update_reweigh_urlbuilder.go
- update_shipment_destination_address.go
- update_shipment_destination_address_parameters.go
- update_shipment_destination_address_responses.go
- update_shipment_destination_address_urlbuilder.go