operations

package
v0.24.10 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 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 operations API

func (*Client) ListTransactions

func (a *Client) ListTransactions(params *ListTransactionsParams, opts ...ClientOption) (*ListTransactionsOK, error)
ListTransactions Returns transactions for the given parameters. Orders from the last 48 hours might not be included in financial events.

**Usage Plan:**

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

The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits).

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 {
	ListTransactions(params *ListTransactionsParams, opts ...ClientOption) (*ListTransactionsOK, 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 operations API client.

type ListTransactionsBadRequest

type ListTransactionsBadRequest struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *finances_2024_06_19_models.ErrorList
}

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

Request has missing or invalid parameters and cannot be parsed.

func NewListTransactionsBadRequest

func NewListTransactionsBadRequest() *ListTransactionsBadRequest

NewListTransactionsBadRequest creates a ListTransactionsBadRequest with default headers values

func (*ListTransactionsBadRequest) Error

func (*ListTransactionsBadRequest) GetPayload

func (*ListTransactionsBadRequest) IsClientError

func (o *ListTransactionsBadRequest) IsClientError() bool

IsClientError returns true when this list transactions bad request response has a 4xx status code

func (*ListTransactionsBadRequest) IsCode

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

IsCode returns true when this list transactions bad request response a status code equal to that given

func (*ListTransactionsBadRequest) IsRedirect

func (o *ListTransactionsBadRequest) IsRedirect() bool

IsRedirect returns true when this list transactions bad request response has a 3xx status code

func (*ListTransactionsBadRequest) IsServerError

func (o *ListTransactionsBadRequest) IsServerError() bool

IsServerError returns true when this list transactions bad request response has a 5xx status code

func (*ListTransactionsBadRequest) IsSuccess

func (o *ListTransactionsBadRequest) IsSuccess() bool

IsSuccess returns true when this list transactions bad request response has a 2xx status code

func (*ListTransactionsBadRequest) String

func (o *ListTransactionsBadRequest) String() string

type ListTransactionsForbidden

type ListTransactionsForbidden struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *finances_2024_06_19_models.ErrorList
}

ListTransactionsForbidden 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 NewListTransactionsForbidden

func NewListTransactionsForbidden() *ListTransactionsForbidden

NewListTransactionsForbidden creates a ListTransactionsForbidden with default headers values

func (*ListTransactionsForbidden) Error

func (o *ListTransactionsForbidden) Error() string

func (*ListTransactionsForbidden) GetPayload

func (*ListTransactionsForbidden) IsClientError

func (o *ListTransactionsForbidden) IsClientError() bool

IsClientError returns true when this list transactions forbidden response has a 4xx status code

func (*ListTransactionsForbidden) IsCode

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

IsCode returns true when this list transactions forbidden response a status code equal to that given

func (*ListTransactionsForbidden) IsRedirect

func (o *ListTransactionsForbidden) IsRedirect() bool

IsRedirect returns true when this list transactions forbidden response has a 3xx status code

func (*ListTransactionsForbidden) IsServerError

func (o *ListTransactionsForbidden) IsServerError() bool

IsServerError returns true when this list transactions forbidden response has a 5xx status code

func (*ListTransactionsForbidden) IsSuccess

func (o *ListTransactionsForbidden) IsSuccess() bool

IsSuccess returns true when this list transactions forbidden response has a 2xx status code

func (*ListTransactionsForbidden) String

func (o *ListTransactionsForbidden) String() string

type ListTransactionsInternalServerError

type ListTransactionsInternalServerError struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *finances_2024_06_19_models.ErrorList
}

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

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

func NewListTransactionsInternalServerError

func NewListTransactionsInternalServerError() *ListTransactionsInternalServerError

NewListTransactionsInternalServerError creates a ListTransactionsInternalServerError with default headers values

func (*ListTransactionsInternalServerError) Error

func (*ListTransactionsInternalServerError) GetPayload

func (*ListTransactionsInternalServerError) IsClientError

func (o *ListTransactionsInternalServerError) IsClientError() bool

IsClientError returns true when this list transactions internal server error response has a 4xx status code

func (*ListTransactionsInternalServerError) IsCode

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

func (*ListTransactionsInternalServerError) IsRedirect

func (o *ListTransactionsInternalServerError) IsRedirect() bool

IsRedirect returns true when this list transactions internal server error response has a 3xx status code

func (*ListTransactionsInternalServerError) IsServerError

func (o *ListTransactionsInternalServerError) IsServerError() bool

IsServerError returns true when this list transactions internal server error response has a 5xx status code

func (*ListTransactionsInternalServerError) IsSuccess

IsSuccess returns true when this list transactions internal server error response has a 2xx status code

func (*ListTransactionsInternalServerError) String

type ListTransactionsNotFound

type ListTransactionsNotFound struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *finances_2024_06_19_models.ErrorList
}

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

The resource specified does not exist.

func NewListTransactionsNotFound

func NewListTransactionsNotFound() *ListTransactionsNotFound

NewListTransactionsNotFound creates a ListTransactionsNotFound with default headers values

func (*ListTransactionsNotFound) Error

func (o *ListTransactionsNotFound) Error() string

func (*ListTransactionsNotFound) GetPayload

func (*ListTransactionsNotFound) IsClientError

func (o *ListTransactionsNotFound) IsClientError() bool

IsClientError returns true when this list transactions not found response has a 4xx status code

func (*ListTransactionsNotFound) IsCode

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

IsCode returns true when this list transactions not found response a status code equal to that given

func (*ListTransactionsNotFound) IsRedirect

func (o *ListTransactionsNotFound) IsRedirect() bool

IsRedirect returns true when this list transactions not found response has a 3xx status code

func (*ListTransactionsNotFound) IsServerError

func (o *ListTransactionsNotFound) IsServerError() bool

IsServerError returns true when this list transactions not found response has a 5xx status code

func (*ListTransactionsNotFound) IsSuccess

func (o *ListTransactionsNotFound) IsSuccess() bool

IsSuccess returns true when this list transactions not found response has a 2xx status code

func (*ListTransactionsNotFound) String

func (o *ListTransactionsNotFound) String() string

type ListTransactionsOK

type ListTransactionsOK struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *finances_2024_06_19_models.ListTransactionsResponse
}

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

Success.

func NewListTransactionsOK

func NewListTransactionsOK() *ListTransactionsOK

NewListTransactionsOK creates a ListTransactionsOK with default headers values

func (*ListTransactionsOK) Error

func (o *ListTransactionsOK) Error() string

func (*ListTransactionsOK) GetPayload

func (*ListTransactionsOK) IsClientError

func (o *ListTransactionsOK) IsClientError() bool

IsClientError returns true when this list transactions o k response has a 4xx status code

func (*ListTransactionsOK) IsCode

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

IsCode returns true when this list transactions o k response a status code equal to that given

func (*ListTransactionsOK) IsRedirect

func (o *ListTransactionsOK) IsRedirect() bool

IsRedirect returns true when this list transactions o k response has a 3xx status code

func (*ListTransactionsOK) IsServerError

func (o *ListTransactionsOK) IsServerError() bool

IsServerError returns true when this list transactions o k response has a 5xx status code

func (*ListTransactionsOK) IsSuccess

func (o *ListTransactionsOK) IsSuccess() bool

IsSuccess returns true when this list transactions o k response has a 2xx status code

func (*ListTransactionsOK) String

func (o *ListTransactionsOK) String() string

type ListTransactionsParams

type ListTransactionsParams struct {

	/* MarketplaceID.

	   The ID of the marketplace from which you want to retrieve transactions.
	*/
	MarketplaceID *string

	/* NextToken.

	   The response includes `nextToken` when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
	*/
	NextToken *string

	/* PostedAfter.

	   The response includes financial events posted after (or on) this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be more than two minutes before the time of the request.

	   Format: date-time
	*/
	PostedAfter strfmt.DateTime

	/* PostedBefore.

	     The response includes financial events posted before (but not on) this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.

	The date-time must be later than `PostedAfter` and more than two minutes before the request was submitted. If `PostedAfter` and `PostedBefore` are more than 180 days apart, the response is empty.

	**Default:** Two minutes before the time of the request.

	     Format: date-time
	*/
	PostedBefore *strfmt.DateTime

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

ListTransactionsParams contains all the parameters to send to the API endpoint

for the list transactions operation.

Typically these are written to a http.Request.

func NewListTransactionsParams

func NewListTransactionsParams() *ListTransactionsParams

NewListTransactionsParams creates a new ListTransactionsParams 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 NewListTransactionsParamsWithContext

func NewListTransactionsParamsWithContext(ctx context.Context) *ListTransactionsParams

NewListTransactionsParamsWithContext creates a new ListTransactionsParams object with the ability to set a context for a request.

func NewListTransactionsParamsWithHTTPClient

func NewListTransactionsParamsWithHTTPClient(client *http.Client) *ListTransactionsParams

NewListTransactionsParamsWithHTTPClient creates a new ListTransactionsParams object with the ability to set a custom HTTPClient for a request.

func NewListTransactionsParamsWithTimeout

func NewListTransactionsParamsWithTimeout(timeout time.Duration) *ListTransactionsParams

NewListTransactionsParamsWithTimeout creates a new ListTransactionsParams object with the ability to set a timeout on a request.

func (*ListTransactionsParams) SetContext

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

SetContext adds the context to the list transactions params

func (*ListTransactionsParams) SetDefaults

func (o *ListTransactionsParams) SetDefaults()

SetDefaults hydrates default values in the list transactions params (not the query body).

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

func (*ListTransactionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list transactions params

func (*ListTransactionsParams) SetMarketplaceID

func (o *ListTransactionsParams) SetMarketplaceID(marketplaceID *string)

SetMarketplaceID adds the marketplaceId to the list transactions params

func (*ListTransactionsParams) SetNextToken

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

SetNextToken adds the nextToken to the list transactions params

func (*ListTransactionsParams) SetPostedAfter

func (o *ListTransactionsParams) SetPostedAfter(postedAfter strfmt.DateTime)

SetPostedAfter adds the postedAfter to the list transactions params

func (*ListTransactionsParams) SetPostedBefore

func (o *ListTransactionsParams) SetPostedBefore(postedBefore *strfmt.DateTime)

SetPostedBefore adds the postedBefore to the list transactions params

func (*ListTransactionsParams) SetTimeout

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

SetTimeout adds the timeout to the list transactions params

func (*ListTransactionsParams) WithContext

WithContext adds the context to the list transactions params

func (*ListTransactionsParams) WithDefaults

WithDefaults hydrates default values in the list transactions params (not the query body).

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

func (*ListTransactionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list transactions params

func (*ListTransactionsParams) WithMarketplaceID

func (o *ListTransactionsParams) WithMarketplaceID(marketplaceID *string) *ListTransactionsParams

WithMarketplaceID adds the marketplaceID to the list transactions params

func (*ListTransactionsParams) WithNextToken

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

WithNextToken adds the nextToken to the list transactions params

func (*ListTransactionsParams) WithPostedAfter

func (o *ListTransactionsParams) WithPostedAfter(postedAfter strfmt.DateTime) *ListTransactionsParams

WithPostedAfter adds the postedAfter to the list transactions params

func (*ListTransactionsParams) WithPostedBefore

func (o *ListTransactionsParams) WithPostedBefore(postedBefore *strfmt.DateTime) *ListTransactionsParams

WithPostedBefore adds the postedBefore to the list transactions params

func (*ListTransactionsParams) WithTimeout

WithTimeout adds the timeout to the list transactions params

func (*ListTransactionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListTransactionsReader

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

ListTransactionsReader is a Reader for the ListTransactions structure.

func (*ListTransactionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListTransactionsRequestEntityTooLarge

type ListTransactionsRequestEntityTooLarge struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *finances_2024_06_19_models.ErrorList
}

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

The request size exceeded the maximum accepted size.

func NewListTransactionsRequestEntityTooLarge

func NewListTransactionsRequestEntityTooLarge() *ListTransactionsRequestEntityTooLarge

NewListTransactionsRequestEntityTooLarge creates a ListTransactionsRequestEntityTooLarge with default headers values

func (*ListTransactionsRequestEntityTooLarge) Error

func (*ListTransactionsRequestEntityTooLarge) GetPayload

func (*ListTransactionsRequestEntityTooLarge) IsClientError

func (o *ListTransactionsRequestEntityTooLarge) IsClientError() bool

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

func (*ListTransactionsRequestEntityTooLarge) IsCode

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

func (*ListTransactionsRequestEntityTooLarge) IsRedirect

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

func (*ListTransactionsRequestEntityTooLarge) IsServerError

func (o *ListTransactionsRequestEntityTooLarge) IsServerError() bool

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

func (*ListTransactionsRequestEntityTooLarge) IsSuccess

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

func (*ListTransactionsRequestEntityTooLarge) String

type ListTransactionsServiceUnavailable

type ListTransactionsServiceUnavailable struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *finances_2024_06_19_models.ErrorList
}

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

Temporary overloading or maintenance of the server.

func NewListTransactionsServiceUnavailable

func NewListTransactionsServiceUnavailable() *ListTransactionsServiceUnavailable

NewListTransactionsServiceUnavailable creates a ListTransactionsServiceUnavailable with default headers values

func (*ListTransactionsServiceUnavailable) Error

func (*ListTransactionsServiceUnavailable) GetPayload

func (*ListTransactionsServiceUnavailable) IsClientError

func (o *ListTransactionsServiceUnavailable) IsClientError() bool

IsClientError returns true when this list transactions service unavailable response has a 4xx status code

func (*ListTransactionsServiceUnavailable) IsCode

IsCode returns true when this list transactions service unavailable response a status code equal to that given

func (*ListTransactionsServiceUnavailable) IsRedirect

func (o *ListTransactionsServiceUnavailable) IsRedirect() bool

IsRedirect returns true when this list transactions service unavailable response has a 3xx status code

func (*ListTransactionsServiceUnavailable) IsServerError

func (o *ListTransactionsServiceUnavailable) IsServerError() bool

IsServerError returns true when this list transactions service unavailable response has a 5xx status code

func (*ListTransactionsServiceUnavailable) IsSuccess

IsSuccess returns true when this list transactions service unavailable response has a 2xx status code

func (*ListTransactionsServiceUnavailable) String

type ListTransactionsTooManyRequests

type ListTransactionsTooManyRequests struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *finances_2024_06_19_models.ErrorList
}

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

The frequency of requests was greater than allowed.

func NewListTransactionsTooManyRequests

func NewListTransactionsTooManyRequests() *ListTransactionsTooManyRequests

NewListTransactionsTooManyRequests creates a ListTransactionsTooManyRequests with default headers values

func (*ListTransactionsTooManyRequests) Error

func (*ListTransactionsTooManyRequests) GetPayload

func (*ListTransactionsTooManyRequests) IsClientError

func (o *ListTransactionsTooManyRequests) IsClientError() bool

IsClientError returns true when this list transactions too many requests response has a 4xx status code

func (*ListTransactionsTooManyRequests) IsCode

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

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

func (*ListTransactionsTooManyRequests) IsRedirect

func (o *ListTransactionsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list transactions too many requests response has a 3xx status code

func (*ListTransactionsTooManyRequests) IsServerError

func (o *ListTransactionsTooManyRequests) IsServerError() bool

IsServerError returns true when this list transactions too many requests response has a 5xx status code

func (*ListTransactionsTooManyRequests) IsSuccess

func (o *ListTransactionsTooManyRequests) IsSuccess() bool

IsSuccess returns true when this list transactions too many requests response has a 2xx status code

func (*ListTransactionsTooManyRequests) String

type ListTransactionsUnsupportedMediaType

type ListTransactionsUnsupportedMediaType struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *finances_2024_06_19_models.ErrorList
}

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

The request payload is in an unsupported format.

func NewListTransactionsUnsupportedMediaType

func NewListTransactionsUnsupportedMediaType() *ListTransactionsUnsupportedMediaType

NewListTransactionsUnsupportedMediaType creates a ListTransactionsUnsupportedMediaType with default headers values

func (*ListTransactionsUnsupportedMediaType) Error

func (*ListTransactionsUnsupportedMediaType) GetPayload

func (*ListTransactionsUnsupportedMediaType) IsClientError

func (o *ListTransactionsUnsupportedMediaType) IsClientError() bool

IsClientError returns true when this list transactions unsupported media type response has a 4xx status code

func (*ListTransactionsUnsupportedMediaType) IsCode

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

func (*ListTransactionsUnsupportedMediaType) IsRedirect

IsRedirect returns true when this list transactions unsupported media type response has a 3xx status code

func (*ListTransactionsUnsupportedMediaType) IsServerError

func (o *ListTransactionsUnsupportedMediaType) IsServerError() bool

IsServerError returns true when this list transactions unsupported media type response has a 5xx status code

func (*ListTransactionsUnsupportedMediaType) IsSuccess

IsSuccess returns true when this list transactions unsupported media type response has a 2xx status code

func (*ListTransactionsUnsupportedMediaType) String

Jump to

Keyboard shortcuts

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