customer_invoices

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for customer invoices API

func (*Client) GetCustomerInvoice

func (a *Client) GetCustomerInvoice(params *GetCustomerInvoiceParams, opts ...ClientOption) (*GetCustomerInvoiceOK, error)
GetCustomerInvoice Returns a customer invoice based on the purchaseOrderNumber that you specify.

**Usage Plan:**

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

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 then 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) GetCustomerInvoices

func (a *Client) GetCustomerInvoices(params *GetCustomerInvoicesParams, opts ...ClientOption) (*GetCustomerInvoicesOK, error)
GetCustomerInvoices Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days.

**Usage Plan:**

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

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 then 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) 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 {
	GetCustomerInvoice(params *GetCustomerInvoiceParams, opts ...ClientOption) (*GetCustomerInvoiceOK, error)

	GetCustomerInvoices(params *GetCustomerInvoicesParams, opts ...ClientOption) (*GetCustomerInvoicesOK, 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 customer invoices API client.

type GetCustomerInvoiceBadRequest

type GetCustomerInvoiceBadRequest struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.ErrorList
}

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

Request has missing or invalid parameters and cannot be parsed.

func NewGetCustomerInvoiceBadRequest

func NewGetCustomerInvoiceBadRequest() *GetCustomerInvoiceBadRequest

NewGetCustomerInvoiceBadRequest creates a GetCustomerInvoiceBadRequest with default headers values

func (*GetCustomerInvoiceBadRequest) Error

func (*GetCustomerInvoiceBadRequest) IsClientError

func (o *GetCustomerInvoiceBadRequest) IsClientError() bool

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

func (*GetCustomerInvoiceBadRequest) IsCode

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

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

func (*GetCustomerInvoiceBadRequest) IsRedirect

func (o *GetCustomerInvoiceBadRequest) IsRedirect() bool

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

func (*GetCustomerInvoiceBadRequest) IsServerError

func (o *GetCustomerInvoiceBadRequest) IsServerError() bool

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

func (*GetCustomerInvoiceBadRequest) IsSuccess

func (o *GetCustomerInvoiceBadRequest) IsSuccess() bool

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

func (*GetCustomerInvoiceBadRequest) String

type GetCustomerInvoiceForbidden

type GetCustomerInvoiceForbidden struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.ErrorList
}

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

Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.

func NewGetCustomerInvoiceForbidden

func NewGetCustomerInvoiceForbidden() *GetCustomerInvoiceForbidden

NewGetCustomerInvoiceForbidden creates a GetCustomerInvoiceForbidden with default headers values

func (*GetCustomerInvoiceForbidden) Error

func (*GetCustomerInvoiceForbidden) IsClientError

func (o *GetCustomerInvoiceForbidden) IsClientError() bool

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

func (*GetCustomerInvoiceForbidden) IsCode

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

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

func (*GetCustomerInvoiceForbidden) IsRedirect

func (o *GetCustomerInvoiceForbidden) IsRedirect() bool

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

func (*GetCustomerInvoiceForbidden) IsServerError

func (o *GetCustomerInvoiceForbidden) IsServerError() bool

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

func (*GetCustomerInvoiceForbidden) IsSuccess

func (o *GetCustomerInvoiceForbidden) IsSuccess() bool

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

func (*GetCustomerInvoiceForbidden) String

func (o *GetCustomerInvoiceForbidden) String() string

type GetCustomerInvoiceInternalServerError

type GetCustomerInvoiceInternalServerError struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.ErrorList
}

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

An unexpected condition occurred that prevented the server from fulfilling the request.

func NewGetCustomerInvoiceInternalServerError

func NewGetCustomerInvoiceInternalServerError() *GetCustomerInvoiceInternalServerError

NewGetCustomerInvoiceInternalServerError creates a GetCustomerInvoiceInternalServerError with default headers values

func (*GetCustomerInvoiceInternalServerError) Error

func (*GetCustomerInvoiceInternalServerError) GetPayload

func (*GetCustomerInvoiceInternalServerError) IsClientError

func (o *GetCustomerInvoiceInternalServerError) IsClientError() bool

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

func (*GetCustomerInvoiceInternalServerError) IsCode

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

func (*GetCustomerInvoiceInternalServerError) IsRedirect

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

func (*GetCustomerInvoiceInternalServerError) IsServerError

func (o *GetCustomerInvoiceInternalServerError) IsServerError() bool

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

func (*GetCustomerInvoiceInternalServerError) IsSuccess

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

func (*GetCustomerInvoiceInternalServerError) String

type GetCustomerInvoiceNotFound

type GetCustomerInvoiceNotFound struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.ErrorList
}

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

The resource specified does not exist.

func NewGetCustomerInvoiceNotFound

func NewGetCustomerInvoiceNotFound() *GetCustomerInvoiceNotFound

NewGetCustomerInvoiceNotFound creates a GetCustomerInvoiceNotFound with default headers values

func (*GetCustomerInvoiceNotFound) Error

func (*GetCustomerInvoiceNotFound) IsClientError

func (o *GetCustomerInvoiceNotFound) IsClientError() bool

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

func (*GetCustomerInvoiceNotFound) IsCode

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

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

func (*GetCustomerInvoiceNotFound) IsRedirect

func (o *GetCustomerInvoiceNotFound) IsRedirect() bool

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

func (*GetCustomerInvoiceNotFound) IsServerError

func (o *GetCustomerInvoiceNotFound) IsServerError() bool

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

func (*GetCustomerInvoiceNotFound) IsSuccess

func (o *GetCustomerInvoiceNotFound) IsSuccess() bool

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

func (*GetCustomerInvoiceNotFound) String

func (o *GetCustomerInvoiceNotFound) String() string

type GetCustomerInvoiceOK

type GetCustomerInvoiceOK struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.CustomerInvoice
}

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

Success.

func NewGetCustomerInvoiceOK

func NewGetCustomerInvoiceOK() *GetCustomerInvoiceOK

NewGetCustomerInvoiceOK creates a GetCustomerInvoiceOK with default headers values

func (*GetCustomerInvoiceOK) Error

func (o *GetCustomerInvoiceOK) Error() string

func (*GetCustomerInvoiceOK) IsClientError

func (o *GetCustomerInvoiceOK) IsClientError() bool

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

func (*GetCustomerInvoiceOK) IsCode

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

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

func (*GetCustomerInvoiceOK) IsRedirect

func (o *GetCustomerInvoiceOK) IsRedirect() bool

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

func (*GetCustomerInvoiceOK) IsServerError

func (o *GetCustomerInvoiceOK) IsServerError() bool

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

func (*GetCustomerInvoiceOK) IsSuccess

func (o *GetCustomerInvoiceOK) IsSuccess() bool

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

func (*GetCustomerInvoiceOK) String

func (o *GetCustomerInvoiceOK) String() string

type GetCustomerInvoiceParams

type GetCustomerInvoiceParams struct {

	/* PurchaseOrderNumber.

	   Purchase order number of the shipment for which to return the invoice.
	*/
	PurchaseOrderNumber string

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

GetCustomerInvoiceParams contains all the parameters to send to the API endpoint

for the get customer invoice operation.

Typically these are written to a http.Request.

func NewGetCustomerInvoiceParams

func NewGetCustomerInvoiceParams() *GetCustomerInvoiceParams

NewGetCustomerInvoiceParams creates a new GetCustomerInvoiceParams 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 NewGetCustomerInvoiceParamsWithContext

func NewGetCustomerInvoiceParamsWithContext(ctx context.Context) *GetCustomerInvoiceParams

NewGetCustomerInvoiceParamsWithContext creates a new GetCustomerInvoiceParams object with the ability to set a context for a request.

func NewGetCustomerInvoiceParamsWithHTTPClient

func NewGetCustomerInvoiceParamsWithHTTPClient(client *http.Client) *GetCustomerInvoiceParams

NewGetCustomerInvoiceParamsWithHTTPClient creates a new GetCustomerInvoiceParams object with the ability to set a custom HTTPClient for a request.

func NewGetCustomerInvoiceParamsWithTimeout

func NewGetCustomerInvoiceParamsWithTimeout(timeout time.Duration) *GetCustomerInvoiceParams

NewGetCustomerInvoiceParamsWithTimeout creates a new GetCustomerInvoiceParams object with the ability to set a timeout on a request.

func (*GetCustomerInvoiceParams) SetContext

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

SetContext adds the context to the get customer invoice params

func (*GetCustomerInvoiceParams) SetDefaults

func (o *GetCustomerInvoiceParams) SetDefaults()

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

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

func (*GetCustomerInvoiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get customer invoice params

func (*GetCustomerInvoiceParams) SetPurchaseOrderNumber

func (o *GetCustomerInvoiceParams) SetPurchaseOrderNumber(purchaseOrderNumber string)

SetPurchaseOrderNumber adds the purchaseOrderNumber to the get customer invoice params

func (*GetCustomerInvoiceParams) SetTimeout

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

SetTimeout adds the timeout to the get customer invoice params

func (*GetCustomerInvoiceParams) WithContext

WithContext adds the context to the get customer invoice params

func (*GetCustomerInvoiceParams) WithDefaults

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

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

func (*GetCustomerInvoiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get customer invoice params

func (*GetCustomerInvoiceParams) WithPurchaseOrderNumber

func (o *GetCustomerInvoiceParams) WithPurchaseOrderNumber(purchaseOrderNumber string) *GetCustomerInvoiceParams

WithPurchaseOrderNumber adds the purchaseOrderNumber to the get customer invoice params

func (*GetCustomerInvoiceParams) WithTimeout

WithTimeout adds the timeout to the get customer invoice params

func (*GetCustomerInvoiceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCustomerInvoiceReader

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

GetCustomerInvoiceReader is a Reader for the GetCustomerInvoice structure.

func (*GetCustomerInvoiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCustomerInvoiceServiceUnavailable

type GetCustomerInvoiceServiceUnavailable struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.ErrorList
}

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

Temporary overloading or maintenance of the server.

func NewGetCustomerInvoiceServiceUnavailable

func NewGetCustomerInvoiceServiceUnavailable() *GetCustomerInvoiceServiceUnavailable

NewGetCustomerInvoiceServiceUnavailable creates a GetCustomerInvoiceServiceUnavailable with default headers values

func (*GetCustomerInvoiceServiceUnavailable) Error

func (*GetCustomerInvoiceServiceUnavailable) GetPayload

func (*GetCustomerInvoiceServiceUnavailable) IsClientError

func (o *GetCustomerInvoiceServiceUnavailable) IsClientError() bool

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

func (*GetCustomerInvoiceServiceUnavailable) IsCode

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

func (*GetCustomerInvoiceServiceUnavailable) IsRedirect

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

func (*GetCustomerInvoiceServiceUnavailable) IsServerError

func (o *GetCustomerInvoiceServiceUnavailable) IsServerError() bool

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

func (*GetCustomerInvoiceServiceUnavailable) IsSuccess

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

func (*GetCustomerInvoiceServiceUnavailable) String

type GetCustomerInvoiceTooManyRequests

type GetCustomerInvoiceTooManyRequests struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.ErrorList
}

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

The frequency of requests was greater than allowed.

func NewGetCustomerInvoiceTooManyRequests

func NewGetCustomerInvoiceTooManyRequests() *GetCustomerInvoiceTooManyRequests

NewGetCustomerInvoiceTooManyRequests creates a GetCustomerInvoiceTooManyRequests with default headers values

func (*GetCustomerInvoiceTooManyRequests) Error

func (*GetCustomerInvoiceTooManyRequests) GetPayload

func (*GetCustomerInvoiceTooManyRequests) IsClientError

func (o *GetCustomerInvoiceTooManyRequests) IsClientError() bool

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

func (*GetCustomerInvoiceTooManyRequests) IsCode

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

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

func (*GetCustomerInvoiceTooManyRequests) IsRedirect

func (o *GetCustomerInvoiceTooManyRequests) IsRedirect() bool

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

func (*GetCustomerInvoiceTooManyRequests) IsServerError

func (o *GetCustomerInvoiceTooManyRequests) IsServerError() bool

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

func (*GetCustomerInvoiceTooManyRequests) IsSuccess

func (o *GetCustomerInvoiceTooManyRequests) IsSuccess() bool

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

func (*GetCustomerInvoiceTooManyRequests) String

type GetCustomerInvoiceUnauthorized

type GetCustomerInvoiceUnauthorized struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.ErrorList
}

GetCustomerInvoiceUnauthorized 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 NewGetCustomerInvoiceUnauthorized

func NewGetCustomerInvoiceUnauthorized() *GetCustomerInvoiceUnauthorized

NewGetCustomerInvoiceUnauthorized creates a GetCustomerInvoiceUnauthorized with default headers values

func (*GetCustomerInvoiceUnauthorized) Error

func (*GetCustomerInvoiceUnauthorized) GetPayload

func (*GetCustomerInvoiceUnauthorized) IsClientError

func (o *GetCustomerInvoiceUnauthorized) IsClientError() bool

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

func (*GetCustomerInvoiceUnauthorized) IsCode

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

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

func (*GetCustomerInvoiceUnauthorized) IsRedirect

func (o *GetCustomerInvoiceUnauthorized) IsRedirect() bool

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

func (*GetCustomerInvoiceUnauthorized) IsServerError

func (o *GetCustomerInvoiceUnauthorized) IsServerError() bool

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

func (*GetCustomerInvoiceUnauthorized) IsSuccess

func (o *GetCustomerInvoiceUnauthorized) IsSuccess() bool

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

func (*GetCustomerInvoiceUnauthorized) String

type GetCustomerInvoiceUnsupportedMediaType

type GetCustomerInvoiceUnsupportedMediaType struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.ErrorList
}

GetCustomerInvoiceUnsupportedMediaType describes a response with status code 415, with default header values.

The request payload is in an unsupported format.

func NewGetCustomerInvoiceUnsupportedMediaType

func NewGetCustomerInvoiceUnsupportedMediaType() *GetCustomerInvoiceUnsupportedMediaType

NewGetCustomerInvoiceUnsupportedMediaType creates a GetCustomerInvoiceUnsupportedMediaType with default headers values

func (*GetCustomerInvoiceUnsupportedMediaType) Error

func (*GetCustomerInvoiceUnsupportedMediaType) GetPayload

func (*GetCustomerInvoiceUnsupportedMediaType) IsClientError

func (o *GetCustomerInvoiceUnsupportedMediaType) IsClientError() bool

IsClientError returns true when this get customer invoice unsupported media type response has a 4xx status code

func (*GetCustomerInvoiceUnsupportedMediaType) IsCode

IsCode returns true when this get customer invoice unsupported media type response a status code equal to that given

func (*GetCustomerInvoiceUnsupportedMediaType) IsRedirect

IsRedirect returns true when this get customer invoice unsupported media type response has a 3xx status code

func (*GetCustomerInvoiceUnsupportedMediaType) IsServerError

func (o *GetCustomerInvoiceUnsupportedMediaType) IsServerError() bool

IsServerError returns true when this get customer invoice unsupported media type response has a 5xx status code

func (*GetCustomerInvoiceUnsupportedMediaType) IsSuccess

IsSuccess returns true when this get customer invoice unsupported media type response has a 2xx status code

func (*GetCustomerInvoiceUnsupportedMediaType) String

type GetCustomerInvoicesBadRequest

type GetCustomerInvoicesBadRequest struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.ErrorList
}

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

Request has missing or invalid parameters and cannot be parsed.

func NewGetCustomerInvoicesBadRequest

func NewGetCustomerInvoicesBadRequest() *GetCustomerInvoicesBadRequest

NewGetCustomerInvoicesBadRequest creates a GetCustomerInvoicesBadRequest with default headers values

func (*GetCustomerInvoicesBadRequest) Error

func (*GetCustomerInvoicesBadRequest) GetPayload

func (*GetCustomerInvoicesBadRequest) IsClientError

func (o *GetCustomerInvoicesBadRequest) IsClientError() bool

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

func (*GetCustomerInvoicesBadRequest) IsCode

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

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

func (*GetCustomerInvoicesBadRequest) IsRedirect

func (o *GetCustomerInvoicesBadRequest) IsRedirect() bool

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

func (*GetCustomerInvoicesBadRequest) IsServerError

func (o *GetCustomerInvoicesBadRequest) IsServerError() bool

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

func (*GetCustomerInvoicesBadRequest) IsSuccess

func (o *GetCustomerInvoicesBadRequest) IsSuccess() bool

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

func (*GetCustomerInvoicesBadRequest) String

type GetCustomerInvoicesForbidden

type GetCustomerInvoicesForbidden struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.ErrorList
}

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

Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.

func NewGetCustomerInvoicesForbidden

func NewGetCustomerInvoicesForbidden() *GetCustomerInvoicesForbidden

NewGetCustomerInvoicesForbidden creates a GetCustomerInvoicesForbidden with default headers values

func (*GetCustomerInvoicesForbidden) Error

func (*GetCustomerInvoicesForbidden) IsClientError

func (o *GetCustomerInvoicesForbidden) IsClientError() bool

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

func (*GetCustomerInvoicesForbidden) IsCode

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

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

func (*GetCustomerInvoicesForbidden) IsRedirect

func (o *GetCustomerInvoicesForbidden) IsRedirect() bool

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

func (*GetCustomerInvoicesForbidden) IsServerError

func (o *GetCustomerInvoicesForbidden) IsServerError() bool

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

func (*GetCustomerInvoicesForbidden) IsSuccess

func (o *GetCustomerInvoicesForbidden) IsSuccess() bool

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

func (*GetCustomerInvoicesForbidden) String

type GetCustomerInvoicesInternalServerError

type GetCustomerInvoicesInternalServerError struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.ErrorList
}

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

An unexpected condition occurred that prevented the server from fulfilling the request.

func NewGetCustomerInvoicesInternalServerError

func NewGetCustomerInvoicesInternalServerError() *GetCustomerInvoicesInternalServerError

NewGetCustomerInvoicesInternalServerError creates a GetCustomerInvoicesInternalServerError with default headers values

func (*GetCustomerInvoicesInternalServerError) Error

func (*GetCustomerInvoicesInternalServerError) GetPayload

func (*GetCustomerInvoicesInternalServerError) IsClientError

func (o *GetCustomerInvoicesInternalServerError) IsClientError() bool

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

func (*GetCustomerInvoicesInternalServerError) IsCode

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

func (*GetCustomerInvoicesInternalServerError) IsRedirect

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

func (*GetCustomerInvoicesInternalServerError) IsServerError

func (o *GetCustomerInvoicesInternalServerError) IsServerError() bool

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

func (*GetCustomerInvoicesInternalServerError) IsSuccess

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

func (*GetCustomerInvoicesInternalServerError) String

type GetCustomerInvoicesNotFound

type GetCustomerInvoicesNotFound struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.ErrorList
}

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

The resource specified does not exist.

func NewGetCustomerInvoicesNotFound

func NewGetCustomerInvoicesNotFound() *GetCustomerInvoicesNotFound

NewGetCustomerInvoicesNotFound creates a GetCustomerInvoicesNotFound with default headers values

func (*GetCustomerInvoicesNotFound) Error

func (*GetCustomerInvoicesNotFound) IsClientError

func (o *GetCustomerInvoicesNotFound) IsClientError() bool

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

func (*GetCustomerInvoicesNotFound) IsCode

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

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

func (*GetCustomerInvoicesNotFound) IsRedirect

func (o *GetCustomerInvoicesNotFound) IsRedirect() bool

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

func (*GetCustomerInvoicesNotFound) IsServerError

func (o *GetCustomerInvoicesNotFound) IsServerError() bool

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

func (*GetCustomerInvoicesNotFound) IsSuccess

func (o *GetCustomerInvoicesNotFound) IsSuccess() bool

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

func (*GetCustomerInvoicesNotFound) String

func (o *GetCustomerInvoicesNotFound) String() string

type GetCustomerInvoicesOK

type GetCustomerInvoicesOK struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.CustomerInvoiceList
}

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

Success.

func NewGetCustomerInvoicesOK

func NewGetCustomerInvoicesOK() *GetCustomerInvoicesOK

NewGetCustomerInvoicesOK creates a GetCustomerInvoicesOK with default headers values

func (*GetCustomerInvoicesOK) Error

func (o *GetCustomerInvoicesOK) Error() string

func (*GetCustomerInvoicesOK) IsClientError

func (o *GetCustomerInvoicesOK) IsClientError() bool

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

func (*GetCustomerInvoicesOK) IsCode

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

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

func (*GetCustomerInvoicesOK) IsRedirect

func (o *GetCustomerInvoicesOK) IsRedirect() bool

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

func (*GetCustomerInvoicesOK) IsServerError

func (o *GetCustomerInvoicesOK) IsServerError() bool

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

func (*GetCustomerInvoicesOK) IsSuccess

func (o *GetCustomerInvoicesOK) IsSuccess() bool

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

func (*GetCustomerInvoicesOK) String

func (o *GetCustomerInvoicesOK) String() string

type GetCustomerInvoicesParams

type GetCustomerInvoicesParams struct {

	/* CreatedAfter.

	   Orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.

	   Format: date-time
	*/
	CreatedAfter strfmt.DateTime

	/* CreatedBefore.

	   Orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.

	   Format: date-time
	*/
	CreatedBefore strfmt.DateTime

	/* Limit.

	   The limit to the number of records returned
	*/
	Limit *int64

	/* NextToken.

	   Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.
	*/
	NextToken *string

	/* ShipFromPartyID.

	   The vendor warehouseId for order fulfillment. If not specified, the result will contain orders for all warehouses.
	*/
	ShipFromPartyID *string

	/* SortOrder.

	   Sort ASC or DESC by order creation date.
	*/
	SortOrder *string

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

GetCustomerInvoicesParams contains all the parameters to send to the API endpoint

for the get customer invoices operation.

Typically these are written to a http.Request.

func NewGetCustomerInvoicesParams

func NewGetCustomerInvoicesParams() *GetCustomerInvoicesParams

NewGetCustomerInvoicesParams creates a new GetCustomerInvoicesParams 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 NewGetCustomerInvoicesParamsWithContext

func NewGetCustomerInvoicesParamsWithContext(ctx context.Context) *GetCustomerInvoicesParams

NewGetCustomerInvoicesParamsWithContext creates a new GetCustomerInvoicesParams object with the ability to set a context for a request.

func NewGetCustomerInvoicesParamsWithHTTPClient

func NewGetCustomerInvoicesParamsWithHTTPClient(client *http.Client) *GetCustomerInvoicesParams

NewGetCustomerInvoicesParamsWithHTTPClient creates a new GetCustomerInvoicesParams object with the ability to set a custom HTTPClient for a request.

func NewGetCustomerInvoicesParamsWithTimeout

func NewGetCustomerInvoicesParamsWithTimeout(timeout time.Duration) *GetCustomerInvoicesParams

NewGetCustomerInvoicesParamsWithTimeout creates a new GetCustomerInvoicesParams object with the ability to set a timeout on a request.

func (*GetCustomerInvoicesParams) SetContext

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

SetContext adds the context to the get customer invoices params

func (*GetCustomerInvoicesParams) SetCreatedAfter

func (o *GetCustomerInvoicesParams) SetCreatedAfter(createdAfter strfmt.DateTime)

SetCreatedAfter adds the createdAfter to the get customer invoices params

func (*GetCustomerInvoicesParams) SetCreatedBefore

func (o *GetCustomerInvoicesParams) SetCreatedBefore(createdBefore strfmt.DateTime)

SetCreatedBefore adds the createdBefore to the get customer invoices params

func (*GetCustomerInvoicesParams) SetDefaults

func (o *GetCustomerInvoicesParams) SetDefaults()

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

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

func (*GetCustomerInvoicesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get customer invoices params

func (*GetCustomerInvoicesParams) SetLimit

func (o *GetCustomerInvoicesParams) SetLimit(limit *int64)

SetLimit adds the limit to the get customer invoices params

func (*GetCustomerInvoicesParams) SetNextToken

func (o *GetCustomerInvoicesParams) SetNextToken(nextToken *string)

SetNextToken adds the nextToken to the get customer invoices params

func (*GetCustomerInvoicesParams) SetShipFromPartyID

func (o *GetCustomerInvoicesParams) SetShipFromPartyID(shipFromPartyID *string)

SetShipFromPartyID adds the shipFromPartyId to the get customer invoices params

func (*GetCustomerInvoicesParams) SetSortOrder

func (o *GetCustomerInvoicesParams) SetSortOrder(sortOrder *string)

SetSortOrder adds the sortOrder to the get customer invoices params

func (*GetCustomerInvoicesParams) SetTimeout

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

SetTimeout adds the timeout to the get customer invoices params

func (*GetCustomerInvoicesParams) WithContext

WithContext adds the context to the get customer invoices params

func (*GetCustomerInvoicesParams) WithCreatedAfter

func (o *GetCustomerInvoicesParams) WithCreatedAfter(createdAfter strfmt.DateTime) *GetCustomerInvoicesParams

WithCreatedAfter adds the createdAfter to the get customer invoices params

func (*GetCustomerInvoicesParams) WithCreatedBefore

func (o *GetCustomerInvoicesParams) WithCreatedBefore(createdBefore strfmt.DateTime) *GetCustomerInvoicesParams

WithCreatedBefore adds the createdBefore to the get customer invoices params

func (*GetCustomerInvoicesParams) WithDefaults

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

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

func (*GetCustomerInvoicesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get customer invoices params

func (*GetCustomerInvoicesParams) WithLimit

WithLimit adds the limit to the get customer invoices params

func (*GetCustomerInvoicesParams) WithNextToken

func (o *GetCustomerInvoicesParams) WithNextToken(nextToken *string) *GetCustomerInvoicesParams

WithNextToken adds the nextToken to the get customer invoices params

func (*GetCustomerInvoicesParams) WithShipFromPartyID

func (o *GetCustomerInvoicesParams) WithShipFromPartyID(shipFromPartyID *string) *GetCustomerInvoicesParams

WithShipFromPartyID adds the shipFromPartyID to the get customer invoices params

func (*GetCustomerInvoicesParams) WithSortOrder

func (o *GetCustomerInvoicesParams) WithSortOrder(sortOrder *string) *GetCustomerInvoicesParams

WithSortOrder adds the sortOrder to the get customer invoices params

func (*GetCustomerInvoicesParams) WithTimeout

WithTimeout adds the timeout to the get customer invoices params

func (*GetCustomerInvoicesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCustomerInvoicesReader

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

GetCustomerInvoicesReader is a Reader for the GetCustomerInvoices structure.

func (*GetCustomerInvoicesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCustomerInvoicesServiceUnavailable

type GetCustomerInvoicesServiceUnavailable struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.ErrorList
}

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

Temporary overloading or maintenance of the server.

func NewGetCustomerInvoicesServiceUnavailable

func NewGetCustomerInvoicesServiceUnavailable() *GetCustomerInvoicesServiceUnavailable

NewGetCustomerInvoicesServiceUnavailable creates a GetCustomerInvoicesServiceUnavailable with default headers values

func (*GetCustomerInvoicesServiceUnavailable) Error

func (*GetCustomerInvoicesServiceUnavailable) GetPayload

func (*GetCustomerInvoicesServiceUnavailable) IsClientError

func (o *GetCustomerInvoicesServiceUnavailable) IsClientError() bool

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

func (*GetCustomerInvoicesServiceUnavailable) IsCode

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

func (*GetCustomerInvoicesServiceUnavailable) IsRedirect

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

func (*GetCustomerInvoicesServiceUnavailable) IsServerError

func (o *GetCustomerInvoicesServiceUnavailable) IsServerError() bool

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

func (*GetCustomerInvoicesServiceUnavailable) IsSuccess

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

func (*GetCustomerInvoicesServiceUnavailable) String

type GetCustomerInvoicesTooManyRequests

type GetCustomerInvoicesTooManyRequests struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.ErrorList
}

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

The frequency of requests was greater than allowed.

func NewGetCustomerInvoicesTooManyRequests

func NewGetCustomerInvoicesTooManyRequests() *GetCustomerInvoicesTooManyRequests

NewGetCustomerInvoicesTooManyRequests creates a GetCustomerInvoicesTooManyRequests with default headers values

func (*GetCustomerInvoicesTooManyRequests) Error

func (*GetCustomerInvoicesTooManyRequests) GetPayload

func (*GetCustomerInvoicesTooManyRequests) IsClientError

func (o *GetCustomerInvoicesTooManyRequests) IsClientError() bool

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

func (*GetCustomerInvoicesTooManyRequests) IsCode

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

func (*GetCustomerInvoicesTooManyRequests) IsRedirect

func (o *GetCustomerInvoicesTooManyRequests) IsRedirect() bool

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

func (*GetCustomerInvoicesTooManyRequests) IsServerError

func (o *GetCustomerInvoicesTooManyRequests) IsServerError() bool

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

func (*GetCustomerInvoicesTooManyRequests) IsSuccess

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

func (*GetCustomerInvoicesTooManyRequests) String

type GetCustomerInvoicesUnsupportedMediaType

type GetCustomerInvoicesUnsupportedMediaType struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_shipping_2021_12_28_models.ErrorList
}

GetCustomerInvoicesUnsupportedMediaType describes a response with status code 415, with default header values.

The request payload is in an unsupported format.

func NewGetCustomerInvoicesUnsupportedMediaType

func NewGetCustomerInvoicesUnsupportedMediaType() *GetCustomerInvoicesUnsupportedMediaType

NewGetCustomerInvoicesUnsupportedMediaType creates a GetCustomerInvoicesUnsupportedMediaType with default headers values

func (*GetCustomerInvoicesUnsupportedMediaType) Error

func (*GetCustomerInvoicesUnsupportedMediaType) GetPayload

func (*GetCustomerInvoicesUnsupportedMediaType) IsClientError

func (o *GetCustomerInvoicesUnsupportedMediaType) IsClientError() bool

IsClientError returns true when this get customer invoices unsupported media type response has a 4xx status code

func (*GetCustomerInvoicesUnsupportedMediaType) IsCode

IsCode returns true when this get customer invoices unsupported media type response a status code equal to that given

func (*GetCustomerInvoicesUnsupportedMediaType) IsRedirect

IsRedirect returns true when this get customer invoices unsupported media type response has a 3xx status code

func (*GetCustomerInvoicesUnsupportedMediaType) IsServerError

func (o *GetCustomerInvoicesUnsupportedMediaType) IsServerError() bool

IsServerError returns true when this get customer invoices unsupported media type response has a 5xx status code

func (*GetCustomerInvoicesUnsupportedMediaType) IsSuccess

IsSuccess returns true when this get customer invoices unsupported media type response has a 2xx status code

func (*GetCustomerInvoicesUnsupportedMediaType) String

Jump to

Keyboard shortcuts

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