shipping

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 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 CancelShipmentBadRequest

type CancelShipmentBadRequest struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CancelShipmentResponse
}

CancelShipmentBadRequest describes a response with status code 400, with default header values.

Request has missing or invalid parameters and cannot be parsed.

func NewCancelShipmentBadRequest

func NewCancelShipmentBadRequest() *CancelShipmentBadRequest

NewCancelShipmentBadRequest creates a CancelShipmentBadRequest with default headers values

func (*CancelShipmentBadRequest) Error

func (o *CancelShipmentBadRequest) Error() string

func (*CancelShipmentBadRequest) GetPayload

func (*CancelShipmentBadRequest) IsClientError

func (o *CancelShipmentBadRequest) IsClientError() bool

IsClientError returns true when this cancel shipment bad request response has a 4xx status code

func (*CancelShipmentBadRequest) IsCode

func (o *CancelShipmentBadRequest) IsCode(code int) bool

IsCode returns true when this cancel shipment bad request response a status code equal to that given

func (*CancelShipmentBadRequest) IsRedirect

func (o *CancelShipmentBadRequest) IsRedirect() bool

IsRedirect returns true when this cancel shipment bad request response has a 3xx status code

func (*CancelShipmentBadRequest) IsServerError

func (o *CancelShipmentBadRequest) IsServerError() bool

IsServerError returns true when this cancel shipment bad request response has a 5xx status code

func (*CancelShipmentBadRequest) IsSuccess

func (o *CancelShipmentBadRequest) IsSuccess() bool

IsSuccess returns true when this cancel shipment bad request response has a 2xx status code

func (*CancelShipmentBadRequest) String

func (o *CancelShipmentBadRequest) String() string

type CancelShipmentForbidden

type CancelShipmentForbidden struct {

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CancelShipmentResponse
}

CancelShipmentForbidden describes a response with status code 403, with default header values.

403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.

func NewCancelShipmentForbidden

func NewCancelShipmentForbidden() *CancelShipmentForbidden

NewCancelShipmentForbidden creates a CancelShipmentForbidden with default headers values

func (*CancelShipmentForbidden) Error

func (o *CancelShipmentForbidden) Error() string

func (*CancelShipmentForbidden) GetPayload

func (*CancelShipmentForbidden) IsClientError

func (o *CancelShipmentForbidden) IsClientError() bool

IsClientError returns true when this cancel shipment forbidden response has a 4xx status code

func (*CancelShipmentForbidden) IsCode

func (o *CancelShipmentForbidden) IsCode(code int) bool

IsCode returns true when this cancel shipment forbidden response a status code equal to that given

func (*CancelShipmentForbidden) IsRedirect

func (o *CancelShipmentForbidden) IsRedirect() bool

IsRedirect returns true when this cancel shipment forbidden response has a 3xx status code

func (*CancelShipmentForbidden) IsServerError

func (o *CancelShipmentForbidden) IsServerError() bool

IsServerError returns true when this cancel shipment forbidden response has a 5xx status code

func (*CancelShipmentForbidden) IsSuccess

func (o *CancelShipmentForbidden) IsSuccess() bool

IsSuccess returns true when this cancel shipment forbidden response has a 2xx status code

func (*CancelShipmentForbidden) String

func (o *CancelShipmentForbidden) String() string

type CancelShipmentInternalServerError

type CancelShipmentInternalServerError struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CancelShipmentResponse
}

CancelShipmentInternalServerError describes a response with status code 500, with default header values.

Encountered an unexpected condition which prevented the server from fulfilling the request.

func NewCancelShipmentInternalServerError

func NewCancelShipmentInternalServerError() *CancelShipmentInternalServerError

NewCancelShipmentInternalServerError creates a CancelShipmentInternalServerError with default headers values

func (*CancelShipmentInternalServerError) Error

func (*CancelShipmentInternalServerError) GetPayload

func (*CancelShipmentInternalServerError) IsClientError

func (o *CancelShipmentInternalServerError) IsClientError() bool

IsClientError returns true when this cancel shipment internal server error response has a 4xx status code

func (*CancelShipmentInternalServerError) IsCode

func (o *CancelShipmentInternalServerError) IsCode(code int) bool

IsCode returns true when this cancel shipment internal server error response a status code equal to that given

func (*CancelShipmentInternalServerError) IsRedirect

func (o *CancelShipmentInternalServerError) IsRedirect() bool

IsRedirect returns true when this cancel shipment internal server error response has a 3xx status code

func (*CancelShipmentInternalServerError) IsServerError

func (o *CancelShipmentInternalServerError) IsServerError() bool

IsServerError returns true when this cancel shipment internal server error response has a 5xx status code

func (*CancelShipmentInternalServerError) IsSuccess

func (o *CancelShipmentInternalServerError) IsSuccess() bool

IsSuccess returns true when this cancel shipment internal server error response has a 2xx status code

func (*CancelShipmentInternalServerError) String

type CancelShipmentNotFound

type CancelShipmentNotFound struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CancelShipmentResponse
}

CancelShipmentNotFound describes a response with status code 404, with default header values.

The resource specified does not exist.

func NewCancelShipmentNotFound

func NewCancelShipmentNotFound() *CancelShipmentNotFound

NewCancelShipmentNotFound creates a CancelShipmentNotFound with default headers values

func (*CancelShipmentNotFound) Error

func (o *CancelShipmentNotFound) Error() string

func (*CancelShipmentNotFound) GetPayload

func (*CancelShipmentNotFound) IsClientError

func (o *CancelShipmentNotFound) IsClientError() bool

IsClientError returns true when this cancel shipment not found response has a 4xx status code

func (*CancelShipmentNotFound) IsCode

func (o *CancelShipmentNotFound) IsCode(code int) bool

IsCode returns true when this cancel shipment not found response a status code equal to that given

func (*CancelShipmentNotFound) IsRedirect

func (o *CancelShipmentNotFound) IsRedirect() bool

IsRedirect returns true when this cancel shipment not found response has a 3xx status code

func (*CancelShipmentNotFound) IsServerError

func (o *CancelShipmentNotFound) IsServerError() bool

IsServerError returns true when this cancel shipment not found response has a 5xx status code

func (*CancelShipmentNotFound) IsSuccess

func (o *CancelShipmentNotFound) IsSuccess() bool

IsSuccess returns true when this cancel shipment not found response has a 2xx status code

func (*CancelShipmentNotFound) String

func (o *CancelShipmentNotFound) String() string

type CancelShipmentOK

type CancelShipmentOK struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CancelShipmentResponse
}

CancelShipmentOK describes a response with status code 200, with default header values.

Success.

func NewCancelShipmentOK

func NewCancelShipmentOK() *CancelShipmentOK

NewCancelShipmentOK creates a CancelShipmentOK with default headers values

func (*CancelShipmentOK) Error

func (o *CancelShipmentOK) Error() string

func (*CancelShipmentOK) GetPayload

func (*CancelShipmentOK) IsClientError

func (o *CancelShipmentOK) IsClientError() bool

IsClientError returns true when this cancel shipment o k response has a 4xx status code

func (*CancelShipmentOK) IsCode

func (o *CancelShipmentOK) IsCode(code int) bool

IsCode returns true when this cancel shipment o k response a status code equal to that given

func (*CancelShipmentOK) IsRedirect

func (o *CancelShipmentOK) IsRedirect() bool

IsRedirect returns true when this cancel shipment o k response has a 3xx status code

func (*CancelShipmentOK) IsServerError

func (o *CancelShipmentOK) IsServerError() bool

IsServerError returns true when this cancel shipment o k response has a 5xx status code

func (*CancelShipmentOK) IsSuccess

func (o *CancelShipmentOK) IsSuccess() bool

IsSuccess returns true when this cancel shipment o k response has a 2xx status code

func (*CancelShipmentOK) String

func (o *CancelShipmentOK) String() string

type CancelShipmentParams

type CancelShipmentParams struct {

	// ShipmentID.
	ShipmentID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CancelShipmentParams contains all the parameters to send to the API endpoint

for the cancel shipment operation.

Typically these are written to a http.Request.

func NewCancelShipmentParams

func NewCancelShipmentParams() *CancelShipmentParams

NewCancelShipmentParams creates a new CancelShipmentParams 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 NewCancelShipmentParamsWithContext

func NewCancelShipmentParamsWithContext(ctx context.Context) *CancelShipmentParams

NewCancelShipmentParamsWithContext creates a new CancelShipmentParams object with the ability to set a context for a request.

func NewCancelShipmentParamsWithHTTPClient

func NewCancelShipmentParamsWithHTTPClient(client *http.Client) *CancelShipmentParams

NewCancelShipmentParamsWithHTTPClient creates a new CancelShipmentParams object with the ability to set a custom HTTPClient for a request.

func NewCancelShipmentParamsWithTimeout

func NewCancelShipmentParamsWithTimeout(timeout time.Duration) *CancelShipmentParams

NewCancelShipmentParamsWithTimeout creates a new CancelShipmentParams object with the ability to set a timeout on a request.

func (*CancelShipmentParams) SetContext

func (o *CancelShipmentParams) SetContext(ctx context.Context)

SetContext adds the context to the cancel shipment params

func (*CancelShipmentParams) SetDefaults

func (o *CancelShipmentParams) SetDefaults()

SetDefaults hydrates default values in the cancel shipment params (not the query body).

All values with no default are reset to their zero value.

func (*CancelShipmentParams) SetHTTPClient

func (o *CancelShipmentParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the cancel shipment params

func (*CancelShipmentParams) SetShipmentID

func (o *CancelShipmentParams) SetShipmentID(shipmentID string)

SetShipmentID adds the shipmentId to the cancel shipment params

func (*CancelShipmentParams) SetTimeout

func (o *CancelShipmentParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the cancel shipment params

func (*CancelShipmentParams) WithContext

WithContext adds the context to the cancel shipment params

func (*CancelShipmentParams) WithDefaults

func (o *CancelShipmentParams) WithDefaults() *CancelShipmentParams

WithDefaults hydrates default values in the cancel shipment params (not the query body).

All values with no default are reset to their zero value.

func (*CancelShipmentParams) WithHTTPClient

func (o *CancelShipmentParams) WithHTTPClient(client *http.Client) *CancelShipmentParams

WithHTTPClient adds the HTTPClient to the cancel shipment params

func (*CancelShipmentParams) WithShipmentID

func (o *CancelShipmentParams) WithShipmentID(shipmentID string) *CancelShipmentParams

WithShipmentID adds the shipmentID to the cancel shipment params

func (*CancelShipmentParams) WithTimeout

func (o *CancelShipmentParams) WithTimeout(timeout time.Duration) *CancelShipmentParams

WithTimeout adds the timeout to the cancel shipment params

func (*CancelShipmentParams) WriteToRequest

func (o *CancelShipmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CancelShipmentReader

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

CancelShipmentReader is a Reader for the CancelShipment structure.

func (*CancelShipmentReader) ReadResponse

func (o *CancelShipmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CancelShipmentServiceUnavailable

type CancelShipmentServiceUnavailable struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CancelShipmentResponse
}

CancelShipmentServiceUnavailable describes a response with status code 503, with default header values.

Temporary overloading or maintenance of the server.

func NewCancelShipmentServiceUnavailable

func NewCancelShipmentServiceUnavailable() *CancelShipmentServiceUnavailable

NewCancelShipmentServiceUnavailable creates a CancelShipmentServiceUnavailable with default headers values

func (*CancelShipmentServiceUnavailable) Error

func (*CancelShipmentServiceUnavailable) GetPayload

func (*CancelShipmentServiceUnavailable) IsClientError

func (o *CancelShipmentServiceUnavailable) IsClientError() bool

IsClientError returns true when this cancel shipment service unavailable response has a 4xx status code

func (*CancelShipmentServiceUnavailable) IsCode

func (o *CancelShipmentServiceUnavailable) IsCode(code int) bool

IsCode returns true when this cancel shipment service unavailable response a status code equal to that given

func (*CancelShipmentServiceUnavailable) IsRedirect

func (o *CancelShipmentServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this cancel shipment service unavailable response has a 3xx status code

func (*CancelShipmentServiceUnavailable) IsServerError

func (o *CancelShipmentServiceUnavailable) IsServerError() bool

IsServerError returns true when this cancel shipment service unavailable response has a 5xx status code

func (*CancelShipmentServiceUnavailable) IsSuccess

func (o *CancelShipmentServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this cancel shipment service unavailable response has a 2xx status code

func (*CancelShipmentServiceUnavailable) String

type CancelShipmentTooManyRequests

type CancelShipmentTooManyRequests struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CancelShipmentResponse
}

CancelShipmentTooManyRequests describes a response with status code 429, with default header values.

The frequency of requests was greater than allowed.

func NewCancelShipmentTooManyRequests

func NewCancelShipmentTooManyRequests() *CancelShipmentTooManyRequests

NewCancelShipmentTooManyRequests creates a CancelShipmentTooManyRequests with default headers values

func (*CancelShipmentTooManyRequests) Error

func (*CancelShipmentTooManyRequests) GetPayload

func (*CancelShipmentTooManyRequests) IsClientError

func (o *CancelShipmentTooManyRequests) IsClientError() bool

IsClientError returns true when this cancel shipment too many requests response has a 4xx status code

func (*CancelShipmentTooManyRequests) IsCode

func (o *CancelShipmentTooManyRequests) IsCode(code int) bool

IsCode returns true when this cancel shipment too many requests response a status code equal to that given

func (*CancelShipmentTooManyRequests) IsRedirect

func (o *CancelShipmentTooManyRequests) IsRedirect() bool

IsRedirect returns true when this cancel shipment too many requests response has a 3xx status code

func (*CancelShipmentTooManyRequests) IsServerError

func (o *CancelShipmentTooManyRequests) IsServerError() bool

IsServerError returns true when this cancel shipment too many requests response has a 5xx status code

func (*CancelShipmentTooManyRequests) IsSuccess

func (o *CancelShipmentTooManyRequests) IsSuccess() bool

IsSuccess returns true when this cancel shipment too many requests response has a 2xx status code

func (*CancelShipmentTooManyRequests) String

type CancelShipmentUnauthorized

type CancelShipmentUnauthorized struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CancelShipmentResponse
}

CancelShipmentUnauthorized describes a response with status code 401, with default header values.

The request's Authorization header is not formatted correctly or does not contain a valid token.

func NewCancelShipmentUnauthorized

func NewCancelShipmentUnauthorized() *CancelShipmentUnauthorized

NewCancelShipmentUnauthorized creates a CancelShipmentUnauthorized with default headers values

func (*CancelShipmentUnauthorized) Error

func (*CancelShipmentUnauthorized) GetPayload

func (*CancelShipmentUnauthorized) IsClientError

func (o *CancelShipmentUnauthorized) IsClientError() bool

IsClientError returns true when this cancel shipment unauthorized response has a 4xx status code

func (*CancelShipmentUnauthorized) IsCode

func (o *CancelShipmentUnauthorized) IsCode(code int) bool

IsCode returns true when this cancel shipment unauthorized response a status code equal to that given

func (*CancelShipmentUnauthorized) IsRedirect

func (o *CancelShipmentUnauthorized) IsRedirect() bool

IsRedirect returns true when this cancel shipment unauthorized response has a 3xx status code

func (*CancelShipmentUnauthorized) IsServerError

func (o *CancelShipmentUnauthorized) IsServerError() bool

IsServerError returns true when this cancel shipment unauthorized response has a 5xx status code

func (*CancelShipmentUnauthorized) IsSuccess

func (o *CancelShipmentUnauthorized) IsSuccess() bool

IsSuccess returns true when this cancel shipment unauthorized response has a 2xx status code

func (*CancelShipmentUnauthorized) String

func (o *CancelShipmentUnauthorized) String() string

type Client

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

Client for shipping API

func (*Client) CancelShipment

func (a *Client) CancelShipment(params *CancelShipmentParams, opts ...ClientOption) (*CancelShipmentOK, error)
CancelShipment Cancel a shipment by the given shipmentId.

**Usage Plan:**

| Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 |

For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.

func (*Client) CreateShipment

func (a *Client) CreateShipment(params *CreateShipmentParams, opts ...ClientOption) (*CreateShipmentOK, error)
CreateShipment Create a new shipment.

**Usage Plan:**

| Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 |

The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](doc:usage-plans-and-rate-limits-in-the-sp-api).

func (*Client) GetAccount

func (a *Client) GetAccount(params *GetAccountParams, opts ...ClientOption) (*GetAccountOK, error)
GetAccount Verify if the current account is valid.

**Usage Plan:**

| Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 |

For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.

func (*Client) GetRates

func (a *Client) GetRates(params *GetRatesParams, opts ...ClientOption) (*GetRatesOK, error)
GetRates Get service rates.

**Usage Plan:**

| Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 |

For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.

func (*Client) GetShipment

func (a *Client) GetShipment(params *GetShipmentParams, opts ...ClientOption) (*GetShipmentOK, error)
GetShipment Return the entire shipment object for the shipmentId.

**Usage Plan:**

| Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 |

For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.

func (*Client) GetTrackingInformation

func (a *Client) GetTrackingInformation(params *GetTrackingInformationParams, opts ...ClientOption) (*GetTrackingInformationOK, error)
GetTrackingInformation Return the tracking information of a shipment.

**Usage Plan:**

| Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 |

For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.

func (*Client) PurchaseLabels

func (a *Client) PurchaseLabels(params *PurchaseLabelsParams, opts ...ClientOption) (*PurchaseLabelsOK, error)
PurchaseLabels Purchase shipping labels based on a given rate.

**Usage Plan:**

| Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 |

For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.

func (*Client) PurchaseShipment

func (a *Client) PurchaseShipment(params *PurchaseShipmentParams, opts ...ClientOption) (*PurchaseShipmentOK, error)
PurchaseShipment Purchase shipping labels.

**Usage Plan:**

| Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 |

For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.

func (*Client) RetrieveShippingLabel

func (a *Client) RetrieveShippingLabel(params *RetrieveShippingLabelParams, opts ...ClientOption) (*RetrieveShippingLabelOK, error)
RetrieveShippingLabel Retrieve shipping label based on the shipment id and tracking id.

**Usage Plan:**

| Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 |

For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CancelShipment(params *CancelShipmentParams, opts ...ClientOption) (*CancelShipmentOK, error)

	CreateShipment(params *CreateShipmentParams, opts ...ClientOption) (*CreateShipmentOK, error)

	GetAccount(params *GetAccountParams, opts ...ClientOption) (*GetAccountOK, error)

	GetRates(params *GetRatesParams, opts ...ClientOption) (*GetRatesOK, error)

	GetShipment(params *GetShipmentParams, opts ...ClientOption) (*GetShipmentOK, error)

	GetTrackingInformation(params *GetTrackingInformationParams, opts ...ClientOption) (*GetTrackingInformationOK, error)

	PurchaseLabels(params *PurchaseLabelsParams, opts ...ClientOption) (*PurchaseLabelsOK, error)

	PurchaseShipment(params *PurchaseShipmentParams, opts ...ClientOption) (*PurchaseShipmentOK, error)

	RetrieveShippingLabel(params *RetrieveShippingLabelParams, opts ...ClientOption) (*RetrieveShippingLabelOK, 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 shipping API client.

type CreateShipmentBadRequest

type CreateShipmentBadRequest struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CreateShipmentResponse
}

CreateShipmentBadRequest describes a response with status code 400, with default header values.

Request has missing or invalid parameters and cannot be parsed.

func NewCreateShipmentBadRequest

func NewCreateShipmentBadRequest() *CreateShipmentBadRequest

NewCreateShipmentBadRequest creates a CreateShipmentBadRequest with default headers values

func (*CreateShipmentBadRequest) Error

func (o *CreateShipmentBadRequest) Error() string

func (*CreateShipmentBadRequest) GetPayload

func (*CreateShipmentBadRequest) IsClientError

func (o *CreateShipmentBadRequest) IsClientError() bool

IsClientError returns true when this create shipment bad request response has a 4xx status code

func (*CreateShipmentBadRequest) IsCode

func (o *CreateShipmentBadRequest) IsCode(code int) bool

IsCode returns true when this create shipment bad request response a status code equal to that given

func (*CreateShipmentBadRequest) IsRedirect

func (o *CreateShipmentBadRequest) IsRedirect() bool

IsRedirect returns true when this create shipment bad request response has a 3xx status code

func (*CreateShipmentBadRequest) IsServerError

func (o *CreateShipmentBadRequest) IsServerError() bool

IsServerError returns true when this create shipment bad request response has a 5xx status code

func (*CreateShipmentBadRequest) IsSuccess

func (o *CreateShipmentBadRequest) IsSuccess() bool

IsSuccess returns true when this create shipment bad request response has a 2xx status code

func (*CreateShipmentBadRequest) String

func (o *CreateShipmentBadRequest) String() string

type CreateShipmentForbidden

type CreateShipmentForbidden struct {

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CreateShipmentResponse
}

CreateShipmentForbidden describes a response with status code 403, with default header values.

403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.

func NewCreateShipmentForbidden

func NewCreateShipmentForbidden() *CreateShipmentForbidden

NewCreateShipmentForbidden creates a CreateShipmentForbidden with default headers values

func (*CreateShipmentForbidden) Error

func (o *CreateShipmentForbidden) Error() string

func (*CreateShipmentForbidden) GetPayload

func (*CreateShipmentForbidden) IsClientError

func (o *CreateShipmentForbidden) IsClientError() bool

IsClientError returns true when this create shipment forbidden response has a 4xx status code

func (*CreateShipmentForbidden) IsCode

func (o *CreateShipmentForbidden) IsCode(code int) bool

IsCode returns true when this create shipment forbidden response a status code equal to that given

func (*CreateShipmentForbidden) IsRedirect

func (o *CreateShipmentForbidden) IsRedirect() bool

IsRedirect returns true when this create shipment forbidden response has a 3xx status code

func (*CreateShipmentForbidden) IsServerError

func (o *CreateShipmentForbidden) IsServerError() bool

IsServerError returns true when this create shipment forbidden response has a 5xx status code

func (*CreateShipmentForbidden) IsSuccess

func (o *CreateShipmentForbidden) IsSuccess() bool

IsSuccess returns true when this create shipment forbidden response has a 2xx status code

func (*CreateShipmentForbidden) String

func (o *CreateShipmentForbidden) String() string

type CreateShipmentInternalServerError

type CreateShipmentInternalServerError struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CreateShipmentResponse
}

CreateShipmentInternalServerError describes a response with status code 500, with default header values.

Encountered an unexpected condition which prevented the server from fulfilling the request.

func NewCreateShipmentInternalServerError

func NewCreateShipmentInternalServerError() *CreateShipmentInternalServerError

NewCreateShipmentInternalServerError creates a CreateShipmentInternalServerError with default headers values

func (*CreateShipmentInternalServerError) Error

func (*CreateShipmentInternalServerError) GetPayload

func (*CreateShipmentInternalServerError) IsClientError

func (o *CreateShipmentInternalServerError) IsClientError() bool

IsClientError returns true when this create shipment internal server error response has a 4xx status code

func (*CreateShipmentInternalServerError) IsCode

func (o *CreateShipmentInternalServerError) IsCode(code int) bool

IsCode returns true when this create shipment internal server error response a status code equal to that given

func (*CreateShipmentInternalServerError) IsRedirect

func (o *CreateShipmentInternalServerError) IsRedirect() bool

IsRedirect returns true when this create shipment internal server error response has a 3xx status code

func (*CreateShipmentInternalServerError) IsServerError

func (o *CreateShipmentInternalServerError) IsServerError() bool

IsServerError returns true when this create shipment internal server error response has a 5xx status code

func (*CreateShipmentInternalServerError) IsSuccess

func (o *CreateShipmentInternalServerError) IsSuccess() bool

IsSuccess returns true when this create shipment internal server error response has a 2xx status code

func (*CreateShipmentInternalServerError) String

type CreateShipmentNotFound

type CreateShipmentNotFound struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CreateShipmentResponse
}

CreateShipmentNotFound describes a response with status code 404, with default header values.

The resource specified does not exist.

func NewCreateShipmentNotFound

func NewCreateShipmentNotFound() *CreateShipmentNotFound

NewCreateShipmentNotFound creates a CreateShipmentNotFound with default headers values

func (*CreateShipmentNotFound) Error

func (o *CreateShipmentNotFound) Error() string

func (*CreateShipmentNotFound) GetPayload

func (*CreateShipmentNotFound) IsClientError

func (o *CreateShipmentNotFound) IsClientError() bool

IsClientError returns true when this create shipment not found response has a 4xx status code

func (*CreateShipmentNotFound) IsCode

func (o *CreateShipmentNotFound) IsCode(code int) bool

IsCode returns true when this create shipment not found response a status code equal to that given

func (*CreateShipmentNotFound) IsRedirect

func (o *CreateShipmentNotFound) IsRedirect() bool

IsRedirect returns true when this create shipment not found response has a 3xx status code

func (*CreateShipmentNotFound) IsServerError

func (o *CreateShipmentNotFound) IsServerError() bool

IsServerError returns true when this create shipment not found response has a 5xx status code

func (*CreateShipmentNotFound) IsSuccess

func (o *CreateShipmentNotFound) IsSuccess() bool

IsSuccess returns true when this create shipment not found response has a 2xx status code

func (*CreateShipmentNotFound) String

func (o *CreateShipmentNotFound) String() string

type CreateShipmentOK

type CreateShipmentOK struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CreateShipmentResponse
}

CreateShipmentOK describes a response with status code 200, with default header values.

Success.

func NewCreateShipmentOK

func NewCreateShipmentOK() *CreateShipmentOK

NewCreateShipmentOK creates a CreateShipmentOK with default headers values

func (*CreateShipmentOK) Error

func (o *CreateShipmentOK) Error() string

func (*CreateShipmentOK) GetPayload

func (*CreateShipmentOK) IsClientError

func (o *CreateShipmentOK) IsClientError() bool

IsClientError returns true when this create shipment o k response has a 4xx status code

func (*CreateShipmentOK) IsCode

func (o *CreateShipmentOK) IsCode(code int) bool

IsCode returns true when this create shipment o k response a status code equal to that given

func (*CreateShipmentOK) IsRedirect

func (o *CreateShipmentOK) IsRedirect() bool

IsRedirect returns true when this create shipment o k response has a 3xx status code

func (*CreateShipmentOK) IsServerError

func (o *CreateShipmentOK) IsServerError() bool

IsServerError returns true when this create shipment o k response has a 5xx status code

func (*CreateShipmentOK) IsSuccess

func (o *CreateShipmentOK) IsSuccess() bool

IsSuccess returns true when this create shipment o k response has a 2xx status code

func (*CreateShipmentOK) String

func (o *CreateShipmentOK) String() string

type CreateShipmentParams

type CreateShipmentParams struct {

	// Body.
	Body *shipping_models.CreateShipmentRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateShipmentParams contains all the parameters to send to the API endpoint

for the create shipment operation.

Typically these are written to a http.Request.

func NewCreateShipmentParams

func NewCreateShipmentParams() *CreateShipmentParams

NewCreateShipmentParams creates a new CreateShipmentParams 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 NewCreateShipmentParamsWithContext

func NewCreateShipmentParamsWithContext(ctx context.Context) *CreateShipmentParams

NewCreateShipmentParamsWithContext creates a new CreateShipmentParams object with the ability to set a context for a request.

func NewCreateShipmentParamsWithHTTPClient

func NewCreateShipmentParamsWithHTTPClient(client *http.Client) *CreateShipmentParams

NewCreateShipmentParamsWithHTTPClient creates a new CreateShipmentParams object with the ability to set a custom HTTPClient for a request.

func NewCreateShipmentParamsWithTimeout

func NewCreateShipmentParamsWithTimeout(timeout time.Duration) *CreateShipmentParams

NewCreateShipmentParamsWithTimeout creates a new CreateShipmentParams object with the ability to set a timeout on a request.

func (*CreateShipmentParams) SetBody

SetBody adds the body to the create shipment params

func (*CreateShipmentParams) SetContext

func (o *CreateShipmentParams) SetContext(ctx context.Context)

SetContext adds the context to the create shipment params

func (*CreateShipmentParams) SetDefaults

func (o *CreateShipmentParams) SetDefaults()

SetDefaults hydrates default values in the create shipment params (not the query body).

All values with no default are reset to their zero value.

func (*CreateShipmentParams) SetHTTPClient

func (o *CreateShipmentParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create shipment params

func (*CreateShipmentParams) SetTimeout

func (o *CreateShipmentParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create shipment params

func (*CreateShipmentParams) WithBody

WithBody adds the body to the create shipment params

func (*CreateShipmentParams) WithContext

WithContext adds the context to the create shipment params

func (*CreateShipmentParams) WithDefaults

func (o *CreateShipmentParams) WithDefaults() *CreateShipmentParams

WithDefaults hydrates default values in the create shipment params (not the query body).

All values with no default are reset to their zero value.

func (*CreateShipmentParams) WithHTTPClient

func (o *CreateShipmentParams) WithHTTPClient(client *http.Client) *CreateShipmentParams

WithHTTPClient adds the HTTPClient to the create shipment params

func (*CreateShipmentParams) WithTimeout

func (o *CreateShipmentParams) WithTimeout(timeout time.Duration) *CreateShipmentParams

WithTimeout adds the timeout to the create shipment params

func (*CreateShipmentParams) WriteToRequest

func (o *CreateShipmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateShipmentReader

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

CreateShipmentReader is a Reader for the CreateShipment structure.

func (*CreateShipmentReader) ReadResponse

func (o *CreateShipmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CreateShipmentServiceUnavailable

type CreateShipmentServiceUnavailable struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CreateShipmentResponse
}

CreateShipmentServiceUnavailable describes a response with status code 503, with default header values.

Temporary overloading or maintenance of the server.

func NewCreateShipmentServiceUnavailable

func NewCreateShipmentServiceUnavailable() *CreateShipmentServiceUnavailable

NewCreateShipmentServiceUnavailable creates a CreateShipmentServiceUnavailable with default headers values

func (*CreateShipmentServiceUnavailable) Error

func (*CreateShipmentServiceUnavailable) GetPayload

func (*CreateShipmentServiceUnavailable) IsClientError

func (o *CreateShipmentServiceUnavailable) IsClientError() bool

IsClientError returns true when this create shipment service unavailable response has a 4xx status code

func (*CreateShipmentServiceUnavailable) IsCode

func (o *CreateShipmentServiceUnavailable) IsCode(code int) bool

IsCode returns true when this create shipment service unavailable response a status code equal to that given

func (*CreateShipmentServiceUnavailable) IsRedirect

func (o *CreateShipmentServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this create shipment service unavailable response has a 3xx status code

func (*CreateShipmentServiceUnavailable) IsServerError

func (o *CreateShipmentServiceUnavailable) IsServerError() bool

IsServerError returns true when this create shipment service unavailable response has a 5xx status code

func (*CreateShipmentServiceUnavailable) IsSuccess

func (o *CreateShipmentServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this create shipment service unavailable response has a 2xx status code

func (*CreateShipmentServiceUnavailable) String

type CreateShipmentTooManyRequests

type CreateShipmentTooManyRequests struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CreateShipmentResponse
}

CreateShipmentTooManyRequests describes a response with status code 429, with default header values.

The frequency of requests was greater than allowed.

func NewCreateShipmentTooManyRequests

func NewCreateShipmentTooManyRequests() *CreateShipmentTooManyRequests

NewCreateShipmentTooManyRequests creates a CreateShipmentTooManyRequests with default headers values

func (*CreateShipmentTooManyRequests) Error

func (*CreateShipmentTooManyRequests) GetPayload

func (*CreateShipmentTooManyRequests) IsClientError

func (o *CreateShipmentTooManyRequests) IsClientError() bool

IsClientError returns true when this create shipment too many requests response has a 4xx status code

func (*CreateShipmentTooManyRequests) IsCode

func (o *CreateShipmentTooManyRequests) IsCode(code int) bool

IsCode returns true when this create shipment too many requests response a status code equal to that given

func (*CreateShipmentTooManyRequests) IsRedirect

func (o *CreateShipmentTooManyRequests) IsRedirect() bool

IsRedirect returns true when this create shipment too many requests response has a 3xx status code

func (*CreateShipmentTooManyRequests) IsServerError

func (o *CreateShipmentTooManyRequests) IsServerError() bool

IsServerError returns true when this create shipment too many requests response has a 5xx status code

func (*CreateShipmentTooManyRequests) IsSuccess

func (o *CreateShipmentTooManyRequests) IsSuccess() bool

IsSuccess returns true when this create shipment too many requests response has a 2xx status code

func (*CreateShipmentTooManyRequests) String

type CreateShipmentUnauthorized

type CreateShipmentUnauthorized struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.CreateShipmentResponse
}

CreateShipmentUnauthorized describes a response with status code 401, with default header values.

The request's Authorization header is not formatted correctly or does not contain a valid token.

func NewCreateShipmentUnauthorized

func NewCreateShipmentUnauthorized() *CreateShipmentUnauthorized

NewCreateShipmentUnauthorized creates a CreateShipmentUnauthorized with default headers values

func (*CreateShipmentUnauthorized) Error

func (*CreateShipmentUnauthorized) GetPayload

func (*CreateShipmentUnauthorized) IsClientError

func (o *CreateShipmentUnauthorized) IsClientError() bool

IsClientError returns true when this create shipment unauthorized response has a 4xx status code

func (*CreateShipmentUnauthorized) IsCode

func (o *CreateShipmentUnauthorized) IsCode(code int) bool

IsCode returns true when this create shipment unauthorized response a status code equal to that given

func (*CreateShipmentUnauthorized) IsRedirect

func (o *CreateShipmentUnauthorized) IsRedirect() bool

IsRedirect returns true when this create shipment unauthorized response has a 3xx status code

func (*CreateShipmentUnauthorized) IsServerError

func (o *CreateShipmentUnauthorized) IsServerError() bool

IsServerError returns true when this create shipment unauthorized response has a 5xx status code

func (*CreateShipmentUnauthorized) IsSuccess

func (o *CreateShipmentUnauthorized) IsSuccess() bool

IsSuccess returns true when this create shipment unauthorized response has a 2xx status code

func (*CreateShipmentUnauthorized) String

func (o *CreateShipmentUnauthorized) String() string

type GetAccountBadRequest

type GetAccountBadRequest struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetAccountResponse
}

GetAccountBadRequest describes a response with status code 400, with default header values.

Request has missing or invalid parameters and cannot be parsed.

func NewGetAccountBadRequest

func NewGetAccountBadRequest() *GetAccountBadRequest

NewGetAccountBadRequest creates a GetAccountBadRequest with default headers values

func (*GetAccountBadRequest) Error

func (o *GetAccountBadRequest) Error() string

func (*GetAccountBadRequest) GetPayload

func (*GetAccountBadRequest) IsClientError

func (o *GetAccountBadRequest) IsClientError() bool

IsClientError returns true when this get account bad request response has a 4xx status code

func (*GetAccountBadRequest) IsCode

func (o *GetAccountBadRequest) IsCode(code int) bool

IsCode returns true when this get account bad request response a status code equal to that given

func (*GetAccountBadRequest) IsRedirect

func (o *GetAccountBadRequest) IsRedirect() bool

IsRedirect returns true when this get account bad request response has a 3xx status code

func (*GetAccountBadRequest) IsServerError

func (o *GetAccountBadRequest) IsServerError() bool

IsServerError returns true when this get account bad request response has a 5xx status code

func (*GetAccountBadRequest) IsSuccess

func (o *GetAccountBadRequest) IsSuccess() bool

IsSuccess returns true when this get account bad request response has a 2xx status code

func (*GetAccountBadRequest) String

func (o *GetAccountBadRequest) String() string

type GetAccountForbidden

type GetAccountForbidden struct {

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetAccountResponse
}

GetAccountForbidden describes a response with status code 403, with default header values.

403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.

func NewGetAccountForbidden

func NewGetAccountForbidden() *GetAccountForbidden

NewGetAccountForbidden creates a GetAccountForbidden with default headers values

func (*GetAccountForbidden) Error

func (o *GetAccountForbidden) Error() string

func (*GetAccountForbidden) GetPayload

func (*GetAccountForbidden) IsClientError

func (o *GetAccountForbidden) IsClientError() bool

IsClientError returns true when this get account forbidden response has a 4xx status code

func (*GetAccountForbidden) IsCode

func (o *GetAccountForbidden) IsCode(code int) bool

IsCode returns true when this get account forbidden response a status code equal to that given

func (*GetAccountForbidden) IsRedirect

func (o *GetAccountForbidden) IsRedirect() bool

IsRedirect returns true when this get account forbidden response has a 3xx status code

func (*GetAccountForbidden) IsServerError

func (o *GetAccountForbidden) IsServerError() bool

IsServerError returns true when this get account forbidden response has a 5xx status code

func (*GetAccountForbidden) IsSuccess

func (o *GetAccountForbidden) IsSuccess() bool

IsSuccess returns true when this get account forbidden response has a 2xx status code

func (*GetAccountForbidden) String

func (o *GetAccountForbidden) String() string

type GetAccountInternalServerError

type GetAccountInternalServerError struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetAccountResponse
}

GetAccountInternalServerError describes a response with status code 500, with default header values.

Encountered an unexpected condition which prevented the server from fulfilling the request.

func NewGetAccountInternalServerError

func NewGetAccountInternalServerError() *GetAccountInternalServerError

NewGetAccountInternalServerError creates a GetAccountInternalServerError with default headers values

func (*GetAccountInternalServerError) Error

func (*GetAccountInternalServerError) GetPayload

func (*GetAccountInternalServerError) IsClientError

func (o *GetAccountInternalServerError) IsClientError() bool

IsClientError returns true when this get account internal server error response has a 4xx status code

func (*GetAccountInternalServerError) IsCode

func (o *GetAccountInternalServerError) IsCode(code int) bool

IsCode returns true when this get account internal server error response a status code equal to that given

func (*GetAccountInternalServerError) IsRedirect

func (o *GetAccountInternalServerError) IsRedirect() bool

IsRedirect returns true when this get account internal server error response has a 3xx status code

func (*GetAccountInternalServerError) IsServerError

func (o *GetAccountInternalServerError) IsServerError() bool

IsServerError returns true when this get account internal server error response has a 5xx status code

func (*GetAccountInternalServerError) IsSuccess

func (o *GetAccountInternalServerError) IsSuccess() bool

IsSuccess returns true when this get account internal server error response has a 2xx status code

func (*GetAccountInternalServerError) String

type GetAccountNotFound

type GetAccountNotFound struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetAccountResponse
}

GetAccountNotFound describes a response with status code 404, with default header values.

The resource specified does not exist.

func NewGetAccountNotFound

func NewGetAccountNotFound() *GetAccountNotFound

NewGetAccountNotFound creates a GetAccountNotFound with default headers values

func (*GetAccountNotFound) Error

func (o *GetAccountNotFound) Error() string

func (*GetAccountNotFound) GetPayload

func (*GetAccountNotFound) IsClientError

func (o *GetAccountNotFound) IsClientError() bool

IsClientError returns true when this get account not found response has a 4xx status code

func (*GetAccountNotFound) IsCode

func (o *GetAccountNotFound) IsCode(code int) bool

IsCode returns true when this get account not found response a status code equal to that given

func (*GetAccountNotFound) IsRedirect

func (o *GetAccountNotFound) IsRedirect() bool

IsRedirect returns true when this get account not found response has a 3xx status code

func (*GetAccountNotFound) IsServerError

func (o *GetAccountNotFound) IsServerError() bool

IsServerError returns true when this get account not found response has a 5xx status code

func (*GetAccountNotFound) IsSuccess

func (o *GetAccountNotFound) IsSuccess() bool

IsSuccess returns true when this get account not found response has a 2xx status code

func (*GetAccountNotFound) String

func (o *GetAccountNotFound) String() string

type GetAccountOK

type GetAccountOK struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetAccountResponse
}

GetAccountOK describes a response with status code 200, with default header values.

The account was valid.

func NewGetAccountOK

func NewGetAccountOK() *GetAccountOK

NewGetAccountOK creates a GetAccountOK with default headers values

func (*GetAccountOK) Error

func (o *GetAccountOK) Error() string

func (*GetAccountOK) GetPayload

func (*GetAccountOK) IsClientError

func (o *GetAccountOK) IsClientError() bool

IsClientError returns true when this get account o k response has a 4xx status code

func (*GetAccountOK) IsCode

func (o *GetAccountOK) IsCode(code int) bool

IsCode returns true when this get account o k response a status code equal to that given

func (*GetAccountOK) IsRedirect

func (o *GetAccountOK) IsRedirect() bool

IsRedirect returns true when this get account o k response has a 3xx status code

func (*GetAccountOK) IsServerError

func (o *GetAccountOK) IsServerError() bool

IsServerError returns true when this get account o k response has a 5xx status code

func (*GetAccountOK) IsSuccess

func (o *GetAccountOK) IsSuccess() bool

IsSuccess returns true when this get account o k response has a 2xx status code

func (*GetAccountOK) String

func (o *GetAccountOK) String() string

type GetAccountParams

type GetAccountParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAccountParams contains all the parameters to send to the API endpoint

for the get account operation.

Typically these are written to a http.Request.

func NewGetAccountParams

func NewGetAccountParams() *GetAccountParams

NewGetAccountParams creates a new GetAccountParams 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 NewGetAccountParamsWithContext

func NewGetAccountParamsWithContext(ctx context.Context) *GetAccountParams

NewGetAccountParamsWithContext creates a new GetAccountParams object with the ability to set a context for a request.

func NewGetAccountParamsWithHTTPClient

func NewGetAccountParamsWithHTTPClient(client *http.Client) *GetAccountParams

NewGetAccountParamsWithHTTPClient creates a new GetAccountParams object with the ability to set a custom HTTPClient for a request.

func NewGetAccountParamsWithTimeout

func NewGetAccountParamsWithTimeout(timeout time.Duration) *GetAccountParams

NewGetAccountParamsWithTimeout creates a new GetAccountParams object with the ability to set a timeout on a request.

func (*GetAccountParams) SetContext

func (o *GetAccountParams) SetContext(ctx context.Context)

SetContext adds the context to the get account params

func (*GetAccountParams) SetDefaults

func (o *GetAccountParams) SetDefaults()

SetDefaults hydrates default values in the get account params (not the query body).

All values with no default are reset to their zero value.

func (*GetAccountParams) SetHTTPClient

func (o *GetAccountParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get account params

func (*GetAccountParams) SetTimeout

func (o *GetAccountParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get account params

func (*GetAccountParams) WithContext

func (o *GetAccountParams) WithContext(ctx context.Context) *GetAccountParams

WithContext adds the context to the get account params

func (*GetAccountParams) WithDefaults

func (o *GetAccountParams) WithDefaults() *GetAccountParams

WithDefaults hydrates default values in the get account params (not the query body).

All values with no default are reset to their zero value.

func (*GetAccountParams) WithHTTPClient

func (o *GetAccountParams) WithHTTPClient(client *http.Client) *GetAccountParams

WithHTTPClient adds the HTTPClient to the get account params

func (*GetAccountParams) WithTimeout

func (o *GetAccountParams) WithTimeout(timeout time.Duration) *GetAccountParams

WithTimeout adds the timeout to the get account params

func (*GetAccountParams) WriteToRequest

func (o *GetAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetAccountReader

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

GetAccountReader is a Reader for the GetAccount structure.

func (*GetAccountReader) ReadResponse

func (o *GetAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetAccountServiceUnavailable

type GetAccountServiceUnavailable struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetAccountResponse
}

GetAccountServiceUnavailable describes a response with status code 503, with default header values.

Temporary overloading or maintenance of the server.

func NewGetAccountServiceUnavailable

func NewGetAccountServiceUnavailable() *GetAccountServiceUnavailable

NewGetAccountServiceUnavailable creates a GetAccountServiceUnavailable with default headers values

func (*GetAccountServiceUnavailable) Error

func (*GetAccountServiceUnavailable) GetPayload

func (*GetAccountServiceUnavailable) IsClientError

func (o *GetAccountServiceUnavailable) IsClientError() bool

IsClientError returns true when this get account service unavailable response has a 4xx status code

func (*GetAccountServiceUnavailable) IsCode

func (o *GetAccountServiceUnavailable) IsCode(code int) bool

IsCode returns true when this get account service unavailable response a status code equal to that given

func (*GetAccountServiceUnavailable) IsRedirect

func (o *GetAccountServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this get account service unavailable response has a 3xx status code

func (*GetAccountServiceUnavailable) IsServerError

func (o *GetAccountServiceUnavailable) IsServerError() bool

IsServerError returns true when this get account service unavailable response has a 5xx status code

func (*GetAccountServiceUnavailable) IsSuccess

func (o *GetAccountServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this get account service unavailable response has a 2xx status code

func (*GetAccountServiceUnavailable) String

type GetAccountTooManyRequests

type GetAccountTooManyRequests struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetAccountResponse
}

GetAccountTooManyRequests describes a response with status code 429, with default header values.

The frequency of requests was greater than allowed.

func NewGetAccountTooManyRequests

func NewGetAccountTooManyRequests() *GetAccountTooManyRequests

NewGetAccountTooManyRequests creates a GetAccountTooManyRequests with default headers values

func (*GetAccountTooManyRequests) Error

func (o *GetAccountTooManyRequests) Error() string

func (*GetAccountTooManyRequests) GetPayload

func (*GetAccountTooManyRequests) IsClientError

func (o *GetAccountTooManyRequests) IsClientError() bool

IsClientError returns true when this get account too many requests response has a 4xx status code

func (*GetAccountTooManyRequests) IsCode

func (o *GetAccountTooManyRequests) IsCode(code int) bool

IsCode returns true when this get account too many requests response a status code equal to that given

func (*GetAccountTooManyRequests) IsRedirect

func (o *GetAccountTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get account too many requests response has a 3xx status code

func (*GetAccountTooManyRequests) IsServerError

func (o *GetAccountTooManyRequests) IsServerError() bool

IsServerError returns true when this get account too many requests response has a 5xx status code

func (*GetAccountTooManyRequests) IsSuccess

func (o *GetAccountTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get account too many requests response has a 2xx status code

func (*GetAccountTooManyRequests) String

func (o *GetAccountTooManyRequests) String() string

type GetAccountUnauthorized

type GetAccountUnauthorized struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetAccountResponse
}

GetAccountUnauthorized describes a response with status code 401, with default header values.

The request's Authorization header is not formatted correctly or does not contain a valid token.

func NewGetAccountUnauthorized

func NewGetAccountUnauthorized() *GetAccountUnauthorized

NewGetAccountUnauthorized creates a GetAccountUnauthorized with default headers values

func (*GetAccountUnauthorized) Error

func (o *GetAccountUnauthorized) Error() string

func (*GetAccountUnauthorized) GetPayload

func (*GetAccountUnauthorized) IsClientError

func (o *GetAccountUnauthorized) IsClientError() bool

IsClientError returns true when this get account unauthorized response has a 4xx status code

func (*GetAccountUnauthorized) IsCode

func (o *GetAccountUnauthorized) IsCode(code int) bool

IsCode returns true when this get account unauthorized response a status code equal to that given

func (*GetAccountUnauthorized) IsRedirect

func (o *GetAccountUnauthorized) IsRedirect() bool

IsRedirect returns true when this get account unauthorized response has a 3xx status code

func (*GetAccountUnauthorized) IsServerError

func (o *GetAccountUnauthorized) IsServerError() bool

IsServerError returns true when this get account unauthorized response has a 5xx status code

func (*GetAccountUnauthorized) IsSuccess

func (o *GetAccountUnauthorized) IsSuccess() bool

IsSuccess returns true when this get account unauthorized response has a 2xx status code

func (*GetAccountUnauthorized) String

func (o *GetAccountUnauthorized) String() string

type GetRatesBadRequest

type GetRatesBadRequest struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetRatesResponse
}

GetRatesBadRequest describes a response with status code 400, with default header values.

Request is missing or has invalid parameters and cannot be parsed.

func NewGetRatesBadRequest

func NewGetRatesBadRequest() *GetRatesBadRequest

NewGetRatesBadRequest creates a GetRatesBadRequest with default headers values

func (*GetRatesBadRequest) Error

func (o *GetRatesBadRequest) Error() string

func (*GetRatesBadRequest) GetPayload

func (*GetRatesBadRequest) IsClientError

func (o *GetRatesBadRequest) IsClientError() bool

IsClientError returns true when this get rates bad request response has a 4xx status code

func (*GetRatesBadRequest) IsCode

func (o *GetRatesBadRequest) IsCode(code int) bool

IsCode returns true when this get rates bad request response a status code equal to that given

func (*GetRatesBadRequest) IsRedirect

func (o *GetRatesBadRequest) IsRedirect() bool

IsRedirect returns true when this get rates bad request response has a 3xx status code

func (*GetRatesBadRequest) IsServerError

func (o *GetRatesBadRequest) IsServerError() bool

IsServerError returns true when this get rates bad request response has a 5xx status code

func (*GetRatesBadRequest) IsSuccess

func (o *GetRatesBadRequest) IsSuccess() bool

IsSuccess returns true when this get rates bad request response has a 2xx status code

func (*GetRatesBadRequest) String

func (o *GetRatesBadRequest) String() string

type GetRatesForbidden

type GetRatesForbidden struct {

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetRatesResponse
}

GetRatesForbidden describes a response with status code 403, with default header values.

403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.

func NewGetRatesForbidden

func NewGetRatesForbidden() *GetRatesForbidden

NewGetRatesForbidden creates a GetRatesForbidden with default headers values

func (*GetRatesForbidden) Error

func (o *GetRatesForbidden) Error() string

func (*GetRatesForbidden) GetPayload

func (*GetRatesForbidden) IsClientError

func (o *GetRatesForbidden) IsClientError() bool

IsClientError returns true when this get rates forbidden response has a 4xx status code

func (*GetRatesForbidden) IsCode

func (o *GetRatesForbidden) IsCode(code int) bool

IsCode returns true when this get rates forbidden response a status code equal to that given

func (*GetRatesForbidden) IsRedirect

func (o *GetRatesForbidden) IsRedirect() bool

IsRedirect returns true when this get rates forbidden response has a 3xx status code

func (*GetRatesForbidden) IsServerError

func (o *GetRatesForbidden) IsServerError() bool

IsServerError returns true when this get rates forbidden response has a 5xx status code

func (*GetRatesForbidden) IsSuccess

func (o *GetRatesForbidden) IsSuccess() bool

IsSuccess returns true when this get rates forbidden response has a 2xx status code

func (*GetRatesForbidden) String

func (o *GetRatesForbidden) String() string

type GetRatesInternalServerError

type GetRatesInternalServerError struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetRatesResponse
}

GetRatesInternalServerError describes a response with status code 500, with default header values.

Encountered an unexpected condition which prevented the server from fulfilling the request.

func NewGetRatesInternalServerError

func NewGetRatesInternalServerError() *GetRatesInternalServerError

NewGetRatesInternalServerError creates a GetRatesInternalServerError with default headers values

func (*GetRatesInternalServerError) Error

func (*GetRatesInternalServerError) GetPayload

func (*GetRatesInternalServerError) IsClientError

func (o *GetRatesInternalServerError) IsClientError() bool

IsClientError returns true when this get rates internal server error response has a 4xx status code

func (*GetRatesInternalServerError) IsCode

func (o *GetRatesInternalServerError) IsCode(code int) bool

IsCode returns true when this get rates internal server error response a status code equal to that given

func (*GetRatesInternalServerError) IsRedirect

func (o *GetRatesInternalServerError) IsRedirect() bool

IsRedirect returns true when this get rates internal server error response has a 3xx status code

func (*GetRatesInternalServerError) IsServerError

func (o *GetRatesInternalServerError) IsServerError() bool

IsServerError returns true when this get rates internal server error response has a 5xx status code

func (*GetRatesInternalServerError) IsSuccess

func (o *GetRatesInternalServerError) IsSuccess() bool

IsSuccess returns true when this get rates internal server error response has a 2xx status code

func (*GetRatesInternalServerError) String

func (o *GetRatesInternalServerError) String() string

type GetRatesNotFound

type GetRatesNotFound struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetRatesResponse
}

GetRatesNotFound describes a response with status code 404, with default header values.

The resource specified does not exist.

func NewGetRatesNotFound

func NewGetRatesNotFound() *GetRatesNotFound

NewGetRatesNotFound creates a GetRatesNotFound with default headers values

func (*GetRatesNotFound) Error

func (o *GetRatesNotFound) Error() string

func (*GetRatesNotFound) GetPayload

func (*GetRatesNotFound) IsClientError

func (o *GetRatesNotFound) IsClientError() bool

IsClientError returns true when this get rates not found response has a 4xx status code

func (*GetRatesNotFound) IsCode

func (o *GetRatesNotFound) IsCode(code int) bool

IsCode returns true when this get rates not found response a status code equal to that given

func (*GetRatesNotFound) IsRedirect

func (o *GetRatesNotFound) IsRedirect() bool

IsRedirect returns true when this get rates not found response has a 3xx status code

func (*GetRatesNotFound) IsServerError

func (o *GetRatesNotFound) IsServerError() bool

IsServerError returns true when this get rates not found response has a 5xx status code

func (*GetRatesNotFound) IsSuccess

func (o *GetRatesNotFound) IsSuccess() bool

IsSuccess returns true when this get rates not found response has a 2xx status code

func (*GetRatesNotFound) String

func (o *GetRatesNotFound) String() string

type GetRatesOK

type GetRatesOK struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetRatesResponse
}

GetRatesOK describes a response with status code 200, with default header values.

Success.

func NewGetRatesOK

func NewGetRatesOK() *GetRatesOK

NewGetRatesOK creates a GetRatesOK with default headers values

func (*GetRatesOK) Error

func (o *GetRatesOK) Error() string

func (*GetRatesOK) GetPayload

func (o *GetRatesOK) GetPayload() *shipping_models.GetRatesResponse

func (*GetRatesOK) IsClientError

func (o *GetRatesOK) IsClientError() bool

IsClientError returns true when this get rates o k response has a 4xx status code

func (*GetRatesOK) IsCode

func (o *GetRatesOK) IsCode(code int) bool

IsCode returns true when this get rates o k response a status code equal to that given

func (*GetRatesOK) IsRedirect

func (o *GetRatesOK) IsRedirect() bool

IsRedirect returns true when this get rates o k response has a 3xx status code

func (*GetRatesOK) IsServerError

func (o *GetRatesOK) IsServerError() bool

IsServerError returns true when this get rates o k response has a 5xx status code

func (*GetRatesOK) IsSuccess

func (o *GetRatesOK) IsSuccess() bool

IsSuccess returns true when this get rates o k response has a 2xx status code

func (*GetRatesOK) String

func (o *GetRatesOK) String() string

type GetRatesParams

type GetRatesParams struct {

	// Body.
	Body *shipping_models.GetRatesRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetRatesParams contains all the parameters to send to the API endpoint

for the get rates operation.

Typically these are written to a http.Request.

func NewGetRatesParams

func NewGetRatesParams() *GetRatesParams

NewGetRatesParams creates a new GetRatesParams 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 NewGetRatesParamsWithContext

func NewGetRatesParamsWithContext(ctx context.Context) *GetRatesParams

NewGetRatesParamsWithContext creates a new GetRatesParams object with the ability to set a context for a request.

func NewGetRatesParamsWithHTTPClient

func NewGetRatesParamsWithHTTPClient(client *http.Client) *GetRatesParams

NewGetRatesParamsWithHTTPClient creates a new GetRatesParams object with the ability to set a custom HTTPClient for a request.

func NewGetRatesParamsWithTimeout

func NewGetRatesParamsWithTimeout(timeout time.Duration) *GetRatesParams

NewGetRatesParamsWithTimeout creates a new GetRatesParams object with the ability to set a timeout on a request.

func (*GetRatesParams) SetBody

SetBody adds the body to the get rates params

func (*GetRatesParams) SetContext

func (o *GetRatesParams) SetContext(ctx context.Context)

SetContext adds the context to the get rates params

func (*GetRatesParams) SetDefaults

func (o *GetRatesParams) SetDefaults()

SetDefaults hydrates default values in the get rates params (not the query body).

All values with no default are reset to their zero value.

func (*GetRatesParams) SetHTTPClient

func (o *GetRatesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get rates params

func (*GetRatesParams) SetTimeout

func (o *GetRatesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get rates params

func (*GetRatesParams) WithBody

WithBody adds the body to the get rates params

func (*GetRatesParams) WithContext

func (o *GetRatesParams) WithContext(ctx context.Context) *GetRatesParams

WithContext adds the context to the get rates params

func (*GetRatesParams) WithDefaults

func (o *GetRatesParams) WithDefaults() *GetRatesParams

WithDefaults hydrates default values in the get rates params (not the query body).

All values with no default are reset to their zero value.

func (*GetRatesParams) WithHTTPClient

func (o *GetRatesParams) WithHTTPClient(client *http.Client) *GetRatesParams

WithHTTPClient adds the HTTPClient to the get rates params

func (*GetRatesParams) WithTimeout

func (o *GetRatesParams) WithTimeout(timeout time.Duration) *GetRatesParams

WithTimeout adds the timeout to the get rates params

func (*GetRatesParams) WriteToRequest

func (o *GetRatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetRatesReader

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

GetRatesReader is a Reader for the GetRates structure.

func (*GetRatesReader) ReadResponse

func (o *GetRatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetRatesServiceUnavailable

type GetRatesServiceUnavailable struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetRatesResponse
}

GetRatesServiceUnavailable describes a response with status code 503, with default header values.

Temporary overloading or maintenance of the server.

func NewGetRatesServiceUnavailable

func NewGetRatesServiceUnavailable() *GetRatesServiceUnavailable

NewGetRatesServiceUnavailable creates a GetRatesServiceUnavailable with default headers values

func (*GetRatesServiceUnavailable) Error

func (*GetRatesServiceUnavailable) GetPayload

func (*GetRatesServiceUnavailable) IsClientError

func (o *GetRatesServiceUnavailable) IsClientError() bool

IsClientError returns true when this get rates service unavailable response has a 4xx status code

func (*GetRatesServiceUnavailable) IsCode

func (o *GetRatesServiceUnavailable) IsCode(code int) bool

IsCode returns true when this get rates service unavailable response a status code equal to that given

func (*GetRatesServiceUnavailable) IsRedirect

func (o *GetRatesServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this get rates service unavailable response has a 3xx status code

func (*GetRatesServiceUnavailable) IsServerError

func (o *GetRatesServiceUnavailable) IsServerError() bool

IsServerError returns true when this get rates service unavailable response has a 5xx status code

func (*GetRatesServiceUnavailable) IsSuccess

func (o *GetRatesServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this get rates service unavailable response has a 2xx status code

func (*GetRatesServiceUnavailable) String

func (o *GetRatesServiceUnavailable) String() string

type GetRatesTooManyRequests

type GetRatesTooManyRequests struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetRatesResponse
}

GetRatesTooManyRequests describes a response with status code 429, with default header values.

The frequency of requests was greater than allowed.

func NewGetRatesTooManyRequests

func NewGetRatesTooManyRequests() *GetRatesTooManyRequests

NewGetRatesTooManyRequests creates a GetRatesTooManyRequests with default headers values

func (*GetRatesTooManyRequests) Error

func (o *GetRatesTooManyRequests) Error() string

func (*GetRatesTooManyRequests) GetPayload

func (*GetRatesTooManyRequests) IsClientError

func (o *GetRatesTooManyRequests) IsClientError() bool

IsClientError returns true when this get rates too many requests response has a 4xx status code

func (*GetRatesTooManyRequests) IsCode

func (o *GetRatesTooManyRequests) IsCode(code int) bool

IsCode returns true when this get rates too many requests response a status code equal to that given

func (*GetRatesTooManyRequests) IsRedirect

func (o *GetRatesTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get rates too many requests response has a 3xx status code

func (*GetRatesTooManyRequests) IsServerError

func (o *GetRatesTooManyRequests) IsServerError() bool

IsServerError returns true when this get rates too many requests response has a 5xx status code

func (*GetRatesTooManyRequests) IsSuccess

func (o *GetRatesTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get rates too many requests response has a 2xx status code

func (*GetRatesTooManyRequests) String

func (o *GetRatesTooManyRequests) String() string

type GetRatesUnauthorized

type GetRatesUnauthorized struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetRatesResponse
}

GetRatesUnauthorized describes a response with status code 401, with default header values.

The request's Authorization header is not formatted correctly or does not contain a valid token.

func NewGetRatesUnauthorized

func NewGetRatesUnauthorized() *GetRatesUnauthorized

NewGetRatesUnauthorized creates a GetRatesUnauthorized with default headers values

func (*GetRatesUnauthorized) Error

func (o *GetRatesUnauthorized) Error() string

func (*GetRatesUnauthorized) GetPayload

func (*GetRatesUnauthorized) IsClientError

func (o *GetRatesUnauthorized) IsClientError() bool

IsClientError returns true when this get rates unauthorized response has a 4xx status code

func (*GetRatesUnauthorized) IsCode

func (o *GetRatesUnauthorized) IsCode(code int) bool

IsCode returns true when this get rates unauthorized response a status code equal to that given

func (*GetRatesUnauthorized) IsRedirect

func (o *GetRatesUnauthorized) IsRedirect() bool

IsRedirect returns true when this get rates unauthorized response has a 3xx status code

func (*GetRatesUnauthorized) IsServerError

func (o *GetRatesUnauthorized) IsServerError() bool

IsServerError returns true when this get rates unauthorized response has a 5xx status code

func (*GetRatesUnauthorized) IsSuccess

func (o *GetRatesUnauthorized) IsSuccess() bool

IsSuccess returns true when this get rates unauthorized response has a 2xx status code

func (*GetRatesUnauthorized) String

func (o *GetRatesUnauthorized) String() string

type GetShipmentBadRequest

type GetShipmentBadRequest struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetShipmentResponse
}

GetShipmentBadRequest describes a response with status code 400, with default header values.

Request has missing or invalid parameters and cannot be parsed.

func NewGetShipmentBadRequest

func NewGetShipmentBadRequest() *GetShipmentBadRequest

NewGetShipmentBadRequest creates a GetShipmentBadRequest with default headers values

func (*GetShipmentBadRequest) Error

func (o *GetShipmentBadRequest) Error() string

func (*GetShipmentBadRequest) GetPayload

func (*GetShipmentBadRequest) IsClientError

func (o *GetShipmentBadRequest) IsClientError() bool

IsClientError returns true when this get shipment bad request response has a 4xx status code

func (*GetShipmentBadRequest) IsCode

func (o *GetShipmentBadRequest) IsCode(code int) bool

IsCode returns true when this get shipment bad request response a status code equal to that given

func (*GetShipmentBadRequest) IsRedirect

func (o *GetShipmentBadRequest) IsRedirect() bool

IsRedirect returns true when this get shipment bad request response has a 3xx status code

func (*GetShipmentBadRequest) IsServerError

func (o *GetShipmentBadRequest) IsServerError() bool

IsServerError returns true when this get shipment bad request response has a 5xx status code

func (*GetShipmentBadRequest) IsSuccess

func (o *GetShipmentBadRequest) IsSuccess() bool

IsSuccess returns true when this get shipment bad request response has a 2xx status code

func (*GetShipmentBadRequest) String

func (o *GetShipmentBadRequest) String() string

type GetShipmentForbidden

type GetShipmentForbidden struct {

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetShipmentResponse
}

GetShipmentForbidden describes a response with status code 403, with default header values.

403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.

func NewGetShipmentForbidden

func NewGetShipmentForbidden() *GetShipmentForbidden

NewGetShipmentForbidden creates a GetShipmentForbidden with default headers values

func (*GetShipmentForbidden) Error

func (o *GetShipmentForbidden) Error() string

func (*GetShipmentForbidden) GetPayload

func (*GetShipmentForbidden) IsClientError

func (o *GetShipmentForbidden) IsClientError() bool

IsClientError returns true when this get shipment forbidden response has a 4xx status code

func (*GetShipmentForbidden) IsCode

func (o *GetShipmentForbidden) IsCode(code int) bool

IsCode returns true when this get shipment forbidden response a status code equal to that given

func (*GetShipmentForbidden) IsRedirect

func (o *GetShipmentForbidden) IsRedirect() bool

IsRedirect returns true when this get shipment forbidden response has a 3xx status code

func (*GetShipmentForbidden) IsServerError

func (o *GetShipmentForbidden) IsServerError() bool

IsServerError returns true when this get shipment forbidden response has a 5xx status code

func (*GetShipmentForbidden) IsSuccess

func (o *GetShipmentForbidden) IsSuccess() bool

IsSuccess returns true when this get shipment forbidden response has a 2xx status code

func (*GetShipmentForbidden) String

func (o *GetShipmentForbidden) String() string

type GetShipmentInternalServerError

type GetShipmentInternalServerError struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetShipmentResponse
}

GetShipmentInternalServerError describes a response with status code 500, with default header values.

Encountered an unexpected condition which prevented the server from fulfilling the request.

func NewGetShipmentInternalServerError

func NewGetShipmentInternalServerError() *GetShipmentInternalServerError

NewGetShipmentInternalServerError creates a GetShipmentInternalServerError with default headers values

func (*GetShipmentInternalServerError) Error

func (*GetShipmentInternalServerError) GetPayload

func (*GetShipmentInternalServerError) IsClientError

func (o *GetShipmentInternalServerError) IsClientError() bool

IsClientError returns true when this get shipment internal server error response has a 4xx status code

func (*GetShipmentInternalServerError) IsCode

func (o *GetShipmentInternalServerError) IsCode(code int) bool

IsCode returns true when this get shipment internal server error response a status code equal to that given

func (*GetShipmentInternalServerError) IsRedirect

func (o *GetShipmentInternalServerError) IsRedirect() bool

IsRedirect returns true when this get shipment internal server error response has a 3xx status code

func (*GetShipmentInternalServerError) IsServerError

func (o *GetShipmentInternalServerError) IsServerError() bool

IsServerError returns true when this get shipment internal server error response has a 5xx status code

func (*GetShipmentInternalServerError) IsSuccess

func (o *GetShipmentInternalServerError) IsSuccess() bool

IsSuccess returns true when this get shipment internal server error response has a 2xx status code

func (*GetShipmentInternalServerError) String

type GetShipmentNotFound

type GetShipmentNotFound struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetShipmentResponse
}

GetShipmentNotFound describes a response with status code 404, with default header values.

The resource specified does not exist.

func NewGetShipmentNotFound

func NewGetShipmentNotFound() *GetShipmentNotFound

NewGetShipmentNotFound creates a GetShipmentNotFound with default headers values

func (*GetShipmentNotFound) Error

func (o *GetShipmentNotFound) Error() string

func (*GetShipmentNotFound) GetPayload

func (*GetShipmentNotFound) IsClientError

func (o *GetShipmentNotFound) IsClientError() bool

IsClientError returns true when this get shipment not found response has a 4xx status code

func (*GetShipmentNotFound) IsCode

func (o *GetShipmentNotFound) IsCode(code int) bool

IsCode returns true when this get shipment not found response a status code equal to that given

func (*GetShipmentNotFound) IsRedirect

func (o *GetShipmentNotFound) IsRedirect() bool

IsRedirect returns true when this get shipment not found response has a 3xx status code

func (*GetShipmentNotFound) IsServerError

func (o *GetShipmentNotFound) IsServerError() bool

IsServerError returns true when this get shipment not found response has a 5xx status code

func (*GetShipmentNotFound) IsSuccess

func (o *GetShipmentNotFound) IsSuccess() bool

IsSuccess returns true when this get shipment not found response has a 2xx status code

func (*GetShipmentNotFound) String

func (o *GetShipmentNotFound) String() string

type GetShipmentOK

type GetShipmentOK struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetShipmentResponse
}

GetShipmentOK describes a response with status code 200, with default header values.

Success.

func NewGetShipmentOK

func NewGetShipmentOK() *GetShipmentOK

NewGetShipmentOK creates a GetShipmentOK with default headers values

func (*GetShipmentOK) Error

func (o *GetShipmentOK) Error() string

func (*GetShipmentOK) GetPayload

func (*GetShipmentOK) IsClientError

func (o *GetShipmentOK) IsClientError() bool

IsClientError returns true when this get shipment o k response has a 4xx status code

func (*GetShipmentOK) IsCode

func (o *GetShipmentOK) IsCode(code int) bool

IsCode returns true when this get shipment o k response a status code equal to that given

func (*GetShipmentOK) IsRedirect

func (o *GetShipmentOK) IsRedirect() bool

IsRedirect returns true when this get shipment o k response has a 3xx status code

func (*GetShipmentOK) IsServerError

func (o *GetShipmentOK) IsServerError() bool

IsServerError returns true when this get shipment o k response has a 5xx status code

func (*GetShipmentOK) IsSuccess

func (o *GetShipmentOK) IsSuccess() bool

IsSuccess returns true when this get shipment o k response has a 2xx status code

func (*GetShipmentOK) String

func (o *GetShipmentOK) String() string

type GetShipmentParams

type GetShipmentParams struct {

	// ShipmentID.
	ShipmentID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetShipmentParams contains all the parameters to send to the API endpoint

for the get shipment operation.

Typically these are written to a http.Request.

func NewGetShipmentParams

func NewGetShipmentParams() *GetShipmentParams

NewGetShipmentParams creates a new GetShipmentParams 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 NewGetShipmentParamsWithContext

func NewGetShipmentParamsWithContext(ctx context.Context) *GetShipmentParams

NewGetShipmentParamsWithContext creates a new GetShipmentParams object with the ability to set a context for a request.

func NewGetShipmentParamsWithHTTPClient

func NewGetShipmentParamsWithHTTPClient(client *http.Client) *GetShipmentParams

NewGetShipmentParamsWithHTTPClient creates a new GetShipmentParams object with the ability to set a custom HTTPClient for a request.

func NewGetShipmentParamsWithTimeout

func NewGetShipmentParamsWithTimeout(timeout time.Duration) *GetShipmentParams

NewGetShipmentParamsWithTimeout creates a new GetShipmentParams object with the ability to set a timeout on a request.

func (*GetShipmentParams) SetContext

func (o *GetShipmentParams) SetContext(ctx context.Context)

SetContext adds the context to the get shipment params

func (*GetShipmentParams) SetDefaults

func (o *GetShipmentParams) SetDefaults()

SetDefaults hydrates default values in the get shipment params (not the query body).

All values with no default are reset to their zero value.

func (*GetShipmentParams) SetHTTPClient

func (o *GetShipmentParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get shipment params

func (*GetShipmentParams) SetShipmentID

func (o *GetShipmentParams) SetShipmentID(shipmentID string)

SetShipmentID adds the shipmentId to the get shipment params

func (*GetShipmentParams) SetTimeout

func (o *GetShipmentParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get shipment params

func (*GetShipmentParams) WithContext

func (o *GetShipmentParams) WithContext(ctx context.Context) *GetShipmentParams

WithContext adds the context to the get shipment params

func (*GetShipmentParams) WithDefaults

func (o *GetShipmentParams) WithDefaults() *GetShipmentParams

WithDefaults hydrates default values in the get shipment params (not the query body).

All values with no default are reset to their zero value.

func (*GetShipmentParams) WithHTTPClient

func (o *GetShipmentParams) WithHTTPClient(client *http.Client) *GetShipmentParams

WithHTTPClient adds the HTTPClient to the get shipment params

func (*GetShipmentParams) WithShipmentID

func (o *GetShipmentParams) WithShipmentID(shipmentID string) *GetShipmentParams

WithShipmentID adds the shipmentID to the get shipment params

func (*GetShipmentParams) WithTimeout

func (o *GetShipmentParams) WithTimeout(timeout time.Duration) *GetShipmentParams

WithTimeout adds the timeout to the get shipment params

func (*GetShipmentParams) WriteToRequest

func (o *GetShipmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetShipmentReader

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

GetShipmentReader is a Reader for the GetShipment structure.

func (*GetShipmentReader) ReadResponse

func (o *GetShipmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetShipmentServiceUnavailable

type GetShipmentServiceUnavailable struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetShipmentResponse
}

GetShipmentServiceUnavailable describes a response with status code 503, with default header values.

Temporary overloading or maintenance of the server.

func NewGetShipmentServiceUnavailable

func NewGetShipmentServiceUnavailable() *GetShipmentServiceUnavailable

NewGetShipmentServiceUnavailable creates a GetShipmentServiceUnavailable with default headers values

func (*GetShipmentServiceUnavailable) Error

func (*GetShipmentServiceUnavailable) GetPayload

func (*GetShipmentServiceUnavailable) IsClientError

func (o *GetShipmentServiceUnavailable) IsClientError() bool

IsClientError returns true when this get shipment service unavailable response has a 4xx status code

func (*GetShipmentServiceUnavailable) IsCode

func (o *GetShipmentServiceUnavailable) IsCode(code int) bool

IsCode returns true when this get shipment service unavailable response a status code equal to that given

func (*GetShipmentServiceUnavailable) IsRedirect

func (o *GetShipmentServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this get shipment service unavailable response has a 3xx status code

func (*GetShipmentServiceUnavailable) IsServerError

func (o *GetShipmentServiceUnavailable) IsServerError() bool

IsServerError returns true when this get shipment service unavailable response has a 5xx status code

func (*GetShipmentServiceUnavailable) IsSuccess

func (o *GetShipmentServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this get shipment service unavailable response has a 2xx status code

func (*GetShipmentServiceUnavailable) String

type GetShipmentTooManyRequests

type GetShipmentTooManyRequests struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetShipmentResponse
}

GetShipmentTooManyRequests describes a response with status code 429, with default header values.

The frequency of requests was greater than allowed.

func NewGetShipmentTooManyRequests

func NewGetShipmentTooManyRequests() *GetShipmentTooManyRequests

NewGetShipmentTooManyRequests creates a GetShipmentTooManyRequests with default headers values

func (*GetShipmentTooManyRequests) Error

func (*GetShipmentTooManyRequests) GetPayload

func (*GetShipmentTooManyRequests) IsClientError

func (o *GetShipmentTooManyRequests) IsClientError() bool

IsClientError returns true when this get shipment too many requests response has a 4xx status code

func (*GetShipmentTooManyRequests) IsCode

func (o *GetShipmentTooManyRequests) IsCode(code int) bool

IsCode returns true when this get shipment too many requests response a status code equal to that given

func (*GetShipmentTooManyRequests) IsRedirect

func (o *GetShipmentTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get shipment too many requests response has a 3xx status code

func (*GetShipmentTooManyRequests) IsServerError

func (o *GetShipmentTooManyRequests) IsServerError() bool

IsServerError returns true when this get shipment too many requests response has a 5xx status code

func (*GetShipmentTooManyRequests) IsSuccess

func (o *GetShipmentTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get shipment too many requests response has a 2xx status code

func (*GetShipmentTooManyRequests) String

func (o *GetShipmentTooManyRequests) String() string

type GetShipmentUnauthorized

type GetShipmentUnauthorized struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetShipmentResponse
}

GetShipmentUnauthorized describes a response with status code 401, with default header values.

The request's Authorization header is not formatted correctly or does not contain a valid token.

func NewGetShipmentUnauthorized

func NewGetShipmentUnauthorized() *GetShipmentUnauthorized

NewGetShipmentUnauthorized creates a GetShipmentUnauthorized with default headers values

func (*GetShipmentUnauthorized) Error

func (o *GetShipmentUnauthorized) Error() string

func (*GetShipmentUnauthorized) GetPayload

func (*GetShipmentUnauthorized) IsClientError

func (o *GetShipmentUnauthorized) IsClientError() bool

IsClientError returns true when this get shipment unauthorized response has a 4xx status code

func (*GetShipmentUnauthorized) IsCode

func (o *GetShipmentUnauthorized) IsCode(code int) bool

IsCode returns true when this get shipment unauthorized response a status code equal to that given

func (*GetShipmentUnauthorized) IsRedirect

func (o *GetShipmentUnauthorized) IsRedirect() bool

IsRedirect returns true when this get shipment unauthorized response has a 3xx status code

func (*GetShipmentUnauthorized) IsServerError

func (o *GetShipmentUnauthorized) IsServerError() bool

IsServerError returns true when this get shipment unauthorized response has a 5xx status code

func (*GetShipmentUnauthorized) IsSuccess

func (o *GetShipmentUnauthorized) IsSuccess() bool

IsSuccess returns true when this get shipment unauthorized response has a 2xx status code

func (*GetShipmentUnauthorized) String

func (o *GetShipmentUnauthorized) String() string

type GetTrackingInformationBadRequest

type GetTrackingInformationBadRequest struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetTrackingInformationResponse
}

GetTrackingInformationBadRequest describes a response with status code 400, with default header values.

Request has missing or invalid parameters and cannot be parsed.

func NewGetTrackingInformationBadRequest

func NewGetTrackingInformationBadRequest() *GetTrackingInformationBadRequest

NewGetTrackingInformationBadRequest creates a GetTrackingInformationBadRequest with default headers values

func (*GetTrackingInformationBadRequest) Error

func (*GetTrackingInformationBadRequest) GetPayload

func (*GetTrackingInformationBadRequest) IsClientError

func (o *GetTrackingInformationBadRequest) IsClientError() bool

IsClientError returns true when this get tracking information bad request response has a 4xx status code

func (*GetTrackingInformationBadRequest) IsCode

func (o *GetTrackingInformationBadRequest) IsCode(code int) bool

IsCode returns true when this get tracking information bad request response a status code equal to that given

func (*GetTrackingInformationBadRequest) IsRedirect

func (o *GetTrackingInformationBadRequest) IsRedirect() bool

IsRedirect returns true when this get tracking information bad request response has a 3xx status code

func (*GetTrackingInformationBadRequest) IsServerError

func (o *GetTrackingInformationBadRequest) IsServerError() bool

IsServerError returns true when this get tracking information bad request response has a 5xx status code

func (*GetTrackingInformationBadRequest) IsSuccess

func (o *GetTrackingInformationBadRequest) IsSuccess() bool

IsSuccess returns true when this get tracking information bad request response has a 2xx status code

func (*GetTrackingInformationBadRequest) String

type GetTrackingInformationForbidden

type GetTrackingInformationForbidden struct {

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetTrackingInformationResponse
}

GetTrackingInformationForbidden describes a response with status code 403, with default header values.

403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.

func NewGetTrackingInformationForbidden

func NewGetTrackingInformationForbidden() *GetTrackingInformationForbidden

NewGetTrackingInformationForbidden creates a GetTrackingInformationForbidden with default headers values

func (*GetTrackingInformationForbidden) Error

func (*GetTrackingInformationForbidden) GetPayload

func (*GetTrackingInformationForbidden) IsClientError

func (o *GetTrackingInformationForbidden) IsClientError() bool

IsClientError returns true when this get tracking information forbidden response has a 4xx status code

func (*GetTrackingInformationForbidden) IsCode

func (o *GetTrackingInformationForbidden) IsCode(code int) bool

IsCode returns true when this get tracking information forbidden response a status code equal to that given

func (*GetTrackingInformationForbidden) IsRedirect

func (o *GetTrackingInformationForbidden) IsRedirect() bool

IsRedirect returns true when this get tracking information forbidden response has a 3xx status code

func (*GetTrackingInformationForbidden) IsServerError

func (o *GetTrackingInformationForbidden) IsServerError() bool

IsServerError returns true when this get tracking information forbidden response has a 5xx status code

func (*GetTrackingInformationForbidden) IsSuccess

func (o *GetTrackingInformationForbidden) IsSuccess() bool

IsSuccess returns true when this get tracking information forbidden response has a 2xx status code

func (*GetTrackingInformationForbidden) String

type GetTrackingInformationInternalServerError

type GetTrackingInformationInternalServerError struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetTrackingInformationResponse
}

GetTrackingInformationInternalServerError describes a response with status code 500, with default header values.

Encountered an unexpected condition which prevented the server from fulfilling the request.

func NewGetTrackingInformationInternalServerError

func NewGetTrackingInformationInternalServerError() *GetTrackingInformationInternalServerError

NewGetTrackingInformationInternalServerError creates a GetTrackingInformationInternalServerError with default headers values

func (*GetTrackingInformationInternalServerError) Error

func (*GetTrackingInformationInternalServerError) GetPayload

func (*GetTrackingInformationInternalServerError) IsClientError

IsClientError returns true when this get tracking information internal server error response has a 4xx status code

func (*GetTrackingInformationInternalServerError) IsCode

IsCode returns true when this get tracking information internal server error response a status code equal to that given

func (*GetTrackingInformationInternalServerError) IsRedirect

IsRedirect returns true when this get tracking information internal server error response has a 3xx status code

func (*GetTrackingInformationInternalServerError) IsServerError

IsServerError returns true when this get tracking information internal server error response has a 5xx status code

func (*GetTrackingInformationInternalServerError) IsSuccess

IsSuccess returns true when this get tracking information internal server error response has a 2xx status code

func (*GetTrackingInformationInternalServerError) String

type GetTrackingInformationNotFound

type GetTrackingInformationNotFound struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetTrackingInformationResponse
}

GetTrackingInformationNotFound describes a response with status code 404, with default header values.

The resource specified does not exist.

func NewGetTrackingInformationNotFound

func NewGetTrackingInformationNotFound() *GetTrackingInformationNotFound

NewGetTrackingInformationNotFound creates a GetTrackingInformationNotFound with default headers values

func (*GetTrackingInformationNotFound) Error

func (*GetTrackingInformationNotFound) GetPayload

func (*GetTrackingInformationNotFound) IsClientError

func (o *GetTrackingInformationNotFound) IsClientError() bool

IsClientError returns true when this get tracking information not found response has a 4xx status code

func (*GetTrackingInformationNotFound) IsCode

func (o *GetTrackingInformationNotFound) IsCode(code int) bool

IsCode returns true when this get tracking information not found response a status code equal to that given

func (*GetTrackingInformationNotFound) IsRedirect

func (o *GetTrackingInformationNotFound) IsRedirect() bool

IsRedirect returns true when this get tracking information not found response has a 3xx status code

func (*GetTrackingInformationNotFound) IsServerError

func (o *GetTrackingInformationNotFound) IsServerError() bool

IsServerError returns true when this get tracking information not found response has a 5xx status code

func (*GetTrackingInformationNotFound) IsSuccess

func (o *GetTrackingInformationNotFound) IsSuccess() bool

IsSuccess returns true when this get tracking information not found response has a 2xx status code

func (*GetTrackingInformationNotFound) String

type GetTrackingInformationOK

type GetTrackingInformationOK struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetTrackingInformationResponse
}

GetTrackingInformationOK describes a response with status code 200, with default header values.

Success.

func NewGetTrackingInformationOK

func NewGetTrackingInformationOK() *GetTrackingInformationOK

NewGetTrackingInformationOK creates a GetTrackingInformationOK with default headers values

func (*GetTrackingInformationOK) Error

func (o *GetTrackingInformationOK) Error() string

func (*GetTrackingInformationOK) GetPayload

func (*GetTrackingInformationOK) IsClientError

func (o *GetTrackingInformationOK) IsClientError() bool

IsClientError returns true when this get tracking information o k response has a 4xx status code

func (*GetTrackingInformationOK) IsCode

func (o *GetTrackingInformationOK) IsCode(code int) bool

IsCode returns true when this get tracking information o k response a status code equal to that given

func (*GetTrackingInformationOK) IsRedirect

func (o *GetTrackingInformationOK) IsRedirect() bool

IsRedirect returns true when this get tracking information o k response has a 3xx status code

func (*GetTrackingInformationOK) IsServerError

func (o *GetTrackingInformationOK) IsServerError() bool

IsServerError returns true when this get tracking information o k response has a 5xx status code

func (*GetTrackingInformationOK) IsSuccess

func (o *GetTrackingInformationOK) IsSuccess() bool

IsSuccess returns true when this get tracking information o k response has a 2xx status code

func (*GetTrackingInformationOK) String

func (o *GetTrackingInformationOK) String() string

type GetTrackingInformationParams

type GetTrackingInformationParams struct {

	// TrackingID.
	TrackingID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetTrackingInformationParams contains all the parameters to send to the API endpoint

for the get tracking information operation.

Typically these are written to a http.Request.

func NewGetTrackingInformationParams

func NewGetTrackingInformationParams() *GetTrackingInformationParams

NewGetTrackingInformationParams creates a new GetTrackingInformationParams 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 NewGetTrackingInformationParamsWithContext

func NewGetTrackingInformationParamsWithContext(ctx context.Context) *GetTrackingInformationParams

NewGetTrackingInformationParamsWithContext creates a new GetTrackingInformationParams object with the ability to set a context for a request.

func NewGetTrackingInformationParamsWithHTTPClient

func NewGetTrackingInformationParamsWithHTTPClient(client *http.Client) *GetTrackingInformationParams

NewGetTrackingInformationParamsWithHTTPClient creates a new GetTrackingInformationParams object with the ability to set a custom HTTPClient for a request.

func NewGetTrackingInformationParamsWithTimeout

func NewGetTrackingInformationParamsWithTimeout(timeout time.Duration) *GetTrackingInformationParams

NewGetTrackingInformationParamsWithTimeout creates a new GetTrackingInformationParams object with the ability to set a timeout on a request.

func (*GetTrackingInformationParams) SetContext

func (o *GetTrackingInformationParams) SetContext(ctx context.Context)

SetContext adds the context to the get tracking information params

func (*GetTrackingInformationParams) SetDefaults

func (o *GetTrackingInformationParams) SetDefaults()

SetDefaults hydrates default values in the get tracking information params (not the query body).

All values with no default are reset to their zero value.

func (*GetTrackingInformationParams) SetHTTPClient

func (o *GetTrackingInformationParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get tracking information params

func (*GetTrackingInformationParams) SetTimeout

func (o *GetTrackingInformationParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get tracking information params

func (*GetTrackingInformationParams) SetTrackingID

func (o *GetTrackingInformationParams) SetTrackingID(trackingID string)

SetTrackingID adds the trackingId to the get tracking information params

func (*GetTrackingInformationParams) WithContext

WithContext adds the context to the get tracking information params

func (*GetTrackingInformationParams) WithDefaults

WithDefaults hydrates default values in the get tracking information params (not the query body).

All values with no default are reset to their zero value.

func (*GetTrackingInformationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get tracking information params

func (*GetTrackingInformationParams) WithTimeout

WithTimeout adds the timeout to the get tracking information params

func (*GetTrackingInformationParams) WithTrackingID

func (o *GetTrackingInformationParams) WithTrackingID(trackingID string) *GetTrackingInformationParams

WithTrackingID adds the trackingID to the get tracking information params

func (*GetTrackingInformationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTrackingInformationReader

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

GetTrackingInformationReader is a Reader for the GetTrackingInformation structure.

func (*GetTrackingInformationReader) ReadResponse

func (o *GetTrackingInformationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetTrackingInformationServiceUnavailable

type GetTrackingInformationServiceUnavailable struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetTrackingInformationResponse
}

GetTrackingInformationServiceUnavailable describes a response with status code 503, with default header values.

Temporary overloading or maintenance of the server.

func NewGetTrackingInformationServiceUnavailable

func NewGetTrackingInformationServiceUnavailable() *GetTrackingInformationServiceUnavailable

NewGetTrackingInformationServiceUnavailable creates a GetTrackingInformationServiceUnavailable with default headers values

func (*GetTrackingInformationServiceUnavailable) Error

func (*GetTrackingInformationServiceUnavailable) GetPayload

func (*GetTrackingInformationServiceUnavailable) IsClientError

IsClientError returns true when this get tracking information service unavailable response has a 4xx status code

func (*GetTrackingInformationServiceUnavailable) IsCode

IsCode returns true when this get tracking information service unavailable response a status code equal to that given

func (*GetTrackingInformationServiceUnavailable) IsRedirect

IsRedirect returns true when this get tracking information service unavailable response has a 3xx status code

func (*GetTrackingInformationServiceUnavailable) IsServerError

IsServerError returns true when this get tracking information service unavailable response has a 5xx status code

func (*GetTrackingInformationServiceUnavailable) IsSuccess

IsSuccess returns true when this get tracking information service unavailable response has a 2xx status code

func (*GetTrackingInformationServiceUnavailable) String

type GetTrackingInformationTooManyRequests

type GetTrackingInformationTooManyRequests struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetTrackingInformationResponse
}

GetTrackingInformationTooManyRequests describes a response with status code 429, with default header values.

The frequency of requests was greater than allowed.

func NewGetTrackingInformationTooManyRequests

func NewGetTrackingInformationTooManyRequests() *GetTrackingInformationTooManyRequests

NewGetTrackingInformationTooManyRequests creates a GetTrackingInformationTooManyRequests with default headers values

func (*GetTrackingInformationTooManyRequests) Error

func (*GetTrackingInformationTooManyRequests) GetPayload

func (*GetTrackingInformationTooManyRequests) IsClientError

func (o *GetTrackingInformationTooManyRequests) IsClientError() bool

IsClientError returns true when this get tracking information too many requests response has a 4xx status code

func (*GetTrackingInformationTooManyRequests) IsCode

IsCode returns true when this get tracking information too many requests response a status code equal to that given

func (*GetTrackingInformationTooManyRequests) IsRedirect

IsRedirect returns true when this get tracking information too many requests response has a 3xx status code

func (*GetTrackingInformationTooManyRequests) IsServerError

func (o *GetTrackingInformationTooManyRequests) IsServerError() bool

IsServerError returns true when this get tracking information too many requests response has a 5xx status code

func (*GetTrackingInformationTooManyRequests) IsSuccess

IsSuccess returns true when this get tracking information too many requests response has a 2xx status code

func (*GetTrackingInformationTooManyRequests) String

type GetTrackingInformationUnauthorized

type GetTrackingInformationUnauthorized struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.GetTrackingInformationResponse
}

GetTrackingInformationUnauthorized describes a response with status code 401, with default header values.

The request's Authorization header is not formatted correctly or does not contain a valid token.

func NewGetTrackingInformationUnauthorized

func NewGetTrackingInformationUnauthorized() *GetTrackingInformationUnauthorized

NewGetTrackingInformationUnauthorized creates a GetTrackingInformationUnauthorized with default headers values

func (*GetTrackingInformationUnauthorized) Error

func (*GetTrackingInformationUnauthorized) GetPayload

func (*GetTrackingInformationUnauthorized) IsClientError

func (o *GetTrackingInformationUnauthorized) IsClientError() bool

IsClientError returns true when this get tracking information unauthorized response has a 4xx status code

func (*GetTrackingInformationUnauthorized) IsCode

IsCode returns true when this get tracking information unauthorized response a status code equal to that given

func (*GetTrackingInformationUnauthorized) IsRedirect

func (o *GetTrackingInformationUnauthorized) IsRedirect() bool

IsRedirect returns true when this get tracking information unauthorized response has a 3xx status code

func (*GetTrackingInformationUnauthorized) IsServerError

func (o *GetTrackingInformationUnauthorized) IsServerError() bool

IsServerError returns true when this get tracking information unauthorized response has a 5xx status code

func (*GetTrackingInformationUnauthorized) IsSuccess

IsSuccess returns true when this get tracking information unauthorized response has a 2xx status code

func (*GetTrackingInformationUnauthorized) String

type PurchaseLabelsBadRequest

type PurchaseLabelsBadRequest struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseLabelsResponse
}

PurchaseLabelsBadRequest describes a response with status code 400, with default header values.

Request has missing or invalid parameters and cannot be parsed.

func NewPurchaseLabelsBadRequest

func NewPurchaseLabelsBadRequest() *PurchaseLabelsBadRequest

NewPurchaseLabelsBadRequest creates a PurchaseLabelsBadRequest with default headers values

func (*PurchaseLabelsBadRequest) Error

func (o *PurchaseLabelsBadRequest) Error() string

func (*PurchaseLabelsBadRequest) GetPayload

func (*PurchaseLabelsBadRequest) IsClientError

func (o *PurchaseLabelsBadRequest) IsClientError() bool

IsClientError returns true when this purchase labels bad request response has a 4xx status code

func (*PurchaseLabelsBadRequest) IsCode

func (o *PurchaseLabelsBadRequest) IsCode(code int) bool

IsCode returns true when this purchase labels bad request response a status code equal to that given

func (*PurchaseLabelsBadRequest) IsRedirect

func (o *PurchaseLabelsBadRequest) IsRedirect() bool

IsRedirect returns true when this purchase labels bad request response has a 3xx status code

func (*PurchaseLabelsBadRequest) IsServerError

func (o *PurchaseLabelsBadRequest) IsServerError() bool

IsServerError returns true when this purchase labels bad request response has a 5xx status code

func (*PurchaseLabelsBadRequest) IsSuccess

func (o *PurchaseLabelsBadRequest) IsSuccess() bool

IsSuccess returns true when this purchase labels bad request response has a 2xx status code

func (*PurchaseLabelsBadRequest) String

func (o *PurchaseLabelsBadRequest) String() string

type PurchaseLabelsForbidden

type PurchaseLabelsForbidden struct {

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseLabelsResponse
}

PurchaseLabelsForbidden describes a response with status code 403, with default header values.

403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.

func NewPurchaseLabelsForbidden

func NewPurchaseLabelsForbidden() *PurchaseLabelsForbidden

NewPurchaseLabelsForbidden creates a PurchaseLabelsForbidden with default headers values

func (*PurchaseLabelsForbidden) Error

func (o *PurchaseLabelsForbidden) Error() string

func (*PurchaseLabelsForbidden) GetPayload

func (*PurchaseLabelsForbidden) IsClientError

func (o *PurchaseLabelsForbidden) IsClientError() bool

IsClientError returns true when this purchase labels forbidden response has a 4xx status code

func (*PurchaseLabelsForbidden) IsCode

func (o *PurchaseLabelsForbidden) IsCode(code int) bool

IsCode returns true when this purchase labels forbidden response a status code equal to that given

func (*PurchaseLabelsForbidden) IsRedirect

func (o *PurchaseLabelsForbidden) IsRedirect() bool

IsRedirect returns true when this purchase labels forbidden response has a 3xx status code

func (*PurchaseLabelsForbidden) IsServerError

func (o *PurchaseLabelsForbidden) IsServerError() bool

IsServerError returns true when this purchase labels forbidden response has a 5xx status code

func (*PurchaseLabelsForbidden) IsSuccess

func (o *PurchaseLabelsForbidden) IsSuccess() bool

IsSuccess returns true when this purchase labels forbidden response has a 2xx status code

func (*PurchaseLabelsForbidden) String

func (o *PurchaseLabelsForbidden) String() string

type PurchaseLabelsInternalServerError

type PurchaseLabelsInternalServerError struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseLabelsResponse
}

PurchaseLabelsInternalServerError describes a response with status code 500, with default header values.

Encountered an unexpected condition which prevented the server from fulfilling the request.

func NewPurchaseLabelsInternalServerError

func NewPurchaseLabelsInternalServerError() *PurchaseLabelsInternalServerError

NewPurchaseLabelsInternalServerError creates a PurchaseLabelsInternalServerError with default headers values

func (*PurchaseLabelsInternalServerError) Error

func (*PurchaseLabelsInternalServerError) GetPayload

func (*PurchaseLabelsInternalServerError) IsClientError

func (o *PurchaseLabelsInternalServerError) IsClientError() bool

IsClientError returns true when this purchase labels internal server error response has a 4xx status code

func (*PurchaseLabelsInternalServerError) IsCode

func (o *PurchaseLabelsInternalServerError) IsCode(code int) bool

IsCode returns true when this purchase labels internal server error response a status code equal to that given

func (*PurchaseLabelsInternalServerError) IsRedirect

func (o *PurchaseLabelsInternalServerError) IsRedirect() bool

IsRedirect returns true when this purchase labels internal server error response has a 3xx status code

func (*PurchaseLabelsInternalServerError) IsServerError

func (o *PurchaseLabelsInternalServerError) IsServerError() bool

IsServerError returns true when this purchase labels internal server error response has a 5xx status code

func (*PurchaseLabelsInternalServerError) IsSuccess

func (o *PurchaseLabelsInternalServerError) IsSuccess() bool

IsSuccess returns true when this purchase labels internal server error response has a 2xx status code

func (*PurchaseLabelsInternalServerError) String

type PurchaseLabelsNotFound

type PurchaseLabelsNotFound struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseLabelsResponse
}

PurchaseLabelsNotFound describes a response with status code 404, with default header values.

The resource specified does not exist.

func NewPurchaseLabelsNotFound

func NewPurchaseLabelsNotFound() *PurchaseLabelsNotFound

NewPurchaseLabelsNotFound creates a PurchaseLabelsNotFound with default headers values

func (*PurchaseLabelsNotFound) Error

func (o *PurchaseLabelsNotFound) Error() string

func (*PurchaseLabelsNotFound) GetPayload

func (*PurchaseLabelsNotFound) IsClientError

func (o *PurchaseLabelsNotFound) IsClientError() bool

IsClientError returns true when this purchase labels not found response has a 4xx status code

func (*PurchaseLabelsNotFound) IsCode

func (o *PurchaseLabelsNotFound) IsCode(code int) bool

IsCode returns true when this purchase labels not found response a status code equal to that given

func (*PurchaseLabelsNotFound) IsRedirect

func (o *PurchaseLabelsNotFound) IsRedirect() bool

IsRedirect returns true when this purchase labels not found response has a 3xx status code

func (*PurchaseLabelsNotFound) IsServerError

func (o *PurchaseLabelsNotFound) IsServerError() bool

IsServerError returns true when this purchase labels not found response has a 5xx status code

func (*PurchaseLabelsNotFound) IsSuccess

func (o *PurchaseLabelsNotFound) IsSuccess() bool

IsSuccess returns true when this purchase labels not found response has a 2xx status code

func (*PurchaseLabelsNotFound) String

func (o *PurchaseLabelsNotFound) String() string

type PurchaseLabelsOK

type PurchaseLabelsOK struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseLabelsResponse
}

PurchaseLabelsOK describes a response with status code 200, with default header values.

Success.

func NewPurchaseLabelsOK

func NewPurchaseLabelsOK() *PurchaseLabelsOK

NewPurchaseLabelsOK creates a PurchaseLabelsOK with default headers values

func (*PurchaseLabelsOK) Error

func (o *PurchaseLabelsOK) Error() string

func (*PurchaseLabelsOK) GetPayload

func (*PurchaseLabelsOK) IsClientError

func (o *PurchaseLabelsOK) IsClientError() bool

IsClientError returns true when this purchase labels o k response has a 4xx status code

func (*PurchaseLabelsOK) IsCode

func (o *PurchaseLabelsOK) IsCode(code int) bool

IsCode returns true when this purchase labels o k response a status code equal to that given

func (*PurchaseLabelsOK) IsRedirect

func (o *PurchaseLabelsOK) IsRedirect() bool

IsRedirect returns true when this purchase labels o k response has a 3xx status code

func (*PurchaseLabelsOK) IsServerError

func (o *PurchaseLabelsOK) IsServerError() bool

IsServerError returns true when this purchase labels o k response has a 5xx status code

func (*PurchaseLabelsOK) IsSuccess

func (o *PurchaseLabelsOK) IsSuccess() bool

IsSuccess returns true when this purchase labels o k response has a 2xx status code

func (*PurchaseLabelsOK) String

func (o *PurchaseLabelsOK) String() string

type PurchaseLabelsParams

type PurchaseLabelsParams struct {

	// Body.
	Body *shipping_models.PurchaseLabelsRequest

	// ShipmentID.
	ShipmentID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PurchaseLabelsParams contains all the parameters to send to the API endpoint

for the purchase labels operation.

Typically these are written to a http.Request.

func NewPurchaseLabelsParams

func NewPurchaseLabelsParams() *PurchaseLabelsParams

NewPurchaseLabelsParams creates a new PurchaseLabelsParams 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 NewPurchaseLabelsParamsWithContext

func NewPurchaseLabelsParamsWithContext(ctx context.Context) *PurchaseLabelsParams

NewPurchaseLabelsParamsWithContext creates a new PurchaseLabelsParams object with the ability to set a context for a request.

func NewPurchaseLabelsParamsWithHTTPClient

func NewPurchaseLabelsParamsWithHTTPClient(client *http.Client) *PurchaseLabelsParams

NewPurchaseLabelsParamsWithHTTPClient creates a new PurchaseLabelsParams object with the ability to set a custom HTTPClient for a request.

func NewPurchaseLabelsParamsWithTimeout

func NewPurchaseLabelsParamsWithTimeout(timeout time.Duration) *PurchaseLabelsParams

NewPurchaseLabelsParamsWithTimeout creates a new PurchaseLabelsParams object with the ability to set a timeout on a request.

func (*PurchaseLabelsParams) SetBody

SetBody adds the body to the purchase labels params

func (*PurchaseLabelsParams) SetContext

func (o *PurchaseLabelsParams) SetContext(ctx context.Context)

SetContext adds the context to the purchase labels params

func (*PurchaseLabelsParams) SetDefaults

func (o *PurchaseLabelsParams) SetDefaults()

SetDefaults hydrates default values in the purchase labels params (not the query body).

All values with no default are reset to their zero value.

func (*PurchaseLabelsParams) SetHTTPClient

func (o *PurchaseLabelsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the purchase labels params

func (*PurchaseLabelsParams) SetShipmentID

func (o *PurchaseLabelsParams) SetShipmentID(shipmentID string)

SetShipmentID adds the shipmentId to the purchase labels params

func (*PurchaseLabelsParams) SetTimeout

func (o *PurchaseLabelsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the purchase labels params

func (*PurchaseLabelsParams) WithBody

WithBody adds the body to the purchase labels params

func (*PurchaseLabelsParams) WithContext

WithContext adds the context to the purchase labels params

func (*PurchaseLabelsParams) WithDefaults

func (o *PurchaseLabelsParams) WithDefaults() *PurchaseLabelsParams

WithDefaults hydrates default values in the purchase labels params (not the query body).

All values with no default are reset to their zero value.

func (*PurchaseLabelsParams) WithHTTPClient

func (o *PurchaseLabelsParams) WithHTTPClient(client *http.Client) *PurchaseLabelsParams

WithHTTPClient adds the HTTPClient to the purchase labels params

func (*PurchaseLabelsParams) WithShipmentID

func (o *PurchaseLabelsParams) WithShipmentID(shipmentID string) *PurchaseLabelsParams

WithShipmentID adds the shipmentID to the purchase labels params

func (*PurchaseLabelsParams) WithTimeout

func (o *PurchaseLabelsParams) WithTimeout(timeout time.Duration) *PurchaseLabelsParams

WithTimeout adds the timeout to the purchase labels params

func (*PurchaseLabelsParams) WriteToRequest

func (o *PurchaseLabelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PurchaseLabelsReader

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

PurchaseLabelsReader is a Reader for the PurchaseLabels structure.

func (*PurchaseLabelsReader) ReadResponse

func (o *PurchaseLabelsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PurchaseLabelsServiceUnavailable

type PurchaseLabelsServiceUnavailable struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseLabelsResponse
}

PurchaseLabelsServiceUnavailable describes a response with status code 503, with default header values.

Temporary overloading or maintenance of the server.

func NewPurchaseLabelsServiceUnavailable

func NewPurchaseLabelsServiceUnavailable() *PurchaseLabelsServiceUnavailable

NewPurchaseLabelsServiceUnavailable creates a PurchaseLabelsServiceUnavailable with default headers values

func (*PurchaseLabelsServiceUnavailable) Error

func (*PurchaseLabelsServiceUnavailable) GetPayload

func (*PurchaseLabelsServiceUnavailable) IsClientError

func (o *PurchaseLabelsServiceUnavailable) IsClientError() bool

IsClientError returns true when this purchase labels service unavailable response has a 4xx status code

func (*PurchaseLabelsServiceUnavailable) IsCode

func (o *PurchaseLabelsServiceUnavailable) IsCode(code int) bool

IsCode returns true when this purchase labels service unavailable response a status code equal to that given

func (*PurchaseLabelsServiceUnavailable) IsRedirect

func (o *PurchaseLabelsServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this purchase labels service unavailable response has a 3xx status code

func (*PurchaseLabelsServiceUnavailable) IsServerError

func (o *PurchaseLabelsServiceUnavailable) IsServerError() bool

IsServerError returns true when this purchase labels service unavailable response has a 5xx status code

func (*PurchaseLabelsServiceUnavailable) IsSuccess

func (o *PurchaseLabelsServiceUnavailable) IsSuccess() bool

IsSuccess returns true when this purchase labels service unavailable response has a 2xx status code

func (*PurchaseLabelsServiceUnavailable) String

type PurchaseLabelsTooManyRequests

type PurchaseLabelsTooManyRequests struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseLabelsResponse
}

PurchaseLabelsTooManyRequests describes a response with status code 429, with default header values.

The frequency of requests was greater than allowed.

func NewPurchaseLabelsTooManyRequests

func NewPurchaseLabelsTooManyRequests() *PurchaseLabelsTooManyRequests

NewPurchaseLabelsTooManyRequests creates a PurchaseLabelsTooManyRequests with default headers values

func (*PurchaseLabelsTooManyRequests) Error

func (*PurchaseLabelsTooManyRequests) GetPayload

func (*PurchaseLabelsTooManyRequests) IsClientError

func (o *PurchaseLabelsTooManyRequests) IsClientError() bool

IsClientError returns true when this purchase labels too many requests response has a 4xx status code

func (*PurchaseLabelsTooManyRequests) IsCode

func (o *PurchaseLabelsTooManyRequests) IsCode(code int) bool

IsCode returns true when this purchase labels too many requests response a status code equal to that given

func (*PurchaseLabelsTooManyRequests) IsRedirect

func (o *PurchaseLabelsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this purchase labels too many requests response has a 3xx status code

func (*PurchaseLabelsTooManyRequests) IsServerError

func (o *PurchaseLabelsTooManyRequests) IsServerError() bool

IsServerError returns true when this purchase labels too many requests response has a 5xx status code

func (*PurchaseLabelsTooManyRequests) IsSuccess

func (o *PurchaseLabelsTooManyRequests) IsSuccess() bool

IsSuccess returns true when this purchase labels too many requests response has a 2xx status code

func (*PurchaseLabelsTooManyRequests) String

type PurchaseLabelsUnauthorized

type PurchaseLabelsUnauthorized struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseLabelsResponse
}

PurchaseLabelsUnauthorized describes a response with status code 401, with default header values.

The request's Authorization header is not formatted correctly or does not contain a valid token.

func NewPurchaseLabelsUnauthorized

func NewPurchaseLabelsUnauthorized() *PurchaseLabelsUnauthorized

NewPurchaseLabelsUnauthorized creates a PurchaseLabelsUnauthorized with default headers values

func (*PurchaseLabelsUnauthorized) Error

func (*PurchaseLabelsUnauthorized) GetPayload

func (*PurchaseLabelsUnauthorized) IsClientError

func (o *PurchaseLabelsUnauthorized) IsClientError() bool

IsClientError returns true when this purchase labels unauthorized response has a 4xx status code

func (*PurchaseLabelsUnauthorized) IsCode

func (o *PurchaseLabelsUnauthorized) IsCode(code int) bool

IsCode returns true when this purchase labels unauthorized response a status code equal to that given

func (*PurchaseLabelsUnauthorized) IsRedirect

func (o *PurchaseLabelsUnauthorized) IsRedirect() bool

IsRedirect returns true when this purchase labels unauthorized response has a 3xx status code

func (*PurchaseLabelsUnauthorized) IsServerError

func (o *PurchaseLabelsUnauthorized) IsServerError() bool

IsServerError returns true when this purchase labels unauthorized response has a 5xx status code

func (*PurchaseLabelsUnauthorized) IsSuccess

func (o *PurchaseLabelsUnauthorized) IsSuccess() bool

IsSuccess returns true when this purchase labels unauthorized response has a 2xx status code

func (*PurchaseLabelsUnauthorized) String

func (o *PurchaseLabelsUnauthorized) String() string

type PurchaseShipmentBadRequest

type PurchaseShipmentBadRequest struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseShipmentResponse
}

PurchaseShipmentBadRequest describes a response with status code 400, with default header values.

Request has missing or invalid parameters and cannot be parsed.

func NewPurchaseShipmentBadRequest

func NewPurchaseShipmentBadRequest() *PurchaseShipmentBadRequest

NewPurchaseShipmentBadRequest creates a PurchaseShipmentBadRequest with default headers values

func (*PurchaseShipmentBadRequest) Error

func (*PurchaseShipmentBadRequest) GetPayload

func (*PurchaseShipmentBadRequest) IsClientError

func (o *PurchaseShipmentBadRequest) IsClientError() bool

IsClientError returns true when this purchase shipment bad request response has a 4xx status code

func (*PurchaseShipmentBadRequest) IsCode

func (o *PurchaseShipmentBadRequest) IsCode(code int) bool

IsCode returns true when this purchase shipment bad request response a status code equal to that given

func (*PurchaseShipmentBadRequest) IsRedirect

func (o *PurchaseShipmentBadRequest) IsRedirect() bool

IsRedirect returns true when this purchase shipment bad request response has a 3xx status code

func (*PurchaseShipmentBadRequest) IsServerError

func (o *PurchaseShipmentBadRequest) IsServerError() bool

IsServerError returns true when this purchase shipment bad request response has a 5xx status code

func (*PurchaseShipmentBadRequest) IsSuccess

func (o *PurchaseShipmentBadRequest) IsSuccess() bool

IsSuccess returns true when this purchase shipment bad request response has a 2xx status code

func (*PurchaseShipmentBadRequest) String

func (o *PurchaseShipmentBadRequest) String() string

type PurchaseShipmentForbidden

type PurchaseShipmentForbidden struct {

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseShipmentResponse
}

PurchaseShipmentForbidden describes a response with status code 403, with default header values.

403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.

func NewPurchaseShipmentForbidden

func NewPurchaseShipmentForbidden() *PurchaseShipmentForbidden

NewPurchaseShipmentForbidden creates a PurchaseShipmentForbidden with default headers values

func (*PurchaseShipmentForbidden) Error

func (o *PurchaseShipmentForbidden) Error() string

func (*PurchaseShipmentForbidden) GetPayload

func (*PurchaseShipmentForbidden) IsClientError

func (o *PurchaseShipmentForbidden) IsClientError() bool

IsClientError returns true when this purchase shipment forbidden response has a 4xx status code

func (*PurchaseShipmentForbidden) IsCode

func (o *PurchaseShipmentForbidden) IsCode(code int) bool

IsCode returns true when this purchase shipment forbidden response a status code equal to that given

func (*PurchaseShipmentForbidden) IsRedirect

func (o *PurchaseShipmentForbidden) IsRedirect() bool

IsRedirect returns true when this purchase shipment forbidden response has a 3xx status code

func (*PurchaseShipmentForbidden) IsServerError

func (o *PurchaseShipmentForbidden) IsServerError() bool

IsServerError returns true when this purchase shipment forbidden response has a 5xx status code

func (*PurchaseShipmentForbidden) IsSuccess

func (o *PurchaseShipmentForbidden) IsSuccess() bool

IsSuccess returns true when this purchase shipment forbidden response has a 2xx status code

func (*PurchaseShipmentForbidden) String

func (o *PurchaseShipmentForbidden) String() string

type PurchaseShipmentInternalServerError

type PurchaseShipmentInternalServerError struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseShipmentResponse
}

PurchaseShipmentInternalServerError describes a response with status code 500, with default header values.

Encountered an unexpected condition which prevented the server from fulfilling the request.

func NewPurchaseShipmentInternalServerError

func NewPurchaseShipmentInternalServerError() *PurchaseShipmentInternalServerError

NewPurchaseShipmentInternalServerError creates a PurchaseShipmentInternalServerError with default headers values

func (*PurchaseShipmentInternalServerError) Error

func (*PurchaseShipmentInternalServerError) GetPayload

func (*PurchaseShipmentInternalServerError) IsClientError

func (o *PurchaseShipmentInternalServerError) IsClientError() bool

IsClientError returns true when this purchase shipment internal server error response has a 4xx status code

func (*PurchaseShipmentInternalServerError) IsCode

IsCode returns true when this purchase shipment internal server error response a status code equal to that given

func (*PurchaseShipmentInternalServerError) IsRedirect

func (o *PurchaseShipmentInternalServerError) IsRedirect() bool

IsRedirect returns true when this purchase shipment internal server error response has a 3xx status code

func (*PurchaseShipmentInternalServerError) IsServerError

func (o *PurchaseShipmentInternalServerError) IsServerError() bool

IsServerError returns true when this purchase shipment internal server error response has a 5xx status code

func (*PurchaseShipmentInternalServerError) IsSuccess

IsSuccess returns true when this purchase shipment internal server error response has a 2xx status code

func (*PurchaseShipmentInternalServerError) String

type PurchaseShipmentNotFound

type PurchaseShipmentNotFound struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseShipmentResponse
}

PurchaseShipmentNotFound describes a response with status code 404, with default header values.

The resource specified does not exist.

func NewPurchaseShipmentNotFound

func NewPurchaseShipmentNotFound() *PurchaseShipmentNotFound

NewPurchaseShipmentNotFound creates a PurchaseShipmentNotFound with default headers values

func (*PurchaseShipmentNotFound) Error

func (o *PurchaseShipmentNotFound) Error() string

func (*PurchaseShipmentNotFound) GetPayload

func (*PurchaseShipmentNotFound) IsClientError

func (o *PurchaseShipmentNotFound) IsClientError() bool

IsClientError returns true when this purchase shipment not found response has a 4xx status code

func (*PurchaseShipmentNotFound) IsCode

func (o *PurchaseShipmentNotFound) IsCode(code int) bool

IsCode returns true when this purchase shipment not found response a status code equal to that given

func (*PurchaseShipmentNotFound) IsRedirect

func (o *PurchaseShipmentNotFound) IsRedirect() bool

IsRedirect returns true when this purchase shipment not found response has a 3xx status code

func (*PurchaseShipmentNotFound) IsServerError

func (o *PurchaseShipmentNotFound) IsServerError() bool

IsServerError returns true when this purchase shipment not found response has a 5xx status code

func (*PurchaseShipmentNotFound) IsSuccess

func (o *PurchaseShipmentNotFound) IsSuccess() bool

IsSuccess returns true when this purchase shipment not found response has a 2xx status code

func (*PurchaseShipmentNotFound) String

func (o *PurchaseShipmentNotFound) String() string

type PurchaseShipmentOK

type PurchaseShipmentOK struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseShipmentResponse
}

PurchaseShipmentOK describes a response with status code 200, with default header values.

Success.

func NewPurchaseShipmentOK

func NewPurchaseShipmentOK() *PurchaseShipmentOK

NewPurchaseShipmentOK creates a PurchaseShipmentOK with default headers values

func (*PurchaseShipmentOK) Error

func (o *PurchaseShipmentOK) Error() string

func (*PurchaseShipmentOK) GetPayload

func (*PurchaseShipmentOK) IsClientError

func (o *PurchaseShipmentOK) IsClientError() bool

IsClientError returns true when this purchase shipment o k response has a 4xx status code

func (*PurchaseShipmentOK) IsCode

func (o *PurchaseShipmentOK) IsCode(code int) bool

IsCode returns true when this purchase shipment o k response a status code equal to that given

func (*PurchaseShipmentOK) IsRedirect

func (o *PurchaseShipmentOK) IsRedirect() bool

IsRedirect returns true when this purchase shipment o k response has a 3xx status code

func (*PurchaseShipmentOK) IsServerError

func (o *PurchaseShipmentOK) IsServerError() bool

IsServerError returns true when this purchase shipment o k response has a 5xx status code

func (*PurchaseShipmentOK) IsSuccess

func (o *PurchaseShipmentOK) IsSuccess() bool

IsSuccess returns true when this purchase shipment o k response has a 2xx status code

func (*PurchaseShipmentOK) String

func (o *PurchaseShipmentOK) String() string

type PurchaseShipmentParams

type PurchaseShipmentParams struct {

	// Body.
	Body *shipping_models.PurchaseShipmentRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PurchaseShipmentParams contains all the parameters to send to the API endpoint

for the purchase shipment operation.

Typically these are written to a http.Request.

func NewPurchaseShipmentParams

func NewPurchaseShipmentParams() *PurchaseShipmentParams

NewPurchaseShipmentParams creates a new PurchaseShipmentParams 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 NewPurchaseShipmentParamsWithContext

func NewPurchaseShipmentParamsWithContext(ctx context.Context) *PurchaseShipmentParams

NewPurchaseShipmentParamsWithContext creates a new PurchaseShipmentParams object with the ability to set a context for a request.

func NewPurchaseShipmentParamsWithHTTPClient

func NewPurchaseShipmentParamsWithHTTPClient(client *http.Client) *PurchaseShipmentParams

NewPurchaseShipmentParamsWithHTTPClient creates a new PurchaseShipmentParams object with the ability to set a custom HTTPClient for a request.

func NewPurchaseShipmentParamsWithTimeout

func NewPurchaseShipmentParamsWithTimeout(timeout time.Duration) *PurchaseShipmentParams

NewPurchaseShipmentParamsWithTimeout creates a new PurchaseShipmentParams object with the ability to set a timeout on a request.

func (*PurchaseShipmentParams) SetBody

SetBody adds the body to the purchase shipment params

func (*PurchaseShipmentParams) SetContext

func (o *PurchaseShipmentParams) SetContext(ctx context.Context)

SetContext adds the context to the purchase shipment params

func (*PurchaseShipmentParams) SetDefaults

func (o *PurchaseShipmentParams) SetDefaults()

SetDefaults hydrates default values in the purchase shipment params (not the query body).

All values with no default are reset to their zero value.

func (*PurchaseShipmentParams) SetHTTPClient

func (o *PurchaseShipmentParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the purchase shipment params

func (*PurchaseShipmentParams) SetTimeout

func (o *PurchaseShipmentParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the purchase shipment params

func (*PurchaseShipmentParams) WithBody

WithBody adds the body to the purchase shipment params

func (*PurchaseShipmentParams) WithContext

WithContext adds the context to the purchase shipment params

func (*PurchaseShipmentParams) WithDefaults

WithDefaults hydrates default values in the purchase shipment params (not the query body).

All values with no default are reset to their zero value.

func (*PurchaseShipmentParams) WithHTTPClient

func (o *PurchaseShipmentParams) WithHTTPClient(client *http.Client) *PurchaseShipmentParams

WithHTTPClient adds the HTTPClient to the purchase shipment params

func (*PurchaseShipmentParams) WithTimeout

WithTimeout adds the timeout to the purchase shipment params

func (*PurchaseShipmentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PurchaseShipmentReader

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

PurchaseShipmentReader is a Reader for the PurchaseShipment structure.

func (*PurchaseShipmentReader) ReadResponse

func (o *PurchaseShipmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PurchaseShipmentServiceUnavailable

type PurchaseShipmentServiceUnavailable struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseShipmentResponse
}

PurchaseShipmentServiceUnavailable describes a response with status code 503, with default header values.

Temporary overloading or maintenance of the server.

func NewPurchaseShipmentServiceUnavailable

func NewPurchaseShipmentServiceUnavailable() *PurchaseShipmentServiceUnavailable

NewPurchaseShipmentServiceUnavailable creates a PurchaseShipmentServiceUnavailable with default headers values

func (*PurchaseShipmentServiceUnavailable) Error

func (*PurchaseShipmentServiceUnavailable) GetPayload

func (*PurchaseShipmentServiceUnavailable) IsClientError

func (o *PurchaseShipmentServiceUnavailable) IsClientError() bool

IsClientError returns true when this purchase shipment service unavailable response has a 4xx status code

func (*PurchaseShipmentServiceUnavailable) IsCode

IsCode returns true when this purchase shipment service unavailable response a status code equal to that given

func (*PurchaseShipmentServiceUnavailable) IsRedirect

func (o *PurchaseShipmentServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this purchase shipment service unavailable response has a 3xx status code

func (*PurchaseShipmentServiceUnavailable) IsServerError

func (o *PurchaseShipmentServiceUnavailable) IsServerError() bool

IsServerError returns true when this purchase shipment service unavailable response has a 5xx status code

func (*PurchaseShipmentServiceUnavailable) IsSuccess

IsSuccess returns true when this purchase shipment service unavailable response has a 2xx status code

func (*PurchaseShipmentServiceUnavailable) String

type PurchaseShipmentTooManyRequests

type PurchaseShipmentTooManyRequests struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseShipmentResponse
}

PurchaseShipmentTooManyRequests describes a response with status code 429, with default header values.

The frequency of requests was greater than allowed.

func NewPurchaseShipmentTooManyRequests

func NewPurchaseShipmentTooManyRequests() *PurchaseShipmentTooManyRequests

NewPurchaseShipmentTooManyRequests creates a PurchaseShipmentTooManyRequests with default headers values

func (*PurchaseShipmentTooManyRequests) Error

func (*PurchaseShipmentTooManyRequests) GetPayload

func (*PurchaseShipmentTooManyRequests) IsClientError

func (o *PurchaseShipmentTooManyRequests) IsClientError() bool

IsClientError returns true when this purchase shipment too many requests response has a 4xx status code

func (*PurchaseShipmentTooManyRequests) IsCode

func (o *PurchaseShipmentTooManyRequests) IsCode(code int) bool

IsCode returns true when this purchase shipment too many requests response a status code equal to that given

func (*PurchaseShipmentTooManyRequests) IsRedirect

func (o *PurchaseShipmentTooManyRequests) IsRedirect() bool

IsRedirect returns true when this purchase shipment too many requests response has a 3xx status code

func (*PurchaseShipmentTooManyRequests) IsServerError

func (o *PurchaseShipmentTooManyRequests) IsServerError() bool

IsServerError returns true when this purchase shipment too many requests response has a 5xx status code

func (*PurchaseShipmentTooManyRequests) IsSuccess

func (o *PurchaseShipmentTooManyRequests) IsSuccess() bool

IsSuccess returns true when this purchase shipment too many requests response has a 2xx status code

func (*PurchaseShipmentTooManyRequests) String

type PurchaseShipmentUnauthorized

type PurchaseShipmentUnauthorized struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.PurchaseShipmentResponse
}

PurchaseShipmentUnauthorized describes a response with status code 401, with default header values.

The request's Authorization header is not formatted correctly or does not contain a valid token.

func NewPurchaseShipmentUnauthorized

func NewPurchaseShipmentUnauthorized() *PurchaseShipmentUnauthorized

NewPurchaseShipmentUnauthorized creates a PurchaseShipmentUnauthorized with default headers values

func (*PurchaseShipmentUnauthorized) Error

func (*PurchaseShipmentUnauthorized) GetPayload

func (*PurchaseShipmentUnauthorized) IsClientError

func (o *PurchaseShipmentUnauthorized) IsClientError() bool

IsClientError returns true when this purchase shipment unauthorized response has a 4xx status code

func (*PurchaseShipmentUnauthorized) IsCode

func (o *PurchaseShipmentUnauthorized) IsCode(code int) bool

IsCode returns true when this purchase shipment unauthorized response a status code equal to that given

func (*PurchaseShipmentUnauthorized) IsRedirect

func (o *PurchaseShipmentUnauthorized) IsRedirect() bool

IsRedirect returns true when this purchase shipment unauthorized response has a 3xx status code

func (*PurchaseShipmentUnauthorized) IsServerError

func (o *PurchaseShipmentUnauthorized) IsServerError() bool

IsServerError returns true when this purchase shipment unauthorized response has a 5xx status code

func (*PurchaseShipmentUnauthorized) IsSuccess

func (o *PurchaseShipmentUnauthorized) IsSuccess() bool

IsSuccess returns true when this purchase shipment unauthorized response has a 2xx status code

func (*PurchaseShipmentUnauthorized) String

type RetrieveShippingLabelBadRequest

type RetrieveShippingLabelBadRequest struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.RetrieveShippingLabelResponse
}

RetrieveShippingLabelBadRequest describes a response with status code 400, with default header values.

Request has missing or invalid parameters and cannot be parsed.

func NewRetrieveShippingLabelBadRequest

func NewRetrieveShippingLabelBadRequest() *RetrieveShippingLabelBadRequest

NewRetrieveShippingLabelBadRequest creates a RetrieveShippingLabelBadRequest with default headers values

func (*RetrieveShippingLabelBadRequest) Error

func (*RetrieveShippingLabelBadRequest) GetPayload

func (*RetrieveShippingLabelBadRequest) IsClientError

func (o *RetrieveShippingLabelBadRequest) IsClientError() bool

IsClientError returns true when this retrieve shipping label bad request response has a 4xx status code

func (*RetrieveShippingLabelBadRequest) IsCode

func (o *RetrieveShippingLabelBadRequest) IsCode(code int) bool

IsCode returns true when this retrieve shipping label bad request response a status code equal to that given

func (*RetrieveShippingLabelBadRequest) IsRedirect

func (o *RetrieveShippingLabelBadRequest) IsRedirect() bool

IsRedirect returns true when this retrieve shipping label bad request response has a 3xx status code

func (*RetrieveShippingLabelBadRequest) IsServerError

func (o *RetrieveShippingLabelBadRequest) IsServerError() bool

IsServerError returns true when this retrieve shipping label bad request response has a 5xx status code

func (*RetrieveShippingLabelBadRequest) IsSuccess

func (o *RetrieveShippingLabelBadRequest) IsSuccess() bool

IsSuccess returns true when this retrieve shipping label bad request response has a 2xx status code

func (*RetrieveShippingLabelBadRequest) String

type RetrieveShippingLabelForbidden

type RetrieveShippingLabelForbidden struct {

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.RetrieveShippingLabelResponse
}

RetrieveShippingLabelForbidden describes a response with status code 403, with default header values.

403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.

func NewRetrieveShippingLabelForbidden

func NewRetrieveShippingLabelForbidden() *RetrieveShippingLabelForbidden

NewRetrieveShippingLabelForbidden creates a RetrieveShippingLabelForbidden with default headers values

func (*RetrieveShippingLabelForbidden) Error

func (*RetrieveShippingLabelForbidden) GetPayload

func (*RetrieveShippingLabelForbidden) IsClientError

func (o *RetrieveShippingLabelForbidden) IsClientError() bool

IsClientError returns true when this retrieve shipping label forbidden response has a 4xx status code

func (*RetrieveShippingLabelForbidden) IsCode

func (o *RetrieveShippingLabelForbidden) IsCode(code int) bool

IsCode returns true when this retrieve shipping label forbidden response a status code equal to that given

func (*RetrieveShippingLabelForbidden) IsRedirect

func (o *RetrieveShippingLabelForbidden) IsRedirect() bool

IsRedirect returns true when this retrieve shipping label forbidden response has a 3xx status code

func (*RetrieveShippingLabelForbidden) IsServerError

func (o *RetrieveShippingLabelForbidden) IsServerError() bool

IsServerError returns true when this retrieve shipping label forbidden response has a 5xx status code

func (*RetrieveShippingLabelForbidden) IsSuccess

func (o *RetrieveShippingLabelForbidden) IsSuccess() bool

IsSuccess returns true when this retrieve shipping label forbidden response has a 2xx status code

func (*RetrieveShippingLabelForbidden) String

type RetrieveShippingLabelInternalServerError

type RetrieveShippingLabelInternalServerError struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.RetrieveShippingLabelResponse
}

RetrieveShippingLabelInternalServerError describes a response with status code 500, with default header values.

Encountered an unexpected condition which prevented the server from fulfilling the request.

func NewRetrieveShippingLabelInternalServerError

func NewRetrieveShippingLabelInternalServerError() *RetrieveShippingLabelInternalServerError

NewRetrieveShippingLabelInternalServerError creates a RetrieveShippingLabelInternalServerError with default headers values

func (*RetrieveShippingLabelInternalServerError) Error

func (*RetrieveShippingLabelInternalServerError) GetPayload

func (*RetrieveShippingLabelInternalServerError) IsClientError

IsClientError returns true when this retrieve shipping label internal server error response has a 4xx status code

func (*RetrieveShippingLabelInternalServerError) IsCode

IsCode returns true when this retrieve shipping label internal server error response a status code equal to that given

func (*RetrieveShippingLabelInternalServerError) IsRedirect

IsRedirect returns true when this retrieve shipping label internal server error response has a 3xx status code

func (*RetrieveShippingLabelInternalServerError) IsServerError

IsServerError returns true when this retrieve shipping label internal server error response has a 5xx status code

func (*RetrieveShippingLabelInternalServerError) IsSuccess

IsSuccess returns true when this retrieve shipping label internal server error response has a 2xx status code

func (*RetrieveShippingLabelInternalServerError) String

type RetrieveShippingLabelNotFound

type RetrieveShippingLabelNotFound struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.RetrieveShippingLabelResponse
}

RetrieveShippingLabelNotFound describes a response with status code 404, with default header values.

The resource specified does not exist.

func NewRetrieveShippingLabelNotFound

func NewRetrieveShippingLabelNotFound() *RetrieveShippingLabelNotFound

NewRetrieveShippingLabelNotFound creates a RetrieveShippingLabelNotFound with default headers values

func (*RetrieveShippingLabelNotFound) Error

func (*RetrieveShippingLabelNotFound) GetPayload

func (*RetrieveShippingLabelNotFound) IsClientError

func (o *RetrieveShippingLabelNotFound) IsClientError() bool

IsClientError returns true when this retrieve shipping label not found response has a 4xx status code

func (*RetrieveShippingLabelNotFound) IsCode

func (o *RetrieveShippingLabelNotFound) IsCode(code int) bool

IsCode returns true when this retrieve shipping label not found response a status code equal to that given

func (*RetrieveShippingLabelNotFound) IsRedirect

func (o *RetrieveShippingLabelNotFound) IsRedirect() bool

IsRedirect returns true when this retrieve shipping label not found response has a 3xx status code

func (*RetrieveShippingLabelNotFound) IsServerError

func (o *RetrieveShippingLabelNotFound) IsServerError() bool

IsServerError returns true when this retrieve shipping label not found response has a 5xx status code

func (*RetrieveShippingLabelNotFound) IsSuccess

func (o *RetrieveShippingLabelNotFound) IsSuccess() bool

IsSuccess returns true when this retrieve shipping label not found response has a 2xx status code

func (*RetrieveShippingLabelNotFound) String

type RetrieveShippingLabelOK

type RetrieveShippingLabelOK struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.RetrieveShippingLabelResponse
}

RetrieveShippingLabelOK describes a response with status code 200, with default header values.

Success.

func NewRetrieveShippingLabelOK

func NewRetrieveShippingLabelOK() *RetrieveShippingLabelOK

NewRetrieveShippingLabelOK creates a RetrieveShippingLabelOK with default headers values

func (*RetrieveShippingLabelOK) Error

func (o *RetrieveShippingLabelOK) Error() string

func (*RetrieveShippingLabelOK) GetPayload

func (*RetrieveShippingLabelOK) IsClientError

func (o *RetrieveShippingLabelOK) IsClientError() bool

IsClientError returns true when this retrieve shipping label o k response has a 4xx status code

func (*RetrieveShippingLabelOK) IsCode

func (o *RetrieveShippingLabelOK) IsCode(code int) bool

IsCode returns true when this retrieve shipping label o k response a status code equal to that given

func (*RetrieveShippingLabelOK) IsRedirect

func (o *RetrieveShippingLabelOK) IsRedirect() bool

IsRedirect returns true when this retrieve shipping label o k response has a 3xx status code

func (*RetrieveShippingLabelOK) IsServerError

func (o *RetrieveShippingLabelOK) IsServerError() bool

IsServerError returns true when this retrieve shipping label o k response has a 5xx status code

func (*RetrieveShippingLabelOK) IsSuccess

func (o *RetrieveShippingLabelOK) IsSuccess() bool

IsSuccess returns true when this retrieve shipping label o k response has a 2xx status code

func (*RetrieveShippingLabelOK) String

func (o *RetrieveShippingLabelOK) String() string

type RetrieveShippingLabelParams

type RetrieveShippingLabelParams struct {

	// Body.
	Body *shipping_models.RetrieveShippingLabelRequest

	// ShipmentID.
	ShipmentID string

	// TrackingID.
	TrackingID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RetrieveShippingLabelParams contains all the parameters to send to the API endpoint

for the retrieve shipping label operation.

Typically these are written to a http.Request.

func NewRetrieveShippingLabelParams

func NewRetrieveShippingLabelParams() *RetrieveShippingLabelParams

NewRetrieveShippingLabelParams creates a new RetrieveShippingLabelParams 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 NewRetrieveShippingLabelParamsWithContext

func NewRetrieveShippingLabelParamsWithContext(ctx context.Context) *RetrieveShippingLabelParams

NewRetrieveShippingLabelParamsWithContext creates a new RetrieveShippingLabelParams object with the ability to set a context for a request.

func NewRetrieveShippingLabelParamsWithHTTPClient

func NewRetrieveShippingLabelParamsWithHTTPClient(client *http.Client) *RetrieveShippingLabelParams

NewRetrieveShippingLabelParamsWithHTTPClient creates a new RetrieveShippingLabelParams object with the ability to set a custom HTTPClient for a request.

func NewRetrieveShippingLabelParamsWithTimeout

func NewRetrieveShippingLabelParamsWithTimeout(timeout time.Duration) *RetrieveShippingLabelParams

NewRetrieveShippingLabelParamsWithTimeout creates a new RetrieveShippingLabelParams object with the ability to set a timeout on a request.

func (*RetrieveShippingLabelParams) SetBody

SetBody adds the body to the retrieve shipping label params

func (*RetrieveShippingLabelParams) SetContext

func (o *RetrieveShippingLabelParams) SetContext(ctx context.Context)

SetContext adds the context to the retrieve shipping label params

func (*RetrieveShippingLabelParams) SetDefaults

func (o *RetrieveShippingLabelParams) SetDefaults()

SetDefaults hydrates default values in the retrieve shipping label params (not the query body).

All values with no default are reset to their zero value.

func (*RetrieveShippingLabelParams) SetHTTPClient

func (o *RetrieveShippingLabelParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the retrieve shipping label params

func (*RetrieveShippingLabelParams) SetShipmentID

func (o *RetrieveShippingLabelParams) SetShipmentID(shipmentID string)

SetShipmentID adds the shipmentId to the retrieve shipping label params

func (*RetrieveShippingLabelParams) SetTimeout

func (o *RetrieveShippingLabelParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the retrieve shipping label params

func (*RetrieveShippingLabelParams) SetTrackingID

func (o *RetrieveShippingLabelParams) SetTrackingID(trackingID string)

SetTrackingID adds the trackingId to the retrieve shipping label params

func (*RetrieveShippingLabelParams) WithBody

WithBody adds the body to the retrieve shipping label params

func (*RetrieveShippingLabelParams) WithContext

WithContext adds the context to the retrieve shipping label params

func (*RetrieveShippingLabelParams) WithDefaults

WithDefaults hydrates default values in the retrieve shipping label params (not the query body).

All values with no default are reset to their zero value.

func (*RetrieveShippingLabelParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the retrieve shipping label params

func (*RetrieveShippingLabelParams) WithShipmentID

func (o *RetrieveShippingLabelParams) WithShipmentID(shipmentID string) *RetrieveShippingLabelParams

WithShipmentID adds the shipmentID to the retrieve shipping label params

func (*RetrieveShippingLabelParams) WithTimeout

WithTimeout adds the timeout to the retrieve shipping label params

func (*RetrieveShippingLabelParams) WithTrackingID

func (o *RetrieveShippingLabelParams) WithTrackingID(trackingID string) *RetrieveShippingLabelParams

WithTrackingID adds the trackingID to the retrieve shipping label params

func (*RetrieveShippingLabelParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RetrieveShippingLabelReader

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

RetrieveShippingLabelReader is a Reader for the RetrieveShippingLabel structure.

func (*RetrieveShippingLabelReader) ReadResponse

func (o *RetrieveShippingLabelReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RetrieveShippingLabelServiceUnavailable

type RetrieveShippingLabelServiceUnavailable struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.RetrieveShippingLabelResponse
}

RetrieveShippingLabelServiceUnavailable describes a response with status code 503, with default header values.

Temporary overloading or maintenance of the server.

func NewRetrieveShippingLabelServiceUnavailable

func NewRetrieveShippingLabelServiceUnavailable() *RetrieveShippingLabelServiceUnavailable

NewRetrieveShippingLabelServiceUnavailable creates a RetrieveShippingLabelServiceUnavailable with default headers values

func (*RetrieveShippingLabelServiceUnavailable) Error

func (*RetrieveShippingLabelServiceUnavailable) GetPayload

func (*RetrieveShippingLabelServiceUnavailable) IsClientError

func (o *RetrieveShippingLabelServiceUnavailable) IsClientError() bool

IsClientError returns true when this retrieve shipping label service unavailable response has a 4xx status code

func (*RetrieveShippingLabelServiceUnavailable) IsCode

IsCode returns true when this retrieve shipping label service unavailable response a status code equal to that given

func (*RetrieveShippingLabelServiceUnavailable) IsRedirect

IsRedirect returns true when this retrieve shipping label service unavailable response has a 3xx status code

func (*RetrieveShippingLabelServiceUnavailable) IsServerError

func (o *RetrieveShippingLabelServiceUnavailable) IsServerError() bool

IsServerError returns true when this retrieve shipping label service unavailable response has a 5xx status code

func (*RetrieveShippingLabelServiceUnavailable) IsSuccess

IsSuccess returns true when this retrieve shipping label service unavailable response has a 2xx status code

func (*RetrieveShippingLabelServiceUnavailable) String

type RetrieveShippingLabelTooManyRequests

type RetrieveShippingLabelTooManyRequests struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.RetrieveShippingLabelResponse
}

RetrieveShippingLabelTooManyRequests describes a response with status code 429, with default header values.

The frequency of requests was greater than allowed.

func NewRetrieveShippingLabelTooManyRequests

func NewRetrieveShippingLabelTooManyRequests() *RetrieveShippingLabelTooManyRequests

NewRetrieveShippingLabelTooManyRequests creates a RetrieveShippingLabelTooManyRequests with default headers values

func (*RetrieveShippingLabelTooManyRequests) Error

func (*RetrieveShippingLabelTooManyRequests) GetPayload

func (*RetrieveShippingLabelTooManyRequests) IsClientError

func (o *RetrieveShippingLabelTooManyRequests) IsClientError() bool

IsClientError returns true when this retrieve shipping label too many requests response has a 4xx status code

func (*RetrieveShippingLabelTooManyRequests) IsCode

IsCode returns true when this retrieve shipping label too many requests response a status code equal to that given

func (*RetrieveShippingLabelTooManyRequests) IsRedirect

IsRedirect returns true when this retrieve shipping label too many requests response has a 3xx status code

func (*RetrieveShippingLabelTooManyRequests) IsServerError

func (o *RetrieveShippingLabelTooManyRequests) IsServerError() bool

IsServerError returns true when this retrieve shipping label too many requests response has a 5xx status code

func (*RetrieveShippingLabelTooManyRequests) IsSuccess

IsSuccess returns true when this retrieve shipping label too many requests response has a 2xx status code

func (*RetrieveShippingLabelTooManyRequests) String

type RetrieveShippingLabelUnauthorized

type RetrieveShippingLabelUnauthorized struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *shipping_models.RetrieveShippingLabelResponse
}

RetrieveShippingLabelUnauthorized describes a response with status code 401, with default header values.

The request's Authorization header is not formatted correctly or does not contain a valid token.

func NewRetrieveShippingLabelUnauthorized

func NewRetrieveShippingLabelUnauthorized() *RetrieveShippingLabelUnauthorized

NewRetrieveShippingLabelUnauthorized creates a RetrieveShippingLabelUnauthorized with default headers values

func (*RetrieveShippingLabelUnauthorized) Error

func (*RetrieveShippingLabelUnauthorized) GetPayload

func (*RetrieveShippingLabelUnauthorized) IsClientError

func (o *RetrieveShippingLabelUnauthorized) IsClientError() bool

IsClientError returns true when this retrieve shipping label unauthorized response has a 4xx status code

func (*RetrieveShippingLabelUnauthorized) IsCode

func (o *RetrieveShippingLabelUnauthorized) IsCode(code int) bool

IsCode returns true when this retrieve shipping label unauthorized response a status code equal to that given

func (*RetrieveShippingLabelUnauthorized) IsRedirect

func (o *RetrieveShippingLabelUnauthorized) IsRedirect() bool

IsRedirect returns true when this retrieve shipping label unauthorized response has a 3xx status code

func (*RetrieveShippingLabelUnauthorized) IsServerError

func (o *RetrieveShippingLabelUnauthorized) IsServerError() bool

IsServerError returns true when this retrieve shipping label unauthorized response has a 5xx status code

func (*RetrieveShippingLabelUnauthorized) IsSuccess

func (o *RetrieveShippingLabelUnauthorized) IsSuccess() bool

IsSuccess returns true when this retrieve shipping label unauthorized response has a 2xx status code

func (*RetrieveShippingLabelUnauthorized) String

Jump to

Keyboard shortcuts

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