sales

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: 11 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 sales API

func (*Client) GetOrderMetrics

func (a *Client) GetOrderMetrics(params *GetOrderMetricsParams, opts ...ClientOption) (*GetOrderMetricsOK, error)
GetOrderMetrics Returns aggregated order metrics for given interval, broken down by granularity, for given buyer type.

**Usage Plan:**

| Rate (requests per second) | Burst | | ---- | ---- | | .5 | 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](doc: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 {
	GetOrderMetrics(params *GetOrderMetricsParams, opts ...ClientOption) (*GetOrderMetricsOK, 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 sales API client.

type GetOrderMetricsBadRequest

type GetOrderMetricsBadRequest struct {

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

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *sales_models.GetOrderMetricsResponse
}

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

Request has missing or invalid parameters and cannot be parsed.

func NewGetOrderMetricsBadRequest

func NewGetOrderMetricsBadRequest() *GetOrderMetricsBadRequest

NewGetOrderMetricsBadRequest creates a GetOrderMetricsBadRequest with default headers values

func (*GetOrderMetricsBadRequest) Error

func (o *GetOrderMetricsBadRequest) Error() string

func (*GetOrderMetricsBadRequest) GetPayload

func (*GetOrderMetricsBadRequest) IsClientError

func (o *GetOrderMetricsBadRequest) IsClientError() bool

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

func (*GetOrderMetricsBadRequest) IsCode

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

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

func (*GetOrderMetricsBadRequest) IsRedirect

func (o *GetOrderMetricsBadRequest) IsRedirect() bool

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

func (*GetOrderMetricsBadRequest) IsServerError

func (o *GetOrderMetricsBadRequest) IsServerError() bool

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

func (*GetOrderMetricsBadRequest) IsSuccess

func (o *GetOrderMetricsBadRequest) IsSuccess() bool

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

func (*GetOrderMetricsBadRequest) String

func (o *GetOrderMetricsBadRequest) String() string

type GetOrderMetricsForbidden

type GetOrderMetricsForbidden struct {

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *sales_models.GetOrderMetricsResponse
}

GetOrderMetricsForbidden 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 NewGetOrderMetricsForbidden

func NewGetOrderMetricsForbidden() *GetOrderMetricsForbidden

NewGetOrderMetricsForbidden creates a GetOrderMetricsForbidden with default headers values

func (*GetOrderMetricsForbidden) Error

func (o *GetOrderMetricsForbidden) Error() string

func (*GetOrderMetricsForbidden) GetPayload

func (*GetOrderMetricsForbidden) IsClientError

func (o *GetOrderMetricsForbidden) IsClientError() bool

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

func (*GetOrderMetricsForbidden) IsCode

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

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

func (*GetOrderMetricsForbidden) IsRedirect

func (o *GetOrderMetricsForbidden) IsRedirect() bool

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

func (*GetOrderMetricsForbidden) IsServerError

func (o *GetOrderMetricsForbidden) IsServerError() bool

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

func (*GetOrderMetricsForbidden) IsSuccess

func (o *GetOrderMetricsForbidden) IsSuccess() bool

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

func (*GetOrderMetricsForbidden) String

func (o *GetOrderMetricsForbidden) String() string

type GetOrderMetricsInternalServerError

type GetOrderMetricsInternalServerError 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 *sales_models.GetOrderMetricsResponse
}

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

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

func NewGetOrderMetricsInternalServerError

func NewGetOrderMetricsInternalServerError() *GetOrderMetricsInternalServerError

NewGetOrderMetricsInternalServerError creates a GetOrderMetricsInternalServerError with default headers values

func (*GetOrderMetricsInternalServerError) Error

func (*GetOrderMetricsInternalServerError) GetPayload

func (*GetOrderMetricsInternalServerError) IsClientError

func (o *GetOrderMetricsInternalServerError) IsClientError() bool

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

func (*GetOrderMetricsInternalServerError) IsCode

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

func (*GetOrderMetricsInternalServerError) IsRedirect

func (o *GetOrderMetricsInternalServerError) IsRedirect() bool

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

func (*GetOrderMetricsInternalServerError) IsServerError

func (o *GetOrderMetricsInternalServerError) IsServerError() bool

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

func (*GetOrderMetricsInternalServerError) IsSuccess

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

func (*GetOrderMetricsInternalServerError) String

type GetOrderMetricsNotFound

type GetOrderMetricsNotFound struct {

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

	/* Unique request reference id.
	 */
	XAmznRequestID string

	Payload *sales_models.GetOrderMetricsResponse
}

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

The resource specified does not exist.

func NewGetOrderMetricsNotFound

func NewGetOrderMetricsNotFound() *GetOrderMetricsNotFound

NewGetOrderMetricsNotFound creates a GetOrderMetricsNotFound with default headers values

func (*GetOrderMetricsNotFound) Error

func (o *GetOrderMetricsNotFound) Error() string

func (*GetOrderMetricsNotFound) GetPayload

func (*GetOrderMetricsNotFound) IsClientError

func (o *GetOrderMetricsNotFound) IsClientError() bool

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

func (*GetOrderMetricsNotFound) IsCode

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

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

func (*GetOrderMetricsNotFound) IsRedirect

func (o *GetOrderMetricsNotFound) IsRedirect() bool

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

func (*GetOrderMetricsNotFound) IsServerError

func (o *GetOrderMetricsNotFound) IsServerError() bool

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

func (*GetOrderMetricsNotFound) IsSuccess

func (o *GetOrderMetricsNotFound) IsSuccess() bool

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

func (*GetOrderMetricsNotFound) String

func (o *GetOrderMetricsNotFound) String() string

type GetOrderMetricsOK

type GetOrderMetricsOK struct {

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

	/* unique request reference id.
	 */
	XAmznRequestID string

	Payload *sales_models.GetOrderMetricsResponse
}

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

OrderMetric action taken on the resource OrderMetrics.

func NewGetOrderMetricsOK

func NewGetOrderMetricsOK() *GetOrderMetricsOK

NewGetOrderMetricsOK creates a GetOrderMetricsOK with default headers values

func (*GetOrderMetricsOK) Error

func (o *GetOrderMetricsOK) Error() string

func (*GetOrderMetricsOK) GetPayload

func (*GetOrderMetricsOK) IsClientError

func (o *GetOrderMetricsOK) IsClientError() bool

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

func (*GetOrderMetricsOK) IsCode

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

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

func (*GetOrderMetricsOK) IsRedirect

func (o *GetOrderMetricsOK) IsRedirect() bool

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

func (*GetOrderMetricsOK) IsServerError

func (o *GetOrderMetricsOK) IsServerError() bool

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

func (*GetOrderMetricsOK) IsSuccess

func (o *GetOrderMetricsOK) IsSuccess() bool

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

func (*GetOrderMetricsOK) String

func (o *GetOrderMetricsOK) String() string

type GetOrderMetricsParams

type GetOrderMetricsParams struct {

	/* Asin.

	   Filters the results by the ASIN that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all ASINs. Example: B0792R1RSN, if you want the response to include order metrics for only ASIN B0792R1RSN.
	*/
	Asin *string

	/* BuyerType.

	   Filters the results by the buyer type that you specify, B2B (business to business) or B2C (business to customer). Example: B2B, if you want the response to include order metrics for only B2B buyers.

	   Default: "All"
	*/
	BuyerType *string

	/* FirstDayOfWeek.

	   Specifies the day that the week starts on when granularity=Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday.

	   Default: "Monday"
	*/
	FirstDayOfWeek *string

	/* FulfillmentNetwork.

	   Filters the results by the fulfillment network that you specify, MFN (merchant fulfillment network) or AFN (Amazon fulfillment network). Do not include this filter if you want the response to include order metrics for all fulfillment networks. Example: AFN, if you want the response to include order metrics for only Amazon fulfillment network.
	*/
	FulfillmentNetwork *string

	/* Granularity.

	   The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone.
	*/
	Granularity string

	/* GranularityTimeZone.

	   An IANA-compatible time zone for determining the day boundary. Required when specifying a granularity value greater than Hour. The granularityTimeZone value must align with the offset of the specified interval value. For example, if the interval value uses Z notation, then granularityTimeZone must be UTC. If the interval value uses an offset, then granularityTimeZone must be an IANA-compatible time zone that matches the offset. Example: US/Pacific to compute day boundaries, accounting for daylight time savings, for US/Pacific zone.
	*/
	GranularityTimeZone *string

	/* Interval.

	   A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone.
	*/
	Interval string

	/* MarketplaceIds.

	     A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified.

	For example, ATVPDKIKX0DER indicates the US marketplace.
	*/
	MarketplaceIds []string

	/* Sku.

	   Filters the results by the SKU that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all SKUs. Example: TestSKU, if you want the response to include order metrics for only SKU TestSKU.
	*/
	Sku *string

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

GetOrderMetricsParams contains all the parameters to send to the API endpoint

for the get order metrics operation.

Typically these are written to a http.Request.

func NewGetOrderMetricsParams

func NewGetOrderMetricsParams() *GetOrderMetricsParams

NewGetOrderMetricsParams creates a new GetOrderMetricsParams 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 NewGetOrderMetricsParamsWithContext

func NewGetOrderMetricsParamsWithContext(ctx context.Context) *GetOrderMetricsParams

NewGetOrderMetricsParamsWithContext creates a new GetOrderMetricsParams object with the ability to set a context for a request.

func NewGetOrderMetricsParamsWithHTTPClient

func NewGetOrderMetricsParamsWithHTTPClient(client *http.Client) *GetOrderMetricsParams

NewGetOrderMetricsParamsWithHTTPClient creates a new GetOrderMetricsParams object with the ability to set a custom HTTPClient for a request.

func NewGetOrderMetricsParamsWithTimeout

func NewGetOrderMetricsParamsWithTimeout(timeout time.Duration) *GetOrderMetricsParams

NewGetOrderMetricsParamsWithTimeout creates a new GetOrderMetricsParams object with the ability to set a timeout on a request.

func (*GetOrderMetricsParams) SetAsin

func (o *GetOrderMetricsParams) SetAsin(asin *string)

SetAsin adds the asin to the get order metrics params

func (*GetOrderMetricsParams) SetBuyerType

func (o *GetOrderMetricsParams) SetBuyerType(buyerType *string)

SetBuyerType adds the buyerType to the get order metrics params

func (*GetOrderMetricsParams) SetContext

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

SetContext adds the context to the get order metrics params

func (*GetOrderMetricsParams) SetDefaults

func (o *GetOrderMetricsParams) SetDefaults()

SetDefaults hydrates default values in the get order metrics params (not the query body).

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

func (*GetOrderMetricsParams) SetFirstDayOfWeek

func (o *GetOrderMetricsParams) SetFirstDayOfWeek(firstDayOfWeek *string)

SetFirstDayOfWeek adds the firstDayOfWeek to the get order metrics params

func (*GetOrderMetricsParams) SetFulfillmentNetwork

func (o *GetOrderMetricsParams) SetFulfillmentNetwork(fulfillmentNetwork *string)

SetFulfillmentNetwork adds the fulfillmentNetwork to the get order metrics params

func (*GetOrderMetricsParams) SetGranularity

func (o *GetOrderMetricsParams) SetGranularity(granularity string)

SetGranularity adds the granularity to the get order metrics params

func (*GetOrderMetricsParams) SetGranularityTimeZone

func (o *GetOrderMetricsParams) SetGranularityTimeZone(granularityTimeZone *string)

SetGranularityTimeZone adds the granularityTimeZone to the get order metrics params

func (*GetOrderMetricsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get order metrics params

func (*GetOrderMetricsParams) SetInterval

func (o *GetOrderMetricsParams) SetInterval(interval string)

SetInterval adds the interval to the get order metrics params

func (*GetOrderMetricsParams) SetMarketplaceIds

func (o *GetOrderMetricsParams) SetMarketplaceIds(marketplaceIds []string)

SetMarketplaceIds adds the marketplaceIds to the get order metrics params

func (*GetOrderMetricsParams) SetSku

func (o *GetOrderMetricsParams) SetSku(sku *string)

SetSku adds the sku to the get order metrics params

func (*GetOrderMetricsParams) SetTimeout

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

SetTimeout adds the timeout to the get order metrics params

func (*GetOrderMetricsParams) WithAsin

WithAsin adds the asin to the get order metrics params

func (*GetOrderMetricsParams) WithBuyerType

func (o *GetOrderMetricsParams) WithBuyerType(buyerType *string) *GetOrderMetricsParams

WithBuyerType adds the buyerType to the get order metrics params

func (*GetOrderMetricsParams) WithContext

WithContext adds the context to the get order metrics params

func (*GetOrderMetricsParams) WithDefaults

func (o *GetOrderMetricsParams) WithDefaults() *GetOrderMetricsParams

WithDefaults hydrates default values in the get order metrics params (not the query body).

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

func (*GetOrderMetricsParams) WithFirstDayOfWeek

func (o *GetOrderMetricsParams) WithFirstDayOfWeek(firstDayOfWeek *string) *GetOrderMetricsParams

WithFirstDayOfWeek adds the firstDayOfWeek to the get order metrics params

func (*GetOrderMetricsParams) WithFulfillmentNetwork

func (o *GetOrderMetricsParams) WithFulfillmentNetwork(fulfillmentNetwork *string) *GetOrderMetricsParams

WithFulfillmentNetwork adds the fulfillmentNetwork to the get order metrics params

func (*GetOrderMetricsParams) WithGranularity

func (o *GetOrderMetricsParams) WithGranularity(granularity string) *GetOrderMetricsParams

WithGranularity adds the granularity to the get order metrics params

func (*GetOrderMetricsParams) WithGranularityTimeZone

func (o *GetOrderMetricsParams) WithGranularityTimeZone(granularityTimeZone *string) *GetOrderMetricsParams

WithGranularityTimeZone adds the granularityTimeZone to the get order metrics params

func (*GetOrderMetricsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get order metrics params

func (*GetOrderMetricsParams) WithInterval

func (o *GetOrderMetricsParams) WithInterval(interval string) *GetOrderMetricsParams

WithInterval adds the interval to the get order metrics params

func (*GetOrderMetricsParams) WithMarketplaceIds

func (o *GetOrderMetricsParams) WithMarketplaceIds(marketplaceIds []string) *GetOrderMetricsParams

WithMarketplaceIds adds the marketplaceIds to the get order metrics params

func (*GetOrderMetricsParams) WithSku

WithSku adds the sku to the get order metrics params

func (*GetOrderMetricsParams) WithTimeout

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

WithTimeout adds the timeout to the get order metrics params

func (*GetOrderMetricsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetOrderMetricsReader

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

GetOrderMetricsReader is a Reader for the GetOrderMetrics structure.

func (*GetOrderMetricsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOrderMetricsRequestEntityTooLarge

type GetOrderMetricsRequestEntityTooLarge 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 *sales_models.GetOrderMetricsResponse
}

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

The request size exceeded the maximum accepted size.

func NewGetOrderMetricsRequestEntityTooLarge

func NewGetOrderMetricsRequestEntityTooLarge() *GetOrderMetricsRequestEntityTooLarge

NewGetOrderMetricsRequestEntityTooLarge creates a GetOrderMetricsRequestEntityTooLarge with default headers values

func (*GetOrderMetricsRequestEntityTooLarge) Error

func (*GetOrderMetricsRequestEntityTooLarge) GetPayload

func (*GetOrderMetricsRequestEntityTooLarge) IsClientError

func (o *GetOrderMetricsRequestEntityTooLarge) IsClientError() bool

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

func (*GetOrderMetricsRequestEntityTooLarge) IsCode

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

func (*GetOrderMetricsRequestEntityTooLarge) IsRedirect

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

func (*GetOrderMetricsRequestEntityTooLarge) IsServerError

func (o *GetOrderMetricsRequestEntityTooLarge) IsServerError() bool

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

func (*GetOrderMetricsRequestEntityTooLarge) IsSuccess

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

func (*GetOrderMetricsRequestEntityTooLarge) String

type GetOrderMetricsServiceUnavailable

type GetOrderMetricsServiceUnavailable 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 *sales_models.GetOrderMetricsResponse
}

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

Temporary overloading or maintenance of the server.

func NewGetOrderMetricsServiceUnavailable

func NewGetOrderMetricsServiceUnavailable() *GetOrderMetricsServiceUnavailable

NewGetOrderMetricsServiceUnavailable creates a GetOrderMetricsServiceUnavailable with default headers values

func (*GetOrderMetricsServiceUnavailable) Error

func (*GetOrderMetricsServiceUnavailable) GetPayload

func (*GetOrderMetricsServiceUnavailable) IsClientError

func (o *GetOrderMetricsServiceUnavailable) IsClientError() bool

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

func (*GetOrderMetricsServiceUnavailable) IsCode

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

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

func (*GetOrderMetricsServiceUnavailable) IsRedirect

func (o *GetOrderMetricsServiceUnavailable) IsRedirect() bool

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

func (*GetOrderMetricsServiceUnavailable) IsServerError

func (o *GetOrderMetricsServiceUnavailable) IsServerError() bool

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

func (*GetOrderMetricsServiceUnavailable) IsSuccess

func (o *GetOrderMetricsServiceUnavailable) IsSuccess() bool

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

func (*GetOrderMetricsServiceUnavailable) String

type GetOrderMetricsTooManyRequests

type GetOrderMetricsTooManyRequests 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 *sales_models.GetOrderMetricsResponse
}

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

The frequency of requests was greater than allowed.

func NewGetOrderMetricsTooManyRequests

func NewGetOrderMetricsTooManyRequests() *GetOrderMetricsTooManyRequests

NewGetOrderMetricsTooManyRequests creates a GetOrderMetricsTooManyRequests with default headers values

func (*GetOrderMetricsTooManyRequests) Error

func (*GetOrderMetricsTooManyRequests) GetPayload

func (*GetOrderMetricsTooManyRequests) IsClientError

func (o *GetOrderMetricsTooManyRequests) IsClientError() bool

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

func (*GetOrderMetricsTooManyRequests) IsCode

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

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

func (*GetOrderMetricsTooManyRequests) IsRedirect

func (o *GetOrderMetricsTooManyRequests) IsRedirect() bool

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

func (*GetOrderMetricsTooManyRequests) IsServerError

func (o *GetOrderMetricsTooManyRequests) IsServerError() bool

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

func (*GetOrderMetricsTooManyRequests) IsSuccess

func (o *GetOrderMetricsTooManyRequests) IsSuccess() bool

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

func (*GetOrderMetricsTooManyRequests) String

type GetOrderMetricsUnsupportedMediaType

type GetOrderMetricsUnsupportedMediaType 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 *sales_models.GetOrderMetricsResponse
}

GetOrderMetricsUnsupportedMediaType 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 NewGetOrderMetricsUnsupportedMediaType

func NewGetOrderMetricsUnsupportedMediaType() *GetOrderMetricsUnsupportedMediaType

NewGetOrderMetricsUnsupportedMediaType creates a GetOrderMetricsUnsupportedMediaType with default headers values

func (*GetOrderMetricsUnsupportedMediaType) Error

func (*GetOrderMetricsUnsupportedMediaType) GetPayload

func (*GetOrderMetricsUnsupportedMediaType) IsClientError

func (o *GetOrderMetricsUnsupportedMediaType) IsClientError() bool

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

func (*GetOrderMetricsUnsupportedMediaType) IsCode

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

func (*GetOrderMetricsUnsupportedMediaType) IsRedirect

func (o *GetOrderMetricsUnsupportedMediaType) IsRedirect() bool

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

func (*GetOrderMetricsUnsupportedMediaType) IsServerError

func (o *GetOrderMetricsUnsupportedMediaType) IsServerError() bool

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

func (*GetOrderMetricsUnsupportedMediaType) IsSuccess

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

func (*GetOrderMetricsUnsupportedMediaType) String

Jump to

Keyboard shortcuts

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