update_inventory

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 update inventory API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) SubmitInventoryUpdate

func (a *Client) SubmitInventoryUpdate(params *SubmitInventoryUpdateParams, opts ...ClientOption) (*SubmitInventoryUpdateAccepted, error)
SubmitInventoryUpdate Submits inventory updates for the specified warehouse for either a partial or full feed of inventory items.

**Usage Plan:**

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

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

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	SubmitInventoryUpdate(params *SubmitInventoryUpdateParams, opts ...ClientOption) (*SubmitInventoryUpdateAccepted, 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 update inventory API client.

type SubmitInventoryUpdateAccepted

type SubmitInventoryUpdateAccepted struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_inventory_v1_models.SubmitInventoryUpdateResponse
}

SubmitInventoryUpdateAccepted describes a response with status code 202, with default header values.

Success.

func NewSubmitInventoryUpdateAccepted

func NewSubmitInventoryUpdateAccepted() *SubmitInventoryUpdateAccepted

NewSubmitInventoryUpdateAccepted creates a SubmitInventoryUpdateAccepted with default headers values

func (*SubmitInventoryUpdateAccepted) Error

func (*SubmitInventoryUpdateAccepted) IsClientError

func (o *SubmitInventoryUpdateAccepted) IsClientError() bool

IsClientError returns true when this submit inventory update accepted response has a 4xx status code

func (*SubmitInventoryUpdateAccepted) IsCode

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

IsCode returns true when this submit inventory update accepted response a status code equal to that given

func (*SubmitInventoryUpdateAccepted) IsRedirect

func (o *SubmitInventoryUpdateAccepted) IsRedirect() bool

IsRedirect returns true when this submit inventory update accepted response has a 3xx status code

func (*SubmitInventoryUpdateAccepted) IsServerError

func (o *SubmitInventoryUpdateAccepted) IsServerError() bool

IsServerError returns true when this submit inventory update accepted response has a 5xx status code

func (*SubmitInventoryUpdateAccepted) IsSuccess

func (o *SubmitInventoryUpdateAccepted) IsSuccess() bool

IsSuccess returns true when this submit inventory update accepted response has a 2xx status code

func (*SubmitInventoryUpdateAccepted) String

type SubmitInventoryUpdateBadRequest

type SubmitInventoryUpdateBadRequest struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_inventory_v1_models.SubmitInventoryUpdateResponse
}

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

Request has missing or invalid parameters and cannot be parsed.

func NewSubmitInventoryUpdateBadRequest

func NewSubmitInventoryUpdateBadRequest() *SubmitInventoryUpdateBadRequest

NewSubmitInventoryUpdateBadRequest creates a SubmitInventoryUpdateBadRequest with default headers values

func (*SubmitInventoryUpdateBadRequest) Error

func (*SubmitInventoryUpdateBadRequest) IsClientError

func (o *SubmitInventoryUpdateBadRequest) IsClientError() bool

IsClientError returns true when this submit inventory update bad request response has a 4xx status code

func (*SubmitInventoryUpdateBadRequest) IsCode

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

IsCode returns true when this submit inventory update bad request response a status code equal to that given

func (*SubmitInventoryUpdateBadRequest) IsRedirect

func (o *SubmitInventoryUpdateBadRequest) IsRedirect() bool

IsRedirect returns true when this submit inventory update bad request response has a 3xx status code

func (*SubmitInventoryUpdateBadRequest) IsServerError

func (o *SubmitInventoryUpdateBadRequest) IsServerError() bool

IsServerError returns true when this submit inventory update bad request response has a 5xx status code

func (*SubmitInventoryUpdateBadRequest) IsSuccess

func (o *SubmitInventoryUpdateBadRequest) IsSuccess() bool

IsSuccess returns true when this submit inventory update bad request response has a 2xx status code

func (*SubmitInventoryUpdateBadRequest) String

type SubmitInventoryUpdateForbidden

type SubmitInventoryUpdateForbidden struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_inventory_v1_models.SubmitInventoryUpdateResponse
}

SubmitInventoryUpdateForbidden 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 NewSubmitInventoryUpdateForbidden

func NewSubmitInventoryUpdateForbidden() *SubmitInventoryUpdateForbidden

NewSubmitInventoryUpdateForbidden creates a SubmitInventoryUpdateForbidden with default headers values

func (*SubmitInventoryUpdateForbidden) Error

func (*SubmitInventoryUpdateForbidden) IsClientError

func (o *SubmitInventoryUpdateForbidden) IsClientError() bool

IsClientError returns true when this submit inventory update forbidden response has a 4xx status code

func (*SubmitInventoryUpdateForbidden) IsCode

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

IsCode returns true when this submit inventory update forbidden response a status code equal to that given

func (*SubmitInventoryUpdateForbidden) IsRedirect

func (o *SubmitInventoryUpdateForbidden) IsRedirect() bool

IsRedirect returns true when this submit inventory update forbidden response has a 3xx status code

func (*SubmitInventoryUpdateForbidden) IsServerError

func (o *SubmitInventoryUpdateForbidden) IsServerError() bool

IsServerError returns true when this submit inventory update forbidden response has a 5xx status code

func (*SubmitInventoryUpdateForbidden) IsSuccess

func (o *SubmitInventoryUpdateForbidden) IsSuccess() bool

IsSuccess returns true when this submit inventory update forbidden response has a 2xx status code

func (*SubmitInventoryUpdateForbidden) String

type SubmitInventoryUpdateInternalServerError

type SubmitInventoryUpdateInternalServerError struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_inventory_v1_models.SubmitInventoryUpdateResponse
}

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

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

func NewSubmitInventoryUpdateInternalServerError

func NewSubmitInventoryUpdateInternalServerError() *SubmitInventoryUpdateInternalServerError

NewSubmitInventoryUpdateInternalServerError creates a SubmitInventoryUpdateInternalServerError with default headers values

func (*SubmitInventoryUpdateInternalServerError) Error

func (*SubmitInventoryUpdateInternalServerError) IsClientError

IsClientError returns true when this submit inventory update internal server error response has a 4xx status code

func (*SubmitInventoryUpdateInternalServerError) IsCode

IsCode returns true when this submit inventory update internal server error response a status code equal to that given

func (*SubmitInventoryUpdateInternalServerError) IsRedirect

IsRedirect returns true when this submit inventory update internal server error response has a 3xx status code

func (*SubmitInventoryUpdateInternalServerError) IsServerError

IsServerError returns true when this submit inventory update internal server error response has a 5xx status code

func (*SubmitInventoryUpdateInternalServerError) IsSuccess

IsSuccess returns true when this submit inventory update internal server error response has a 2xx status code

func (*SubmitInventoryUpdateInternalServerError) String

type SubmitInventoryUpdateNotFound

type SubmitInventoryUpdateNotFound struct {

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

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_inventory_v1_models.SubmitInventoryUpdateResponse
}

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

The resource specified does not exist.

func NewSubmitInventoryUpdateNotFound

func NewSubmitInventoryUpdateNotFound() *SubmitInventoryUpdateNotFound

NewSubmitInventoryUpdateNotFound creates a SubmitInventoryUpdateNotFound with default headers values

func (*SubmitInventoryUpdateNotFound) Error

func (*SubmitInventoryUpdateNotFound) IsClientError

func (o *SubmitInventoryUpdateNotFound) IsClientError() bool

IsClientError returns true when this submit inventory update not found response has a 4xx status code

func (*SubmitInventoryUpdateNotFound) IsCode

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

IsCode returns true when this submit inventory update not found response a status code equal to that given

func (*SubmitInventoryUpdateNotFound) IsRedirect

func (o *SubmitInventoryUpdateNotFound) IsRedirect() bool

IsRedirect returns true when this submit inventory update not found response has a 3xx status code

func (*SubmitInventoryUpdateNotFound) IsServerError

func (o *SubmitInventoryUpdateNotFound) IsServerError() bool

IsServerError returns true when this submit inventory update not found response has a 5xx status code

func (*SubmitInventoryUpdateNotFound) IsSuccess

func (o *SubmitInventoryUpdateNotFound) IsSuccess() bool

IsSuccess returns true when this submit inventory update not found response has a 2xx status code

func (*SubmitInventoryUpdateNotFound) String

type SubmitInventoryUpdateParams

type SubmitInventoryUpdateParams struct {

	// Body.
	Body *vendor_direct_fulfillment_inventory_v1_models.SubmitInventoryUpdateRequest

	/* WarehouseID.

	   Identifier for the warehouse for which to update inventory.
	*/
	WarehouseID string

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

SubmitInventoryUpdateParams contains all the parameters to send to the API endpoint

for the submit inventory update operation.

Typically these are written to a http.Request.

func NewSubmitInventoryUpdateParams

func NewSubmitInventoryUpdateParams() *SubmitInventoryUpdateParams

NewSubmitInventoryUpdateParams creates a new SubmitInventoryUpdateParams 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 NewSubmitInventoryUpdateParamsWithContext

func NewSubmitInventoryUpdateParamsWithContext(ctx context.Context) *SubmitInventoryUpdateParams

NewSubmitInventoryUpdateParamsWithContext creates a new SubmitInventoryUpdateParams object with the ability to set a context for a request.

func NewSubmitInventoryUpdateParamsWithHTTPClient

func NewSubmitInventoryUpdateParamsWithHTTPClient(client *http.Client) *SubmitInventoryUpdateParams

NewSubmitInventoryUpdateParamsWithHTTPClient creates a new SubmitInventoryUpdateParams object with the ability to set a custom HTTPClient for a request.

func NewSubmitInventoryUpdateParamsWithTimeout

func NewSubmitInventoryUpdateParamsWithTimeout(timeout time.Duration) *SubmitInventoryUpdateParams

NewSubmitInventoryUpdateParamsWithTimeout creates a new SubmitInventoryUpdateParams object with the ability to set a timeout on a request.

func (*SubmitInventoryUpdateParams) SetBody

SetBody adds the body to the submit inventory update params

func (*SubmitInventoryUpdateParams) SetContext

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

SetContext adds the context to the submit inventory update params

func (*SubmitInventoryUpdateParams) SetDefaults

func (o *SubmitInventoryUpdateParams) SetDefaults()

SetDefaults hydrates default values in the submit inventory update params (not the query body).

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

func (*SubmitInventoryUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the submit inventory update params

func (*SubmitInventoryUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the submit inventory update params

func (*SubmitInventoryUpdateParams) SetWarehouseID

func (o *SubmitInventoryUpdateParams) SetWarehouseID(warehouseID string)

SetWarehouseID adds the warehouseId to the submit inventory update params

func (*SubmitInventoryUpdateParams) WithBody

WithBody adds the body to the submit inventory update params

func (*SubmitInventoryUpdateParams) WithContext

WithContext adds the context to the submit inventory update params

func (*SubmitInventoryUpdateParams) WithDefaults

WithDefaults hydrates default values in the submit inventory update params (not the query body).

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

func (*SubmitInventoryUpdateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the submit inventory update params

func (*SubmitInventoryUpdateParams) WithTimeout

WithTimeout adds the timeout to the submit inventory update params

func (*SubmitInventoryUpdateParams) WithWarehouseID

func (o *SubmitInventoryUpdateParams) WithWarehouseID(warehouseID string) *SubmitInventoryUpdateParams

WithWarehouseID adds the warehouseID to the submit inventory update params

func (*SubmitInventoryUpdateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SubmitInventoryUpdateReader

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

SubmitInventoryUpdateReader is a Reader for the SubmitInventoryUpdate structure.

func (*SubmitInventoryUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubmitInventoryUpdateRequestEntityTooLarge

type SubmitInventoryUpdateRequestEntityTooLarge struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_inventory_v1_models.SubmitInventoryUpdateResponse
}

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

The request size exceeded the maximum accepted size.

func NewSubmitInventoryUpdateRequestEntityTooLarge

func NewSubmitInventoryUpdateRequestEntityTooLarge() *SubmitInventoryUpdateRequestEntityTooLarge

NewSubmitInventoryUpdateRequestEntityTooLarge creates a SubmitInventoryUpdateRequestEntityTooLarge with default headers values

func (*SubmitInventoryUpdateRequestEntityTooLarge) Error

func (*SubmitInventoryUpdateRequestEntityTooLarge) IsClientError

IsClientError returns true when this submit inventory update request entity too large response has a 4xx status code

func (*SubmitInventoryUpdateRequestEntityTooLarge) IsCode

IsCode returns true when this submit inventory update request entity too large response a status code equal to that given

func (*SubmitInventoryUpdateRequestEntityTooLarge) IsRedirect

IsRedirect returns true when this submit inventory update request entity too large response has a 3xx status code

func (*SubmitInventoryUpdateRequestEntityTooLarge) IsServerError

IsServerError returns true when this submit inventory update request entity too large response has a 5xx status code

func (*SubmitInventoryUpdateRequestEntityTooLarge) IsSuccess

IsSuccess returns true when this submit inventory update request entity too large response has a 2xx status code

func (*SubmitInventoryUpdateRequestEntityTooLarge) String

type SubmitInventoryUpdateServiceUnavailable

type SubmitInventoryUpdateServiceUnavailable struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_inventory_v1_models.SubmitInventoryUpdateResponse
}

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

Temporary overloading or maintenance of the server.

func NewSubmitInventoryUpdateServiceUnavailable

func NewSubmitInventoryUpdateServiceUnavailable() *SubmitInventoryUpdateServiceUnavailable

NewSubmitInventoryUpdateServiceUnavailable creates a SubmitInventoryUpdateServiceUnavailable with default headers values

func (*SubmitInventoryUpdateServiceUnavailable) Error

func (*SubmitInventoryUpdateServiceUnavailable) IsClientError

func (o *SubmitInventoryUpdateServiceUnavailable) IsClientError() bool

IsClientError returns true when this submit inventory update service unavailable response has a 4xx status code

func (*SubmitInventoryUpdateServiceUnavailable) IsCode

IsCode returns true when this submit inventory update service unavailable response a status code equal to that given

func (*SubmitInventoryUpdateServiceUnavailable) IsRedirect

IsRedirect returns true when this submit inventory update service unavailable response has a 3xx status code

func (*SubmitInventoryUpdateServiceUnavailable) IsServerError

func (o *SubmitInventoryUpdateServiceUnavailable) IsServerError() bool

IsServerError returns true when this submit inventory update service unavailable response has a 5xx status code

func (*SubmitInventoryUpdateServiceUnavailable) IsSuccess

IsSuccess returns true when this submit inventory update service unavailable response has a 2xx status code

func (*SubmitInventoryUpdateServiceUnavailable) String

type SubmitInventoryUpdateTooManyRequests

type SubmitInventoryUpdateTooManyRequests struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_inventory_v1_models.SubmitInventoryUpdateResponse
}

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

The frequency of requests was greater than allowed.

func NewSubmitInventoryUpdateTooManyRequests

func NewSubmitInventoryUpdateTooManyRequests() *SubmitInventoryUpdateTooManyRequests

NewSubmitInventoryUpdateTooManyRequests creates a SubmitInventoryUpdateTooManyRequests with default headers values

func (*SubmitInventoryUpdateTooManyRequests) Error

func (*SubmitInventoryUpdateTooManyRequests) IsClientError

func (o *SubmitInventoryUpdateTooManyRequests) IsClientError() bool

IsClientError returns true when this submit inventory update too many requests response has a 4xx status code

func (*SubmitInventoryUpdateTooManyRequests) IsCode

IsCode returns true when this submit inventory update too many requests response a status code equal to that given

func (*SubmitInventoryUpdateTooManyRequests) IsRedirect

IsRedirect returns true when this submit inventory update too many requests response has a 3xx status code

func (*SubmitInventoryUpdateTooManyRequests) IsServerError

func (o *SubmitInventoryUpdateTooManyRequests) IsServerError() bool

IsServerError returns true when this submit inventory update too many requests response has a 5xx status code

func (*SubmitInventoryUpdateTooManyRequests) IsSuccess

IsSuccess returns true when this submit inventory update too many requests response has a 2xx status code

func (*SubmitInventoryUpdateTooManyRequests) String

type SubmitInventoryUpdateUnsupportedMediaType

type SubmitInventoryUpdateUnsupportedMediaType struct {

	/* Your rate limit (requests per second) for this operation.
	_Note:_ For this status code, the rate limit header is deprecated and no longer returned.
	*/
	XAmznRateLimitLimit string

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_inventory_v1_models.SubmitInventoryUpdateResponse
}

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

The request payload is in an unsupported format.

func NewSubmitInventoryUpdateUnsupportedMediaType

func NewSubmitInventoryUpdateUnsupportedMediaType() *SubmitInventoryUpdateUnsupportedMediaType

NewSubmitInventoryUpdateUnsupportedMediaType creates a SubmitInventoryUpdateUnsupportedMediaType with default headers values

func (*SubmitInventoryUpdateUnsupportedMediaType) Error

func (*SubmitInventoryUpdateUnsupportedMediaType) IsClientError

IsClientError returns true when this submit inventory update unsupported media type response has a 4xx status code

func (*SubmitInventoryUpdateUnsupportedMediaType) IsCode

IsCode returns true when this submit inventory update unsupported media type response a status code equal to that given

func (*SubmitInventoryUpdateUnsupportedMediaType) IsRedirect

IsRedirect returns true when this submit inventory update unsupported media type response has a 3xx status code

func (*SubmitInventoryUpdateUnsupportedMediaType) IsServerError

IsServerError returns true when this submit inventory update unsupported media type response has a 5xx status code

func (*SubmitInventoryUpdateUnsupportedMediaType) IsSuccess

IsSuccess returns true when this submit inventory update unsupported media type response has a 2xx status code

func (*SubmitInventoryUpdateUnsupportedMediaType) String

Jump to

Keyboard shortcuts

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