offers

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

func (*Client) ListOfferMetrics

func (a *Client) ListOfferMetrics(params *ListOfferMetricsParams, opts ...ClientOption) (*ListOfferMetricsOK, error)
ListOfferMetrics Returns aggregated replenishment program metrics for a selling partner's offers.

**Usage Plan:**

| Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 |

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) ListOffers

func (a *Client) ListOffers(params *ListOffersParams, opts ...ClientOption) (*ListOffersOK, error)
ListOffers Returns the details of a selling partner's replenishment program offers. Note that this operation only supports sellers at this time.

**Usage Plan:**

| Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 |

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 {
	ListOfferMetrics(params *ListOfferMetricsParams, opts ...ClientOption) (*ListOfferMetricsOK, error)

	ListOffers(params *ListOffersParams, opts ...ClientOption) (*ListOffersOK, 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 offers API client.

type ListOfferMetricsBadRequest

type ListOfferMetricsBadRequest struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

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

Request has missing or invalid parameters and cannot be parsed.

func NewListOfferMetricsBadRequest

func NewListOfferMetricsBadRequest() *ListOfferMetricsBadRequest

NewListOfferMetricsBadRequest creates a ListOfferMetricsBadRequest with default headers values

func (*ListOfferMetricsBadRequest) Error

func (*ListOfferMetricsBadRequest) GetPayload

func (*ListOfferMetricsBadRequest) IsClientError

func (o *ListOfferMetricsBadRequest) IsClientError() bool

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

func (*ListOfferMetricsBadRequest) IsCode

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

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

func (*ListOfferMetricsBadRequest) IsRedirect

func (o *ListOfferMetricsBadRequest) IsRedirect() bool

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

func (*ListOfferMetricsBadRequest) IsServerError

func (o *ListOfferMetricsBadRequest) IsServerError() bool

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

func (*ListOfferMetricsBadRequest) IsSuccess

func (o *ListOfferMetricsBadRequest) IsSuccess() bool

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

func (*ListOfferMetricsBadRequest) String

func (o *ListOfferMetricsBadRequest) String() string

type ListOfferMetricsForbidden

type ListOfferMetricsForbidden struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

ListOfferMetricsForbidden 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 NewListOfferMetricsForbidden

func NewListOfferMetricsForbidden() *ListOfferMetricsForbidden

NewListOfferMetricsForbidden creates a ListOfferMetricsForbidden with default headers values

func (*ListOfferMetricsForbidden) Error

func (o *ListOfferMetricsForbidden) Error() string

func (*ListOfferMetricsForbidden) GetPayload

func (*ListOfferMetricsForbidden) IsClientError

func (o *ListOfferMetricsForbidden) IsClientError() bool

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

func (*ListOfferMetricsForbidden) IsCode

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

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

func (*ListOfferMetricsForbidden) IsRedirect

func (o *ListOfferMetricsForbidden) IsRedirect() bool

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

func (*ListOfferMetricsForbidden) IsServerError

func (o *ListOfferMetricsForbidden) IsServerError() bool

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

func (*ListOfferMetricsForbidden) IsSuccess

func (o *ListOfferMetricsForbidden) IsSuccess() bool

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

func (*ListOfferMetricsForbidden) String

func (o *ListOfferMetricsForbidden) String() string

type ListOfferMetricsInternalServerError

type ListOfferMetricsInternalServerError struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

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

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

func NewListOfferMetricsInternalServerError

func NewListOfferMetricsInternalServerError() *ListOfferMetricsInternalServerError

NewListOfferMetricsInternalServerError creates a ListOfferMetricsInternalServerError with default headers values

func (*ListOfferMetricsInternalServerError) Error

func (*ListOfferMetricsInternalServerError) GetPayload

func (*ListOfferMetricsInternalServerError) IsClientError

func (o *ListOfferMetricsInternalServerError) IsClientError() bool

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

func (*ListOfferMetricsInternalServerError) IsCode

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

func (*ListOfferMetricsInternalServerError) IsRedirect

func (o *ListOfferMetricsInternalServerError) IsRedirect() bool

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

func (*ListOfferMetricsInternalServerError) IsServerError

func (o *ListOfferMetricsInternalServerError) IsServerError() bool

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

func (*ListOfferMetricsInternalServerError) IsSuccess

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

func (*ListOfferMetricsInternalServerError) String

type ListOfferMetricsNotFound

type ListOfferMetricsNotFound struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

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

The specified resource does not exist.

func NewListOfferMetricsNotFound

func NewListOfferMetricsNotFound() *ListOfferMetricsNotFound

NewListOfferMetricsNotFound creates a ListOfferMetricsNotFound with default headers values

func (*ListOfferMetricsNotFound) Error

func (o *ListOfferMetricsNotFound) Error() string

func (*ListOfferMetricsNotFound) GetPayload

func (*ListOfferMetricsNotFound) IsClientError

func (o *ListOfferMetricsNotFound) IsClientError() bool

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

func (*ListOfferMetricsNotFound) IsCode

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

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

func (*ListOfferMetricsNotFound) IsRedirect

func (o *ListOfferMetricsNotFound) IsRedirect() bool

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

func (*ListOfferMetricsNotFound) IsServerError

func (o *ListOfferMetricsNotFound) IsServerError() bool

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

func (*ListOfferMetricsNotFound) IsSuccess

func (o *ListOfferMetricsNotFound) IsSuccess() bool

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

func (*ListOfferMetricsNotFound) String

func (o *ListOfferMetricsNotFound) String() string

type ListOfferMetricsOK

type ListOfferMetricsOK struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ListOfferMetricsResponse
}

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

Success.

func NewListOfferMetricsOK

func NewListOfferMetricsOK() *ListOfferMetricsOK

NewListOfferMetricsOK creates a ListOfferMetricsOK with default headers values

func (*ListOfferMetricsOK) Error

func (o *ListOfferMetricsOK) Error() string

func (*ListOfferMetricsOK) GetPayload

func (*ListOfferMetricsOK) IsClientError

func (o *ListOfferMetricsOK) IsClientError() bool

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

func (*ListOfferMetricsOK) IsCode

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

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

func (*ListOfferMetricsOK) IsRedirect

func (o *ListOfferMetricsOK) IsRedirect() bool

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

func (*ListOfferMetricsOK) IsServerError

func (o *ListOfferMetricsOK) IsServerError() bool

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

func (*ListOfferMetricsOK) IsSuccess

func (o *ListOfferMetricsOK) IsSuccess() bool

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

func (*ListOfferMetricsOK) String

func (o *ListOfferMetricsOK) String() string

type ListOfferMetricsParams

type ListOfferMetricsParams struct {

	/* Body.

	   The request body for the `listOfferMetrics` operation.
	*/
	Body *replenishment_2022_11_07_models.ListOfferMetricsRequest

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

ListOfferMetricsParams contains all the parameters to send to the API endpoint

for the list offer metrics operation.

Typically these are written to a http.Request.

func NewListOfferMetricsParams

func NewListOfferMetricsParams() *ListOfferMetricsParams

NewListOfferMetricsParams creates a new ListOfferMetricsParams 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 NewListOfferMetricsParamsWithContext

func NewListOfferMetricsParamsWithContext(ctx context.Context) *ListOfferMetricsParams

NewListOfferMetricsParamsWithContext creates a new ListOfferMetricsParams object with the ability to set a context for a request.

func NewListOfferMetricsParamsWithHTTPClient

func NewListOfferMetricsParamsWithHTTPClient(client *http.Client) *ListOfferMetricsParams

NewListOfferMetricsParamsWithHTTPClient creates a new ListOfferMetricsParams object with the ability to set a custom HTTPClient for a request.

func NewListOfferMetricsParamsWithTimeout

func NewListOfferMetricsParamsWithTimeout(timeout time.Duration) *ListOfferMetricsParams

NewListOfferMetricsParamsWithTimeout creates a new ListOfferMetricsParams object with the ability to set a timeout on a request.

func (*ListOfferMetricsParams) SetBody

SetBody adds the body to the list offer metrics params

func (*ListOfferMetricsParams) SetContext

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

SetContext adds the context to the list offer metrics params

func (*ListOfferMetricsParams) SetDefaults

func (o *ListOfferMetricsParams) SetDefaults()

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

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

func (*ListOfferMetricsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list offer metrics params

func (*ListOfferMetricsParams) SetTimeout

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

SetTimeout adds the timeout to the list offer metrics params

func (*ListOfferMetricsParams) WithBody

WithBody adds the body to the list offer metrics params

func (*ListOfferMetricsParams) WithContext

WithContext adds the context to the list offer metrics params

func (*ListOfferMetricsParams) WithDefaults

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

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

func (*ListOfferMetricsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list offer metrics params

func (*ListOfferMetricsParams) WithTimeout

WithTimeout adds the timeout to the list offer metrics params

func (*ListOfferMetricsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListOfferMetricsReader

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

ListOfferMetricsReader is a Reader for the ListOfferMetrics structure.

func (*ListOfferMetricsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListOfferMetricsServiceUnavailable

type ListOfferMetricsServiceUnavailable struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

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

Temporary overloading or maintenance of the server.

func NewListOfferMetricsServiceUnavailable

func NewListOfferMetricsServiceUnavailable() *ListOfferMetricsServiceUnavailable

NewListOfferMetricsServiceUnavailable creates a ListOfferMetricsServiceUnavailable with default headers values

func (*ListOfferMetricsServiceUnavailable) Error

func (*ListOfferMetricsServiceUnavailable) GetPayload

func (*ListOfferMetricsServiceUnavailable) IsClientError

func (o *ListOfferMetricsServiceUnavailable) IsClientError() bool

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

func (*ListOfferMetricsServiceUnavailable) IsCode

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

func (*ListOfferMetricsServiceUnavailable) IsRedirect

func (o *ListOfferMetricsServiceUnavailable) IsRedirect() bool

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

func (*ListOfferMetricsServiceUnavailable) IsServerError

func (o *ListOfferMetricsServiceUnavailable) IsServerError() bool

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

func (*ListOfferMetricsServiceUnavailable) IsSuccess

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

func (*ListOfferMetricsServiceUnavailable) String

type ListOfferMetricsTooManyRequests

type ListOfferMetricsTooManyRequests struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

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

The frequency of requests was greater than allowed.

func NewListOfferMetricsTooManyRequests

func NewListOfferMetricsTooManyRequests() *ListOfferMetricsTooManyRequests

NewListOfferMetricsTooManyRequests creates a ListOfferMetricsTooManyRequests with default headers values

func (*ListOfferMetricsTooManyRequests) Error

func (*ListOfferMetricsTooManyRequests) GetPayload

func (*ListOfferMetricsTooManyRequests) IsClientError

func (o *ListOfferMetricsTooManyRequests) IsClientError() bool

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

func (*ListOfferMetricsTooManyRequests) IsCode

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

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

func (*ListOfferMetricsTooManyRequests) IsRedirect

func (o *ListOfferMetricsTooManyRequests) IsRedirect() bool

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

func (*ListOfferMetricsTooManyRequests) IsServerError

func (o *ListOfferMetricsTooManyRequests) IsServerError() bool

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

func (*ListOfferMetricsTooManyRequests) IsSuccess

func (o *ListOfferMetricsTooManyRequests) IsSuccess() bool

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

func (*ListOfferMetricsTooManyRequests) String

type ListOfferMetricsUnauthorized

type ListOfferMetricsUnauthorized struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

ListOfferMetricsUnauthorized 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 NewListOfferMetricsUnauthorized

func NewListOfferMetricsUnauthorized() *ListOfferMetricsUnauthorized

NewListOfferMetricsUnauthorized creates a ListOfferMetricsUnauthorized with default headers values

func (*ListOfferMetricsUnauthorized) Error

func (*ListOfferMetricsUnauthorized) GetPayload

func (*ListOfferMetricsUnauthorized) IsClientError

func (o *ListOfferMetricsUnauthorized) IsClientError() bool

IsClientError returns true when this list offer metrics unauthorized response has a 4xx status code

func (*ListOfferMetricsUnauthorized) IsCode

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

IsCode returns true when this list offer metrics unauthorized response a status code equal to that given

func (*ListOfferMetricsUnauthorized) IsRedirect

func (o *ListOfferMetricsUnauthorized) IsRedirect() bool

IsRedirect returns true when this list offer metrics unauthorized response has a 3xx status code

func (*ListOfferMetricsUnauthorized) IsServerError

func (o *ListOfferMetricsUnauthorized) IsServerError() bool

IsServerError returns true when this list offer metrics unauthorized response has a 5xx status code

func (*ListOfferMetricsUnauthorized) IsSuccess

func (o *ListOfferMetricsUnauthorized) IsSuccess() bool

IsSuccess returns true when this list offer metrics unauthorized response has a 2xx status code

func (*ListOfferMetricsUnauthorized) String

type ListOfferMetricsUnsupportedMediaType

type ListOfferMetricsUnsupportedMediaType struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

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

The request payload is in an unsupported format.

func NewListOfferMetricsUnsupportedMediaType

func NewListOfferMetricsUnsupportedMediaType() *ListOfferMetricsUnsupportedMediaType

NewListOfferMetricsUnsupportedMediaType creates a ListOfferMetricsUnsupportedMediaType with default headers values

func (*ListOfferMetricsUnsupportedMediaType) Error

func (*ListOfferMetricsUnsupportedMediaType) GetPayload

func (*ListOfferMetricsUnsupportedMediaType) IsClientError

func (o *ListOfferMetricsUnsupportedMediaType) IsClientError() bool

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

func (*ListOfferMetricsUnsupportedMediaType) IsCode

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

func (*ListOfferMetricsUnsupportedMediaType) IsRedirect

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

func (*ListOfferMetricsUnsupportedMediaType) IsServerError

func (o *ListOfferMetricsUnsupportedMediaType) IsServerError() bool

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

func (*ListOfferMetricsUnsupportedMediaType) IsSuccess

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

func (*ListOfferMetricsUnsupportedMediaType) String

type ListOffersBadRequest

type ListOffersBadRequest struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

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

Request has missing or invalid parameters and cannot be parsed.

func NewListOffersBadRequest

func NewListOffersBadRequest() *ListOffersBadRequest

NewListOffersBadRequest creates a ListOffersBadRequest with default headers values

func (*ListOffersBadRequest) Error

func (o *ListOffersBadRequest) Error() string

func (*ListOffersBadRequest) GetPayload

func (*ListOffersBadRequest) IsClientError

func (o *ListOffersBadRequest) IsClientError() bool

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

func (*ListOffersBadRequest) IsCode

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

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

func (*ListOffersBadRequest) IsRedirect

func (o *ListOffersBadRequest) IsRedirect() bool

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

func (*ListOffersBadRequest) IsServerError

func (o *ListOffersBadRequest) IsServerError() bool

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

func (*ListOffersBadRequest) IsSuccess

func (o *ListOffersBadRequest) IsSuccess() bool

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

func (*ListOffersBadRequest) String

func (o *ListOffersBadRequest) String() string

type ListOffersForbidden

type ListOffersForbidden struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

ListOffersForbidden 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 NewListOffersForbidden

func NewListOffersForbidden() *ListOffersForbidden

NewListOffersForbidden creates a ListOffersForbidden with default headers values

func (*ListOffersForbidden) Error

func (o *ListOffersForbidden) Error() string

func (*ListOffersForbidden) GetPayload

func (*ListOffersForbidden) IsClientError

func (o *ListOffersForbidden) IsClientError() bool

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

func (*ListOffersForbidden) IsCode

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

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

func (*ListOffersForbidden) IsRedirect

func (o *ListOffersForbidden) IsRedirect() bool

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

func (*ListOffersForbidden) IsServerError

func (o *ListOffersForbidden) IsServerError() bool

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

func (*ListOffersForbidden) IsSuccess

func (o *ListOffersForbidden) IsSuccess() bool

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

func (*ListOffersForbidden) String

func (o *ListOffersForbidden) String() string

type ListOffersInternalServerError

type ListOffersInternalServerError struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

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

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

func NewListOffersInternalServerError

func NewListOffersInternalServerError() *ListOffersInternalServerError

NewListOffersInternalServerError creates a ListOffersInternalServerError with default headers values

func (*ListOffersInternalServerError) Error

func (*ListOffersInternalServerError) GetPayload

func (*ListOffersInternalServerError) IsClientError

func (o *ListOffersInternalServerError) IsClientError() bool

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

func (*ListOffersInternalServerError) IsCode

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

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

func (*ListOffersInternalServerError) IsRedirect

func (o *ListOffersInternalServerError) IsRedirect() bool

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

func (*ListOffersInternalServerError) IsServerError

func (o *ListOffersInternalServerError) IsServerError() bool

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

func (*ListOffersInternalServerError) IsSuccess

func (o *ListOffersInternalServerError) IsSuccess() bool

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

func (*ListOffersInternalServerError) String

type ListOffersNotFound

type ListOffersNotFound struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

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

The specified resource does not exist.

func NewListOffersNotFound

func NewListOffersNotFound() *ListOffersNotFound

NewListOffersNotFound creates a ListOffersNotFound with default headers values

func (*ListOffersNotFound) Error

func (o *ListOffersNotFound) Error() string

func (*ListOffersNotFound) GetPayload

func (*ListOffersNotFound) IsClientError

func (o *ListOffersNotFound) IsClientError() bool

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

func (*ListOffersNotFound) IsCode

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

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

func (*ListOffersNotFound) IsRedirect

func (o *ListOffersNotFound) IsRedirect() bool

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

func (*ListOffersNotFound) IsServerError

func (o *ListOffersNotFound) IsServerError() bool

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

func (*ListOffersNotFound) IsSuccess

func (o *ListOffersNotFound) IsSuccess() bool

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

func (*ListOffersNotFound) String

func (o *ListOffersNotFound) String() string

type ListOffersOK

type ListOffersOK struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ListOffersResponse
}

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

Success.

func NewListOffersOK

func NewListOffersOK() *ListOffersOK

NewListOffersOK creates a ListOffersOK with default headers values

func (*ListOffersOK) Error

func (o *ListOffersOK) Error() string

func (*ListOffersOK) GetPayload

func (*ListOffersOK) IsClientError

func (o *ListOffersOK) IsClientError() bool

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

func (*ListOffersOK) IsCode

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

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

func (*ListOffersOK) IsRedirect

func (o *ListOffersOK) IsRedirect() bool

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

func (*ListOffersOK) IsServerError

func (o *ListOffersOK) IsServerError() bool

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

func (*ListOffersOK) IsSuccess

func (o *ListOffersOK) IsSuccess() bool

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

func (*ListOffersOK) String

func (o *ListOffersOK) String() string

type ListOffersParams

type ListOffersParams struct {

	// Body.
	Body *replenishment_2022_11_07_models.ListOffersRequest

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

ListOffersParams contains all the parameters to send to the API endpoint

for the list offers operation.

Typically these are written to a http.Request.

func NewListOffersParams

func NewListOffersParams() *ListOffersParams

NewListOffersParams creates a new ListOffersParams 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 NewListOffersParamsWithContext

func NewListOffersParamsWithContext(ctx context.Context) *ListOffersParams

NewListOffersParamsWithContext creates a new ListOffersParams object with the ability to set a context for a request.

func NewListOffersParamsWithHTTPClient

func NewListOffersParamsWithHTTPClient(client *http.Client) *ListOffersParams

NewListOffersParamsWithHTTPClient creates a new ListOffersParams object with the ability to set a custom HTTPClient for a request.

func NewListOffersParamsWithTimeout

func NewListOffersParamsWithTimeout(timeout time.Duration) *ListOffersParams

NewListOffersParamsWithTimeout creates a new ListOffersParams object with the ability to set a timeout on a request.

func (*ListOffersParams) SetBody

SetBody adds the body to the list offers params

func (*ListOffersParams) SetContext

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

SetContext adds the context to the list offers params

func (*ListOffersParams) SetDefaults

func (o *ListOffersParams) SetDefaults()

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

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

func (*ListOffersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list offers params

func (*ListOffersParams) SetTimeout

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

SetTimeout adds the timeout to the list offers params

func (*ListOffersParams) WithBody

WithBody adds the body to the list offers params

func (*ListOffersParams) WithContext

func (o *ListOffersParams) WithContext(ctx context.Context) *ListOffersParams

WithContext adds the context to the list offers params

func (*ListOffersParams) WithDefaults

func (o *ListOffersParams) WithDefaults() *ListOffersParams

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

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

func (*ListOffersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list offers params

func (*ListOffersParams) WithTimeout

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

WithTimeout adds the timeout to the list offers params

func (*ListOffersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListOffersReader

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

ListOffersReader is a Reader for the ListOffers structure.

func (*ListOffersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListOffersServiceUnavailable

type ListOffersServiceUnavailable struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

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

Temporary overloading or maintenance of the server.

func NewListOffersServiceUnavailable

func NewListOffersServiceUnavailable() *ListOffersServiceUnavailable

NewListOffersServiceUnavailable creates a ListOffersServiceUnavailable with default headers values

func (*ListOffersServiceUnavailable) Error

func (*ListOffersServiceUnavailable) GetPayload

func (*ListOffersServiceUnavailable) IsClientError

func (o *ListOffersServiceUnavailable) IsClientError() bool

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

func (*ListOffersServiceUnavailable) IsCode

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

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

func (*ListOffersServiceUnavailable) IsRedirect

func (o *ListOffersServiceUnavailable) IsRedirect() bool

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

func (*ListOffersServiceUnavailable) IsServerError

func (o *ListOffersServiceUnavailable) IsServerError() bool

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

func (*ListOffersServiceUnavailable) IsSuccess

func (o *ListOffersServiceUnavailable) IsSuccess() bool

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

func (*ListOffersServiceUnavailable) String

type ListOffersTooManyRequests

type ListOffersTooManyRequests struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

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

The frequency of requests was greater than allowed.

func NewListOffersTooManyRequests

func NewListOffersTooManyRequests() *ListOffersTooManyRequests

NewListOffersTooManyRequests creates a ListOffersTooManyRequests with default headers values

func (*ListOffersTooManyRequests) Error

func (o *ListOffersTooManyRequests) Error() string

func (*ListOffersTooManyRequests) GetPayload

func (*ListOffersTooManyRequests) IsClientError

func (o *ListOffersTooManyRequests) IsClientError() bool

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

func (*ListOffersTooManyRequests) IsCode

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

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

func (*ListOffersTooManyRequests) IsRedirect

func (o *ListOffersTooManyRequests) IsRedirect() bool

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

func (*ListOffersTooManyRequests) IsServerError

func (o *ListOffersTooManyRequests) IsServerError() bool

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

func (*ListOffersTooManyRequests) IsSuccess

func (o *ListOffersTooManyRequests) IsSuccess() bool

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

func (*ListOffersTooManyRequests) String

func (o *ListOffersTooManyRequests) String() string

type ListOffersUnauthorized

type ListOffersUnauthorized struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

ListOffersUnauthorized 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 NewListOffersUnauthorized

func NewListOffersUnauthorized() *ListOffersUnauthorized

NewListOffersUnauthorized creates a ListOffersUnauthorized with default headers values

func (*ListOffersUnauthorized) Error

func (o *ListOffersUnauthorized) Error() string

func (*ListOffersUnauthorized) GetPayload

func (*ListOffersUnauthorized) IsClientError

func (o *ListOffersUnauthorized) IsClientError() bool

IsClientError returns true when this list offers unauthorized response has a 4xx status code

func (*ListOffersUnauthorized) IsCode

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

IsCode returns true when this list offers unauthorized response a status code equal to that given

func (*ListOffersUnauthorized) IsRedirect

func (o *ListOffersUnauthorized) IsRedirect() bool

IsRedirect returns true when this list offers unauthorized response has a 3xx status code

func (*ListOffersUnauthorized) IsServerError

func (o *ListOffersUnauthorized) IsServerError() bool

IsServerError returns true when this list offers unauthorized response has a 5xx status code

func (*ListOffersUnauthorized) IsSuccess

func (o *ListOffersUnauthorized) IsSuccess() bool

IsSuccess returns true when this list offers unauthorized response has a 2xx status code

func (*ListOffersUnauthorized) String

func (o *ListOffersUnauthorized) String() string

type ListOffersUnsupportedMediaType

type ListOffersUnsupportedMediaType struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *replenishment_2022_11_07_models.ErrorList
}

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

The request payload is in an unsupported format.

func NewListOffersUnsupportedMediaType

func NewListOffersUnsupportedMediaType() *ListOffersUnsupportedMediaType

NewListOffersUnsupportedMediaType creates a ListOffersUnsupportedMediaType with default headers values

func (*ListOffersUnsupportedMediaType) Error

func (*ListOffersUnsupportedMediaType) GetPayload

func (*ListOffersUnsupportedMediaType) IsClientError

func (o *ListOffersUnsupportedMediaType) IsClientError() bool

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

func (*ListOffersUnsupportedMediaType) IsCode

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

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

func (*ListOffersUnsupportedMediaType) IsRedirect

func (o *ListOffersUnsupportedMediaType) IsRedirect() bool

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

func (*ListOffersUnsupportedMediaType) IsServerError

func (o *ListOffersUnsupportedMediaType) IsServerError() bool

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

func (*ListOffersUnsupportedMediaType) IsSuccess

func (o *ListOffersUnsupportedMediaType) IsSuccess() bool

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

func (*ListOffersUnsupportedMediaType) String

Jump to

Keyboard shortcuts

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