sellers

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

func (*Client) GetMarketplaceParticipations

func (a *Client) GetMarketplaceParticipations(params *GetMarketplaceParticipationsParams, opts ...ClientOption) (*GetMarketplaceParticipationsOK, error)
GetMarketplaceParticipations Returns a list of marketplaces that the seller submitting the request can sell in and information about the seller's participation in those marketplaces.

**Usage Plan:**

| Rate (requests per second) | Burst | | ---- | ---- | | 0.016 | 15 |

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 {
	GetMarketplaceParticipations(params *GetMarketplaceParticipationsParams, opts ...ClientOption) (*GetMarketplaceParticipationsOK, 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 sellers API client.

type GetMarketplaceParticipationsBadRequest

type GetMarketplaceParticipationsBadRequest struct {

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

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *sellers_models.GetMarketplaceParticipationsResponse
}

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

Request has missing or invalid parameters and cannot be parsed.

func NewGetMarketplaceParticipationsBadRequest

func NewGetMarketplaceParticipationsBadRequest() *GetMarketplaceParticipationsBadRequest

NewGetMarketplaceParticipationsBadRequest creates a GetMarketplaceParticipationsBadRequest with default headers values

func (*GetMarketplaceParticipationsBadRequest) Error

func (*GetMarketplaceParticipationsBadRequest) GetPayload

func (*GetMarketplaceParticipationsBadRequest) IsClientError

func (o *GetMarketplaceParticipationsBadRequest) IsClientError() bool

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

func (*GetMarketplaceParticipationsBadRequest) IsCode

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

func (*GetMarketplaceParticipationsBadRequest) IsRedirect

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

func (*GetMarketplaceParticipationsBadRequest) IsServerError

func (o *GetMarketplaceParticipationsBadRequest) IsServerError() bool

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

func (*GetMarketplaceParticipationsBadRequest) IsSuccess

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

func (*GetMarketplaceParticipationsBadRequest) String

type GetMarketplaceParticipationsForbidden

type GetMarketplaceParticipationsForbidden struct {

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *sellers_models.GetMarketplaceParticipationsResponse
}

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

403 can be caused for reasons like Access Denied, Unauthorized, Expired Token, Invalid Signature or Resource Not Found.

func NewGetMarketplaceParticipationsForbidden

func NewGetMarketplaceParticipationsForbidden() *GetMarketplaceParticipationsForbidden

NewGetMarketplaceParticipationsForbidden creates a GetMarketplaceParticipationsForbidden with default headers values

func (*GetMarketplaceParticipationsForbidden) Error

func (*GetMarketplaceParticipationsForbidden) GetPayload

func (*GetMarketplaceParticipationsForbidden) IsClientError

func (o *GetMarketplaceParticipationsForbidden) IsClientError() bool

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

func (*GetMarketplaceParticipationsForbidden) IsCode

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

func (*GetMarketplaceParticipationsForbidden) IsRedirect

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

func (*GetMarketplaceParticipationsForbidden) IsServerError

func (o *GetMarketplaceParticipationsForbidden) IsServerError() bool

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

func (*GetMarketplaceParticipationsForbidden) IsSuccess

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

func (*GetMarketplaceParticipationsForbidden) String

type GetMarketplaceParticipationsInternalServerError

type GetMarketplaceParticipationsInternalServerError 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 id.
	 */
	XAmznRequestID string

	Payload *sellers_models.GetMarketplaceParticipationsResponse
}

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

Encountered an unexpected condition which prevented the server from fulfilling the request.

func NewGetMarketplaceParticipationsInternalServerError

func NewGetMarketplaceParticipationsInternalServerError() *GetMarketplaceParticipationsInternalServerError

NewGetMarketplaceParticipationsInternalServerError creates a GetMarketplaceParticipationsInternalServerError with default headers values

func (*GetMarketplaceParticipationsInternalServerError) Error

func (*GetMarketplaceParticipationsInternalServerError) GetPayload

func (*GetMarketplaceParticipationsInternalServerError) IsClientError

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

func (*GetMarketplaceParticipationsInternalServerError) IsCode

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

func (*GetMarketplaceParticipationsInternalServerError) IsRedirect

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

func (*GetMarketplaceParticipationsInternalServerError) IsServerError

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

func (*GetMarketplaceParticipationsInternalServerError) IsSuccess

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

func (*GetMarketplaceParticipationsInternalServerError) String

type GetMarketplaceParticipationsNotFound

type GetMarketplaceParticipationsNotFound struct {

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

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *sellers_models.GetMarketplaceParticipationsResponse
}

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

The resource specified does not exist.

func NewGetMarketplaceParticipationsNotFound

func NewGetMarketplaceParticipationsNotFound() *GetMarketplaceParticipationsNotFound

NewGetMarketplaceParticipationsNotFound creates a GetMarketplaceParticipationsNotFound with default headers values

func (*GetMarketplaceParticipationsNotFound) Error

func (*GetMarketplaceParticipationsNotFound) GetPayload

func (*GetMarketplaceParticipationsNotFound) IsClientError

func (o *GetMarketplaceParticipationsNotFound) IsClientError() bool

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

func (*GetMarketplaceParticipationsNotFound) IsCode

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

func (*GetMarketplaceParticipationsNotFound) IsRedirect

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

func (*GetMarketplaceParticipationsNotFound) IsServerError

func (o *GetMarketplaceParticipationsNotFound) IsServerError() bool

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

func (*GetMarketplaceParticipationsNotFound) IsSuccess

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

func (*GetMarketplaceParticipationsNotFound) String

type GetMarketplaceParticipationsOK

type GetMarketplaceParticipationsOK struct {

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

	/* unique request reference id.
	 */
	XAmznRequestID string

	Payload *sellers_models.GetMarketplaceParticipationsResponse
}

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

Marketplace participations successfully retrieved.

func NewGetMarketplaceParticipationsOK

func NewGetMarketplaceParticipationsOK() *GetMarketplaceParticipationsOK

NewGetMarketplaceParticipationsOK creates a GetMarketplaceParticipationsOK with default headers values

func (*GetMarketplaceParticipationsOK) Error

func (*GetMarketplaceParticipationsOK) GetPayload

func (*GetMarketplaceParticipationsOK) IsClientError

func (o *GetMarketplaceParticipationsOK) IsClientError() bool

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

func (*GetMarketplaceParticipationsOK) IsCode

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

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

func (*GetMarketplaceParticipationsOK) IsRedirect

func (o *GetMarketplaceParticipationsOK) IsRedirect() bool

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

func (*GetMarketplaceParticipationsOK) IsServerError

func (o *GetMarketplaceParticipationsOK) IsServerError() bool

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

func (*GetMarketplaceParticipationsOK) IsSuccess

func (o *GetMarketplaceParticipationsOK) IsSuccess() bool

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

func (*GetMarketplaceParticipationsOK) String

type GetMarketplaceParticipationsParams

type GetMarketplaceParticipationsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetMarketplaceParticipationsParams contains all the parameters to send to the API endpoint

for the get marketplace participations operation.

Typically these are written to a http.Request.

func NewGetMarketplaceParticipationsParams

func NewGetMarketplaceParticipationsParams() *GetMarketplaceParticipationsParams

NewGetMarketplaceParticipationsParams creates a new GetMarketplaceParticipationsParams 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 NewGetMarketplaceParticipationsParamsWithContext

func NewGetMarketplaceParticipationsParamsWithContext(ctx context.Context) *GetMarketplaceParticipationsParams

NewGetMarketplaceParticipationsParamsWithContext creates a new GetMarketplaceParticipationsParams object with the ability to set a context for a request.

func NewGetMarketplaceParticipationsParamsWithHTTPClient

func NewGetMarketplaceParticipationsParamsWithHTTPClient(client *http.Client) *GetMarketplaceParticipationsParams

NewGetMarketplaceParticipationsParamsWithHTTPClient creates a new GetMarketplaceParticipationsParams object with the ability to set a custom HTTPClient for a request.

func NewGetMarketplaceParticipationsParamsWithTimeout

func NewGetMarketplaceParticipationsParamsWithTimeout(timeout time.Duration) *GetMarketplaceParticipationsParams

NewGetMarketplaceParticipationsParamsWithTimeout creates a new GetMarketplaceParticipationsParams object with the ability to set a timeout on a request.

func (*GetMarketplaceParticipationsParams) SetContext

SetContext adds the context to the get marketplace participations params

func (*GetMarketplaceParticipationsParams) SetDefaults

func (o *GetMarketplaceParticipationsParams) SetDefaults()

SetDefaults hydrates default values in the get marketplace participations params (not the query body).

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

func (*GetMarketplaceParticipationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get marketplace participations params

func (*GetMarketplaceParticipationsParams) SetTimeout

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

SetTimeout adds the timeout to the get marketplace participations params

func (*GetMarketplaceParticipationsParams) WithContext

WithContext adds the context to the get marketplace participations params

func (*GetMarketplaceParticipationsParams) WithDefaults

WithDefaults hydrates default values in the get marketplace participations params (not the query body).

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

func (*GetMarketplaceParticipationsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get marketplace participations params

func (*GetMarketplaceParticipationsParams) WithTimeout

WithTimeout adds the timeout to the get marketplace participations params

func (*GetMarketplaceParticipationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetMarketplaceParticipationsReader

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

GetMarketplaceParticipationsReader is a Reader for the GetMarketplaceParticipations structure.

func (*GetMarketplaceParticipationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetMarketplaceParticipationsRequestEntityTooLarge

type GetMarketplaceParticipationsRequestEntityTooLarge 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 id.
	 */
	XAmznRequestID string

	Payload *sellers_models.GetMarketplaceParticipationsResponse
}

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

The request size exceeded the maximum accepted size.

func NewGetMarketplaceParticipationsRequestEntityTooLarge

func NewGetMarketplaceParticipationsRequestEntityTooLarge() *GetMarketplaceParticipationsRequestEntityTooLarge

NewGetMarketplaceParticipationsRequestEntityTooLarge creates a GetMarketplaceParticipationsRequestEntityTooLarge with default headers values

func (*GetMarketplaceParticipationsRequestEntityTooLarge) Error

func (*GetMarketplaceParticipationsRequestEntityTooLarge) GetPayload

func (*GetMarketplaceParticipationsRequestEntityTooLarge) IsClientError

IsClientError returns true when this get marketplace participations request entity too large response has a 4xx status code

func (*GetMarketplaceParticipationsRequestEntityTooLarge) IsCode

IsCode returns true when this get marketplace participations request entity too large response a status code equal to that given

func (*GetMarketplaceParticipationsRequestEntityTooLarge) IsRedirect

IsRedirect returns true when this get marketplace participations request entity too large response has a 3xx status code

func (*GetMarketplaceParticipationsRequestEntityTooLarge) IsServerError

IsServerError returns true when this get marketplace participations request entity too large response has a 5xx status code

func (*GetMarketplaceParticipationsRequestEntityTooLarge) IsSuccess

IsSuccess returns true when this get marketplace participations request entity too large response has a 2xx status code

func (*GetMarketplaceParticipationsRequestEntityTooLarge) String

type GetMarketplaceParticipationsServiceUnavailable

type GetMarketplaceParticipationsServiceUnavailable 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 id.
	 */
	XAmznRequestID string

	Payload *sellers_models.GetMarketplaceParticipationsResponse
}

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

Temporary overloading or maintenance of the server.

func NewGetMarketplaceParticipationsServiceUnavailable

func NewGetMarketplaceParticipationsServiceUnavailable() *GetMarketplaceParticipationsServiceUnavailable

NewGetMarketplaceParticipationsServiceUnavailable creates a GetMarketplaceParticipationsServiceUnavailable with default headers values

func (*GetMarketplaceParticipationsServiceUnavailable) Error

func (*GetMarketplaceParticipationsServiceUnavailable) GetPayload

func (*GetMarketplaceParticipationsServiceUnavailable) IsClientError

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

func (*GetMarketplaceParticipationsServiceUnavailable) IsCode

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

func (*GetMarketplaceParticipationsServiceUnavailable) IsRedirect

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

func (*GetMarketplaceParticipationsServiceUnavailable) IsServerError

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

func (*GetMarketplaceParticipationsServiceUnavailable) IsSuccess

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

func (*GetMarketplaceParticipationsServiceUnavailable) String

type GetMarketplaceParticipationsTooManyRequests

type GetMarketplaceParticipationsTooManyRequests 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 id.
	 */
	XAmznRequestID string

	Payload *sellers_models.GetMarketplaceParticipationsResponse
}

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

The frequency of requests was greater than allowed.

func NewGetMarketplaceParticipationsTooManyRequests

func NewGetMarketplaceParticipationsTooManyRequests() *GetMarketplaceParticipationsTooManyRequests

NewGetMarketplaceParticipationsTooManyRequests creates a GetMarketplaceParticipationsTooManyRequests with default headers values

func (*GetMarketplaceParticipationsTooManyRequests) Error

func (*GetMarketplaceParticipationsTooManyRequests) GetPayload

func (*GetMarketplaceParticipationsTooManyRequests) IsClientError

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

func (*GetMarketplaceParticipationsTooManyRequests) IsCode

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

func (*GetMarketplaceParticipationsTooManyRequests) IsRedirect

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

func (*GetMarketplaceParticipationsTooManyRequests) IsServerError

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

func (*GetMarketplaceParticipationsTooManyRequests) IsSuccess

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

func (*GetMarketplaceParticipationsTooManyRequests) String

type GetMarketplaceParticipationsUnsupportedMediaType

type GetMarketplaceParticipationsUnsupportedMediaType 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 id.
	 */
	XAmznRequestID string

	Payload *sellers_models.GetMarketplaceParticipationsResponse
}

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

The entity of the request is in a format not supported by the requested resource.

func NewGetMarketplaceParticipationsUnsupportedMediaType

func NewGetMarketplaceParticipationsUnsupportedMediaType() *GetMarketplaceParticipationsUnsupportedMediaType

NewGetMarketplaceParticipationsUnsupportedMediaType creates a GetMarketplaceParticipationsUnsupportedMediaType with default headers values

func (*GetMarketplaceParticipationsUnsupportedMediaType) Error

func (*GetMarketplaceParticipationsUnsupportedMediaType) GetPayload

func (*GetMarketplaceParticipationsUnsupportedMediaType) IsClientError

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

func (*GetMarketplaceParticipationsUnsupportedMediaType) IsCode

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

func (*GetMarketplaceParticipationsUnsupportedMediaType) IsRedirect

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

func (*GetMarketplaceParticipationsUnsupportedMediaType) IsServerError

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

func (*GetMarketplaceParticipationsUnsupportedMediaType) IsSuccess

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

func (*GetMarketplaceParticipationsUnsupportedMediaType) String

Jump to

Keyboard shortcuts

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