vendor_invoice

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 Client

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

Client for vendor invoice API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SubmitInvoice

func (a *Client) SubmitInvoice(params *SubmitInvoiceParams, opts ...ClientOption) (*SubmitInvoiceAccepted, error)
SubmitInvoice Submits one or more invoices for a vendor's direct fulfillment orders.

**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 than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	SubmitInvoice(params *SubmitInvoiceParams, opts ...ClientOption) (*SubmitInvoiceAccepted, 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 vendor invoice API client.

type SubmitInvoiceAccepted

type SubmitInvoiceAccepted struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_payments_v1_models.SubmitInvoiceResponse
}

SubmitInvoiceAccepted describes a response with status code 202, with default header values.

Success.

func NewSubmitInvoiceAccepted

func NewSubmitInvoiceAccepted() *SubmitInvoiceAccepted

NewSubmitInvoiceAccepted creates a SubmitInvoiceAccepted with default headers values

func (*SubmitInvoiceAccepted) Error

func (o *SubmitInvoiceAccepted) Error() string

func (*SubmitInvoiceAccepted) IsClientError

func (o *SubmitInvoiceAccepted) IsClientError() bool

IsClientError returns true when this submit invoice accepted response has a 4xx status code

func (*SubmitInvoiceAccepted) IsCode

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

IsCode returns true when this submit invoice accepted response a status code equal to that given

func (*SubmitInvoiceAccepted) IsRedirect

func (o *SubmitInvoiceAccepted) IsRedirect() bool

IsRedirect returns true when this submit invoice accepted response has a 3xx status code

func (*SubmitInvoiceAccepted) IsServerError

func (o *SubmitInvoiceAccepted) IsServerError() bool

IsServerError returns true when this submit invoice accepted response has a 5xx status code

func (*SubmitInvoiceAccepted) IsSuccess

func (o *SubmitInvoiceAccepted) IsSuccess() bool

IsSuccess returns true when this submit invoice accepted response has a 2xx status code

func (*SubmitInvoiceAccepted) String

func (o *SubmitInvoiceAccepted) String() string

type SubmitInvoiceBadRequest

type SubmitInvoiceBadRequest struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_payments_v1_models.SubmitInvoiceResponse
}

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

Request has missing or invalid parameters and cannot be parsed.

func NewSubmitInvoiceBadRequest

func NewSubmitInvoiceBadRequest() *SubmitInvoiceBadRequest

NewSubmitInvoiceBadRequest creates a SubmitInvoiceBadRequest with default headers values

func (*SubmitInvoiceBadRequest) Error

func (o *SubmitInvoiceBadRequest) Error() string

func (*SubmitInvoiceBadRequest) IsClientError

func (o *SubmitInvoiceBadRequest) IsClientError() bool

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

func (*SubmitInvoiceBadRequest) IsCode

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

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

func (*SubmitInvoiceBadRequest) IsRedirect

func (o *SubmitInvoiceBadRequest) IsRedirect() bool

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

func (*SubmitInvoiceBadRequest) IsServerError

func (o *SubmitInvoiceBadRequest) IsServerError() bool

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

func (*SubmitInvoiceBadRequest) IsSuccess

func (o *SubmitInvoiceBadRequest) IsSuccess() bool

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

func (*SubmitInvoiceBadRequest) String

func (o *SubmitInvoiceBadRequest) String() string

type SubmitInvoiceForbidden

type SubmitInvoiceForbidden struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_payments_v1_models.SubmitInvoiceResponse
}

SubmitInvoiceForbidden 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 NewSubmitInvoiceForbidden

func NewSubmitInvoiceForbidden() *SubmitInvoiceForbidden

NewSubmitInvoiceForbidden creates a SubmitInvoiceForbidden with default headers values

func (*SubmitInvoiceForbidden) Error

func (o *SubmitInvoiceForbidden) Error() string

func (*SubmitInvoiceForbidden) IsClientError

func (o *SubmitInvoiceForbidden) IsClientError() bool

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

func (*SubmitInvoiceForbidden) IsCode

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

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

func (*SubmitInvoiceForbidden) IsRedirect

func (o *SubmitInvoiceForbidden) IsRedirect() bool

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

func (*SubmitInvoiceForbidden) IsServerError

func (o *SubmitInvoiceForbidden) IsServerError() bool

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

func (*SubmitInvoiceForbidden) IsSuccess

func (o *SubmitInvoiceForbidden) IsSuccess() bool

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

func (*SubmitInvoiceForbidden) String

func (o *SubmitInvoiceForbidden) String() string

type SubmitInvoiceInternalServerError

type SubmitInvoiceInternalServerError 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 identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_payments_v1_models.SubmitInvoiceResponse
}

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

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

func NewSubmitInvoiceInternalServerError

func NewSubmitInvoiceInternalServerError() *SubmitInvoiceInternalServerError

NewSubmitInvoiceInternalServerError creates a SubmitInvoiceInternalServerError with default headers values

func (*SubmitInvoiceInternalServerError) Error

func (*SubmitInvoiceInternalServerError) IsClientError

func (o *SubmitInvoiceInternalServerError) IsClientError() bool

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

func (*SubmitInvoiceInternalServerError) IsCode

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

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

func (*SubmitInvoiceInternalServerError) IsRedirect

func (o *SubmitInvoiceInternalServerError) IsRedirect() bool

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

func (*SubmitInvoiceInternalServerError) IsServerError

func (o *SubmitInvoiceInternalServerError) IsServerError() bool

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

func (*SubmitInvoiceInternalServerError) IsSuccess

func (o *SubmitInvoiceInternalServerError) IsSuccess() bool

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

func (*SubmitInvoiceInternalServerError) String

type SubmitInvoiceNotFound

type SubmitInvoiceNotFound struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_payments_v1_models.SubmitInvoiceResponse
}

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

The resource specified does not exist.

func NewSubmitInvoiceNotFound

func NewSubmitInvoiceNotFound() *SubmitInvoiceNotFound

NewSubmitInvoiceNotFound creates a SubmitInvoiceNotFound with default headers values

func (*SubmitInvoiceNotFound) Error

func (o *SubmitInvoiceNotFound) Error() string

func (*SubmitInvoiceNotFound) IsClientError

func (o *SubmitInvoiceNotFound) IsClientError() bool

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

func (*SubmitInvoiceNotFound) IsCode

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

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

func (*SubmitInvoiceNotFound) IsRedirect

func (o *SubmitInvoiceNotFound) IsRedirect() bool

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

func (*SubmitInvoiceNotFound) IsServerError

func (o *SubmitInvoiceNotFound) IsServerError() bool

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

func (*SubmitInvoiceNotFound) IsSuccess

func (o *SubmitInvoiceNotFound) IsSuccess() bool

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

func (*SubmitInvoiceNotFound) String

func (o *SubmitInvoiceNotFound) String() string

type SubmitInvoiceParams

type SubmitInvoiceParams struct {

	// Body.
	Body *vendor_direct_fulfillment_payments_v1_models.SubmitInvoiceRequest

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

SubmitInvoiceParams contains all the parameters to send to the API endpoint

for the submit invoice operation.

Typically these are written to a http.Request.

func NewSubmitInvoiceParams

func NewSubmitInvoiceParams() *SubmitInvoiceParams

NewSubmitInvoiceParams creates a new SubmitInvoiceParams 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 NewSubmitInvoiceParamsWithContext

func NewSubmitInvoiceParamsWithContext(ctx context.Context) *SubmitInvoiceParams

NewSubmitInvoiceParamsWithContext creates a new SubmitInvoiceParams object with the ability to set a context for a request.

func NewSubmitInvoiceParamsWithHTTPClient

func NewSubmitInvoiceParamsWithHTTPClient(client *http.Client) *SubmitInvoiceParams

NewSubmitInvoiceParamsWithHTTPClient creates a new SubmitInvoiceParams object with the ability to set a custom HTTPClient for a request.

func NewSubmitInvoiceParamsWithTimeout

func NewSubmitInvoiceParamsWithTimeout(timeout time.Duration) *SubmitInvoiceParams

NewSubmitInvoiceParamsWithTimeout creates a new SubmitInvoiceParams object with the ability to set a timeout on a request.

func (*SubmitInvoiceParams) SetBody

SetBody adds the body to the submit invoice params

func (*SubmitInvoiceParams) SetContext

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

SetContext adds the context to the submit invoice params

func (*SubmitInvoiceParams) SetDefaults

func (o *SubmitInvoiceParams) SetDefaults()

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

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

func (*SubmitInvoiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the submit invoice params

func (*SubmitInvoiceParams) SetTimeout

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

SetTimeout adds the timeout to the submit invoice params

func (*SubmitInvoiceParams) WithBody

WithBody adds the body to the submit invoice params

func (*SubmitInvoiceParams) WithContext

WithContext adds the context to the submit invoice params

func (*SubmitInvoiceParams) WithDefaults

func (o *SubmitInvoiceParams) WithDefaults() *SubmitInvoiceParams

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

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

func (*SubmitInvoiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the submit invoice params

func (*SubmitInvoiceParams) WithTimeout

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

WithTimeout adds the timeout to the submit invoice params

func (*SubmitInvoiceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SubmitInvoiceReader

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

SubmitInvoiceReader is a Reader for the SubmitInvoice structure.

func (*SubmitInvoiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubmitInvoiceRequestEntityTooLarge

type SubmitInvoiceRequestEntityTooLarge 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 identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_payments_v1_models.SubmitInvoiceResponse
}

SubmitInvoiceRequestEntityTooLarge describes a response with status code 413, with default header values.

The request size exceeded the maximum accepted size.

func NewSubmitInvoiceRequestEntityTooLarge

func NewSubmitInvoiceRequestEntityTooLarge() *SubmitInvoiceRequestEntityTooLarge

NewSubmitInvoiceRequestEntityTooLarge creates a SubmitInvoiceRequestEntityTooLarge with default headers values

func (*SubmitInvoiceRequestEntityTooLarge) Error

func (*SubmitInvoiceRequestEntityTooLarge) IsClientError

func (o *SubmitInvoiceRequestEntityTooLarge) IsClientError() bool

IsClientError returns true when this submit invoice request entity too large response has a 4xx status code

func (*SubmitInvoiceRequestEntityTooLarge) IsCode

IsCode returns true when this submit invoice request entity too large response a status code equal to that given

func (*SubmitInvoiceRequestEntityTooLarge) IsRedirect

func (o *SubmitInvoiceRequestEntityTooLarge) IsRedirect() bool

IsRedirect returns true when this submit invoice request entity too large response has a 3xx status code

func (*SubmitInvoiceRequestEntityTooLarge) IsServerError

func (o *SubmitInvoiceRequestEntityTooLarge) IsServerError() bool

IsServerError returns true when this submit invoice request entity too large response has a 5xx status code

func (*SubmitInvoiceRequestEntityTooLarge) IsSuccess

IsSuccess returns true when this submit invoice request entity too large response has a 2xx status code

func (*SubmitInvoiceRequestEntityTooLarge) String

type SubmitInvoiceServiceUnavailable

type SubmitInvoiceServiceUnavailable 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 identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_payments_v1_models.SubmitInvoiceResponse
}

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

Temporary overloading or maintenance of the server.

func NewSubmitInvoiceServiceUnavailable

func NewSubmitInvoiceServiceUnavailable() *SubmitInvoiceServiceUnavailable

NewSubmitInvoiceServiceUnavailable creates a SubmitInvoiceServiceUnavailable with default headers values

func (*SubmitInvoiceServiceUnavailable) Error

func (*SubmitInvoiceServiceUnavailable) IsClientError

func (o *SubmitInvoiceServiceUnavailable) IsClientError() bool

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

func (*SubmitInvoiceServiceUnavailable) IsCode

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

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

func (*SubmitInvoiceServiceUnavailable) IsRedirect

func (o *SubmitInvoiceServiceUnavailable) IsRedirect() bool

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

func (*SubmitInvoiceServiceUnavailable) IsServerError

func (o *SubmitInvoiceServiceUnavailable) IsServerError() bool

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

func (*SubmitInvoiceServiceUnavailable) IsSuccess

func (o *SubmitInvoiceServiceUnavailable) IsSuccess() bool

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

func (*SubmitInvoiceServiceUnavailable) String

type SubmitInvoiceTooManyRequests

type SubmitInvoiceTooManyRequests 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 identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_payments_v1_models.SubmitInvoiceResponse
}

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

The frequency of requests was greater than allowed.

func NewSubmitInvoiceTooManyRequests

func NewSubmitInvoiceTooManyRequests() *SubmitInvoiceTooManyRequests

NewSubmitInvoiceTooManyRequests creates a SubmitInvoiceTooManyRequests with default headers values

func (*SubmitInvoiceTooManyRequests) Error

func (*SubmitInvoiceTooManyRequests) IsClientError

func (o *SubmitInvoiceTooManyRequests) IsClientError() bool

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

func (*SubmitInvoiceTooManyRequests) IsCode

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

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

func (*SubmitInvoiceTooManyRequests) IsRedirect

func (o *SubmitInvoiceTooManyRequests) IsRedirect() bool

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

func (*SubmitInvoiceTooManyRequests) IsServerError

func (o *SubmitInvoiceTooManyRequests) IsServerError() bool

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

func (*SubmitInvoiceTooManyRequests) IsSuccess

func (o *SubmitInvoiceTooManyRequests) IsSuccess() bool

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

func (*SubmitInvoiceTooManyRequests) String

type SubmitInvoiceUnsupportedMediaType

type SubmitInvoiceUnsupportedMediaType 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 identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_payments_v1_models.SubmitInvoiceResponse
}

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

The request payload is in an unsupported format.

func NewSubmitInvoiceUnsupportedMediaType

func NewSubmitInvoiceUnsupportedMediaType() *SubmitInvoiceUnsupportedMediaType

NewSubmitInvoiceUnsupportedMediaType creates a SubmitInvoiceUnsupportedMediaType with default headers values

func (*SubmitInvoiceUnsupportedMediaType) Error

func (*SubmitInvoiceUnsupportedMediaType) IsClientError

func (o *SubmitInvoiceUnsupportedMediaType) IsClientError() bool

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

func (*SubmitInvoiceUnsupportedMediaType) IsCode

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

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

func (*SubmitInvoiceUnsupportedMediaType) IsRedirect

func (o *SubmitInvoiceUnsupportedMediaType) IsRedirect() bool

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

func (*SubmitInvoiceUnsupportedMediaType) IsServerError

func (o *SubmitInvoiceUnsupportedMediaType) IsServerError() bool

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

func (*SubmitInvoiceUnsupportedMediaType) IsSuccess

func (o *SubmitInvoiceUnsupportedMediaType) IsSuccess() bool

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

func (*SubmitInvoiceUnsupportedMediaType) String

Jump to

Keyboard shortcuts

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