Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type UpdateMTOShipmentStatusBadRequest
- func (o *UpdateMTOShipmentStatusBadRequest) Code() int
- func (o *UpdateMTOShipmentStatusBadRequest) Error() string
- func (o *UpdateMTOShipmentStatusBadRequest) GetPayload() *supportmessages.ClientError
- func (o *UpdateMTOShipmentStatusBadRequest) IsClientError() bool
- func (o *UpdateMTOShipmentStatusBadRequest) IsCode(code int) bool
- func (o *UpdateMTOShipmentStatusBadRequest) IsRedirect() bool
- func (o *UpdateMTOShipmentStatusBadRequest) IsServerError() bool
- func (o *UpdateMTOShipmentStatusBadRequest) IsSuccess() bool
- func (o *UpdateMTOShipmentStatusBadRequest) String() string
- type UpdateMTOShipmentStatusConflict
- func (o *UpdateMTOShipmentStatusConflict) Code() int
- func (o *UpdateMTOShipmentStatusConflict) Error() string
- func (o *UpdateMTOShipmentStatusConflict) GetPayload() *supportmessages.ClientError
- func (o *UpdateMTOShipmentStatusConflict) IsClientError() bool
- func (o *UpdateMTOShipmentStatusConflict) IsCode(code int) bool
- func (o *UpdateMTOShipmentStatusConflict) IsRedirect() bool
- func (o *UpdateMTOShipmentStatusConflict) IsServerError() bool
- func (o *UpdateMTOShipmentStatusConflict) IsSuccess() bool
- func (o *UpdateMTOShipmentStatusConflict) String() string
- type UpdateMTOShipmentStatusForbidden
- func (o *UpdateMTOShipmentStatusForbidden) Code() int
- func (o *UpdateMTOShipmentStatusForbidden) Error() string
- func (o *UpdateMTOShipmentStatusForbidden) GetPayload() *supportmessages.ClientError
- func (o *UpdateMTOShipmentStatusForbidden) IsClientError() bool
- func (o *UpdateMTOShipmentStatusForbidden) IsCode(code int) bool
- func (o *UpdateMTOShipmentStatusForbidden) IsRedirect() bool
- func (o *UpdateMTOShipmentStatusForbidden) IsServerError() bool
- func (o *UpdateMTOShipmentStatusForbidden) IsSuccess() bool
- func (o *UpdateMTOShipmentStatusForbidden) String() string
- type UpdateMTOShipmentStatusInternalServerError
- func (o *UpdateMTOShipmentStatusInternalServerError) Code() int
- func (o *UpdateMTOShipmentStatusInternalServerError) Error() string
- func (o *UpdateMTOShipmentStatusInternalServerError) GetPayload() *supportmessages.Error
- func (o *UpdateMTOShipmentStatusInternalServerError) IsClientError() bool
- func (o *UpdateMTOShipmentStatusInternalServerError) IsCode(code int) bool
- func (o *UpdateMTOShipmentStatusInternalServerError) IsRedirect() bool
- func (o *UpdateMTOShipmentStatusInternalServerError) IsServerError() bool
- func (o *UpdateMTOShipmentStatusInternalServerError) IsSuccess() bool
- func (o *UpdateMTOShipmentStatusInternalServerError) String() string
- type UpdateMTOShipmentStatusNotFound
- func (o *UpdateMTOShipmentStatusNotFound) Code() int
- func (o *UpdateMTOShipmentStatusNotFound) Error() string
- func (o *UpdateMTOShipmentStatusNotFound) GetPayload() *supportmessages.ClientError
- func (o *UpdateMTOShipmentStatusNotFound) IsClientError() bool
- func (o *UpdateMTOShipmentStatusNotFound) IsCode(code int) bool
- func (o *UpdateMTOShipmentStatusNotFound) IsRedirect() bool
- func (o *UpdateMTOShipmentStatusNotFound) IsServerError() bool
- func (o *UpdateMTOShipmentStatusNotFound) IsSuccess() bool
- func (o *UpdateMTOShipmentStatusNotFound) String() string
- type UpdateMTOShipmentStatusOK
- func (o *UpdateMTOShipmentStatusOK) Code() int
- func (o *UpdateMTOShipmentStatusOK) Error() string
- func (o *UpdateMTOShipmentStatusOK) GetPayload() *supportmessages.MTOShipment
- func (o *UpdateMTOShipmentStatusOK) IsClientError() bool
- func (o *UpdateMTOShipmentStatusOK) IsCode(code int) bool
- func (o *UpdateMTOShipmentStatusOK) IsRedirect() bool
- func (o *UpdateMTOShipmentStatusOK) IsServerError() bool
- func (o *UpdateMTOShipmentStatusOK) IsSuccess() bool
- func (o *UpdateMTOShipmentStatusOK) String() string
- type UpdateMTOShipmentStatusParams
- func NewUpdateMTOShipmentStatusParams() *UpdateMTOShipmentStatusParams
- func NewUpdateMTOShipmentStatusParamsWithContext(ctx context.Context) *UpdateMTOShipmentStatusParams
- func NewUpdateMTOShipmentStatusParamsWithHTTPClient(client *http.Client) *UpdateMTOShipmentStatusParams
- func NewUpdateMTOShipmentStatusParamsWithTimeout(timeout time.Duration) *UpdateMTOShipmentStatusParams
- func (o *UpdateMTOShipmentStatusParams) SetBody(body *supportmessages.UpdateMTOShipmentStatus)
- func (o *UpdateMTOShipmentStatusParams) SetContext(ctx context.Context)
- func (o *UpdateMTOShipmentStatusParams) SetDefaults()
- func (o *UpdateMTOShipmentStatusParams) SetHTTPClient(client *http.Client)
- func (o *UpdateMTOShipmentStatusParams) SetIfMatch(ifMatch string)
- func (o *UpdateMTOShipmentStatusParams) SetMtoShipmentID(mtoShipmentID strfmt.UUID)
- func (o *UpdateMTOShipmentStatusParams) SetTimeout(timeout time.Duration)
- func (o *UpdateMTOShipmentStatusParams) WithBody(body *supportmessages.UpdateMTOShipmentStatus) *UpdateMTOShipmentStatusParams
- func (o *UpdateMTOShipmentStatusParams) WithContext(ctx context.Context) *UpdateMTOShipmentStatusParams
- func (o *UpdateMTOShipmentStatusParams) WithDefaults() *UpdateMTOShipmentStatusParams
- func (o *UpdateMTOShipmentStatusParams) WithHTTPClient(client *http.Client) *UpdateMTOShipmentStatusParams
- func (o *UpdateMTOShipmentStatusParams) WithIfMatch(ifMatch string) *UpdateMTOShipmentStatusParams
- func (o *UpdateMTOShipmentStatusParams) WithMtoShipmentID(mtoShipmentID strfmt.UUID) *UpdateMTOShipmentStatusParams
- func (o *UpdateMTOShipmentStatusParams) WithTimeout(timeout time.Duration) *UpdateMTOShipmentStatusParams
- func (o *UpdateMTOShipmentStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateMTOShipmentStatusPreconditionFailed
- func (o *UpdateMTOShipmentStatusPreconditionFailed) Code() int
- func (o *UpdateMTOShipmentStatusPreconditionFailed) Error() string
- func (o *UpdateMTOShipmentStatusPreconditionFailed) GetPayload() *supportmessages.ClientError
- func (o *UpdateMTOShipmentStatusPreconditionFailed) IsClientError() bool
- func (o *UpdateMTOShipmentStatusPreconditionFailed) IsCode(code int) bool
- func (o *UpdateMTOShipmentStatusPreconditionFailed) IsRedirect() bool
- func (o *UpdateMTOShipmentStatusPreconditionFailed) IsServerError() bool
- func (o *UpdateMTOShipmentStatusPreconditionFailed) IsSuccess() bool
- func (o *UpdateMTOShipmentStatusPreconditionFailed) String() string
- type UpdateMTOShipmentStatusReader
- type UpdateMTOShipmentStatusUnauthorized
- func (o *UpdateMTOShipmentStatusUnauthorized) Code() int
- func (o *UpdateMTOShipmentStatusUnauthorized) Error() string
- func (o *UpdateMTOShipmentStatusUnauthorized) GetPayload() *supportmessages.ClientError
- func (o *UpdateMTOShipmentStatusUnauthorized) IsClientError() bool
- func (o *UpdateMTOShipmentStatusUnauthorized) IsCode(code int) bool
- func (o *UpdateMTOShipmentStatusUnauthorized) IsRedirect() bool
- func (o *UpdateMTOShipmentStatusUnauthorized) IsServerError() bool
- func (o *UpdateMTOShipmentStatusUnauthorized) IsSuccess() bool
- func (o *UpdateMTOShipmentStatusUnauthorized) String() string
- type UpdateMTOShipmentStatusUnprocessableEntity
- func (o *UpdateMTOShipmentStatusUnprocessableEntity) Code() int
- func (o *UpdateMTOShipmentStatusUnprocessableEntity) Error() string
- func (o *UpdateMTOShipmentStatusUnprocessableEntity) GetPayload() *supportmessages.ValidationError
- func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsClientError() bool
- func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsCode(code int) bool
- func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsRedirect() bool
- func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsServerError() bool
- func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsSuccess() bool
- func (o *UpdateMTOShipmentStatusUnprocessableEntity) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for mto shipment API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateMTOShipmentStatus ¶
func (a *Client) UpdateMTOShipmentStatus(params *UpdateMTOShipmentStatusParams, opts ...ClientOption) (*UpdateMTOShipmentStatusOK, error)
UpdateMTOShipmentStatus updates m t o shipment status
Updates a shipment's status to APPROVED or REJECTED for the purpose of testing the Prime API. If APPROVED, `rejectionReason` should be blank and any value passed through the body will be ignored. If REJECTED, a value in `rejectionReason` is required. <br /> <br /> This is a support endpoint and will not be available in production.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { UpdateMTOShipmentStatus(params *UpdateMTOShipmentStatusParams, opts ...ClientOption) (*UpdateMTOShipmentStatusOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new mto shipment API client.
type UpdateMTOShipmentStatusBadRequest ¶
type UpdateMTOShipmentStatusBadRequest struct {
Payload *supportmessages.ClientError
}
UpdateMTOShipmentStatusBadRequest describes a response with status code 400, with default header values.
The request payload is invalid.
func NewUpdateMTOShipmentStatusBadRequest ¶
func NewUpdateMTOShipmentStatusBadRequest() *UpdateMTOShipmentStatusBadRequest
NewUpdateMTOShipmentStatusBadRequest creates a UpdateMTOShipmentStatusBadRequest with default headers values
func (*UpdateMTOShipmentStatusBadRequest) Code ¶
func (o *UpdateMTOShipmentStatusBadRequest) Code() int
Code gets the status code for the update m t o shipment status bad request response
func (*UpdateMTOShipmentStatusBadRequest) Error ¶
func (o *UpdateMTOShipmentStatusBadRequest) Error() string
func (*UpdateMTOShipmentStatusBadRequest) GetPayload ¶
func (o *UpdateMTOShipmentStatusBadRequest) GetPayload() *supportmessages.ClientError
func (*UpdateMTOShipmentStatusBadRequest) IsClientError ¶
func (o *UpdateMTOShipmentStatusBadRequest) IsClientError() bool
IsClientError returns true when this update m t o shipment status bad request response has a 4xx status code
func (*UpdateMTOShipmentStatusBadRequest) IsCode ¶
func (o *UpdateMTOShipmentStatusBadRequest) IsCode(code int) bool
IsCode returns true when this update m t o shipment status bad request response a status code equal to that given
func (*UpdateMTOShipmentStatusBadRequest) IsRedirect ¶
func (o *UpdateMTOShipmentStatusBadRequest) IsRedirect() bool
IsRedirect returns true when this update m t o shipment status bad request response has a 3xx status code
func (*UpdateMTOShipmentStatusBadRequest) IsServerError ¶
func (o *UpdateMTOShipmentStatusBadRequest) IsServerError() bool
IsServerError returns true when this update m t o shipment status bad request response has a 5xx status code
func (*UpdateMTOShipmentStatusBadRequest) IsSuccess ¶
func (o *UpdateMTOShipmentStatusBadRequest) IsSuccess() bool
IsSuccess returns true when this update m t o shipment status bad request response has a 2xx status code
func (*UpdateMTOShipmentStatusBadRequest) String ¶
func (o *UpdateMTOShipmentStatusBadRequest) String() string
type UpdateMTOShipmentStatusConflict ¶
type UpdateMTOShipmentStatusConflict struct {
Payload *supportmessages.ClientError
}
UpdateMTOShipmentStatusConflict describes a response with status code 409, with default header values.
There was a conflict with the request.
func NewUpdateMTOShipmentStatusConflict ¶
func NewUpdateMTOShipmentStatusConflict() *UpdateMTOShipmentStatusConflict
NewUpdateMTOShipmentStatusConflict creates a UpdateMTOShipmentStatusConflict with default headers values
func (*UpdateMTOShipmentStatusConflict) Code ¶
func (o *UpdateMTOShipmentStatusConflict) Code() int
Code gets the status code for the update m t o shipment status conflict response
func (*UpdateMTOShipmentStatusConflict) Error ¶
func (o *UpdateMTOShipmentStatusConflict) Error() string
func (*UpdateMTOShipmentStatusConflict) GetPayload ¶
func (o *UpdateMTOShipmentStatusConflict) GetPayload() *supportmessages.ClientError
func (*UpdateMTOShipmentStatusConflict) IsClientError ¶
func (o *UpdateMTOShipmentStatusConflict) IsClientError() bool
IsClientError returns true when this update m t o shipment status conflict response has a 4xx status code
func (*UpdateMTOShipmentStatusConflict) IsCode ¶
func (o *UpdateMTOShipmentStatusConflict) IsCode(code int) bool
IsCode returns true when this update m t o shipment status conflict response a status code equal to that given
func (*UpdateMTOShipmentStatusConflict) IsRedirect ¶
func (o *UpdateMTOShipmentStatusConflict) IsRedirect() bool
IsRedirect returns true when this update m t o shipment status conflict response has a 3xx status code
func (*UpdateMTOShipmentStatusConflict) IsServerError ¶
func (o *UpdateMTOShipmentStatusConflict) IsServerError() bool
IsServerError returns true when this update m t o shipment status conflict response has a 5xx status code
func (*UpdateMTOShipmentStatusConflict) IsSuccess ¶
func (o *UpdateMTOShipmentStatusConflict) IsSuccess() bool
IsSuccess returns true when this update m t o shipment status conflict response has a 2xx status code
func (*UpdateMTOShipmentStatusConflict) String ¶
func (o *UpdateMTOShipmentStatusConflict) String() string
type UpdateMTOShipmentStatusForbidden ¶
type UpdateMTOShipmentStatusForbidden struct {
Payload *supportmessages.ClientError
}
UpdateMTOShipmentStatusForbidden describes a response with status code 403, with default header values.
The request was denied.
func NewUpdateMTOShipmentStatusForbidden ¶
func NewUpdateMTOShipmentStatusForbidden() *UpdateMTOShipmentStatusForbidden
NewUpdateMTOShipmentStatusForbidden creates a UpdateMTOShipmentStatusForbidden with default headers values
func (*UpdateMTOShipmentStatusForbidden) Code ¶
func (o *UpdateMTOShipmentStatusForbidden) Code() int
Code gets the status code for the update m t o shipment status forbidden response
func (*UpdateMTOShipmentStatusForbidden) Error ¶
func (o *UpdateMTOShipmentStatusForbidden) Error() string
func (*UpdateMTOShipmentStatusForbidden) GetPayload ¶
func (o *UpdateMTOShipmentStatusForbidden) GetPayload() *supportmessages.ClientError
func (*UpdateMTOShipmentStatusForbidden) IsClientError ¶
func (o *UpdateMTOShipmentStatusForbidden) IsClientError() bool
IsClientError returns true when this update m t o shipment status forbidden response has a 4xx status code
func (*UpdateMTOShipmentStatusForbidden) IsCode ¶
func (o *UpdateMTOShipmentStatusForbidden) IsCode(code int) bool
IsCode returns true when this update m t o shipment status forbidden response a status code equal to that given
func (*UpdateMTOShipmentStatusForbidden) IsRedirect ¶
func (o *UpdateMTOShipmentStatusForbidden) IsRedirect() bool
IsRedirect returns true when this update m t o shipment status forbidden response has a 3xx status code
func (*UpdateMTOShipmentStatusForbidden) IsServerError ¶
func (o *UpdateMTOShipmentStatusForbidden) IsServerError() bool
IsServerError returns true when this update m t o shipment status forbidden response has a 5xx status code
func (*UpdateMTOShipmentStatusForbidden) IsSuccess ¶
func (o *UpdateMTOShipmentStatusForbidden) IsSuccess() bool
IsSuccess returns true when this update m t o shipment status forbidden response has a 2xx status code
func (*UpdateMTOShipmentStatusForbidden) String ¶
func (o *UpdateMTOShipmentStatusForbidden) String() string
type UpdateMTOShipmentStatusInternalServerError ¶
type UpdateMTOShipmentStatusInternalServerError struct {
Payload *supportmessages.Error
}
UpdateMTOShipmentStatusInternalServerError describes a response with status code 500, with default header values.
A server error occurred.
func NewUpdateMTOShipmentStatusInternalServerError ¶
func NewUpdateMTOShipmentStatusInternalServerError() *UpdateMTOShipmentStatusInternalServerError
NewUpdateMTOShipmentStatusInternalServerError creates a UpdateMTOShipmentStatusInternalServerError with default headers values
func (*UpdateMTOShipmentStatusInternalServerError) Code ¶
func (o *UpdateMTOShipmentStatusInternalServerError) Code() int
Code gets the status code for the update m t o shipment status internal server error response
func (*UpdateMTOShipmentStatusInternalServerError) Error ¶
func (o *UpdateMTOShipmentStatusInternalServerError) Error() string
func (*UpdateMTOShipmentStatusInternalServerError) GetPayload ¶
func (o *UpdateMTOShipmentStatusInternalServerError) GetPayload() *supportmessages.Error
func (*UpdateMTOShipmentStatusInternalServerError) IsClientError ¶
func (o *UpdateMTOShipmentStatusInternalServerError) IsClientError() bool
IsClientError returns true when this update m t o shipment status internal server error response has a 4xx status code
func (*UpdateMTOShipmentStatusInternalServerError) IsCode ¶
func (o *UpdateMTOShipmentStatusInternalServerError) IsCode(code int) bool
IsCode returns true when this update m t o shipment status internal server error response a status code equal to that given
func (*UpdateMTOShipmentStatusInternalServerError) IsRedirect ¶
func (o *UpdateMTOShipmentStatusInternalServerError) IsRedirect() bool
IsRedirect returns true when this update m t o shipment status internal server error response has a 3xx status code
func (*UpdateMTOShipmentStatusInternalServerError) IsServerError ¶
func (o *UpdateMTOShipmentStatusInternalServerError) IsServerError() bool
IsServerError returns true when this update m t o shipment status internal server error response has a 5xx status code
func (*UpdateMTOShipmentStatusInternalServerError) IsSuccess ¶
func (o *UpdateMTOShipmentStatusInternalServerError) IsSuccess() bool
IsSuccess returns true when this update m t o shipment status internal server error response has a 2xx status code
func (*UpdateMTOShipmentStatusInternalServerError) String ¶
func (o *UpdateMTOShipmentStatusInternalServerError) String() string
type UpdateMTOShipmentStatusNotFound ¶
type UpdateMTOShipmentStatusNotFound struct {
Payload *supportmessages.ClientError
}
UpdateMTOShipmentStatusNotFound describes a response with status code 404, with default header values.
The requested resource wasn't found.
func NewUpdateMTOShipmentStatusNotFound ¶
func NewUpdateMTOShipmentStatusNotFound() *UpdateMTOShipmentStatusNotFound
NewUpdateMTOShipmentStatusNotFound creates a UpdateMTOShipmentStatusNotFound with default headers values
func (*UpdateMTOShipmentStatusNotFound) Code ¶
func (o *UpdateMTOShipmentStatusNotFound) Code() int
Code gets the status code for the update m t o shipment status not found response
func (*UpdateMTOShipmentStatusNotFound) Error ¶
func (o *UpdateMTOShipmentStatusNotFound) Error() string
func (*UpdateMTOShipmentStatusNotFound) GetPayload ¶
func (o *UpdateMTOShipmentStatusNotFound) GetPayload() *supportmessages.ClientError
func (*UpdateMTOShipmentStatusNotFound) IsClientError ¶
func (o *UpdateMTOShipmentStatusNotFound) IsClientError() bool
IsClientError returns true when this update m t o shipment status not found response has a 4xx status code
func (*UpdateMTOShipmentStatusNotFound) IsCode ¶
func (o *UpdateMTOShipmentStatusNotFound) IsCode(code int) bool
IsCode returns true when this update m t o shipment status not found response a status code equal to that given
func (*UpdateMTOShipmentStatusNotFound) IsRedirect ¶
func (o *UpdateMTOShipmentStatusNotFound) IsRedirect() bool
IsRedirect returns true when this update m t o shipment status not found response has a 3xx status code
func (*UpdateMTOShipmentStatusNotFound) IsServerError ¶
func (o *UpdateMTOShipmentStatusNotFound) IsServerError() bool
IsServerError returns true when this update m t o shipment status not found response has a 5xx status code
func (*UpdateMTOShipmentStatusNotFound) IsSuccess ¶
func (o *UpdateMTOShipmentStatusNotFound) IsSuccess() bool
IsSuccess returns true when this update m t o shipment status not found response has a 2xx status code
func (*UpdateMTOShipmentStatusNotFound) String ¶
func (o *UpdateMTOShipmentStatusNotFound) String() string
type UpdateMTOShipmentStatusOK ¶
type UpdateMTOShipmentStatusOK struct {
Payload *supportmessages.MTOShipment
}
UpdateMTOShipmentStatusOK describes a response with status code 200, with default header values.
Successfully updated the shipment's status.
func NewUpdateMTOShipmentStatusOK ¶
func NewUpdateMTOShipmentStatusOK() *UpdateMTOShipmentStatusOK
NewUpdateMTOShipmentStatusOK creates a UpdateMTOShipmentStatusOK with default headers values
func (*UpdateMTOShipmentStatusOK) Code ¶
func (o *UpdateMTOShipmentStatusOK) Code() int
Code gets the status code for the update m t o shipment status o k response
func (*UpdateMTOShipmentStatusOK) Error ¶
func (o *UpdateMTOShipmentStatusOK) Error() string
func (*UpdateMTOShipmentStatusOK) GetPayload ¶
func (o *UpdateMTOShipmentStatusOK) GetPayload() *supportmessages.MTOShipment
func (*UpdateMTOShipmentStatusOK) IsClientError ¶
func (o *UpdateMTOShipmentStatusOK) IsClientError() bool
IsClientError returns true when this update m t o shipment status o k response has a 4xx status code
func (*UpdateMTOShipmentStatusOK) IsCode ¶
func (o *UpdateMTOShipmentStatusOK) IsCode(code int) bool
IsCode returns true when this update m t o shipment status o k response a status code equal to that given
func (*UpdateMTOShipmentStatusOK) IsRedirect ¶
func (o *UpdateMTOShipmentStatusOK) IsRedirect() bool
IsRedirect returns true when this update m t o shipment status o k response has a 3xx status code
func (*UpdateMTOShipmentStatusOK) IsServerError ¶
func (o *UpdateMTOShipmentStatusOK) IsServerError() bool
IsServerError returns true when this update m t o shipment status o k response has a 5xx status code
func (*UpdateMTOShipmentStatusOK) IsSuccess ¶
func (o *UpdateMTOShipmentStatusOK) IsSuccess() bool
IsSuccess returns true when this update m t o shipment status o k response has a 2xx status code
func (*UpdateMTOShipmentStatusOK) String ¶
func (o *UpdateMTOShipmentStatusOK) String() string
type UpdateMTOShipmentStatusParams ¶
type UpdateMTOShipmentStatusParams struct { /* IfMatch. 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. */ IfMatch string // Body. Body *supportmessages.UpdateMTOShipmentStatus /* MtoShipmentID. UUID of the shipment being updated. Format: uuid */ MtoShipmentID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateMTOShipmentStatusParams contains all the parameters to send to the API endpoint
for the update m t o shipment status operation. Typically these are written to a http.Request.
func NewUpdateMTOShipmentStatusParams ¶
func NewUpdateMTOShipmentStatusParams() *UpdateMTOShipmentStatusParams
NewUpdateMTOShipmentStatusParams creates a new UpdateMTOShipmentStatusParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewUpdateMTOShipmentStatusParamsWithContext ¶
func NewUpdateMTOShipmentStatusParamsWithContext(ctx context.Context) *UpdateMTOShipmentStatusParams
NewUpdateMTOShipmentStatusParamsWithContext creates a new UpdateMTOShipmentStatusParams object with the ability to set a context for a request.
func NewUpdateMTOShipmentStatusParamsWithHTTPClient ¶
func NewUpdateMTOShipmentStatusParamsWithHTTPClient(client *http.Client) *UpdateMTOShipmentStatusParams
NewUpdateMTOShipmentStatusParamsWithHTTPClient creates a new UpdateMTOShipmentStatusParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateMTOShipmentStatusParamsWithTimeout ¶
func NewUpdateMTOShipmentStatusParamsWithTimeout(timeout time.Duration) *UpdateMTOShipmentStatusParams
NewUpdateMTOShipmentStatusParamsWithTimeout creates a new UpdateMTOShipmentStatusParams object with the ability to set a timeout on a request.
func (*UpdateMTOShipmentStatusParams) SetBody ¶
func (o *UpdateMTOShipmentStatusParams) SetBody(body *supportmessages.UpdateMTOShipmentStatus)
SetBody adds the body to the update m t o shipment status params
func (*UpdateMTOShipmentStatusParams) SetContext ¶
func (o *UpdateMTOShipmentStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the update m t o shipment status params
func (*UpdateMTOShipmentStatusParams) SetDefaults ¶
func (o *UpdateMTOShipmentStatusParams) SetDefaults()
SetDefaults hydrates default values in the update m t o shipment status params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateMTOShipmentStatusParams) SetHTTPClient ¶
func (o *UpdateMTOShipmentStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update m t o shipment status params
func (*UpdateMTOShipmentStatusParams) SetIfMatch ¶
func (o *UpdateMTOShipmentStatusParams) SetIfMatch(ifMatch string)
SetIfMatch adds the ifMatch to the update m t o shipment status params
func (*UpdateMTOShipmentStatusParams) SetMtoShipmentID ¶
func (o *UpdateMTOShipmentStatusParams) SetMtoShipmentID(mtoShipmentID strfmt.UUID)
SetMtoShipmentID adds the mtoShipmentId to the update m t o shipment status params
func (*UpdateMTOShipmentStatusParams) SetTimeout ¶
func (o *UpdateMTOShipmentStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update m t o shipment status params
func (*UpdateMTOShipmentStatusParams) WithBody ¶
func (o *UpdateMTOShipmentStatusParams) WithBody(body *supportmessages.UpdateMTOShipmentStatus) *UpdateMTOShipmentStatusParams
WithBody adds the body to the update m t o shipment status params
func (*UpdateMTOShipmentStatusParams) WithContext ¶
func (o *UpdateMTOShipmentStatusParams) WithContext(ctx context.Context) *UpdateMTOShipmentStatusParams
WithContext adds the context to the update m t o shipment status params
func (*UpdateMTOShipmentStatusParams) WithDefaults ¶
func (o *UpdateMTOShipmentStatusParams) WithDefaults() *UpdateMTOShipmentStatusParams
WithDefaults hydrates default values in the update m t o shipment status params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateMTOShipmentStatusParams) WithHTTPClient ¶
func (o *UpdateMTOShipmentStatusParams) WithHTTPClient(client *http.Client) *UpdateMTOShipmentStatusParams
WithHTTPClient adds the HTTPClient to the update m t o shipment status params
func (*UpdateMTOShipmentStatusParams) WithIfMatch ¶
func (o *UpdateMTOShipmentStatusParams) WithIfMatch(ifMatch string) *UpdateMTOShipmentStatusParams
WithIfMatch adds the ifMatch to the update m t o shipment status params
func (*UpdateMTOShipmentStatusParams) WithMtoShipmentID ¶
func (o *UpdateMTOShipmentStatusParams) WithMtoShipmentID(mtoShipmentID strfmt.UUID) *UpdateMTOShipmentStatusParams
WithMtoShipmentID adds the mtoShipmentID to the update m t o shipment status params
func (*UpdateMTOShipmentStatusParams) WithTimeout ¶
func (o *UpdateMTOShipmentStatusParams) WithTimeout(timeout time.Duration) *UpdateMTOShipmentStatusParams
WithTimeout adds the timeout to the update m t o shipment status params
func (*UpdateMTOShipmentStatusParams) WriteToRequest ¶
func (o *UpdateMTOShipmentStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateMTOShipmentStatusPreconditionFailed ¶
type UpdateMTOShipmentStatusPreconditionFailed struct {
Payload *supportmessages.ClientError
}
UpdateMTOShipmentStatusPreconditionFailed describes a response with status code 412, with default header values.
Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
func NewUpdateMTOShipmentStatusPreconditionFailed ¶
func NewUpdateMTOShipmentStatusPreconditionFailed() *UpdateMTOShipmentStatusPreconditionFailed
NewUpdateMTOShipmentStatusPreconditionFailed creates a UpdateMTOShipmentStatusPreconditionFailed with default headers values
func (*UpdateMTOShipmentStatusPreconditionFailed) Code ¶
func (o *UpdateMTOShipmentStatusPreconditionFailed) Code() int
Code gets the status code for the update m t o shipment status precondition failed response
func (*UpdateMTOShipmentStatusPreconditionFailed) Error ¶
func (o *UpdateMTOShipmentStatusPreconditionFailed) Error() string
func (*UpdateMTOShipmentStatusPreconditionFailed) GetPayload ¶
func (o *UpdateMTOShipmentStatusPreconditionFailed) GetPayload() *supportmessages.ClientError
func (*UpdateMTOShipmentStatusPreconditionFailed) IsClientError ¶
func (o *UpdateMTOShipmentStatusPreconditionFailed) IsClientError() bool
IsClientError returns true when this update m t o shipment status precondition failed response has a 4xx status code
func (*UpdateMTOShipmentStatusPreconditionFailed) IsCode ¶
func (o *UpdateMTOShipmentStatusPreconditionFailed) IsCode(code int) bool
IsCode returns true when this update m t o shipment status precondition failed response a status code equal to that given
func (*UpdateMTOShipmentStatusPreconditionFailed) IsRedirect ¶
func (o *UpdateMTOShipmentStatusPreconditionFailed) IsRedirect() bool
IsRedirect returns true when this update m t o shipment status precondition failed response has a 3xx status code
func (*UpdateMTOShipmentStatusPreconditionFailed) IsServerError ¶
func (o *UpdateMTOShipmentStatusPreconditionFailed) IsServerError() bool
IsServerError returns true when this update m t o shipment status precondition failed response has a 5xx status code
func (*UpdateMTOShipmentStatusPreconditionFailed) IsSuccess ¶
func (o *UpdateMTOShipmentStatusPreconditionFailed) IsSuccess() bool
IsSuccess returns true when this update m t o shipment status precondition failed response has a 2xx status code
func (*UpdateMTOShipmentStatusPreconditionFailed) String ¶
func (o *UpdateMTOShipmentStatusPreconditionFailed) String() string
type UpdateMTOShipmentStatusReader ¶
type UpdateMTOShipmentStatusReader struct {
// contains filtered or unexported fields
}
UpdateMTOShipmentStatusReader is a Reader for the UpdateMTOShipmentStatus structure.
func (*UpdateMTOShipmentStatusReader) ReadResponse ¶
func (o *UpdateMTOShipmentStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateMTOShipmentStatusUnauthorized ¶
type UpdateMTOShipmentStatusUnauthorized struct {
}UpdateMTOShipmentStatusUnauthorized describes a response with status code 401, with default header values.
The request was denied.
func NewUpdateMTOShipmentStatusUnauthorized ¶
func NewUpdateMTOShipmentStatusUnauthorized() *UpdateMTOShipmentStatusUnauthorized
NewUpdateMTOShipmentStatusUnauthorized creates a UpdateMTOShipmentStatusUnauthorized with default headers values
func (*UpdateMTOShipmentStatusUnauthorized) Code ¶
func (o *UpdateMTOShipmentStatusUnauthorized) Code() int
Code gets the status code for the update m t o shipment status unauthorized response
func (*UpdateMTOShipmentStatusUnauthorized) Error ¶
func (o *UpdateMTOShipmentStatusUnauthorized) Error() string
func (*UpdateMTOShipmentStatusUnauthorized) GetPayload ¶
func (o *UpdateMTOShipmentStatusUnauthorized) GetPayload() *supportmessages.ClientError
func (*UpdateMTOShipmentStatusUnauthorized) IsClientError ¶
func (o *UpdateMTOShipmentStatusUnauthorized) IsClientError() bool
IsClientError returns true when this update m t o shipment status unauthorized response has a 4xx status code
func (*UpdateMTOShipmentStatusUnauthorized) IsCode ¶
func (o *UpdateMTOShipmentStatusUnauthorized) IsCode(code int) bool
IsCode returns true when this update m t o shipment status unauthorized response a status code equal to that given
func (*UpdateMTOShipmentStatusUnauthorized) IsRedirect ¶
func (o *UpdateMTOShipmentStatusUnauthorized) IsRedirect() bool
IsRedirect returns true when this update m t o shipment status unauthorized response has a 3xx status code
func (*UpdateMTOShipmentStatusUnauthorized) IsServerError ¶
func (o *UpdateMTOShipmentStatusUnauthorized) IsServerError() bool
IsServerError returns true when this update m t o shipment status unauthorized response has a 5xx status code
func (*UpdateMTOShipmentStatusUnauthorized) IsSuccess ¶
func (o *UpdateMTOShipmentStatusUnauthorized) IsSuccess() bool
IsSuccess returns true when this update m t o shipment status unauthorized response has a 2xx status code
func (*UpdateMTOShipmentStatusUnauthorized) String ¶
func (o *UpdateMTOShipmentStatusUnauthorized) String() string
type UpdateMTOShipmentStatusUnprocessableEntity ¶
type UpdateMTOShipmentStatusUnprocessableEntity struct {
Payload *supportmessages.ValidationError
}
UpdateMTOShipmentStatusUnprocessableEntity describes a response with status code 422, with default header values.
The payload was unprocessable.
func NewUpdateMTOShipmentStatusUnprocessableEntity ¶
func NewUpdateMTOShipmentStatusUnprocessableEntity() *UpdateMTOShipmentStatusUnprocessableEntity
NewUpdateMTOShipmentStatusUnprocessableEntity creates a UpdateMTOShipmentStatusUnprocessableEntity with default headers values
func (*UpdateMTOShipmentStatusUnprocessableEntity) Code ¶
func (o *UpdateMTOShipmentStatusUnprocessableEntity) Code() int
Code gets the status code for the update m t o shipment status unprocessable entity response
func (*UpdateMTOShipmentStatusUnprocessableEntity) Error ¶
func (o *UpdateMTOShipmentStatusUnprocessableEntity) Error() string
func (*UpdateMTOShipmentStatusUnprocessableEntity) GetPayload ¶
func (o *UpdateMTOShipmentStatusUnprocessableEntity) GetPayload() *supportmessages.ValidationError
func (*UpdateMTOShipmentStatusUnprocessableEntity) IsClientError ¶
func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsClientError() bool
IsClientError returns true when this update m t o shipment status unprocessable entity response has a 4xx status code
func (*UpdateMTOShipmentStatusUnprocessableEntity) IsCode ¶
func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this update m t o shipment status unprocessable entity response a status code equal to that given
func (*UpdateMTOShipmentStatusUnprocessableEntity) IsRedirect ¶
func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this update m t o shipment status unprocessable entity response has a 3xx status code
func (*UpdateMTOShipmentStatusUnprocessableEntity) IsServerError ¶
func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsServerError() bool
IsServerError returns true when this update m t o shipment status unprocessable entity response has a 5xx status code
func (*UpdateMTOShipmentStatusUnprocessableEntity) IsSuccess ¶
func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this update m t o shipment status unprocessable entity response has a 2xx status code
func (*UpdateMTOShipmentStatusUnprocessableEntity) String ¶
func (o *UpdateMTOShipmentStatusUnprocessableEntity) String() string