mto_shipment

package
v0.0.0-...-c407d37 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

Code gets the status code for the update m t o shipment status bad request response

func (*UpdateMTOShipmentStatusBadRequest) Error

func (*UpdateMTOShipmentStatusBadRequest) GetPayload

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

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

Code gets the status code for the update m t o shipment status conflict response

func (*UpdateMTOShipmentStatusConflict) Error

func (*UpdateMTOShipmentStatusConflict) GetPayload

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

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

Code gets the status code for the update m t o shipment status forbidden response

func (*UpdateMTOShipmentStatusForbidden) Error

func (*UpdateMTOShipmentStatusForbidden) GetPayload

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

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

Code gets the status code for the update m t o shipment status internal server error response

func (*UpdateMTOShipmentStatusInternalServerError) Error

func (*UpdateMTOShipmentStatusInternalServerError) GetPayload

func (*UpdateMTOShipmentStatusInternalServerError) IsClientError

IsClientError returns true when this update m t o shipment status internal server error response has a 4xx status code

func (*UpdateMTOShipmentStatusInternalServerError) IsCode

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

IsRedirect returns true when this update m t o shipment status internal server error response has a 3xx status code

func (*UpdateMTOShipmentStatusInternalServerError) IsServerError

IsServerError returns true when this update m t o shipment status internal server error response has a 5xx status code

func (*UpdateMTOShipmentStatusInternalServerError) IsSuccess

IsSuccess returns true when this update m t o shipment status internal server error response has a 2xx status code

func (*UpdateMTOShipmentStatusInternalServerError) 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

Code gets the status code for the update m t o shipment status not found response

func (*UpdateMTOShipmentStatusNotFound) Error

func (*UpdateMTOShipmentStatusNotFound) GetPayload

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

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 (*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

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

WithBody adds the body to the update m t o shipment status params

func (*UpdateMTOShipmentStatusParams) WithContext

WithContext adds the context to the update m t o shipment status params

func (*UpdateMTOShipmentStatusParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the update m t o shipment status params

func (*UpdateMTOShipmentStatusParams) WithIfMatch

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

WithTimeout adds the timeout to the update m t o shipment status params

func (*UpdateMTOShipmentStatusParams) WriteToRequest

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

Code gets the status code for the update m t o shipment status precondition failed response

func (*UpdateMTOShipmentStatusPreconditionFailed) Error

func (*UpdateMTOShipmentStatusPreconditionFailed) GetPayload

func (*UpdateMTOShipmentStatusPreconditionFailed) IsClientError

IsClientError returns true when this update m t o shipment status precondition failed response has a 4xx status code

func (*UpdateMTOShipmentStatusPreconditionFailed) IsCode

IsCode returns true when this update m t o shipment status precondition failed response a status code equal to that given

func (*UpdateMTOShipmentStatusPreconditionFailed) IsRedirect

IsRedirect returns true when this update m t o shipment status precondition failed response has a 3xx status code

func (*UpdateMTOShipmentStatusPreconditionFailed) IsServerError

IsServerError returns true when this update m t o shipment status precondition failed response has a 5xx status code

func (*UpdateMTOShipmentStatusPreconditionFailed) IsSuccess

IsSuccess returns true when this update m t o shipment status precondition failed response has a 2xx status code

func (*UpdateMTOShipmentStatusPreconditionFailed) 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 {
	Payload *supportmessages.ClientError
}

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

Code gets the status code for the update m t o shipment status unauthorized response

func (*UpdateMTOShipmentStatusUnauthorized) Error

func (*UpdateMTOShipmentStatusUnauthorized) GetPayload

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

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

IsSuccess returns true when this update m t o shipment status unauthorized response has a 2xx status code

func (*UpdateMTOShipmentStatusUnauthorized) 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

Code gets the status code for the update m t o shipment status unprocessable entity response

func (*UpdateMTOShipmentStatusUnprocessableEntity) Error

func (*UpdateMTOShipmentStatusUnprocessableEntity) GetPayload

func (*UpdateMTOShipmentStatusUnprocessableEntity) IsClientError

IsClientError returns true when this update m t o shipment status unprocessable entity response has a 4xx status code

func (*UpdateMTOShipmentStatusUnprocessableEntity) IsCode

IsCode returns true when this update m t o shipment status unprocessable entity response a status code equal to that given

func (*UpdateMTOShipmentStatusUnprocessableEntity) IsRedirect

IsRedirect returns true when this update m t o shipment status unprocessable entity response has a 3xx status code

func (*UpdateMTOShipmentStatusUnprocessableEntity) IsServerError

IsServerError returns true when this update m t o shipment status unprocessable entity response has a 5xx status code

func (*UpdateMTOShipmentStatusUnprocessableEntity) IsSuccess

IsSuccess returns true when this update m t o shipment status unprocessable entity response has a 2xx status code

func (*UpdateMTOShipmentStatusUnprocessableEntity) String

Jump to

Keyboard shortcuts

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