vendor_transaction

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

func (*Client) GetTransactionStatus

func (a *Client) GetTransactionStatus(params *GetTransactionStatusParams, opts ...ClientOption) (*GetTransactionStatusOK, error)
GetTransactionStatus Returns the status of the transaction indicated by the specified transactionId.

**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).

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 {
	GetTransactionStatus(params *GetTransactionStatusParams, opts ...ClientOption) (*GetTransactionStatusOK, 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 transaction API client.

type GetTransactionStatusBadRequest

type GetTransactionStatusBadRequest struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_transactions_v1_models.GetTransactionResponse
}

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

Request has missing or invalid parameters and cannot be parsed.

func NewGetTransactionStatusBadRequest

func NewGetTransactionStatusBadRequest() *GetTransactionStatusBadRequest

NewGetTransactionStatusBadRequest creates a GetTransactionStatusBadRequest with default headers values

func (*GetTransactionStatusBadRequest) Error

func (*GetTransactionStatusBadRequest) IsClientError

func (o *GetTransactionStatusBadRequest) IsClientError() bool

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

func (*GetTransactionStatusBadRequest) IsCode

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

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

func (*GetTransactionStatusBadRequest) IsRedirect

func (o *GetTransactionStatusBadRequest) IsRedirect() bool

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

func (*GetTransactionStatusBadRequest) IsServerError

func (o *GetTransactionStatusBadRequest) IsServerError() bool

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

func (*GetTransactionStatusBadRequest) IsSuccess

func (o *GetTransactionStatusBadRequest) IsSuccess() bool

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

func (*GetTransactionStatusBadRequest) String

type GetTransactionStatusForbidden

type GetTransactionStatusForbidden struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_transactions_v1_models.GetTransactionResponse
}

GetTransactionStatusForbidden 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 NewGetTransactionStatusForbidden

func NewGetTransactionStatusForbidden() *GetTransactionStatusForbidden

NewGetTransactionStatusForbidden creates a GetTransactionStatusForbidden with default headers values

func (*GetTransactionStatusForbidden) Error

func (*GetTransactionStatusForbidden) IsClientError

func (o *GetTransactionStatusForbidden) IsClientError() bool

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

func (*GetTransactionStatusForbidden) IsCode

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

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

func (*GetTransactionStatusForbidden) IsRedirect

func (o *GetTransactionStatusForbidden) IsRedirect() bool

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

func (*GetTransactionStatusForbidden) IsServerError

func (o *GetTransactionStatusForbidden) IsServerError() bool

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

func (*GetTransactionStatusForbidden) IsSuccess

func (o *GetTransactionStatusForbidden) IsSuccess() bool

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

func (*GetTransactionStatusForbidden) String

type GetTransactionStatusInternalServerError

type GetTransactionStatusInternalServerError 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_transactions_v1_models.GetTransactionResponse
}

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

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

func NewGetTransactionStatusInternalServerError

func NewGetTransactionStatusInternalServerError() *GetTransactionStatusInternalServerError

NewGetTransactionStatusInternalServerError creates a GetTransactionStatusInternalServerError with default headers values

func (*GetTransactionStatusInternalServerError) Error

func (*GetTransactionStatusInternalServerError) IsClientError

func (o *GetTransactionStatusInternalServerError) IsClientError() bool

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

func (*GetTransactionStatusInternalServerError) IsCode

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

func (*GetTransactionStatusInternalServerError) IsRedirect

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

func (*GetTransactionStatusInternalServerError) IsServerError

func (o *GetTransactionStatusInternalServerError) IsServerError() bool

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

func (*GetTransactionStatusInternalServerError) IsSuccess

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

func (*GetTransactionStatusInternalServerError) String

type GetTransactionStatusNotFound

type GetTransactionStatusNotFound struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_transactions_v1_models.GetTransactionResponse
}

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

The resource specified does not exist.

func NewGetTransactionStatusNotFound

func NewGetTransactionStatusNotFound() *GetTransactionStatusNotFound

NewGetTransactionStatusNotFound creates a GetTransactionStatusNotFound with default headers values

func (*GetTransactionStatusNotFound) Error

func (*GetTransactionStatusNotFound) IsClientError

func (o *GetTransactionStatusNotFound) IsClientError() bool

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

func (*GetTransactionStatusNotFound) IsCode

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

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

func (*GetTransactionStatusNotFound) IsRedirect

func (o *GetTransactionStatusNotFound) IsRedirect() bool

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

func (*GetTransactionStatusNotFound) IsServerError

func (o *GetTransactionStatusNotFound) IsServerError() bool

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

func (*GetTransactionStatusNotFound) IsSuccess

func (o *GetTransactionStatusNotFound) IsSuccess() bool

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

func (*GetTransactionStatusNotFound) String

type GetTransactionStatusOK

type GetTransactionStatusOK struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_transactions_v1_models.GetTransactionResponse
}

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

Success.

func NewGetTransactionStatusOK

func NewGetTransactionStatusOK() *GetTransactionStatusOK

NewGetTransactionStatusOK creates a GetTransactionStatusOK with default headers values

func (*GetTransactionStatusOK) Error

func (o *GetTransactionStatusOK) Error() string

func (*GetTransactionStatusOK) IsClientError

func (o *GetTransactionStatusOK) IsClientError() bool

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

func (*GetTransactionStatusOK) IsCode

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

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

func (*GetTransactionStatusOK) IsRedirect

func (o *GetTransactionStatusOK) IsRedirect() bool

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

func (*GetTransactionStatusOK) IsServerError

func (o *GetTransactionStatusOK) IsServerError() bool

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

func (*GetTransactionStatusOK) IsSuccess

func (o *GetTransactionStatusOK) IsSuccess() bool

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

func (*GetTransactionStatusOK) String

func (o *GetTransactionStatusOK) String() string

type GetTransactionStatusParams

type GetTransactionStatusParams struct {

	/* TransactionID.

	   Previously returned in the response to the POST request of a specific transaction.
	*/
	TransactionID string

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

GetTransactionStatusParams contains all the parameters to send to the API endpoint

for the get transaction status operation.

Typically these are written to a http.Request.

func NewGetTransactionStatusParams

func NewGetTransactionStatusParams() *GetTransactionStatusParams

NewGetTransactionStatusParams creates a new GetTransactionStatusParams 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 NewGetTransactionStatusParamsWithContext

func NewGetTransactionStatusParamsWithContext(ctx context.Context) *GetTransactionStatusParams

NewGetTransactionStatusParamsWithContext creates a new GetTransactionStatusParams object with the ability to set a context for a request.

func NewGetTransactionStatusParamsWithHTTPClient

func NewGetTransactionStatusParamsWithHTTPClient(client *http.Client) *GetTransactionStatusParams

NewGetTransactionStatusParamsWithHTTPClient creates a new GetTransactionStatusParams object with the ability to set a custom HTTPClient for a request.

func NewGetTransactionStatusParamsWithTimeout

func NewGetTransactionStatusParamsWithTimeout(timeout time.Duration) *GetTransactionStatusParams

NewGetTransactionStatusParamsWithTimeout creates a new GetTransactionStatusParams object with the ability to set a timeout on a request.

func (*GetTransactionStatusParams) SetContext

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

SetContext adds the context to the get transaction status params

func (*GetTransactionStatusParams) SetDefaults

func (o *GetTransactionStatusParams) SetDefaults()

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

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

func (*GetTransactionStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get transaction status params

func (*GetTransactionStatusParams) SetTimeout

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

SetTimeout adds the timeout to the get transaction status params

func (*GetTransactionStatusParams) SetTransactionID

func (o *GetTransactionStatusParams) SetTransactionID(transactionID string)

SetTransactionID adds the transactionId to the get transaction status params

func (*GetTransactionStatusParams) WithContext

WithContext adds the context to the get transaction status params

func (*GetTransactionStatusParams) WithDefaults

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

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

func (*GetTransactionStatusParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get transaction status params

func (*GetTransactionStatusParams) WithTimeout

WithTimeout adds the timeout to the get transaction status params

func (*GetTransactionStatusParams) WithTransactionID

func (o *GetTransactionStatusParams) WithTransactionID(transactionID string) *GetTransactionStatusParams

WithTransactionID adds the transactionID to the get transaction status params

func (*GetTransactionStatusParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTransactionStatusReader

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

GetTransactionStatusReader is a Reader for the GetTransactionStatus structure.

func (*GetTransactionStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTransactionStatusServiceUnavailable

type GetTransactionStatusServiceUnavailable 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_transactions_v1_models.GetTransactionResponse
}

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

Temporary overloading or maintenance of the server.

func NewGetTransactionStatusServiceUnavailable

func NewGetTransactionStatusServiceUnavailable() *GetTransactionStatusServiceUnavailable

NewGetTransactionStatusServiceUnavailable creates a GetTransactionStatusServiceUnavailable with default headers values

func (*GetTransactionStatusServiceUnavailable) Error

func (*GetTransactionStatusServiceUnavailable) IsClientError

func (o *GetTransactionStatusServiceUnavailable) IsClientError() bool

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

func (*GetTransactionStatusServiceUnavailable) IsCode

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

func (*GetTransactionStatusServiceUnavailable) IsRedirect

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

func (*GetTransactionStatusServiceUnavailable) IsServerError

func (o *GetTransactionStatusServiceUnavailable) IsServerError() bool

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

func (*GetTransactionStatusServiceUnavailable) IsSuccess

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

func (*GetTransactionStatusServiceUnavailable) String

type GetTransactionStatusTooManyRequests

type GetTransactionStatusTooManyRequests 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_transactions_v1_models.GetTransactionResponse
}

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

The frequency of requests was greater than allowed.

func NewGetTransactionStatusTooManyRequests

func NewGetTransactionStatusTooManyRequests() *GetTransactionStatusTooManyRequests

NewGetTransactionStatusTooManyRequests creates a GetTransactionStatusTooManyRequests with default headers values

func (*GetTransactionStatusTooManyRequests) Error

func (*GetTransactionStatusTooManyRequests) IsClientError

func (o *GetTransactionStatusTooManyRequests) IsClientError() bool

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

func (*GetTransactionStatusTooManyRequests) IsCode

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

func (*GetTransactionStatusTooManyRequests) IsRedirect

func (o *GetTransactionStatusTooManyRequests) IsRedirect() bool

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

func (*GetTransactionStatusTooManyRequests) IsServerError

func (o *GetTransactionStatusTooManyRequests) IsServerError() bool

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

func (*GetTransactionStatusTooManyRequests) IsSuccess

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

func (*GetTransactionStatusTooManyRequests) String

type GetTransactionStatusUnauthorized

type GetTransactionStatusUnauthorized 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_transactions_v1_models.GetTransactionResponse
}

GetTransactionStatusUnauthorized 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 NewGetTransactionStatusUnauthorized

func NewGetTransactionStatusUnauthorized() *GetTransactionStatusUnauthorized

NewGetTransactionStatusUnauthorized creates a GetTransactionStatusUnauthorized with default headers values

func (*GetTransactionStatusUnauthorized) Error

func (*GetTransactionStatusUnauthorized) IsClientError

func (o *GetTransactionStatusUnauthorized) IsClientError() bool

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

func (*GetTransactionStatusUnauthorized) IsCode

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

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

func (*GetTransactionStatusUnauthorized) IsRedirect

func (o *GetTransactionStatusUnauthorized) IsRedirect() bool

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

func (*GetTransactionStatusUnauthorized) IsServerError

func (o *GetTransactionStatusUnauthorized) IsServerError() bool

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

func (*GetTransactionStatusUnauthorized) IsSuccess

func (o *GetTransactionStatusUnauthorized) IsSuccess() bool

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

func (*GetTransactionStatusUnauthorized) String

type GetTransactionStatusUnsupportedMediaType

type GetTransactionStatusUnsupportedMediaType 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_transactions_v1_models.GetTransactionResponse
}

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

The request payload is in an unsupported format.

func NewGetTransactionStatusUnsupportedMediaType

func NewGetTransactionStatusUnsupportedMediaType() *GetTransactionStatusUnsupportedMediaType

NewGetTransactionStatusUnsupportedMediaType creates a GetTransactionStatusUnsupportedMediaType with default headers values

func (*GetTransactionStatusUnsupportedMediaType) Error

func (*GetTransactionStatusUnsupportedMediaType) IsClientError

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

func (*GetTransactionStatusUnsupportedMediaType) IsCode

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

func (*GetTransactionStatusUnsupportedMediaType) IsRedirect

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

func (*GetTransactionStatusUnsupportedMediaType) IsServerError

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

func (*GetTransactionStatusUnsupportedMediaType) IsSuccess

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

func (*GetTransactionStatusUnsupportedMediaType) String

Jump to

Keyboard shortcuts

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