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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CreateMTOShipmentBadRequestCode int = 400

CreateMTOShipmentBadRequestCode is the HTTP code returned for type CreateMTOShipmentBadRequest

View Source
const CreateMTOShipmentInternalServerErrorCode int = 500

CreateMTOShipmentInternalServerErrorCode is the HTTP code returned for type CreateMTOShipmentInternalServerError

View Source
const CreateMTOShipmentNotFoundCode int = 404

CreateMTOShipmentNotFoundCode is the HTTP code returned for type CreateMTOShipmentNotFound

View Source
const CreateMTOShipmentOKCode int = 200

CreateMTOShipmentOKCode is the HTTP code returned for type CreateMTOShipmentOK

View Source
const CreateMTOShipmentUnprocessableEntityCode int = 422

CreateMTOShipmentUnprocessableEntityCode is the HTTP code returned for type CreateMTOShipmentUnprocessableEntity

View Source
const GetShipmentBadRequestCode int = 400

GetShipmentBadRequestCode is the HTTP code returned for type GetShipmentBadRequest

View Source
const GetShipmentForbiddenCode int = 403

GetShipmentForbiddenCode is the HTTP code returned for type GetShipmentForbidden

View Source
const GetShipmentInternalServerErrorCode int = 500

GetShipmentInternalServerErrorCode is the HTTP code returned for type GetShipmentInternalServerError

View Source
const GetShipmentNotFoundCode int = 404

GetShipmentNotFoundCode is the HTTP code returned for type GetShipmentNotFound

View Source
const GetShipmentOKCode int = 200

GetShipmentOKCode is the HTTP code returned for type GetShipmentOK

View Source
const GetShipmentUnprocessableEntityCode int = 422

GetShipmentUnprocessableEntityCode is the HTTP code returned for type GetShipmentUnprocessableEntity

View Source
const ListMTOShipmentsForbiddenCode int = 403

ListMTOShipmentsForbiddenCode is the HTTP code returned for type ListMTOShipmentsForbidden

View Source
const ListMTOShipmentsInternalServerErrorCode int = 500

ListMTOShipmentsInternalServerErrorCode is the HTTP code returned for type ListMTOShipmentsInternalServerError

View Source
const ListMTOShipmentsNotFoundCode int = 404

ListMTOShipmentsNotFoundCode is the HTTP code returned for type ListMTOShipmentsNotFound

View Source
const ListMTOShipmentsOKCode int = 200

ListMTOShipmentsOKCode is the HTTP code returned for type ListMTOShipmentsOK

View Source
const ListMTOShipmentsUnprocessableEntityCode int = 422

ListMTOShipmentsUnprocessableEntityCode is the HTTP code returned for type ListMTOShipmentsUnprocessableEntity

View Source
const UpdateMTOShipmentBadRequestCode int = 400

UpdateMTOShipmentBadRequestCode is the HTTP code returned for type UpdateMTOShipmentBadRequest

View Source
const UpdateMTOShipmentForbiddenCode int = 403

UpdateMTOShipmentForbiddenCode is the HTTP code returned for type UpdateMTOShipmentForbidden

View Source
const UpdateMTOShipmentInternalServerErrorCode int = 500

UpdateMTOShipmentInternalServerErrorCode is the HTTP code returned for type UpdateMTOShipmentInternalServerError

View Source
const UpdateMTOShipmentNotFoundCode int = 404

UpdateMTOShipmentNotFoundCode is the HTTP code returned for type UpdateMTOShipmentNotFound

View Source
const UpdateMTOShipmentOKCode int = 200

UpdateMTOShipmentOKCode is the HTTP code returned for type UpdateMTOShipmentOK

View Source
const UpdateMTOShipmentPreconditionFailedCode int = 412

UpdateMTOShipmentPreconditionFailedCode is the HTTP code returned for type UpdateMTOShipmentPreconditionFailed

View Source
const UpdateMTOShipmentUnauthorizedCode int = 401

UpdateMTOShipmentUnauthorizedCode is the HTTP code returned for type UpdateMTOShipmentUnauthorized

View Source
const UpdateMTOShipmentUnprocessableEntityCode int = 422

UpdateMTOShipmentUnprocessableEntityCode is the HTTP code returned for type UpdateMTOShipmentUnprocessableEntity

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateMTOShipment

type CreateMTOShipment struct {
	Context *middleware.Context
	Handler CreateMTOShipmentHandler
}
CreateMTOShipment swagger:route POST /mto-shipments mtoShipment createMTOShipment

createMTOShipment

Creates a MTO shipment for the specified Move Task Order. Required fields include: * Shipment Type * Customer requested pick-up date * Pick-up Address * Delivery Address * Releasing / Receiving agents Optional fields include: * Delivery Address Type * Customer Remarks * Releasing / Receiving agents * An array of optional accessorial service item codes

func NewCreateMTOShipment

func NewCreateMTOShipment(ctx *middleware.Context, handler CreateMTOShipmentHandler) *CreateMTOShipment

NewCreateMTOShipment creates a new http.Handler for the create m t o shipment operation

func (*CreateMTOShipment) ServeHTTP

func (o *CreateMTOShipment) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateMTOShipmentBadRequest

type CreateMTOShipmentBadRequest struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

CreateMTOShipmentBadRequest The request payload is invalid

swagger:response createMTOShipmentBadRequest

func NewCreateMTOShipmentBadRequest

func NewCreateMTOShipmentBadRequest() *CreateMTOShipmentBadRequest

NewCreateMTOShipmentBadRequest creates CreateMTOShipmentBadRequest with default headers values

func (*CreateMTOShipmentBadRequest) SetPayload

func (o *CreateMTOShipmentBadRequest) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the create m t o shipment bad request response

func (*CreateMTOShipmentBadRequest) WithPayload

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

Handle executing the request and returning a response

type CreateMTOShipmentInternalServerError

type CreateMTOShipmentInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

CreateMTOShipmentInternalServerError A server error occurred

swagger:response createMTOShipmentInternalServerError

func NewCreateMTOShipmentInternalServerError

func NewCreateMTOShipmentInternalServerError() *CreateMTOShipmentInternalServerError

NewCreateMTOShipmentInternalServerError creates CreateMTOShipmentInternalServerError with default headers values

func (*CreateMTOShipmentInternalServerError) SetPayload

func (o *CreateMTOShipmentInternalServerError) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the create m t o shipment internal server error response

func (*CreateMTOShipmentInternalServerError) WithPayload

WithPayload adds the payload to the create m t o shipment internal server error response

func (*CreateMTOShipmentInternalServerError) WriteResponse

WriteResponse to the client

type CreateMTOShipmentNotFound

type CreateMTOShipmentNotFound struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

CreateMTOShipmentNotFound The requested resource wasn't found

swagger:response createMTOShipmentNotFound

func NewCreateMTOShipmentNotFound

func NewCreateMTOShipmentNotFound() *CreateMTOShipmentNotFound

NewCreateMTOShipmentNotFound creates CreateMTOShipmentNotFound with default headers values

func (*CreateMTOShipmentNotFound) SetPayload

func (o *CreateMTOShipmentNotFound) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the create m t o shipment not found response

func (*CreateMTOShipmentNotFound) WithPayload

WithPayload adds the payload to the create m t o shipment not found response

func (*CreateMTOShipmentNotFound) WriteResponse

func (o *CreateMTOShipmentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateMTOShipmentOK

type CreateMTOShipmentOK struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.MTOShipment `json:"body,omitempty"`
}

CreateMTOShipmentOK Successfully created a MTO shipment.

swagger:response createMTOShipmentOK

func NewCreateMTOShipmentOK

func NewCreateMTOShipmentOK() *CreateMTOShipmentOK

NewCreateMTOShipmentOK creates CreateMTOShipmentOK with default headers values

func (*CreateMTOShipmentOK) SetPayload

func (o *CreateMTOShipmentOK) SetPayload(payload *ghcmessages.MTOShipment)

SetPayload sets the payload to the create m t o shipment o k response

func (*CreateMTOShipmentOK) WithPayload

WithPayload adds the payload to the create m t o shipment o k response

func (*CreateMTOShipmentOK) WriteResponse

func (o *CreateMTOShipmentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateMTOShipmentParams

type CreateMTOShipmentParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: body
	*/
	Body *ghcmessages.CreateMTOShipment
}

CreateMTOShipmentParams contains all the bound params for the create m t o shipment operation typically these are obtained from a http.Request

swagger:parameters createMTOShipment

func NewCreateMTOShipmentParams

func NewCreateMTOShipmentParams() CreateMTOShipmentParams

NewCreateMTOShipmentParams creates a new CreateMTOShipmentParams object

There are no default values defined in the spec.

func (*CreateMTOShipmentParams) BindRequest

func (o *CreateMTOShipmentParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateMTOShipmentParams() beforehand.

type CreateMTOShipmentURL

type CreateMTOShipmentURL struct {
	// contains filtered or unexported fields
}

CreateMTOShipmentURL generates an URL for the create m t o shipment operation

func (*CreateMTOShipmentURL) Build

func (o *CreateMTOShipmentURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateMTOShipmentURL) BuildFull

func (o *CreateMTOShipmentURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateMTOShipmentURL) Must

func (o *CreateMTOShipmentURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateMTOShipmentURL) SetBasePath

func (o *CreateMTOShipmentURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreateMTOShipmentURL) String

func (o *CreateMTOShipmentURL) String() string

String returns the string representation of the path with query string

func (*CreateMTOShipmentURL) StringFull

func (o *CreateMTOShipmentURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateMTOShipmentURL) WithBasePath

func (o *CreateMTOShipmentURL) WithBasePath(bp string) *CreateMTOShipmentURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CreateMTOShipmentUnprocessableEntity

type CreateMTOShipmentUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.ValidationError `json:"body,omitempty"`
}

CreateMTOShipmentUnprocessableEntity The payload was unprocessable.

swagger:response createMTOShipmentUnprocessableEntity

func NewCreateMTOShipmentUnprocessableEntity

func NewCreateMTOShipmentUnprocessableEntity() *CreateMTOShipmentUnprocessableEntity

NewCreateMTOShipmentUnprocessableEntity creates CreateMTOShipmentUnprocessableEntity with default headers values

func (*CreateMTOShipmentUnprocessableEntity) SetPayload

SetPayload sets the payload to the create m t o shipment unprocessable entity response

func (*CreateMTOShipmentUnprocessableEntity) WithPayload

WithPayload adds the payload to the create m t o shipment unprocessable entity response

func (*CreateMTOShipmentUnprocessableEntity) WriteResponse

WriteResponse to the client

type GetShipment

type GetShipment struct {
	Context *middleware.Context
	Handler GetShipmentHandler
}
GetShipment swagger:route GET /shipments/{shipmentID} mtoShipment getShipment

fetches a shipment by ID

fetches a shipment by ID

func NewGetShipment

func NewGetShipment(ctx *middleware.Context, handler GetShipmentHandler) *GetShipment

NewGetShipment creates a new http.Handler for the get shipment operation

func (*GetShipment) ServeHTTP

func (o *GetShipment) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetShipmentBadRequest

type GetShipmentBadRequest struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

GetShipmentBadRequest The request payload is invalid

swagger:response getShipmentBadRequest

func NewGetShipmentBadRequest

func NewGetShipmentBadRequest() *GetShipmentBadRequest

NewGetShipmentBadRequest creates GetShipmentBadRequest with default headers values

func (*GetShipmentBadRequest) SetPayload

func (o *GetShipmentBadRequest) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the get shipment bad request response

func (*GetShipmentBadRequest) WithPayload

WithPayload adds the payload to the get shipment bad request response

func (*GetShipmentBadRequest) WriteResponse

func (o *GetShipmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetShipmentForbidden

type GetShipmentForbidden struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

GetShipmentForbidden The request was denied

swagger:response getShipmentForbidden

func NewGetShipmentForbidden

func NewGetShipmentForbidden() *GetShipmentForbidden

NewGetShipmentForbidden creates GetShipmentForbidden with default headers values

func (*GetShipmentForbidden) SetPayload

func (o *GetShipmentForbidden) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the get shipment forbidden response

func (*GetShipmentForbidden) WithPayload

func (o *GetShipmentForbidden) WithPayload(payload *ghcmessages.Error) *GetShipmentForbidden

WithPayload adds the payload to the get shipment forbidden response

func (*GetShipmentForbidden) WriteResponse

func (o *GetShipmentForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetShipmentHandler

type GetShipmentHandler interface {
	Handle(GetShipmentParams) middleware.Responder
}

GetShipmentHandler interface for that can handle valid get shipment params

type GetShipmentHandlerFunc

type GetShipmentHandlerFunc func(GetShipmentParams) middleware.Responder

GetShipmentHandlerFunc turns a function with the right signature into a get shipment handler

func (GetShipmentHandlerFunc) Handle

Handle executing the request and returning a response

type GetShipmentInternalServerError

type GetShipmentInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

GetShipmentInternalServerError A server error occurred

swagger:response getShipmentInternalServerError

func NewGetShipmentInternalServerError

func NewGetShipmentInternalServerError() *GetShipmentInternalServerError

NewGetShipmentInternalServerError creates GetShipmentInternalServerError with default headers values

func (*GetShipmentInternalServerError) SetPayload

func (o *GetShipmentInternalServerError) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the get shipment internal server error response

func (*GetShipmentInternalServerError) WithPayload

WithPayload adds the payload to the get shipment internal server error response

func (*GetShipmentInternalServerError) WriteResponse

func (o *GetShipmentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetShipmentNotFound

type GetShipmentNotFound struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

GetShipmentNotFound The requested resource wasn't found

swagger:response getShipmentNotFound

func NewGetShipmentNotFound

func NewGetShipmentNotFound() *GetShipmentNotFound

NewGetShipmentNotFound creates GetShipmentNotFound with default headers values

func (*GetShipmentNotFound) SetPayload

func (o *GetShipmentNotFound) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the get shipment not found response

func (*GetShipmentNotFound) WithPayload

func (o *GetShipmentNotFound) WithPayload(payload *ghcmessages.Error) *GetShipmentNotFound

WithPayload adds the payload to the get shipment not found response

func (*GetShipmentNotFound) WriteResponse

func (o *GetShipmentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetShipmentOK

type GetShipmentOK struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.MTOShipment `json:"body,omitempty"`
}

GetShipmentOK Successfully fetched the shipment

swagger:response getShipmentOK

func NewGetShipmentOK

func NewGetShipmentOK() *GetShipmentOK

NewGetShipmentOK creates GetShipmentOK with default headers values

func (*GetShipmentOK) SetPayload

func (o *GetShipmentOK) SetPayload(payload *ghcmessages.MTOShipment)

SetPayload sets the payload to the get shipment o k response

func (*GetShipmentOK) WithPayload

func (o *GetShipmentOK) WithPayload(payload *ghcmessages.MTOShipment) *GetShipmentOK

WithPayload adds the payload to the get shipment o k response

func (*GetShipmentOK) WriteResponse

func (o *GetShipmentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetShipmentParams

type GetShipmentParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID of the shipment to be fetched
	  Required: true
	  In: path
	*/
	ShipmentID strfmt.UUID
}

GetShipmentParams contains all the bound params for the get shipment operation typically these are obtained from a http.Request

swagger:parameters getShipment

func NewGetShipmentParams

func NewGetShipmentParams() GetShipmentParams

NewGetShipmentParams creates a new GetShipmentParams object

There are no default values defined in the spec.

func (*GetShipmentParams) BindRequest

func (o *GetShipmentParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetShipmentParams() beforehand.

type GetShipmentURL

type GetShipmentURL struct {
	ShipmentID strfmt.UUID
	// contains filtered or unexported fields
}

GetShipmentURL generates an URL for the get shipment operation

func (*GetShipmentURL) Build

func (o *GetShipmentURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetShipmentURL) BuildFull

func (o *GetShipmentURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetShipmentURL) Must

func (o *GetShipmentURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetShipmentURL) SetBasePath

func (o *GetShipmentURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetShipmentURL) String

func (o *GetShipmentURL) String() string

String returns the string representation of the path with query string

func (*GetShipmentURL) StringFull

func (o *GetShipmentURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetShipmentURL) WithBasePath

func (o *GetShipmentURL) WithBasePath(bp string) *GetShipmentURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetShipmentUnprocessableEntity

type GetShipmentUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.ValidationError `json:"body,omitempty"`
}

GetShipmentUnprocessableEntity The payload was unprocessable.

swagger:response getShipmentUnprocessableEntity

func NewGetShipmentUnprocessableEntity

func NewGetShipmentUnprocessableEntity() *GetShipmentUnprocessableEntity

NewGetShipmentUnprocessableEntity creates GetShipmentUnprocessableEntity with default headers values

func (*GetShipmentUnprocessableEntity) SetPayload

SetPayload sets the payload to the get shipment unprocessable entity response

func (*GetShipmentUnprocessableEntity) WithPayload

WithPayload adds the payload to the get shipment unprocessable entity response

func (*GetShipmentUnprocessableEntity) WriteResponse

func (o *GetShipmentUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMTOShipments

type ListMTOShipments struct {
	Context *middleware.Context
	Handler ListMTOShipmentsHandler
}
ListMTOShipments swagger:route GET /move_task_orders/{moveTaskOrderID}/mto_shipments mtoShipment listMTOShipments

Gets all shipments for a move task order

Gets all shipments for a move task order

func NewListMTOShipments

func NewListMTOShipments(ctx *middleware.Context, handler ListMTOShipmentsHandler) *ListMTOShipments

NewListMTOShipments creates a new http.Handler for the list m t o shipments operation

func (*ListMTOShipments) ServeHTTP

func (o *ListMTOShipments) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListMTOShipmentsForbidden

type ListMTOShipmentsForbidden struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

ListMTOShipmentsForbidden The request was denied

swagger:response listMTOShipmentsForbidden

func NewListMTOShipmentsForbidden

func NewListMTOShipmentsForbidden() *ListMTOShipmentsForbidden

NewListMTOShipmentsForbidden creates ListMTOShipmentsForbidden with default headers values

func (*ListMTOShipmentsForbidden) SetPayload

func (o *ListMTOShipmentsForbidden) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the list m t o shipments forbidden response

func (*ListMTOShipmentsForbidden) WithPayload

WithPayload adds the payload to the list m t o shipments forbidden response

func (*ListMTOShipmentsForbidden) WriteResponse

func (o *ListMTOShipmentsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMTOShipmentsHandler

type ListMTOShipmentsHandler interface {
	Handle(ListMTOShipmentsParams) middleware.Responder
}

ListMTOShipmentsHandler interface for that can handle valid list m t o shipments params

type ListMTOShipmentsHandlerFunc

type ListMTOShipmentsHandlerFunc func(ListMTOShipmentsParams) middleware.Responder

ListMTOShipmentsHandlerFunc turns a function with the right signature into a list m t o shipments handler

func (ListMTOShipmentsHandlerFunc) Handle

Handle executing the request and returning a response

type ListMTOShipmentsInternalServerError

type ListMTOShipmentsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

ListMTOShipmentsInternalServerError A server error occurred

swagger:response listMTOShipmentsInternalServerError

func NewListMTOShipmentsInternalServerError

func NewListMTOShipmentsInternalServerError() *ListMTOShipmentsInternalServerError

NewListMTOShipmentsInternalServerError creates ListMTOShipmentsInternalServerError with default headers values

func (*ListMTOShipmentsInternalServerError) SetPayload

func (o *ListMTOShipmentsInternalServerError) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the list m t o shipments internal server error response

func (*ListMTOShipmentsInternalServerError) WithPayload

WithPayload adds the payload to the list m t o shipments internal server error response

func (*ListMTOShipmentsInternalServerError) WriteResponse

WriteResponse to the client

type ListMTOShipmentsNotFound

type ListMTOShipmentsNotFound struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

ListMTOShipmentsNotFound The requested resource wasn't found

swagger:response listMTOShipmentsNotFound

func NewListMTOShipmentsNotFound

func NewListMTOShipmentsNotFound() *ListMTOShipmentsNotFound

NewListMTOShipmentsNotFound creates ListMTOShipmentsNotFound with default headers values

func (*ListMTOShipmentsNotFound) SetPayload

func (o *ListMTOShipmentsNotFound) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the list m t o shipments not found response

func (*ListMTOShipmentsNotFound) WithPayload

WithPayload adds the payload to the list m t o shipments not found response

func (*ListMTOShipmentsNotFound) WriteResponse

func (o *ListMTOShipmentsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMTOShipmentsOK

type ListMTOShipmentsOK struct {

	/*
	  In: Body
	*/
	Payload ghcmessages.MTOShipments `json:"body,omitempty"`
}

ListMTOShipmentsOK Successfully retrieved all mto shipments for a move task order

swagger:response listMTOShipmentsOK

func NewListMTOShipmentsOK

func NewListMTOShipmentsOK() *ListMTOShipmentsOK

NewListMTOShipmentsOK creates ListMTOShipmentsOK with default headers values

func (*ListMTOShipmentsOK) SetPayload

func (o *ListMTOShipmentsOK) SetPayload(payload ghcmessages.MTOShipments)

SetPayload sets the payload to the list m t o shipments o k response

func (*ListMTOShipmentsOK) WithPayload

WithPayload adds the payload to the list m t o shipments o k response

func (*ListMTOShipmentsOK) WriteResponse

func (o *ListMTOShipmentsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListMTOShipmentsParams

type ListMTOShipmentsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID of move task order for mto shipment to use
	  Required: true
	  In: path
	*/
	MoveTaskOrderID strfmt.UUID
}

ListMTOShipmentsParams contains all the bound params for the list m t o shipments operation typically these are obtained from a http.Request

swagger:parameters listMTOShipments

func NewListMTOShipmentsParams

func NewListMTOShipmentsParams() ListMTOShipmentsParams

NewListMTOShipmentsParams creates a new ListMTOShipmentsParams object

There are no default values defined in the spec.

func (*ListMTOShipmentsParams) BindRequest

func (o *ListMTOShipmentsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListMTOShipmentsParams() beforehand.

type ListMTOShipmentsURL

type ListMTOShipmentsURL struct {
	MoveTaskOrderID strfmt.UUID
	// contains filtered or unexported fields
}

ListMTOShipmentsURL generates an URL for the list m t o shipments operation

func (*ListMTOShipmentsURL) Build

func (o *ListMTOShipmentsURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListMTOShipmentsURL) BuildFull

func (o *ListMTOShipmentsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListMTOShipmentsURL) Must

func (o *ListMTOShipmentsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListMTOShipmentsURL) SetBasePath

func (o *ListMTOShipmentsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListMTOShipmentsURL) String

func (o *ListMTOShipmentsURL) String() string

String returns the string representation of the path with query string

func (*ListMTOShipmentsURL) StringFull

func (o *ListMTOShipmentsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListMTOShipmentsURL) WithBasePath

func (o *ListMTOShipmentsURL) WithBasePath(bp string) *ListMTOShipmentsURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListMTOShipmentsUnprocessableEntity

type ListMTOShipmentsUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.ValidationError `json:"body,omitempty"`
}

ListMTOShipmentsUnprocessableEntity The payload was unprocessable.

swagger:response listMTOShipmentsUnprocessableEntity

func NewListMTOShipmentsUnprocessableEntity

func NewListMTOShipmentsUnprocessableEntity() *ListMTOShipmentsUnprocessableEntity

NewListMTOShipmentsUnprocessableEntity creates ListMTOShipmentsUnprocessableEntity with default headers values

func (*ListMTOShipmentsUnprocessableEntity) SetPayload

SetPayload sets the payload to the list m t o shipments unprocessable entity response

func (*ListMTOShipmentsUnprocessableEntity) WithPayload

WithPayload adds the payload to the list m t o shipments unprocessable entity response

func (*ListMTOShipmentsUnprocessableEntity) WriteResponse

WriteResponse to the client

type UpdateMTOShipment

type UpdateMTOShipment struct {
	Context *middleware.Context
	Handler UpdateMTOShipmentHandler
}
UpdateMTOShipment swagger:route PATCH /move_task_orders/{moveTaskOrderID}/mto_shipments/{shipmentID} mtoShipment updateMTOShipment

updateMTOShipment

Updates a specified MTO shipment. Required fields include: * MTO Shipment ID required in path * If-Match required in headers * No fields required in body Optional fields include: * New shipment status type * Shipment Type * Customer requested pick-up date * Pick-up Address * Delivery Address * Secondary Pick-up Address * SecondaryDelivery Address * Delivery Address Type * Customer Remarks * Counselor Remarks * Releasing / Receiving agents * Actual Pro Gear Weight * Actual Spouse Pro Gear Weight

func NewUpdateMTOShipment

func NewUpdateMTOShipment(ctx *middleware.Context, handler UpdateMTOShipmentHandler) *UpdateMTOShipment

NewUpdateMTOShipment creates a new http.Handler for the update m t o shipment operation

func (*UpdateMTOShipment) ServeHTTP

func (o *UpdateMTOShipment) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdateMTOShipmentBadRequest

type UpdateMTOShipmentBadRequest struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

UpdateMTOShipmentBadRequest The request payload is invalid

swagger:response updateMTOShipmentBadRequest

func NewUpdateMTOShipmentBadRequest

func NewUpdateMTOShipmentBadRequest() *UpdateMTOShipmentBadRequest

NewUpdateMTOShipmentBadRequest creates UpdateMTOShipmentBadRequest with default headers values

func (*UpdateMTOShipmentBadRequest) SetPayload

func (o *UpdateMTOShipmentBadRequest) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the update m t o shipment bad request response

func (*UpdateMTOShipmentBadRequest) WithPayload

WithPayload adds the payload to the update m t o shipment bad request response

func (*UpdateMTOShipmentBadRequest) WriteResponse

func (o *UpdateMTOShipmentBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateMTOShipmentForbidden

type UpdateMTOShipmentForbidden struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

UpdateMTOShipmentForbidden The request was denied

swagger:response updateMTOShipmentForbidden

func NewUpdateMTOShipmentForbidden

func NewUpdateMTOShipmentForbidden() *UpdateMTOShipmentForbidden

NewUpdateMTOShipmentForbidden creates UpdateMTOShipmentForbidden with default headers values

func (*UpdateMTOShipmentForbidden) SetPayload

func (o *UpdateMTOShipmentForbidden) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the update m t o shipment forbidden response

func (*UpdateMTOShipmentForbidden) WithPayload

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

Handle executing the request and returning a response

type UpdateMTOShipmentInternalServerError

type UpdateMTOShipmentInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

UpdateMTOShipmentInternalServerError A server error occurred

swagger:response updateMTOShipmentInternalServerError

func NewUpdateMTOShipmentInternalServerError

func NewUpdateMTOShipmentInternalServerError() *UpdateMTOShipmentInternalServerError

NewUpdateMTOShipmentInternalServerError creates UpdateMTOShipmentInternalServerError with default headers values

func (*UpdateMTOShipmentInternalServerError) SetPayload

func (o *UpdateMTOShipmentInternalServerError) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the update m t o shipment internal server error response

func (*UpdateMTOShipmentInternalServerError) WithPayload

WithPayload adds the payload to the update m t o shipment internal server error response

func (*UpdateMTOShipmentInternalServerError) WriteResponse

WriteResponse to the client

type UpdateMTOShipmentNotFound

type UpdateMTOShipmentNotFound struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

UpdateMTOShipmentNotFound The requested resource wasn't found

swagger:response updateMTOShipmentNotFound

func NewUpdateMTOShipmentNotFound

func NewUpdateMTOShipmentNotFound() *UpdateMTOShipmentNotFound

NewUpdateMTOShipmentNotFound creates UpdateMTOShipmentNotFound with default headers values

func (*UpdateMTOShipmentNotFound) SetPayload

func (o *UpdateMTOShipmentNotFound) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the update m t o shipment not found response

func (*UpdateMTOShipmentNotFound) WithPayload

WithPayload adds the payload to the update m t o shipment not found response

func (*UpdateMTOShipmentNotFound) WriteResponse

func (o *UpdateMTOShipmentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateMTOShipmentOK

type UpdateMTOShipmentOK struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.MTOShipment `json:"body,omitempty"`
}

UpdateMTOShipmentOK Successfully updated the specified MTO shipment.

swagger:response updateMTOShipmentOK

func NewUpdateMTOShipmentOK

func NewUpdateMTOShipmentOK() *UpdateMTOShipmentOK

NewUpdateMTOShipmentOK creates UpdateMTOShipmentOK with default headers values

func (*UpdateMTOShipmentOK) SetPayload

func (o *UpdateMTOShipmentOK) SetPayload(payload *ghcmessages.MTOShipment)

SetPayload sets the payload to the update m t o shipment o k response

func (*UpdateMTOShipmentOK) WithPayload

WithPayload adds the payload to the update m t o shipment o k response

func (*UpdateMTOShipmentOK) WriteResponse

func (o *UpdateMTOShipmentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateMTOShipmentParams

type UpdateMTOShipmentParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.

	  Required: true
	  In: header
	*/
	IfMatch string
	/*
	  In: body
	*/
	Body *ghcmessages.UpdateShipment
	/*ID of move task order for mto shipment to use
	  Required: true
	  In: path
	*/
	MoveTaskOrderID strfmt.UUID
	/*UUID of the MTO Shipment to update
	  Required: true
	  In: path
	*/
	ShipmentID strfmt.UUID
}

UpdateMTOShipmentParams contains all the bound params for the update m t o shipment operation typically these are obtained from a http.Request

swagger:parameters updateMTOShipment

func NewUpdateMTOShipmentParams

func NewUpdateMTOShipmentParams() UpdateMTOShipmentParams

NewUpdateMTOShipmentParams creates a new UpdateMTOShipmentParams object

There are no default values defined in the spec.

func (*UpdateMTOShipmentParams) BindRequest

func (o *UpdateMTOShipmentParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewUpdateMTOShipmentParams() beforehand.

type UpdateMTOShipmentPreconditionFailed

type UpdateMTOShipmentPreconditionFailed struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

UpdateMTOShipmentPreconditionFailed Precondition failed

swagger:response updateMTOShipmentPreconditionFailed

func NewUpdateMTOShipmentPreconditionFailed

func NewUpdateMTOShipmentPreconditionFailed() *UpdateMTOShipmentPreconditionFailed

NewUpdateMTOShipmentPreconditionFailed creates UpdateMTOShipmentPreconditionFailed with default headers values

func (*UpdateMTOShipmentPreconditionFailed) SetPayload

func (o *UpdateMTOShipmentPreconditionFailed) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the update m t o shipment precondition failed response

func (*UpdateMTOShipmentPreconditionFailed) WithPayload

WithPayload adds the payload to the update m t o shipment precondition failed response

func (*UpdateMTOShipmentPreconditionFailed) WriteResponse

WriteResponse to the client

type UpdateMTOShipmentURL

type UpdateMTOShipmentURL struct {
	MoveTaskOrderID strfmt.UUID
	ShipmentID      strfmt.UUID
	// contains filtered or unexported fields
}

UpdateMTOShipmentURL generates an URL for the update m t o shipment operation

func (*UpdateMTOShipmentURL) Build

func (o *UpdateMTOShipmentURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateMTOShipmentURL) BuildFull

func (o *UpdateMTOShipmentURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateMTOShipmentURL) Must

func (o *UpdateMTOShipmentURL) Must(u *url.URL, err error) *url.URL

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 {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

UpdateMTOShipmentUnauthorized The request was denied

swagger:response updateMTOShipmentUnauthorized

func NewUpdateMTOShipmentUnauthorized

func NewUpdateMTOShipmentUnauthorized() *UpdateMTOShipmentUnauthorized

NewUpdateMTOShipmentUnauthorized creates UpdateMTOShipmentUnauthorized with default headers values

func (*UpdateMTOShipmentUnauthorized) SetPayload

func (o *UpdateMTOShipmentUnauthorized) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the update m t o shipment unauthorized response

func (*UpdateMTOShipmentUnauthorized) WithPayload

WithPayload adds the payload to the update m t o shipment unauthorized response

func (*UpdateMTOShipmentUnauthorized) WriteResponse

func (o *UpdateMTOShipmentUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateMTOShipmentUnprocessableEntity

type UpdateMTOShipmentUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.ValidationError `json:"body,omitempty"`
}

UpdateMTOShipmentUnprocessableEntity The payload was unprocessable.

swagger:response updateMTOShipmentUnprocessableEntity

func NewUpdateMTOShipmentUnprocessableEntity

func NewUpdateMTOShipmentUnprocessableEntity() *UpdateMTOShipmentUnprocessableEntity

NewUpdateMTOShipmentUnprocessableEntity creates UpdateMTOShipmentUnprocessableEntity with default headers values

func (*UpdateMTOShipmentUnprocessableEntity) SetPayload

SetPayload sets the payload to the update m t o shipment unprocessable entity response

func (*UpdateMTOShipmentUnprocessableEntity) WithPayload

WithPayload adds the payload to the update m t o shipment unprocessable entity response

func (*UpdateMTOShipmentUnprocessableEntity) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

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