vendor_payments

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 payments API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SubmitInvoices

func (a *Client) SubmitInvoices(params *SubmitInvoicesParams, opts ...ClientOption) (*SubmitInvoicesAccepted, error)
SubmitInvoices Submit new invoices to Amazon.

**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 {
	SubmitInvoices(params *SubmitInvoicesParams, opts ...ClientOption) (*SubmitInvoicesAccepted, 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 payments API client.

type SubmitInvoicesAccepted

type SubmitInvoicesAccepted struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_invoices_models.SubmitInvoicesResponse
}

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

Success.

func NewSubmitInvoicesAccepted

func NewSubmitInvoicesAccepted() *SubmitInvoicesAccepted

NewSubmitInvoicesAccepted creates a SubmitInvoicesAccepted with default headers values

func (*SubmitInvoicesAccepted) Error

func (o *SubmitInvoicesAccepted) Error() string

func (*SubmitInvoicesAccepted) GetPayload

func (*SubmitInvoicesAccepted) IsClientError

func (o *SubmitInvoicesAccepted) IsClientError() bool

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

func (*SubmitInvoicesAccepted) IsCode

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

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

func (*SubmitInvoicesAccepted) IsRedirect

func (o *SubmitInvoicesAccepted) IsRedirect() bool

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

func (*SubmitInvoicesAccepted) IsServerError

func (o *SubmitInvoicesAccepted) IsServerError() bool

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

func (*SubmitInvoicesAccepted) IsSuccess

func (o *SubmitInvoicesAccepted) IsSuccess() bool

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

func (*SubmitInvoicesAccepted) String

func (o *SubmitInvoicesAccepted) String() string

type SubmitInvoicesBadRequest

type SubmitInvoicesBadRequest struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_invoices_models.SubmitInvoicesResponse
}

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

Request has missing or invalid parameters and cannot be parsed.

func NewSubmitInvoicesBadRequest

func NewSubmitInvoicesBadRequest() *SubmitInvoicesBadRequest

NewSubmitInvoicesBadRequest creates a SubmitInvoicesBadRequest with default headers values

func (*SubmitInvoicesBadRequest) Error

func (o *SubmitInvoicesBadRequest) Error() string

func (*SubmitInvoicesBadRequest) GetPayload

func (*SubmitInvoicesBadRequest) IsClientError

func (o *SubmitInvoicesBadRequest) IsClientError() bool

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

func (*SubmitInvoicesBadRequest) IsCode

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

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

func (*SubmitInvoicesBadRequest) IsRedirect

func (o *SubmitInvoicesBadRequest) IsRedirect() bool

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

func (*SubmitInvoicesBadRequest) IsServerError

func (o *SubmitInvoicesBadRequest) IsServerError() bool

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

func (*SubmitInvoicesBadRequest) IsSuccess

func (o *SubmitInvoicesBadRequest) IsSuccess() bool

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

func (*SubmitInvoicesBadRequest) String

func (o *SubmitInvoicesBadRequest) String() string

type SubmitInvoicesForbidden

type SubmitInvoicesForbidden struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_invoices_models.SubmitInvoicesResponse
}

SubmitInvoicesForbidden 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 NewSubmitInvoicesForbidden

func NewSubmitInvoicesForbidden() *SubmitInvoicesForbidden

NewSubmitInvoicesForbidden creates a SubmitInvoicesForbidden with default headers values

func (*SubmitInvoicesForbidden) Error

func (o *SubmitInvoicesForbidden) Error() string

func (*SubmitInvoicesForbidden) GetPayload

func (*SubmitInvoicesForbidden) IsClientError

func (o *SubmitInvoicesForbidden) IsClientError() bool

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

func (*SubmitInvoicesForbidden) IsCode

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

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

func (*SubmitInvoicesForbidden) IsRedirect

func (o *SubmitInvoicesForbidden) IsRedirect() bool

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

func (*SubmitInvoicesForbidden) IsServerError

func (o *SubmitInvoicesForbidden) IsServerError() bool

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

func (*SubmitInvoicesForbidden) IsSuccess

func (o *SubmitInvoicesForbidden) IsSuccess() bool

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

func (*SubmitInvoicesForbidden) String

func (o *SubmitInvoicesForbidden) String() string

type SubmitInvoicesInternalServerError

type SubmitInvoicesInternalServerError 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_invoices_models.SubmitInvoicesResponse
}

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

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

func NewSubmitInvoicesInternalServerError

func NewSubmitInvoicesInternalServerError() *SubmitInvoicesInternalServerError

NewSubmitInvoicesInternalServerError creates a SubmitInvoicesInternalServerError with default headers values

func (*SubmitInvoicesInternalServerError) Error

func (*SubmitInvoicesInternalServerError) GetPayload

func (*SubmitInvoicesInternalServerError) IsClientError

func (o *SubmitInvoicesInternalServerError) IsClientError() bool

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

func (*SubmitInvoicesInternalServerError) IsCode

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

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

func (*SubmitInvoicesInternalServerError) IsRedirect

func (o *SubmitInvoicesInternalServerError) IsRedirect() bool

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

func (*SubmitInvoicesInternalServerError) IsServerError

func (o *SubmitInvoicesInternalServerError) IsServerError() bool

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

func (*SubmitInvoicesInternalServerError) IsSuccess

func (o *SubmitInvoicesInternalServerError) IsSuccess() bool

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

func (*SubmitInvoicesInternalServerError) String

type SubmitInvoicesNotFound

type SubmitInvoicesNotFound struct {

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

	/* unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_invoices_models.SubmitInvoicesResponse
}

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

The resource specified does not exist.

func NewSubmitInvoicesNotFound

func NewSubmitInvoicesNotFound() *SubmitInvoicesNotFound

NewSubmitInvoicesNotFound creates a SubmitInvoicesNotFound with default headers values

func (*SubmitInvoicesNotFound) Error

func (o *SubmitInvoicesNotFound) Error() string

func (*SubmitInvoicesNotFound) GetPayload

func (*SubmitInvoicesNotFound) IsClientError

func (o *SubmitInvoicesNotFound) IsClientError() bool

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

func (*SubmitInvoicesNotFound) IsCode

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

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

func (*SubmitInvoicesNotFound) IsRedirect

func (o *SubmitInvoicesNotFound) IsRedirect() bool

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

func (*SubmitInvoicesNotFound) IsServerError

func (o *SubmitInvoicesNotFound) IsServerError() bool

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

func (*SubmitInvoicesNotFound) IsSuccess

func (o *SubmitInvoicesNotFound) IsSuccess() bool

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

func (*SubmitInvoicesNotFound) String

func (o *SubmitInvoicesNotFound) String() string

type SubmitInvoicesParams

type SubmitInvoicesParams struct {

	// Body.
	Body *vendor_invoices_models.SubmitInvoicesRequest

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

SubmitInvoicesParams contains all the parameters to send to the API endpoint

for the submit invoices operation.

Typically these are written to a http.Request.

func NewSubmitInvoicesParams

func NewSubmitInvoicesParams() *SubmitInvoicesParams

NewSubmitInvoicesParams creates a new SubmitInvoicesParams 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 NewSubmitInvoicesParamsWithContext

func NewSubmitInvoicesParamsWithContext(ctx context.Context) *SubmitInvoicesParams

NewSubmitInvoicesParamsWithContext creates a new SubmitInvoicesParams object with the ability to set a context for a request.

func NewSubmitInvoicesParamsWithHTTPClient

func NewSubmitInvoicesParamsWithHTTPClient(client *http.Client) *SubmitInvoicesParams

NewSubmitInvoicesParamsWithHTTPClient creates a new SubmitInvoicesParams object with the ability to set a custom HTTPClient for a request.

func NewSubmitInvoicesParamsWithTimeout

func NewSubmitInvoicesParamsWithTimeout(timeout time.Duration) *SubmitInvoicesParams

NewSubmitInvoicesParamsWithTimeout creates a new SubmitInvoicesParams object with the ability to set a timeout on a request.

func (*SubmitInvoicesParams) SetBody

SetBody adds the body to the submit invoices params

func (*SubmitInvoicesParams) SetContext

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

SetContext adds the context to the submit invoices params

func (*SubmitInvoicesParams) SetDefaults

func (o *SubmitInvoicesParams) SetDefaults()

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

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

func (*SubmitInvoicesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the submit invoices params

func (*SubmitInvoicesParams) SetTimeout

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

SetTimeout adds the timeout to the submit invoices params

func (*SubmitInvoicesParams) WithBody

WithBody adds the body to the submit invoices params

func (*SubmitInvoicesParams) WithContext

WithContext adds the context to the submit invoices params

func (*SubmitInvoicesParams) WithDefaults

func (o *SubmitInvoicesParams) WithDefaults() *SubmitInvoicesParams

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

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

func (*SubmitInvoicesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the submit invoices params

func (*SubmitInvoicesParams) WithTimeout

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

WithTimeout adds the timeout to the submit invoices params

func (*SubmitInvoicesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SubmitInvoicesReader

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

SubmitInvoicesReader is a Reader for the SubmitInvoices structure.

func (*SubmitInvoicesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubmitInvoicesRequestEntityTooLarge

type SubmitInvoicesRequestEntityTooLarge 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_invoices_models.SubmitInvoicesResponse
}

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

The request size exceeded the maximum accepted size.

func NewSubmitInvoicesRequestEntityTooLarge

func NewSubmitInvoicesRequestEntityTooLarge() *SubmitInvoicesRequestEntityTooLarge

NewSubmitInvoicesRequestEntityTooLarge creates a SubmitInvoicesRequestEntityTooLarge with default headers values

func (*SubmitInvoicesRequestEntityTooLarge) Error

func (*SubmitInvoicesRequestEntityTooLarge) GetPayload

func (*SubmitInvoicesRequestEntityTooLarge) IsClientError

func (o *SubmitInvoicesRequestEntityTooLarge) IsClientError() bool

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

func (*SubmitInvoicesRequestEntityTooLarge) IsCode

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

func (*SubmitInvoicesRequestEntityTooLarge) IsRedirect

func (o *SubmitInvoicesRequestEntityTooLarge) IsRedirect() bool

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

func (*SubmitInvoicesRequestEntityTooLarge) IsServerError

func (o *SubmitInvoicesRequestEntityTooLarge) IsServerError() bool

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

func (*SubmitInvoicesRequestEntityTooLarge) IsSuccess

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

func (*SubmitInvoicesRequestEntityTooLarge) String

type SubmitInvoicesServiceUnavailable

type SubmitInvoicesServiceUnavailable 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_invoices_models.SubmitInvoicesResponse
}

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

Temporary overloading or maintenance of the server.

func NewSubmitInvoicesServiceUnavailable

func NewSubmitInvoicesServiceUnavailable() *SubmitInvoicesServiceUnavailable

NewSubmitInvoicesServiceUnavailable creates a SubmitInvoicesServiceUnavailable with default headers values

func (*SubmitInvoicesServiceUnavailable) Error

func (*SubmitInvoicesServiceUnavailable) GetPayload

func (*SubmitInvoicesServiceUnavailable) IsClientError

func (o *SubmitInvoicesServiceUnavailable) IsClientError() bool

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

func (*SubmitInvoicesServiceUnavailable) IsCode

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

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

func (*SubmitInvoicesServiceUnavailable) IsRedirect

func (o *SubmitInvoicesServiceUnavailable) IsRedirect() bool

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

func (*SubmitInvoicesServiceUnavailable) IsServerError

func (o *SubmitInvoicesServiceUnavailable) IsServerError() bool

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

func (*SubmitInvoicesServiceUnavailable) IsSuccess

func (o *SubmitInvoicesServiceUnavailable) IsSuccess() bool

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

func (*SubmitInvoicesServiceUnavailable) String

type SubmitInvoicesTooManyRequests

type SubmitInvoicesTooManyRequests 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_invoices_models.SubmitInvoicesResponse
}

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

The frequency of requests was greater than allowed.

func NewSubmitInvoicesTooManyRequests

func NewSubmitInvoicesTooManyRequests() *SubmitInvoicesTooManyRequests

NewSubmitInvoicesTooManyRequests creates a SubmitInvoicesTooManyRequests with default headers values

func (*SubmitInvoicesTooManyRequests) Error

func (*SubmitInvoicesTooManyRequests) GetPayload

func (*SubmitInvoicesTooManyRequests) IsClientError

func (o *SubmitInvoicesTooManyRequests) IsClientError() bool

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

func (*SubmitInvoicesTooManyRequests) IsCode

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

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

func (*SubmitInvoicesTooManyRequests) IsRedirect

func (o *SubmitInvoicesTooManyRequests) IsRedirect() bool

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

func (*SubmitInvoicesTooManyRequests) IsServerError

func (o *SubmitInvoicesTooManyRequests) IsServerError() bool

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

func (*SubmitInvoicesTooManyRequests) IsSuccess

func (o *SubmitInvoicesTooManyRequests) IsSuccess() bool

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

func (*SubmitInvoicesTooManyRequests) String

type SubmitInvoicesUnsupportedMediaType

type SubmitInvoicesUnsupportedMediaType 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_invoices_models.SubmitInvoicesResponse
}

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

The request payload is in an unsupported format.

func NewSubmitInvoicesUnsupportedMediaType

func NewSubmitInvoicesUnsupportedMediaType() *SubmitInvoicesUnsupportedMediaType

NewSubmitInvoicesUnsupportedMediaType creates a SubmitInvoicesUnsupportedMediaType with default headers values

func (*SubmitInvoicesUnsupportedMediaType) Error

func (*SubmitInvoicesUnsupportedMediaType) GetPayload

func (*SubmitInvoicesUnsupportedMediaType) IsClientError

func (o *SubmitInvoicesUnsupportedMediaType) IsClientError() bool

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

func (*SubmitInvoicesUnsupportedMediaType) IsCode

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

func (*SubmitInvoicesUnsupportedMediaType) IsRedirect

func (o *SubmitInvoicesUnsupportedMediaType) IsRedirect() bool

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

func (*SubmitInvoicesUnsupportedMediaType) IsServerError

func (o *SubmitInvoicesUnsupportedMediaType) IsServerError() bool

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

func (*SubmitInvoicesUnsupportedMediaType) IsSuccess

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

func (*SubmitInvoicesUnsupportedMediaType) String

Jump to

Keyboard shortcuts

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