fulfillmentoutboundv20200701

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package fulfillmentoutboundv20200701 provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCancelFulfillmentOrderRequest

func NewCancelFulfillmentOrderRequest(server string, sellerFulfillmentOrderId string) (*http.Request, error)

NewCancelFulfillmentOrderRequest generates requests for CancelFulfillmentOrder

func NewCreateFulfillmentOrderRequest

func NewCreateFulfillmentOrderRequest(server string, body CreateFulfillmentOrderJSONRequestBody) (*http.Request, error)

NewCreateFulfillmentOrderRequest calls the generic CreateFulfillmentOrder builder with application/json body

func NewCreateFulfillmentOrderRequestWithBody

func NewCreateFulfillmentOrderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateFulfillmentOrderRequestWithBody generates requests for CreateFulfillmentOrder with any type of body

func NewCreateFulfillmentReturnRequest

func NewCreateFulfillmentReturnRequest(server string, sellerFulfillmentOrderId string, body CreateFulfillmentReturnJSONRequestBody) (*http.Request, error)

NewCreateFulfillmentReturnRequest calls the generic CreateFulfillmentReturn builder with application/json body

func NewCreateFulfillmentReturnRequestWithBody

func NewCreateFulfillmentReturnRequestWithBody(server string, sellerFulfillmentOrderId string, contentType string, body io.Reader) (*http.Request, error)

NewCreateFulfillmentReturnRequestWithBody generates requests for CreateFulfillmentReturn with any type of body

func NewGetFeatureInventoryRequest

func NewGetFeatureInventoryRequest(server string, featureName string, params *GetFeatureInventoryParams) (*http.Request, error)

NewGetFeatureInventoryRequest generates requests for GetFeatureInventory

func NewGetFeatureSKURequest

func NewGetFeatureSKURequest(server string, featureName string, sellerSku string, params *GetFeatureSKUParams) (*http.Request, error)

NewGetFeatureSKURequest generates requests for GetFeatureSKU

func NewGetFeaturesRequest

func NewGetFeaturesRequest(server string, params *GetFeaturesParams) (*http.Request, error)

NewGetFeaturesRequest generates requests for GetFeatures

func NewGetFulfillmentOrderRequest

func NewGetFulfillmentOrderRequest(server string, sellerFulfillmentOrderId string) (*http.Request, error)

NewGetFulfillmentOrderRequest generates requests for GetFulfillmentOrder

func NewGetFulfillmentPreviewRequest

func NewGetFulfillmentPreviewRequest(server string, body GetFulfillmentPreviewJSONRequestBody) (*http.Request, error)

NewGetFulfillmentPreviewRequest calls the generic GetFulfillmentPreview builder with application/json body

func NewGetFulfillmentPreviewRequestWithBody

func NewGetFulfillmentPreviewRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetFulfillmentPreviewRequestWithBody generates requests for GetFulfillmentPreview with any type of body

func NewGetPackageTrackingDetailsRequest

func NewGetPackageTrackingDetailsRequest(server string, params *GetPackageTrackingDetailsParams) (*http.Request, error)

NewGetPackageTrackingDetailsRequest generates requests for GetPackageTrackingDetails

func NewListAllFulfillmentOrdersRequest

func NewListAllFulfillmentOrdersRequest(server string, params *ListAllFulfillmentOrdersParams) (*http.Request, error)

NewListAllFulfillmentOrdersRequest generates requests for ListAllFulfillmentOrders

func NewListReturnReasonCodesRequest

func NewListReturnReasonCodesRequest(server string, params *ListReturnReasonCodesParams) (*http.Request, error)

NewListReturnReasonCodesRequest generates requests for ListReturnReasonCodes

func NewSubmitFulfillmentOrderStatusUpdateRequest

func NewSubmitFulfillmentOrderStatusUpdateRequest(server string, sellerFulfillmentOrderId string, body SubmitFulfillmentOrderStatusUpdateJSONRequestBody) (*http.Request, error)

NewSubmitFulfillmentOrderStatusUpdateRequest calls the generic SubmitFulfillmentOrderStatusUpdate builder with application/json body

func NewSubmitFulfillmentOrderStatusUpdateRequestWithBody

func NewSubmitFulfillmentOrderStatusUpdateRequestWithBody(server string, sellerFulfillmentOrderId string, contentType string, body io.Reader) (*http.Request, error)

NewSubmitFulfillmentOrderStatusUpdateRequestWithBody generates requests for SubmitFulfillmentOrderStatusUpdate with any type of body

func NewUpdateFulfillmentOrderRequest

func NewUpdateFulfillmentOrderRequest(server string, sellerFulfillmentOrderId string, body UpdateFulfillmentOrderJSONRequestBody) (*http.Request, error)

NewUpdateFulfillmentOrderRequest calls the generic UpdateFulfillmentOrder builder with application/json body

func NewUpdateFulfillmentOrderRequestWithBody

func NewUpdateFulfillmentOrderRequestWithBody(server string, sellerFulfillmentOrderId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateFulfillmentOrderRequestWithBody generates requests for UpdateFulfillmentOrder with any type of body

Types

type AdditionalLocationInfo

type AdditionalLocationInfo string

AdditionalLocationInfo Additional location information.

const (
	ASINSTRUCTED   AdditionalLocationInfo = "AS_INSTRUCTED"
	CARPORT        AdditionalLocationInfo = "CARPORT"
	CUSTOMERPICKUP AdditionalLocationInfo = "CUSTOMER_PICKUP"
	DECK           AdditionalLocationInfo = "DECK"
	DOORPERSON     AdditionalLocationInfo = "DOOR_PERSON"
	FRONTDESK      AdditionalLocationInfo = "FRONT_DESK"
	FRONTDOOR      AdditionalLocationInfo = "FRONT_DOOR"
	GARAGE         AdditionalLocationInfo = "GARAGE"
	GUARD          AdditionalLocationInfo = "GUARD"
	MAILBOX        AdditionalLocationInfo = "MAILBOX"
	MAILROOM       AdditionalLocationInfo = "MAIL_ROOM"
	MAILSLOT       AdditionalLocationInfo = "MAIL_SLOT"
	MCBOY          AdditionalLocationInfo = "MC_BOY"
	MCGIRL         AdditionalLocationInfo = "MC_GIRL"
	MCMAN          AdditionalLocationInfo = "MC_MAN"
	MCWOMAN        AdditionalLocationInfo = "MC_WOMAN"
	NEIGHBOR       AdditionalLocationInfo = "NEIGHBOR"
	OFFICE         AdditionalLocationInfo = "OFFICE"
	OUTBUILDING    AdditionalLocationInfo = "OUTBUILDING"
	PATIO          AdditionalLocationInfo = "PATIO"
	PORCH          AdditionalLocationInfo = "PORCH"
	REARDOOR       AdditionalLocationInfo = "REAR_DOOR"
	RECEIVER       AdditionalLocationInfo = "RECEIVER"
	RECEPTIONIST   AdditionalLocationInfo = "RECEPTIONIST"
	SECURELOCATION AdditionalLocationInfo = "SECURE_LOCATION"
	SIDEDOOR       AdditionalLocationInfo = "SIDE_DOOR"
)

Defines values for AdditionalLocationInfo.

type Address

type Address struct {
	// AddressLine1 The first line of the address.
	AddressLine1 string `json:"addressLine1"`

	// AddressLine2 Additional address information, if required.
	AddressLine2 *string `json:"addressLine2,omitempty"`

	// AddressLine3 Additional address information, if required.
	AddressLine3 *string `json:"addressLine3,omitempty"`

	// City The city where the person, business, or institution is located. This property is required in all countries except Japan. It should not be used in Japan.
	City *string `json:"city,omitempty"`

	// CountryCode The two digit country code. In ISO 3166-1 alpha-2 format.
	CountryCode string `json:"countryCode"`

	// DistrictOrCounty The district or county where the person, business, or institution is located.
	DistrictOrCounty *string `json:"districtOrCounty,omitempty"`

	// Name The name of the person, business or institution at the address.
	Name string `json:"name"`

	// Phone The phone number of the person, business, or institution located at the address.
	Phone *string `json:"phone,omitempty"`

	// PostalCode The postal code of the address.
	PostalCode string `json:"postalCode"`

	// StateOrRegion The state or region where the person, business or institution is located.
	StateOrRegion string `json:"stateOrRegion"`
}

Address A physical address.

type CODSettings

type CODSettings struct {
	// CodCharge An amount of money, including units in the form of currency.
	CodCharge *Money `json:"codCharge,omitempty"`

	// CodChargeTax An amount of money, including units in the form of currency.
	CodChargeTax *Money `json:"codChargeTax,omitempty"`

	// IsCodRequired When true, this fulfillment order requires a COD (Cash On Delivery) payment.
	IsCodRequired bool `json:"isCodRequired"`

	// ShippingCharge An amount of money, including units in the form of currency.
	ShippingCharge *Money `json:"shippingCharge,omitempty"`

	// ShippingChargeTax An amount of money, including units in the form of currency.
	ShippingChargeTax *Money `json:"shippingChargeTax,omitempty"`
}

CODSettings The COD (Cash On Delivery) charges that you associate with a COD fulfillment order.

type CancelFulfillmentOrderResp

func ParseCancelFulfillmentOrderResp

func ParseCancelFulfillmentOrderResp(rsp *http.Response) (*CancelFulfillmentOrderResp, error)

ParseCancelFulfillmentOrderResp parses an HTTP response from a CancelFulfillmentOrderWithResponse call

func (CancelFulfillmentOrderResp) Status

Status returns HTTPResponse.Status

func (CancelFulfillmentOrderResp) StatusCode

func (r CancelFulfillmentOrderResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CancelFulfillmentOrderResponse

type CancelFulfillmentOrderResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

CancelFulfillmentOrderResponse The response schema for the `cancelFulfillmentOrder` operation.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn

	// A callback for modifying response which are generated after receive from the network.
	ResponseEditors []ResponseEditorFn

	// The user agent header identifies your application, its version number, and the platform and programming language you are using.
	// You must include a user agent header in each request submitted to the sales partner API.
	UserAgent string
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CancelFulfillmentOrder

func (c *Client) CancelFulfillmentOrder(ctx context.Context, sellerFulfillmentOrderId string) (*http.Response, error)

func (*Client) CreateFulfillmentOrder

func (c *Client) CreateFulfillmentOrder(ctx context.Context, body CreateFulfillmentOrderJSONRequestBody) (*http.Response, error)

func (*Client) CreateFulfillmentOrderWithBody

func (c *Client) CreateFulfillmentOrderWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)

func (*Client) CreateFulfillmentReturn

func (c *Client) CreateFulfillmentReturn(ctx context.Context, sellerFulfillmentOrderId string, body CreateFulfillmentReturnJSONRequestBody) (*http.Response, error)

func (*Client) CreateFulfillmentReturnWithBody

func (c *Client) CreateFulfillmentReturnWithBody(ctx context.Context, sellerFulfillmentOrderId string, contentType string, body io.Reader) (*http.Response, error)

func (*Client) GetFeatureInventory

func (c *Client) GetFeatureInventory(ctx context.Context, featureName string, params *GetFeatureInventoryParams) (*http.Response, error)

func (*Client) GetFeatureSKU

func (c *Client) GetFeatureSKU(ctx context.Context, featureName string, sellerSku string, params *GetFeatureSKUParams) (*http.Response, error)

func (*Client) GetFeatures

func (c *Client) GetFeatures(ctx context.Context, params *GetFeaturesParams) (*http.Response, error)

func (*Client) GetFulfillmentOrder

func (c *Client) GetFulfillmentOrder(ctx context.Context, sellerFulfillmentOrderId string) (*http.Response, error)

func (*Client) GetFulfillmentPreview

func (c *Client) GetFulfillmentPreview(ctx context.Context, body GetFulfillmentPreviewJSONRequestBody) (*http.Response, error)

func (*Client) GetFulfillmentPreviewWithBody

func (c *Client) GetFulfillmentPreviewWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)

func (*Client) GetPackageTrackingDetails

func (c *Client) GetPackageTrackingDetails(ctx context.Context, params *GetPackageTrackingDetailsParams) (*http.Response, error)

func (*Client) ListAllFulfillmentOrders

func (c *Client) ListAllFulfillmentOrders(ctx context.Context, params *ListAllFulfillmentOrdersParams) (*http.Response, error)

func (*Client) ListReturnReasonCodes

func (c *Client) ListReturnReasonCodes(ctx context.Context, params *ListReturnReasonCodesParams) (*http.Response, error)

func (*Client) SubmitFulfillmentOrderStatusUpdate

func (c *Client) SubmitFulfillmentOrderStatusUpdate(ctx context.Context, sellerFulfillmentOrderId string, body SubmitFulfillmentOrderStatusUpdateJSONRequestBody) (*http.Response, error)

func (*Client) SubmitFulfillmentOrderStatusUpdateWithBody

func (c *Client) SubmitFulfillmentOrderStatusUpdateWithBody(ctx context.Context, sellerFulfillmentOrderId string, contentType string, body io.Reader) (*http.Response, error)

func (*Client) UpdateFulfillmentOrder

func (c *Client) UpdateFulfillmentOrder(ctx context.Context, sellerFulfillmentOrderId string, body UpdateFulfillmentOrderJSONRequestBody) (*http.Response, error)

func (*Client) UpdateFulfillmentOrderWithBody

func (c *Client) UpdateFulfillmentOrderWithBody(ctx context.Context, sellerFulfillmentOrderId string, contentType string, body io.Reader) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetFeatures request
	GetFeatures(ctx context.Context, params *GetFeaturesParams) (*http.Response, error)

	// GetFeatureInventory request
	GetFeatureInventory(ctx context.Context, featureName string, params *GetFeatureInventoryParams) (*http.Response, error)

	// GetFeatureSKU request
	GetFeatureSKU(ctx context.Context, featureName string, sellerSku string, params *GetFeatureSKUParams) (*http.Response, error)

	// ListAllFulfillmentOrders request
	ListAllFulfillmentOrders(ctx context.Context, params *ListAllFulfillmentOrdersParams) (*http.Response, error)

	// CreateFulfillmentOrderWithBody request with any body
	CreateFulfillmentOrderWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)

	CreateFulfillmentOrder(ctx context.Context, body CreateFulfillmentOrderJSONRequestBody) (*http.Response, error)

	// GetFulfillmentPreviewWithBody request with any body
	GetFulfillmentPreviewWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)

	GetFulfillmentPreview(ctx context.Context, body GetFulfillmentPreviewJSONRequestBody) (*http.Response, error)

	// GetFulfillmentOrder request
	GetFulfillmentOrder(ctx context.Context, sellerFulfillmentOrderId string) (*http.Response, error)

	// UpdateFulfillmentOrderWithBody request with any body
	UpdateFulfillmentOrderWithBody(ctx context.Context, sellerFulfillmentOrderId string, contentType string, body io.Reader) (*http.Response, error)

	UpdateFulfillmentOrder(ctx context.Context, sellerFulfillmentOrderId string, body UpdateFulfillmentOrderJSONRequestBody) (*http.Response, error)

	// CancelFulfillmentOrder request
	CancelFulfillmentOrder(ctx context.Context, sellerFulfillmentOrderId string) (*http.Response, error)

	// CreateFulfillmentReturnWithBody request with any body
	CreateFulfillmentReturnWithBody(ctx context.Context, sellerFulfillmentOrderId string, contentType string, body io.Reader) (*http.Response, error)

	CreateFulfillmentReturn(ctx context.Context, sellerFulfillmentOrderId string, body CreateFulfillmentReturnJSONRequestBody) (*http.Response, error)

	// SubmitFulfillmentOrderStatusUpdateWithBody request with any body
	SubmitFulfillmentOrderStatusUpdateWithBody(ctx context.Context, sellerFulfillmentOrderId string, contentType string, body io.Reader) (*http.Response, error)

	SubmitFulfillmentOrderStatusUpdate(ctx context.Context, sellerFulfillmentOrderId string, body SubmitFulfillmentOrderStatusUpdateJSONRequestBody) (*http.Response, error)

	// ListReturnReasonCodes request
	ListReturnReasonCodes(ctx context.Context, params *ListReturnReasonCodesParams) (*http.Response, error)

	// GetPackageTrackingDetails request
	GetPackageTrackingDetails(ctx context.Context, params *GetPackageTrackingDetailsParams) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

func WithResponseEditorFn

func WithResponseEditorFn(fn ResponseEditorFn) ClientOption

WithResponseEditorFn allows setting up a callback function, which will be called right after receive the response.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CancelFulfillmentOrderWithResponse

func (c *ClientWithResponses) CancelFulfillmentOrderWithResponse(ctx context.Context, sellerFulfillmentOrderId string) (*CancelFulfillmentOrderResp, error)

CancelFulfillmentOrderWithResponse request returning *CancelFulfillmentOrderResp

func (*ClientWithResponses) CreateFulfillmentOrderWithBodyWithResponse

func (c *ClientWithResponses) CreateFulfillmentOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateFulfillmentOrderResp, error)

CreateFulfillmentOrderWithBodyWithResponse request with arbitrary body returning *CreateFulfillmentOrderResp

func (*ClientWithResponses) CreateFulfillmentOrderWithResponse

func (*ClientWithResponses) CreateFulfillmentReturnWithBodyWithResponse

func (c *ClientWithResponses) CreateFulfillmentReturnWithBodyWithResponse(ctx context.Context, sellerFulfillmentOrderId string, contentType string, body io.Reader) (*CreateFulfillmentReturnResp, error)

CreateFulfillmentReturnWithBodyWithResponse request with arbitrary body returning *CreateFulfillmentReturnResp

func (*ClientWithResponses) CreateFulfillmentReturnWithResponse

func (c *ClientWithResponses) CreateFulfillmentReturnWithResponse(ctx context.Context, sellerFulfillmentOrderId string, body CreateFulfillmentReturnJSONRequestBody) (*CreateFulfillmentReturnResp, error)

func (*ClientWithResponses) GetFeatureInventoryWithResponse

func (c *ClientWithResponses) GetFeatureInventoryWithResponse(ctx context.Context, featureName string, params *GetFeatureInventoryParams) (*GetFeatureInventoryResp, error)

GetFeatureInventoryWithResponse request returning *GetFeatureInventoryResp

func (*ClientWithResponses) GetFeatureSKUWithResponse

func (c *ClientWithResponses) GetFeatureSKUWithResponse(ctx context.Context, featureName string, sellerSku string, params *GetFeatureSKUParams) (*GetFeatureSKUResp, error)

GetFeatureSKUWithResponse request returning *GetFeatureSKUResp

func (*ClientWithResponses) GetFeaturesWithResponse

func (c *ClientWithResponses) GetFeaturesWithResponse(ctx context.Context, params *GetFeaturesParams) (*GetFeaturesResp, error)

GetFeaturesWithResponse request returning *GetFeaturesResp

func (*ClientWithResponses) GetFulfillmentOrderWithResponse

func (c *ClientWithResponses) GetFulfillmentOrderWithResponse(ctx context.Context, sellerFulfillmentOrderId string) (*GetFulfillmentOrderResp, error)

GetFulfillmentOrderWithResponse request returning *GetFulfillmentOrderResp

func (*ClientWithResponses) GetFulfillmentPreviewWithBodyWithResponse

func (c *ClientWithResponses) GetFulfillmentPreviewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*GetFulfillmentPreviewResp, error)

GetFulfillmentPreviewWithBodyWithResponse request with arbitrary body returning *GetFulfillmentPreviewResp

func (*ClientWithResponses) GetFulfillmentPreviewWithResponse

func (c *ClientWithResponses) GetFulfillmentPreviewWithResponse(ctx context.Context, body GetFulfillmentPreviewJSONRequestBody) (*GetFulfillmentPreviewResp, error)

func (*ClientWithResponses) GetPackageTrackingDetailsWithResponse

func (c *ClientWithResponses) GetPackageTrackingDetailsWithResponse(ctx context.Context, params *GetPackageTrackingDetailsParams) (*GetPackageTrackingDetailsResp, error)

GetPackageTrackingDetailsWithResponse request returning *GetPackageTrackingDetailsResp

func (*ClientWithResponses) ListAllFulfillmentOrdersWithResponse

func (c *ClientWithResponses) ListAllFulfillmentOrdersWithResponse(ctx context.Context, params *ListAllFulfillmentOrdersParams) (*ListAllFulfillmentOrdersResp, error)

ListAllFulfillmentOrdersWithResponse request returning *ListAllFulfillmentOrdersResp

func (*ClientWithResponses) ListReturnReasonCodesWithResponse

func (c *ClientWithResponses) ListReturnReasonCodesWithResponse(ctx context.Context, params *ListReturnReasonCodesParams) (*ListReturnReasonCodesResp, error)

ListReturnReasonCodesWithResponse request returning *ListReturnReasonCodesResp

func (*ClientWithResponses) SubmitFulfillmentOrderStatusUpdateWithBodyWithResponse

func (c *ClientWithResponses) SubmitFulfillmentOrderStatusUpdateWithBodyWithResponse(ctx context.Context, sellerFulfillmentOrderId string, contentType string, body io.Reader) (*SubmitFulfillmentOrderStatusUpdateResp, error)

SubmitFulfillmentOrderStatusUpdateWithBodyWithResponse request with arbitrary body returning *SubmitFulfillmentOrderStatusUpdateResp

func (*ClientWithResponses) SubmitFulfillmentOrderStatusUpdateWithResponse

func (c *ClientWithResponses) SubmitFulfillmentOrderStatusUpdateWithResponse(ctx context.Context, sellerFulfillmentOrderId string, body SubmitFulfillmentOrderStatusUpdateJSONRequestBody) (*SubmitFulfillmentOrderStatusUpdateResp, error)

func (*ClientWithResponses) UpdateFulfillmentOrderWithBodyWithResponse

func (c *ClientWithResponses) UpdateFulfillmentOrderWithBodyWithResponse(ctx context.Context, sellerFulfillmentOrderId string, contentType string, body io.Reader) (*UpdateFulfillmentOrderResp, error)

UpdateFulfillmentOrderWithBodyWithResponse request with arbitrary body returning *UpdateFulfillmentOrderResp

func (*ClientWithResponses) UpdateFulfillmentOrderWithResponse

func (c *ClientWithResponses) UpdateFulfillmentOrderWithResponse(ctx context.Context, sellerFulfillmentOrderId string, body UpdateFulfillmentOrderJSONRequestBody) (*UpdateFulfillmentOrderResp, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetFeaturesWithResponse request
	GetFeaturesWithResponse(ctx context.Context, params *GetFeaturesParams) (*GetFeaturesResp, error)

	// GetFeatureInventoryWithResponse request
	GetFeatureInventoryWithResponse(ctx context.Context, featureName string, params *GetFeatureInventoryParams) (*GetFeatureInventoryResp, error)

	// GetFeatureSKUWithResponse request
	GetFeatureSKUWithResponse(ctx context.Context, featureName string, sellerSku string, params *GetFeatureSKUParams) (*GetFeatureSKUResp, error)

	// ListAllFulfillmentOrdersWithResponse request
	ListAllFulfillmentOrdersWithResponse(ctx context.Context, params *ListAllFulfillmentOrdersParams) (*ListAllFulfillmentOrdersResp, error)

	// CreateFulfillmentOrderWithBodyWithResponse request with any body
	CreateFulfillmentOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateFulfillmentOrderResp, error)

	CreateFulfillmentOrderWithResponse(ctx context.Context, body CreateFulfillmentOrderJSONRequestBody) (*CreateFulfillmentOrderResp, error)

	// GetFulfillmentPreviewWithBodyWithResponse request with any body
	GetFulfillmentPreviewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*GetFulfillmentPreviewResp, error)

	GetFulfillmentPreviewWithResponse(ctx context.Context, body GetFulfillmentPreviewJSONRequestBody) (*GetFulfillmentPreviewResp, error)

	// GetFulfillmentOrderWithResponse request
	GetFulfillmentOrderWithResponse(ctx context.Context, sellerFulfillmentOrderId string) (*GetFulfillmentOrderResp, error)

	// UpdateFulfillmentOrderWithBodyWithResponse request with any body
	UpdateFulfillmentOrderWithBodyWithResponse(ctx context.Context, sellerFulfillmentOrderId string, contentType string, body io.Reader) (*UpdateFulfillmentOrderResp, error)

	UpdateFulfillmentOrderWithResponse(ctx context.Context, sellerFulfillmentOrderId string, body UpdateFulfillmentOrderJSONRequestBody) (*UpdateFulfillmentOrderResp, error)

	// CancelFulfillmentOrderWithResponse request
	CancelFulfillmentOrderWithResponse(ctx context.Context, sellerFulfillmentOrderId string) (*CancelFulfillmentOrderResp, error)

	// CreateFulfillmentReturnWithBodyWithResponse request with any body
	CreateFulfillmentReturnWithBodyWithResponse(ctx context.Context, sellerFulfillmentOrderId string, contentType string, body io.Reader) (*CreateFulfillmentReturnResp, error)

	CreateFulfillmentReturnWithResponse(ctx context.Context, sellerFulfillmentOrderId string, body CreateFulfillmentReturnJSONRequestBody) (*CreateFulfillmentReturnResp, error)

	// SubmitFulfillmentOrderStatusUpdateWithBodyWithResponse request with any body
	SubmitFulfillmentOrderStatusUpdateWithBodyWithResponse(ctx context.Context, sellerFulfillmentOrderId string, contentType string, body io.Reader) (*SubmitFulfillmentOrderStatusUpdateResp, error)

	SubmitFulfillmentOrderStatusUpdateWithResponse(ctx context.Context, sellerFulfillmentOrderId string, body SubmitFulfillmentOrderStatusUpdateJSONRequestBody) (*SubmitFulfillmentOrderStatusUpdateResp, error)

	// ListReturnReasonCodesWithResponse request
	ListReturnReasonCodesWithResponse(ctx context.Context, params *ListReturnReasonCodesParams) (*ListReturnReasonCodesResp, error)

	// GetPackageTrackingDetailsWithResponse request
	GetPackageTrackingDetailsWithResponse(ctx context.Context, params *GetPackageTrackingDetailsParams) (*GetPackageTrackingDetailsResp, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateFulfillmentOrderItem

type CreateFulfillmentOrderItem struct {
	// DisplayableComment Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip.
	DisplayableComment *string `json:"displayableComment,omitempty"`

	// FulfillmentNetworkSku Amazon's fulfillment network SKU of the item.
	FulfillmentNetworkSku *string `json:"fulfillmentNetworkSku,omitempty"`

	// GiftMessage A message to the gift recipient, if applicable.
	GiftMessage *string `json:"giftMessage,omitempty"`

	// PerUnitDeclaredValue An amount of money, including units in the form of currency.
	PerUnitDeclaredValue *Money `json:"perUnitDeclaredValue,omitempty"`

	// PerUnitPrice An amount of money, including units in the form of currency.
	PerUnitPrice *Money `json:"perUnitPrice,omitempty"`

	// PerUnitTax An amount of money, including units in the form of currency.
	PerUnitTax *Money `json:"perUnitTax,omitempty"`

	// Quantity The item quantity.
	Quantity Quantity `json:"quantity"`

	// SellerFulfillmentOrderItemId A fulfillment order item identifier that the seller creates to track fulfillment order items. Used to disambiguate multiple fulfillment items that have the same `SellerSKU`. For example, the seller might assign different `SellerFulfillmentOrderItemId` values to two items in a fulfillment order that share the same `SellerSKU` but have different `GiftMessage` values.
	SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"`

	// SellerSku The seller SKU of the item.
	SellerSku string `json:"sellerSku"`
}

CreateFulfillmentOrderItem Item information for creating a fulfillment order.

type CreateFulfillmentOrderItemList

type CreateFulfillmentOrderItemList = []CreateFulfillmentOrderItem

CreateFulfillmentOrderItemList An array of item information for creating a fulfillment order.

type CreateFulfillmentOrderJSONRequestBody

type CreateFulfillmentOrderJSONRequestBody = CreateFulfillmentOrderRequest

CreateFulfillmentOrderJSONRequestBody defines body for CreateFulfillmentOrder for application/json ContentType.

type CreateFulfillmentOrderRequest

type CreateFulfillmentOrderRequest struct {
	// CodSettings The COD (Cash On Delivery) charges that you associate with a COD fulfillment order.
	CodSettings *CODSettings `json:"codSettings,omitempty"`

	// DeliveryWindow The time range within which a Scheduled Delivery fulfillment order should be delivered. This is only available in the JP marketplace.
	DeliveryWindow *DeliveryWindow `json:"deliveryWindow,omitempty"`

	// DestinationAddress A physical address.
	DestinationAddress Address `json:"destinationAddress"`

	// DisplayableOrderComment Order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip.
	DisplayableOrderComment string    `json:"displayableOrderComment"`
	DisplayableOrderDate    Timestamp `json:"displayableOrderDate"`

	// DisplayableOrderId A fulfillment order identifier that the seller creates. This value displays as the order identifier in recipient-facing materials such as the outbound shipment packing slip. The value of `DisplayableOrderId` should match the order identifier that the seller provides to the recipient. The seller can use the `SellerFulfillmentOrderId` for this value or they can specify an alternate value if they want the recipient to reference an alternate order identifier.
	//
	// The value must be an alpha-numeric or ISO 8859-1 compliant string from one to 40 characters in length. Cannot contain two spaces in a row. Leading and trailing white space is removed.
	DisplayableOrderId string `json:"displayableOrderId"`

	// FeatureConstraints A list of features and their fulfillment policies to apply to the order.
	FeatureConstraints *[]FeatureSettings `json:"featureConstraints,omitempty"`

	// FulfillmentAction Specifies whether the fulfillment order should ship now or have an order hold put on it.
	FulfillmentAction *FulfillmentAction `json:"fulfillmentAction,omitempty"`

	// FulfillmentPolicy The `FulfillmentPolicy` value specified when you submitted the `createFulfillmentOrder` operation.
	FulfillmentPolicy *FulfillmentPolicy `json:"fulfillmentPolicy,omitempty"`

	// Items An array of item information for creating a fulfillment order.
	Items CreateFulfillmentOrderItemList `json:"items"`

	// MarketplaceId The marketplace the fulfillment order is placed against.
	MarketplaceId *string `json:"marketplaceId,omitempty"`

	// NotificationEmails A list of email addresses that the seller provides that are used by Amazon to send ship-complete notifications to recipients on behalf of the seller.
	NotificationEmails *NotificationEmailList `json:"notificationEmails,omitempty"`

	// PaymentInformation An array of various payment attributes related to this fulfillment order.
	PaymentInformation *PaymentInformationList `json:"paymentInformation,omitempty"`

	// SellerFulfillmentOrderId A fulfillment order identifier that the seller creates to track their fulfillment order. The `SellerFulfillmentOrderId` must be unique for each fulfillment order that a seller creates. If the seller's system already creates unique order identifiers, then these might be good values for them to use.
	SellerFulfillmentOrderId string `json:"sellerFulfillmentOrderId"`

	// ShipFromCountryCode The two-character country code for the country from which the fulfillment order ships. Must be in ISO 3166-1 alpha-2 format.
	ShipFromCountryCode *string `json:"shipFromCountryCode,omitempty"`

	// ShippingSpeedCategory The shipping method used for the fulfillment order. When this value is `ScheduledDelivery`, choose Ship for the `fulfillmentAction`. Hold is not a valid `fulfillmentAction` value when the `shippingSpeedCategory` value is `ScheduledDelivery`.
	ShippingSpeedCategory ShippingSpeedCategory `json:"shippingSpeedCategory"`
}

CreateFulfillmentOrderRequest The request body schema for the `createFulfillmentOrder` operation.

type CreateFulfillmentOrderResp

func ParseCreateFulfillmentOrderResp

func ParseCreateFulfillmentOrderResp(rsp *http.Response) (*CreateFulfillmentOrderResp, error)

ParseCreateFulfillmentOrderResp parses an HTTP response from a CreateFulfillmentOrderWithResponse call

func (CreateFulfillmentOrderResp) Status

Status returns HTTPResponse.Status

func (CreateFulfillmentOrderResp) StatusCode

func (r CreateFulfillmentOrderResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateFulfillmentOrderResponse

type CreateFulfillmentOrderResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

CreateFulfillmentOrderResponse The response schema for the `createFulfillmentOrder` operation.

type CreateFulfillmentReturnJSONRequestBody

type CreateFulfillmentReturnJSONRequestBody = CreateFulfillmentReturnRequest

CreateFulfillmentReturnJSONRequestBody defines body for CreateFulfillmentReturn for application/json ContentType.

type CreateFulfillmentReturnRequest

type CreateFulfillmentReturnRequest struct {
	// Items An array of items to be returned.
	Items CreateReturnItemList `json:"items"`
}

CreateFulfillmentReturnRequest The `createFulfillmentReturn` operation creates a fulfillment return for items that were fulfilled using the `createFulfillmentOrder` operation. For calls to `createFulfillmentReturn`, you must include `ReturnReasonCode` values returned by a previous call to the `listReturnReasonCodes` operation.

type CreateFulfillmentReturnResp

func ParseCreateFulfillmentReturnResp

func ParseCreateFulfillmentReturnResp(rsp *http.Response) (*CreateFulfillmentReturnResp, error)

ParseCreateFulfillmentReturnResp parses an HTTP response from a CreateFulfillmentReturnWithResponse call

func (CreateFulfillmentReturnResp) Status

Status returns HTTPResponse.Status

func (CreateFulfillmentReturnResp) StatusCode

func (r CreateFulfillmentReturnResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateFulfillmentReturnResponse

type CreateFulfillmentReturnResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors  *ErrorList                     `json:"errors,omitempty"`
	Payload *CreateFulfillmentReturnResult `json:"payload,omitempty"`
}

CreateFulfillmentReturnResponse The response schema for the `createFulfillmentReturn` operation.

type CreateFulfillmentReturnResult

type CreateFulfillmentReturnResult struct {
	// InvalidReturnItems An array of invalid return item information.
	InvalidReturnItems *InvalidReturnItemList `json:"invalidReturnItems,omitempty"`

	// ReturnAuthorizations An array of return authorization information.
	ReturnAuthorizations *ReturnAuthorizationList `json:"returnAuthorizations,omitempty"`

	// ReturnItems An array of items that Amazon accepted for return. Returns empty if no items were accepted for return.
	ReturnItems *ReturnItemList `json:"returnItems,omitempty"`
}

CreateFulfillmentReturnResult defines model for CreateFulfillmentReturnResult.

type CreateReturnItem

type CreateReturnItem struct {
	// AmazonShipmentId The identifier for the shipment that is associated with the return item.
	AmazonShipmentId string `json:"amazonShipmentId"`

	// ReturnComment An optional comment about the return item.
	ReturnComment *string `json:"returnComment,omitempty"`

	// ReturnReasonCode The return reason code assigned to the return item by the seller.
	ReturnReasonCode string `json:"returnReasonCode"`

	// SellerFulfillmentOrderItemId The identifier assigned to the item by the seller when the fulfillment order was created.
	SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"`

	// SellerReturnItemId An identifier assigned by the seller to the return item.
	SellerReturnItemId string `json:"sellerReturnItemId"`
}

CreateReturnItem An item that Amazon accepted for return.

type CreateReturnItemList

type CreateReturnItemList = []CreateReturnItem

CreateReturnItemList An array of items to be returned.

type CurrentStatus

type CurrentStatus string

CurrentStatus The current delivery status of the package.

const (
	AVAILABLEFORPICKUP    CurrentStatus = "AVAILABLE_FOR_PICKUP"
	CUSTOMERACTION        CurrentStatus = "CUSTOMER_ACTION"
	DELAYED               CurrentStatus = "DELAYED"
	DELIVERED             CurrentStatus = "DELIVERED"
	DELIVERYATTEMPTED     CurrentStatus = "DELIVERY_ATTEMPTED"
	INTRANSIT             CurrentStatus = "IN_TRANSIT"
	OUTFORDELIVERY        CurrentStatus = "OUT_FOR_DELIVERY"
	PICKUPATTEMPTED       CurrentStatus = "PICKUP_ATTEMPTED"
	PICKUPCANCELLED       CurrentStatus = "PICKUP_CANCELLED"
	PICKUPSCHEDULED       CurrentStatus = "PICKUP_SCHEDULED"
	PICKUPSUCCESSFUL      CurrentStatus = "PICKUP_SUCCESSFUL"
	REFUNDISSUED          CurrentStatus = "REFUND_ISSUED"
	RETURNED              CurrentStatus = "RETURNED"
	RETURNING             CurrentStatus = "RETURNING"
	RETURNRECEIVEDINFC    CurrentStatus = "RETURN_RECEIVED_IN_FC"
	RETURNREQUESTACCEPTED CurrentStatus = "RETURN_REQUEST_ACCEPTED"
	UNDELIVERABLE         CurrentStatus = "UNDELIVERABLE"
	UNKNOWN               CurrentStatus = "UNKNOWN"
)

Defines values for CurrentStatus.

type Decimal

type Decimal = string

Decimal A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.

type DeliveryWindow

type DeliveryWindow struct {
	EndDate   Timestamp `json:"endDate"`
	StartDate Timestamp `json:"startDate"`
}

DeliveryWindow The time range within which a Scheduled Delivery fulfillment order should be delivered. This is only available in the JP marketplace.

type DeliveryWindowList

type DeliveryWindowList = []DeliveryWindow

DeliveryWindowList An array of delivery windows.

type Error

type Error struct {
	// Code An error code that identifies the type of error that occurred.
	Code string `json:"code"`

	// Details Additional details that can help the caller understand or fix the issue.
	Details *string `json:"details,omitempty"`

	// Message A message that describes the error condition.
	Message string `json:"message"`
}

Error Error response returned when the request is unsuccessful.

type ErrorList

type ErrorList = []Error

ErrorList A list of error responses returned when a request is unsuccessful.

type EventCode

type EventCode string

EventCode The event code for the delivery event.

const (
	EVENT101 EventCode = "EVENT_101"
	EVENT102 EventCode = "EVENT_102"
	EVENT201 EventCode = "EVENT_201"
	EVENT202 EventCode = "EVENT_202"
	EVENT203 EventCode = "EVENT_203"
	EVENT204 EventCode = "EVENT_204"
	EVENT205 EventCode = "EVENT_205"
	EVENT206 EventCode = "EVENT_206"
	EVENT301 EventCode = "EVENT_301"
	EVENT302 EventCode = "EVENT_302"
	EVENT304 EventCode = "EVENT_304"
	EVENT306 EventCode = "EVENT_306"
	EVENT307 EventCode = "EVENT_307"
	EVENT308 EventCode = "EVENT_308"
	EVENT309 EventCode = "EVENT_309"
	EVENT401 EventCode = "EVENT_401"
	EVENT402 EventCode = "EVENT_402"
	EVENT403 EventCode = "EVENT_403"
	EVENT404 EventCode = "EVENT_404"
	EVENT405 EventCode = "EVENT_405"
	EVENT406 EventCode = "EVENT_406"
	EVENT407 EventCode = "EVENT_407"
	EVENT408 EventCode = "EVENT_408"
	EVENT409 EventCode = "EVENT_409"
	EVENT411 EventCode = "EVENT_411"
	EVENT412 EventCode = "EVENT_412"
	EVENT413 EventCode = "EVENT_413"
	EVENT414 EventCode = "EVENT_414"
	EVENT415 EventCode = "EVENT_415"
	EVENT416 EventCode = "EVENT_416"
	EVENT417 EventCode = "EVENT_417"
	EVENT418 EventCode = "EVENT_418"
	EVENT419 EventCode = "EVENT_419"
)

Defines values for EventCode.

type Feature

type Feature struct {
	// FeatureDescription The feature description.
	FeatureDescription string `json:"featureDescription"`

	// FeatureName The feature name.
	FeatureName string `json:"featureName"`

	// SellerEligible When true, indicates that the seller is eligible to use the feature.
	SellerEligible *bool `json:"sellerEligible,omitempty"`
}

Feature A Multi-Channel Fulfillment feature.

type FeatureSettings

type FeatureSettings struct {
	// FeatureFulfillmentPolicy Specifies the policy to use when fulfilling an order.
	FeatureFulfillmentPolicy *FeatureSettingsFeatureFulfillmentPolicy `json:"featureFulfillmentPolicy,omitempty"`

	// FeatureName The name of the feature.
	FeatureName *string `json:"featureName,omitempty"`
}

FeatureSettings `FeatureSettings` allows users to apply fulfillment features to an order. To block an order from being shipped using Amazon Logistics (AMZL) and an AMZL tracking number, use `featureName` as `BLOCK_AMZL` and `featureFulfillmentPolicy` as `Required`. Blocking AMZL will incur an additional fee surcharge on your MCF orders and increase the risk of some of your orders being unfulfilled or delivered late if there are no alternative carriers available. Using `BLOCK_AMZL` in an order request will take precedence over your Seller Central account setting. To ship in non-Amazon branded packaging (blank boxes), use featureName `BLANK_BOX`.

type FeatureSettingsFeatureFulfillmentPolicy

type FeatureSettingsFeatureFulfillmentPolicy string

FeatureSettingsFeatureFulfillmentPolicy Specifies the policy to use when fulfilling an order.

const (
	NotRequired FeatureSettingsFeatureFulfillmentPolicy = "NotRequired"
	Required    FeatureSettingsFeatureFulfillmentPolicy = "Required"
)

Defines values for FeatureSettingsFeatureFulfillmentPolicy.

type FeatureSku

type FeatureSku struct {
	// Asin The Amazon Standard Identification Number (ASIN) of the item.
	Asin *string `json:"asin,omitempty"`

	// FnSku The unique SKU used by Amazon's fulfillment network.
	FnSku *string `json:"fnSku,omitempty"`

	// OverlappingSkus Other seller SKUs that are shared across the same inventory.
	OverlappingSkus *[]string `json:"overlappingSkus,omitempty"`

	// SellerSku Used to identify an item in the given marketplace. `SellerSKU` is qualified by the seller's SellerId, which is included with every operation that you submit.
	SellerSku *string `json:"sellerSku,omitempty"`

	// SkuCount The number of SKUs available for this service.
	SkuCount *float32 `json:"skuCount,omitempty"`
}

FeatureSku Information about an SKU, including the count available, identifiers, and a list of overlapping SKUs that share the same inventory pool.

type Features

type Features = []Feature

Features An array of features.

type Fee

type Fee struct {
	// Amount An amount of money, including units in the form of currency.
	Amount Money `json:"amount"`

	// Name The type of fee.
	Name FeeName `json:"name"`
}

Fee Fee type and cost.

type FeeList

type FeeList = []Fee

FeeList An array of fee type and cost pairs.

type FeeName

type FeeName string

FeeName The type of fee.

const (
	FBAFulfillmentCODFee      FeeName = "FBAFulfillmentCODFee"
	FBAPerOrderFulfillmentFee FeeName = "FBAPerOrderFulfillmentFee"
	FBAPerUnitFulfillmentFee  FeeName = "FBAPerUnitFulfillmentFee"
	FBATransportationFee      FeeName = "FBATransportationFee"
)

Defines values for FeeName.

type FulfillmentAction

type FulfillmentAction string

FulfillmentAction Specifies whether the fulfillment order should ship now or have an order hold put on it.

const (
	Hold FulfillmentAction = "Hold"
	Ship FulfillmentAction = "Ship"
)

Defines values for FulfillmentAction.

type FulfillmentOrder

type FulfillmentOrder struct {
	// CodSettings The COD (Cash On Delivery) charges that you associate with a COD fulfillment order.
	CodSettings *CODSettings `json:"codSettings,omitempty"`

	// DeliveryWindow The time range within which a Scheduled Delivery fulfillment order should be delivered. This is only available in the JP marketplace.
	DeliveryWindow *DeliveryWindow `json:"deliveryWindow,omitempty"`

	// DestinationAddress A physical address.
	DestinationAddress Address `json:"destinationAddress"`

	// DisplayableOrderComment A text block submitted with the `createFulfillmentOrder` operation. Displays in recipient-facing materials such as the packing slip.
	DisplayableOrderComment string    `json:"displayableOrderComment"`
	DisplayableOrderDate    Timestamp `json:"displayableOrderDate"`

	// DisplayableOrderId A fulfillment order identifier submitted with the `createFulfillmentOrder` operation. Displays as the order identifier in recipient-facing materials such as the packing slip.
	DisplayableOrderId string `json:"displayableOrderId"`

	// FeatureConstraints A list of features and their fulfillment policies to apply to the order.
	FeatureConstraints *[]FeatureSettings `json:"featureConstraints,omitempty"`

	// FulfillmentAction Specifies whether the fulfillment order should ship now or have an order hold put on it.
	FulfillmentAction *FulfillmentAction `json:"fulfillmentAction,omitempty"`

	// FulfillmentOrderStatus The current status of the fulfillment order.
	FulfillmentOrderStatus FulfillmentOrderStatus `json:"fulfillmentOrderStatus"`

	// FulfillmentPolicy The `FulfillmentPolicy` value specified when you submitted the `createFulfillmentOrder` operation.
	FulfillmentPolicy *FulfillmentPolicy `json:"fulfillmentPolicy,omitempty"`

	// MarketplaceId The identifier for the marketplace the fulfillment order is placed against.
	MarketplaceId string `json:"marketplaceId"`

	// NotificationEmails A list of email addresses that the seller provides that are used by Amazon to send ship-complete notifications to recipients on behalf of the seller.
	NotificationEmails *NotificationEmailList `json:"notificationEmails,omitempty"`
	ReceivedDate       Timestamp              `json:"receivedDate"`

	// SellerFulfillmentOrderId The fulfillment order identifier submitted with the `createFulfillmentOrder` operation.
	SellerFulfillmentOrderId string `json:"sellerFulfillmentOrderId"`

	// ShippingSpeedCategory The shipping method used for the fulfillment order. When this value is `ScheduledDelivery`, choose Ship for the `fulfillmentAction`. Hold is not a valid `fulfillmentAction` value when the `shippingSpeedCategory` value is `ScheduledDelivery`.
	ShippingSpeedCategory ShippingSpeedCategory `json:"shippingSpeedCategory"`
	StatusUpdatedDate     Timestamp             `json:"statusUpdatedDate"`
}

FulfillmentOrder General information about a fulfillment order, including its status.

type FulfillmentOrderItem

type FulfillmentOrderItem struct {
	// CancelledQuantity The item quantity.
	CancelledQuantity Quantity `json:"cancelledQuantity"`

	// DisplayableComment Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip.
	DisplayableComment   *string    `json:"displayableComment,omitempty"`
	EstimatedArrivalDate *Timestamp `json:"estimatedArrivalDate,omitempty"`
	EstimatedShipDate    *Timestamp `json:"estimatedShipDate,omitempty"`

	// FulfillmentNetworkSku Amazon's fulfillment network SKU of the item.
	FulfillmentNetworkSku *string `json:"fulfillmentNetworkSku,omitempty"`

	// GiftMessage A message to the gift recipient, if applicable.
	GiftMessage *string `json:"giftMessage,omitempty"`

	// OrderItemDisposition Indicates whether the item is sellable or unsellable.
	OrderItemDisposition *string `json:"orderItemDisposition,omitempty"`

	// PerUnitDeclaredValue An amount of money, including units in the form of currency.
	PerUnitDeclaredValue *Money `json:"perUnitDeclaredValue,omitempty"`

	// PerUnitPrice An amount of money, including units in the form of currency.
	PerUnitPrice *Money `json:"perUnitPrice,omitempty"`

	// PerUnitTax An amount of money, including units in the form of currency.
	PerUnitTax *Money `json:"perUnitTax,omitempty"`

	// Quantity The item quantity.
	Quantity Quantity `json:"quantity"`

	// SellerFulfillmentOrderItemId A fulfillment order item identifier submitted with a call to the `createFulfillmentOrder` operation.
	SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"`

	// SellerSku The seller SKU of the item.
	SellerSku string `json:"sellerSku"`

	// UnfulfillableQuantity The item quantity.
	UnfulfillableQuantity Quantity `json:"unfulfillableQuantity"`
}

FulfillmentOrderItem Item information for a fulfillment order.

type FulfillmentOrderItemList

type FulfillmentOrderItemList = []FulfillmentOrderItem

FulfillmentOrderItemList An array of fulfillment order item information.

type FulfillmentOrderStatus

type FulfillmentOrderStatus string

FulfillmentOrderStatus The current status of the fulfillment order.

const (
	FulfillmentOrderStatusCancelled          FulfillmentOrderStatus = "Cancelled"
	FulfillmentOrderStatusComplete           FulfillmentOrderStatus = "Complete"
	FulfillmentOrderStatusCompletePartialled FulfillmentOrderStatus = "CompletePartialled"
	FulfillmentOrderStatusInvalid            FulfillmentOrderStatus = "Invalid"
	FulfillmentOrderStatusNew                FulfillmentOrderStatus = "New"
	FulfillmentOrderStatusPlanning           FulfillmentOrderStatus = "Planning"
	FulfillmentOrderStatusProcessing         FulfillmentOrderStatus = "Processing"
	FulfillmentOrderStatusReceived           FulfillmentOrderStatus = "Received"
	FulfillmentOrderStatusUnfulfillable      FulfillmentOrderStatus = "Unfulfillable"
)

Defines values for FulfillmentOrderStatus.

type FulfillmentPolicy

type FulfillmentPolicy string

FulfillmentPolicy The `FulfillmentPolicy` value specified when you submitted the `createFulfillmentOrder` operation.

const (
	FillAll          FulfillmentPolicy = "FillAll"
	FillAllAvailable FulfillmentPolicy = "FillAllAvailable"
	FillOrKill       FulfillmentPolicy = "FillOrKill"
)

Defines values for FulfillmentPolicy.

type FulfillmentPreview

type FulfillmentPreview struct {
	// EstimatedFees An array of fee type and cost pairs.
	EstimatedFees *FeeList `json:"estimatedFees,omitempty"`

	// EstimatedShippingWeight The weight.
	EstimatedShippingWeight *Weight `json:"estimatedShippingWeight,omitempty"`

	// FeatureConstraints A list of features and their fulfillment policies to apply to the order.
	FeatureConstraints *[]FeatureSettings `json:"featureConstraints,omitempty"`

	// FulfillmentPreviewShipments An array of fulfillment preview shipment information.
	FulfillmentPreviewShipments *FulfillmentPreviewShipmentList `json:"fulfillmentPreviewShipments,omitempty"`

	// IsCODCapable When true, this fulfillment order preview is for COD (Cash On Delivery).
	IsCODCapable bool `json:"isCODCapable"`

	// IsFulfillable When true, this fulfillment order preview is fulfillable.
	IsFulfillable bool `json:"isFulfillable"`

	// MarketplaceId The marketplace the fulfillment order is placed against.
	MarketplaceId             string      `json:"marketplaceId"`
	OrderUnfulfillableReasons *StringList `json:"orderUnfulfillableReasons,omitempty"`

	// ScheduledDeliveryInfo Delivery information for a scheduled delivery. This is only available in the JP marketplace.
	ScheduledDeliveryInfo *ScheduledDeliveryInfo `json:"scheduledDeliveryInfo,omitempty"`

	// ShippingSpeedCategory The shipping method used for the fulfillment order. When this value is `ScheduledDelivery`, choose Ship for the `fulfillmentAction`. Hold is not a valid `fulfillmentAction` value when the `shippingSpeedCategory` value is `ScheduledDelivery`.
	ShippingSpeedCategory ShippingSpeedCategory `json:"shippingSpeedCategory"`

	// UnfulfillablePreviewItems An array of unfulfillable preview item information.
	UnfulfillablePreviewItems *UnfulfillablePreviewItemList `json:"unfulfillablePreviewItems,omitempty"`
}

FulfillmentPreview Information about a fulfillment order preview, including delivery and fee information based on shipping method.

type FulfillmentPreviewItem

type FulfillmentPreviewItem struct {
	// EstimatedShippingWeight The weight.
	EstimatedShippingWeight *Weight `json:"estimatedShippingWeight,omitempty"`

	// Quantity The item quantity.
	Quantity Quantity `json:"quantity"`

	// SellerFulfillmentOrderItemId A fulfillment order item identifier that the seller created with a call to the `createFulfillmentOrder` operation.
	SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"`

	// SellerSku The seller SKU of the item.
	SellerSku string `json:"sellerSku"`

	// ShippingWeightCalculationMethod The method used to calculate the estimated shipping weight.
	ShippingWeightCalculationMethod *FulfillmentPreviewItemShippingWeightCalculationMethod `json:"shippingWeightCalculationMethod,omitempty"`
}

FulfillmentPreviewItem Item information for a shipment in a fulfillment order preview.

type FulfillmentPreviewItemList

type FulfillmentPreviewItemList = []FulfillmentPreviewItem

FulfillmentPreviewItemList An array of fulfillment preview item information.

type FulfillmentPreviewItemShippingWeightCalculationMethod

type FulfillmentPreviewItemShippingWeightCalculationMethod string

FulfillmentPreviewItemShippingWeightCalculationMethod The method used to calculate the estimated shipping weight.

Defines values for FulfillmentPreviewItemShippingWeightCalculationMethod.

type FulfillmentPreviewList

type FulfillmentPreviewList = []FulfillmentPreview

FulfillmentPreviewList An array of fulfillment preview information.

type FulfillmentPreviewShipment

type FulfillmentPreviewShipment struct {
	EarliestArrivalDate *Timestamp `json:"earliestArrivalDate,omitempty"`
	EarliestShipDate    *Timestamp `json:"earliestShipDate,omitempty"`

	// FulfillmentPreviewItems An array of fulfillment preview item information.
	FulfillmentPreviewItems FulfillmentPreviewItemList `json:"fulfillmentPreviewItems"`
	LatestArrivalDate       *Timestamp                 `json:"latestArrivalDate,omitempty"`
	LatestShipDate          *Timestamp                 `json:"latestShipDate,omitempty"`

	// ShippingNotes Provides additional insight into the shipment timeline when exact delivery dates are not able to be precomputed.
	ShippingNotes *[]string `json:"shippingNotes,omitempty"`
}

FulfillmentPreviewShipment Delivery and item information for a shipment in a fulfillment order preview.

type FulfillmentPreviewShipmentList

type FulfillmentPreviewShipmentList = []FulfillmentPreviewShipment

FulfillmentPreviewShipmentList An array of fulfillment preview shipment information.

type FulfillmentReturnItemStatus

type FulfillmentReturnItemStatus string

FulfillmentReturnItemStatus Indicates if the return item has been processed by a fulfillment center.

const (
	FulfillmentReturnItemStatusNew       FulfillmentReturnItemStatus = "New"
	FulfillmentReturnItemStatusProcessed FulfillmentReturnItemStatus = "Processed"
)

Defines values for FulfillmentReturnItemStatus.

type FulfillmentShipment

type FulfillmentShipment struct {
	// AmazonShipmentId A shipment identifier assigned by Amazon.
	AmazonShipmentId     string     `json:"amazonShipmentId"`
	EstimatedArrivalDate *Timestamp `json:"estimatedArrivalDate,omitempty"`

	// FulfillmentCenterId An identifier for the fulfillment center that the shipment will be sent from.
	FulfillmentCenterId string `json:"fulfillmentCenterId"`

	// FulfillmentShipmentItem An array of fulfillment shipment item information.
	FulfillmentShipmentItem FulfillmentShipmentItemList `json:"fulfillmentShipmentItem"`

	// FulfillmentShipmentPackage An array of fulfillment shipment package information.
	FulfillmentShipmentPackage *FulfillmentShipmentPackageList `json:"fulfillmentShipmentPackage,omitempty"`

	// FulfillmentShipmentStatus The current status of the shipment.
	FulfillmentShipmentStatus FulfillmentShipmentFulfillmentShipmentStatus `json:"fulfillmentShipmentStatus"`
	ShippingDate              *Timestamp                                   `json:"shippingDate,omitempty"`

	// ShippingNotes Provides additional insight into shipment timeline. Primairly used to communicate that actual delivery dates aren't available.
	ShippingNotes *[]string `json:"shippingNotes,omitempty"`
}

FulfillmentShipment Delivery and item information for a shipment in a fulfillment order.

type FulfillmentShipmentFulfillmentShipmentStatus

type FulfillmentShipmentFulfillmentShipmentStatus string

FulfillmentShipmentFulfillmentShipmentStatus The current status of the shipment.

const (
	CANCELLEDBYFULFILLER FulfillmentShipmentFulfillmentShipmentStatus = "CANCELLED_BY_FULFILLER"
	CANCELLEDBYSELLER    FulfillmentShipmentFulfillmentShipmentStatus = "CANCELLED_BY_SELLER"
	PENDING              FulfillmentShipmentFulfillmentShipmentStatus = "PENDING"
	SHIPPED              FulfillmentShipmentFulfillmentShipmentStatus = "SHIPPED"
)

Defines values for FulfillmentShipmentFulfillmentShipmentStatus.

type FulfillmentShipmentItem

type FulfillmentShipmentItem struct {
	// PackageNumber An identifier for the package that contains the item quantity.
	PackageNumber *int32 `json:"packageNumber,omitempty"`

	// Quantity The item quantity.
	Quantity Quantity `json:"quantity"`

	// SellerFulfillmentOrderItemId The fulfillment order item identifier that the seller created and submitted with a call to the `createFulfillmentOrder` operation.
	SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"`

	// SellerSku The seller SKU of the item.
	SellerSku string `json:"sellerSku"`

	// SerialNumber The serial number of the shipped item.
	SerialNumber *string `json:"serialNumber,omitempty"`
}

FulfillmentShipmentItem Item information for a shipment in a fulfillment order.

type FulfillmentShipmentItemList

type FulfillmentShipmentItemList = []FulfillmentShipmentItem

FulfillmentShipmentItemList An array of fulfillment shipment item information.

type FulfillmentShipmentList

type FulfillmentShipmentList = []FulfillmentShipment

FulfillmentShipmentList An array of fulfillment shipment information.

type FulfillmentShipmentPackage

type FulfillmentShipmentPackage struct {
	// CarrierCode Identifies the carrier who will deliver the shipment to the recipient.
	CarrierCode          string     `json:"carrierCode"`
	EstimatedArrivalDate *Timestamp `json:"estimatedArrivalDate,omitempty"`

	// PackageNumber Identifies a package in a shipment.
	PackageNumber int32 `json:"packageNumber"`

	// TrackingNumber The tracking number, if provided, can be used to obtain tracking and delivery information.
	TrackingNumber *string `json:"trackingNumber,omitempty"`
}

FulfillmentShipmentPackage Package information for a shipment in a fulfillment order.

type FulfillmentShipmentPackageList

type FulfillmentShipmentPackageList = []FulfillmentShipmentPackage

FulfillmentShipmentPackageList An array of fulfillment shipment package information.

type GetFeatureInventoryParams

type GetFeatureInventoryParams struct {
	// MarketplaceId The marketplace for which to return a list of the inventory that is eligible for the specified feature.
	MarketplaceId string `form:"marketplaceId" json:"marketplaceId"`

	// NextToken A string token returned in the response to your previous request that is used to return the next response page. A value of null will return the first page.
	NextToken *string `form:"nextToken,omitempty" json:"nextToken,omitempty"`
}

GetFeatureInventoryParams defines parameters for GetFeatureInventory.

type GetFeatureInventoryResp

func ParseGetFeatureInventoryResp

func ParseGetFeatureInventoryResp(rsp *http.Response) (*GetFeatureInventoryResp, error)

ParseGetFeatureInventoryResp parses an HTTP response from a GetFeatureInventoryWithResponse call

func (GetFeatureInventoryResp) Status

func (r GetFeatureInventoryResp) Status() string

Status returns HTTPResponse.Status

func (GetFeatureInventoryResp) StatusCode

func (r GetFeatureInventoryResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFeatureInventoryResponse

type GetFeatureInventoryResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`

	// Payload The payload for the `getEligibileInventory` operation.
	Payload *GetFeatureInventoryResult `json:"payload,omitempty"`
}

GetFeatureInventoryResponse The breakdown of eligibility inventory by feature.

type GetFeatureInventoryResult

type GetFeatureInventoryResult struct {
	// FeatureName The name of the feature.
	FeatureName string `json:"featureName"`

	// FeatureSkus An array of SKUs eligible for this feature and the quantity available.
	FeatureSkus *[]FeatureSku `json:"featureSkus,omitempty"`

	// MarketplaceId The requested marketplace.
	MarketplaceId string `json:"marketplaceId"`

	// NextToken When present and not empty, pass this string token in the next request to return the next response page.
	NextToken *string `json:"nextToken,omitempty"`
}

GetFeatureInventoryResult The payload for the `getEligibileInventory` operation.

type GetFeatureSKUParams

type GetFeatureSKUParams struct {
	// MarketplaceId The marketplace for which to return the count.
	MarketplaceId string `form:"marketplaceId" json:"marketplaceId"`
}

GetFeatureSKUParams defines parameters for GetFeatureSKU.

type GetFeatureSKUResp

type GetFeatureSKUResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetFeatureSkuResponse
	JSON400      *GetFeatureSkuResponse
	JSON401      *GetFeatureSkuResponse
	JSON403      *GetFeatureSkuResponse
	JSON404      *GetFeatureSkuResponse
	JSON429      *GetFeatureSkuResponse
	JSON500      *GetFeatureSkuResponse
	JSON503      *GetFeatureSkuResponse
}

func ParseGetFeatureSKUResp

func ParseGetFeatureSKUResp(rsp *http.Response) (*GetFeatureSKUResp, error)

ParseGetFeatureSKUResp parses an HTTP response from a GetFeatureSKUWithResponse call

func (GetFeatureSKUResp) Status

func (r GetFeatureSKUResp) Status() string

Status returns HTTPResponse.Status

func (GetFeatureSKUResp) StatusCode

func (r GetFeatureSKUResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFeatureSkuResponse

type GetFeatureSkuResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`

	// Payload The payload for the `getFeatureSKU` operation.
	Payload *GetFeatureSkuResult `json:"payload,omitempty"`
}

GetFeatureSkuResponse The response schema for the `getFeatureSKU` operation.

type GetFeatureSkuResult

type GetFeatureSkuResult struct {
	// FeatureName The name of the feature.
	FeatureName string `json:"featureName"`

	// IneligibleReasons A list of one or more reasons that the seller SKU is ineligibile for the feature.
	//
	// Possible values:
	// * `MERCHANT_NOT_ENROLLED` - The merchant isn't enrolled for the feature.
	// * `SKU_NOT_ELIGIBLE` - The SKU doesn't reside in a warehouse that supports the feature.
	// * `INVALID_SKU` - There is an issue with the SKU provided.
	IneligibleReasons *[]string `json:"ineligibleReasons,omitempty"`

	// IsEligible When true, the seller SKU is eligible for the requested feature.
	IsEligible bool `json:"isEligible"`

	// MarketplaceId The requested marketplace.
	MarketplaceId string `json:"marketplaceId"`

	// SkuInfo Information about an SKU, including the count available, identifiers, and a list of overlapping SKUs that share the same inventory pool.
	SkuInfo *FeatureSku `json:"skuInfo,omitempty"`
}

GetFeatureSkuResult The payload for the `getFeatureSKU` operation.

type GetFeaturesParams

type GetFeaturesParams struct {
	// MarketplaceId The marketplace for which to return the list of features.
	MarketplaceId string `form:"marketplaceId" json:"marketplaceId"`
}

GetFeaturesParams defines parameters for GetFeatures.

type GetFeaturesResp

type GetFeaturesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetFeaturesResponse
	JSON400      *GetFeaturesResponse
	JSON401      *GetFeaturesResponse
	JSON403      *GetFeaturesResponse
	JSON404      *GetFeaturesResponse
	JSON429      *GetFeaturesResponse
	JSON500      *GetFeaturesResponse
	JSON503      *GetFeaturesResponse
}

func ParseGetFeaturesResp

func ParseGetFeaturesResp(rsp *http.Response) (*GetFeaturesResp, error)

ParseGetFeaturesResp parses an HTTP response from a GetFeaturesWithResponse call

func (GetFeaturesResp) Status

func (r GetFeaturesResp) Status() string

Status returns HTTPResponse.Status

func (GetFeaturesResp) StatusCode

func (r GetFeaturesResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFeaturesResponse

type GetFeaturesResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`

	// Payload The payload for the `getFeatures` operation.
	Payload *GetFeaturesResult `json:"payload,omitempty"`
}

GetFeaturesResponse The response schema for the `getFeatures` operation.

type GetFeaturesResult

type GetFeaturesResult struct {
	// Features An array of features.
	Features Features `json:"features"`
}

GetFeaturesResult The payload for the `getFeatures` operation.

type GetFulfillmentOrderResp

func ParseGetFulfillmentOrderResp

func ParseGetFulfillmentOrderResp(rsp *http.Response) (*GetFulfillmentOrderResp, error)

ParseGetFulfillmentOrderResp parses an HTTP response from a GetFulfillmentOrderWithResponse call

func (GetFulfillmentOrderResp) Status

func (r GetFulfillmentOrderResp) Status() string

Status returns HTTPResponse.Status

func (GetFulfillmentOrderResp) StatusCode

func (r GetFulfillmentOrderResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFulfillmentOrderResponse

type GetFulfillmentOrderResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors  *ErrorList                 `json:"errors,omitempty"`
	Payload *GetFulfillmentOrderResult `json:"payload,omitempty"`
}

GetFulfillmentOrderResponse The response schema for the `getFulfillmentOrder` operation.

type GetFulfillmentOrderResult

type GetFulfillmentOrderResult struct {
	// FulfillmentOrder General information about a fulfillment order, including its status.
	FulfillmentOrder FulfillmentOrder `json:"fulfillmentOrder"`

	// FulfillmentOrderItems An array of fulfillment order item information.
	FulfillmentOrderItems FulfillmentOrderItemList `json:"fulfillmentOrderItems"`

	// FulfillmentShipments An array of fulfillment shipment information.
	FulfillmentShipments *FulfillmentShipmentList `json:"fulfillmentShipments,omitempty"`

	// PaymentInformation An array of various payment attributes related to this fulfillment order.
	PaymentInformation *PaymentInformationList `json:"paymentInformation,omitempty"`

	// ReturnAuthorizations An array of return authorization information.
	ReturnAuthorizations ReturnAuthorizationList `json:"returnAuthorizations"`

	// ReturnItems An array of items that Amazon accepted for return. Returns empty if no items were accepted for return.
	ReturnItems ReturnItemList `json:"returnItems"`
}

GetFulfillmentOrderResult defines model for GetFulfillmentOrderResult.

type GetFulfillmentPreviewItem

type GetFulfillmentPreviewItem struct {
	// PerUnitDeclaredValue An amount of money, including units in the form of currency.
	PerUnitDeclaredValue *Money `json:"perUnitDeclaredValue,omitempty"`

	// Quantity The item quantity.
	Quantity Quantity `json:"quantity"`

	// SellerFulfillmentOrderItemId A fulfillment order item identifier that the seller creates to track items in the fulfillment preview.
	SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"`

	// SellerSku The seller SKU of the item.
	SellerSku string `json:"sellerSku"`
}

GetFulfillmentPreviewItem Item information for a fulfillment order preview.

type GetFulfillmentPreviewItemList

type GetFulfillmentPreviewItemList = []GetFulfillmentPreviewItem

GetFulfillmentPreviewItemList An array of fulfillment preview item information.

type GetFulfillmentPreviewJSONRequestBody

type GetFulfillmentPreviewJSONRequestBody = GetFulfillmentPreviewRequest

GetFulfillmentPreviewJSONRequestBody defines body for GetFulfillmentPreview for application/json ContentType.

type GetFulfillmentPreviewRequest

type GetFulfillmentPreviewRequest struct {
	// Address A physical address.
	Address Address `json:"address"`

	// FeatureConstraints A list of features and their fulfillment policies to apply to the order.
	FeatureConstraints *[]FeatureSettings `json:"featureConstraints,omitempty"`

	// IncludeCODFulfillmentPreview When true, returns all fulfillment order previews both for COD and not for COD. Otherwise, returns only fulfillment order previews that are not for COD.
	IncludeCODFulfillmentPreview *bool `json:"includeCODFulfillmentPreview,omitempty"`

	// IncludeDeliveryWindows When true, returns the `ScheduledDeliveryInfo` response object, which contains the available delivery windows for a Scheduled Delivery. The `ScheduledDeliveryInfo` response object can only be returned for fulfillment order previews with `ShippingSpeedCategories` = `ScheduledDelivery`.
	IncludeDeliveryWindows *bool `json:"includeDeliveryWindows,omitempty"`

	// Items An array of fulfillment preview item information.
	Items GetFulfillmentPreviewItemList `json:"items"`

	// MarketplaceId The marketplace the fulfillment order is placed against.
	MarketplaceId           *string                    `json:"marketplaceId,omitempty"`
	ShippingSpeedCategories *ShippingSpeedCategoryList `json:"shippingSpeedCategories,omitempty"`
}

GetFulfillmentPreviewRequest The request body schema for the `getFulfillmentPreview` operation.

type GetFulfillmentPreviewResp

func ParseGetFulfillmentPreviewResp

func ParseGetFulfillmentPreviewResp(rsp *http.Response) (*GetFulfillmentPreviewResp, error)

ParseGetFulfillmentPreviewResp parses an HTTP response from a GetFulfillmentPreviewWithResponse call

func (GetFulfillmentPreviewResp) Status

func (r GetFulfillmentPreviewResp) Status() string

Status returns HTTPResponse.Status

func (GetFulfillmentPreviewResp) StatusCode

func (r GetFulfillmentPreviewResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFulfillmentPreviewResponse

type GetFulfillmentPreviewResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`

	// Payload A list of fulfillment order previews, including estimated shipping weights, estimated shipping fees, and estimated ship dates and arrival dates.
	Payload *GetFulfillmentPreviewResult `json:"payload,omitempty"`
}

GetFulfillmentPreviewResponse The response schema for the `getFulfillmentPreview` operation.

type GetFulfillmentPreviewResult

type GetFulfillmentPreviewResult struct {
	// FulfillmentPreviews An array of fulfillment preview information.
	FulfillmentPreviews *FulfillmentPreviewList `json:"fulfillmentPreviews,omitempty"`
}

GetFulfillmentPreviewResult A list of fulfillment order previews, including estimated shipping weights, estimated shipping fees, and estimated ship dates and arrival dates.

type GetPackageTrackingDetailsParams

type GetPackageTrackingDetailsParams struct {
	// PackageNumber The unencrypted package identifier returned by the `getFulfillmentOrder` operation.
	PackageNumber int32 `form:"packageNumber" json:"packageNumber"`
}

GetPackageTrackingDetailsParams defines parameters for GetPackageTrackingDetails.

type GetPackageTrackingDetailsResp

func ParseGetPackageTrackingDetailsResp

func ParseGetPackageTrackingDetailsResp(rsp *http.Response) (*GetPackageTrackingDetailsResp, error)

ParseGetPackageTrackingDetailsResp parses an HTTP response from a GetPackageTrackingDetailsWithResponse call

func (GetPackageTrackingDetailsResp) Status

Status returns HTTPResponse.Status

func (GetPackageTrackingDetailsResp) StatusCode

func (r GetPackageTrackingDetailsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPackageTrackingDetailsResponse

type GetPackageTrackingDetailsResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors  *ErrorList              `json:"errors,omitempty"`
	Payload *PackageTrackingDetails `json:"payload,omitempty"`
}

GetPackageTrackingDetailsResponse The response schema for the `getPackageTrackingDetails` operation.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InvalidItemReason

type InvalidItemReason struct {
	// Description A human readable description of the invalid item reason code.
	Description string `json:"description"`

	// InvalidItemReasonCode A code for why the item is invalid for return.
	InvalidItemReasonCode InvalidItemReasonCode `json:"invalidItemReasonCode"`
}

InvalidItemReason The reason that the item is invalid for return.

type InvalidItemReasonCode

type InvalidItemReasonCode string

InvalidItemReasonCode A code for why the item is invalid for return.

const (
	DuplicateRequest     InvalidItemReasonCode = "DuplicateRequest"
	InvalidValues        InvalidItemReasonCode = "InvalidValues"
	NoCompletedShipItems InvalidItemReasonCode = "NoCompletedShipItems"
	NoReturnableQuantity InvalidItemReasonCode = "NoReturnableQuantity"
)

Defines values for InvalidItemReasonCode.

type InvalidReturnItem

type InvalidReturnItem struct {
	// InvalidItemReason The reason that the item is invalid for return.
	InvalidItemReason InvalidItemReason `json:"invalidItemReason"`

	// SellerFulfillmentOrderItemId The identifier assigned to the item by the seller when the fulfillment order was created.
	SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"`

	// SellerReturnItemId An identifier assigned by the seller to the return item.
	SellerReturnItemId string `json:"sellerReturnItemId"`
}

InvalidReturnItem An item that is invalid for return.

type InvalidReturnItemList

type InvalidReturnItemList = []InvalidReturnItem

InvalidReturnItemList An array of invalid return item information.

type ListAllFulfillmentOrdersParams

type ListAllFulfillmentOrdersParams struct {
	// QueryStartDate A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order.
	QueryStartDate *time.Time `form:"queryStartDate,omitempty" json:"queryStartDate,omitempty"`

	// NextToken A string token returned in the response to your previous request.
	NextToken *string `form:"nextToken,omitempty" json:"nextToken,omitempty"`
}

ListAllFulfillmentOrdersParams defines parameters for ListAllFulfillmentOrders.

type ListAllFulfillmentOrdersResp

func ParseListAllFulfillmentOrdersResp

func ParseListAllFulfillmentOrdersResp(rsp *http.Response) (*ListAllFulfillmentOrdersResp, error)

ParseListAllFulfillmentOrdersResp parses an HTTP response from a ListAllFulfillmentOrdersWithResponse call

func (ListAllFulfillmentOrdersResp) Status

Status returns HTTPResponse.Status

func (ListAllFulfillmentOrdersResp) StatusCode

func (r ListAllFulfillmentOrdersResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAllFulfillmentOrdersResponse

type ListAllFulfillmentOrdersResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors  *ErrorList                      `json:"errors,omitempty"`
	Payload *ListAllFulfillmentOrdersResult `json:"payload,omitempty"`
}

ListAllFulfillmentOrdersResponse The response schema for the `listAllFulfillmentOrders` operation.

type ListAllFulfillmentOrdersResult

type ListAllFulfillmentOrdersResult struct {
	// FulfillmentOrders An array of fulfillment order information.
	FulfillmentOrders *[]FulfillmentOrder `json:"fulfillmentOrders,omitempty"`

	// NextToken When present and not empty, pass this string token in the next request to return the next response page.
	NextToken *string `json:"nextToken,omitempty"`
}

ListAllFulfillmentOrdersResult defines model for ListAllFulfillmentOrdersResult.

type ListReturnReasonCodesParams

type ListReturnReasonCodesParams struct {
	// SellerSku The seller SKU for which return reason codes are required.
	SellerSku string `form:"sellerSku" json:"sellerSku"`

	// MarketplaceId The marketplace for which the seller wants return reason codes.
	MarketplaceId *string `form:"marketplaceId,omitempty" json:"marketplaceId,omitempty"`

	// SellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created. The service uses this value to determine the marketplace for which the seller wants return reason codes.
	SellerFulfillmentOrderId *string `form:"sellerFulfillmentOrderId,omitempty" json:"sellerFulfillmentOrderId,omitempty"`

	// Language The language that the `TranslatedDescription` property of the `ReasonCodeDetails` response object should be translated into.
	Language *string `form:"language,omitempty" json:"language,omitempty"`
}

ListReturnReasonCodesParams defines parameters for ListReturnReasonCodes.

type ListReturnReasonCodesResp

func ParseListReturnReasonCodesResp

func ParseListReturnReasonCodesResp(rsp *http.Response) (*ListReturnReasonCodesResp, error)

ParseListReturnReasonCodesResp parses an HTTP response from a ListReturnReasonCodesWithResponse call

func (ListReturnReasonCodesResp) Status

func (r ListReturnReasonCodesResp) Status() string

Status returns HTTPResponse.Status

func (ListReturnReasonCodesResp) StatusCode

func (r ListReturnReasonCodesResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListReturnReasonCodesResponse

type ListReturnReasonCodesResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors  *ErrorList                   `json:"errors,omitempty"`
	Payload *ListReturnReasonCodesResult `json:"payload,omitempty"`
}

ListReturnReasonCodesResponse The response schema for the `listReturnReasonCodes` operation.

type ListReturnReasonCodesResult

type ListReturnReasonCodesResult struct {
	// ReasonCodeDetails An array of return reason code details.
	ReasonCodeDetails *ReasonCodeDetailsList `json:"reasonCodeDetails,omitempty"`
}

ListReturnReasonCodesResult defines model for ListReturnReasonCodesResult.

type Money

type Money struct {
	// CurrencyCode Three digit currency code in ISO 4217 format.
	CurrencyCode string `json:"currencyCode"`

	// Value A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
	Value Decimal `json:"value"`
}

Money An amount of money, including units in the form of currency.

type NotificationEmailList

type NotificationEmailList = []string

NotificationEmailList A list of email addresses that the seller provides that are used by Amazon to send ship-complete notifications to recipients on behalf of the seller.

type PackageTrackingDetails

type PackageTrackingDetails struct {
	// AdditionalLocationInfo Additional location information.
	AdditionalLocationInfo *AdditionalLocationInfo `json:"additionalLocationInfo,omitempty"`

	// CarrierCode The name of the carrier.
	CarrierCode *string `json:"carrierCode,omitempty"`

	// CarrierPhoneNumber The phone number of the carrier.
	CarrierPhoneNumber *string `json:"carrierPhoneNumber,omitempty"`

	// CarrierURL The URL of the carrier's website.
	CarrierURL *string `json:"carrierURL,omitempty"`

	// CurrentStatus The current delivery status of the package.
	CurrentStatus *CurrentStatus `json:"currentStatus,omitempty"`

	// CurrentStatusDescription Description corresponding to the `CurrentStatus` value.
	CurrentStatusDescription *string `json:"currentStatusDescription,omitempty"`

	// CustomerTrackingLink Link on swiship.com that allows customers to track the package.
	CustomerTrackingLink *string    `json:"customerTrackingLink,omitempty"`
	EstimatedArrivalDate *Timestamp `json:"estimatedArrivalDate,omitempty"`

	// PackageNumber The package identifier.
	PackageNumber int32      `json:"packageNumber"`
	ShipDate      *Timestamp `json:"shipDate,omitempty"`

	// ShipToAddress Address information for tracking the package.
	ShipToAddress *TrackingAddress `json:"shipToAddress,omitempty"`

	// SignedForBy The name of the person who signed for the package.
	SignedForBy *string `json:"signedForBy,omitempty"`

	// TrackingEvents An array of tracking event information.
	TrackingEvents *TrackingEventList `json:"trackingEvents,omitempty"`

	// TrackingNumber The tracking number for the package.
	TrackingNumber *string `json:"trackingNumber,omitempty"`
}

PackageTrackingDetails defines model for PackageTrackingDetails.

type PaymentInformation

type PaymentInformation struct {
	PaymentDate Timestamp `json:"paymentDate"`

	// PaymentMode The transaction mode of this payment.
	PaymentMode string `json:"paymentMode"`

	// PaymentTransactionId The transaction identifier of this payment.
	PaymentTransactionId string `json:"paymentTransactionId"`
}

PaymentInformation The attributes related to the payment made from customer to seller for this order.

type PaymentInformationList

type PaymentInformationList = []PaymentInformation

PaymentInformationList An array of various payment attributes related to this fulfillment order.

type Quantity

type Quantity = int32

Quantity The item quantity.

type ReasonCodeDetails

type ReasonCodeDetails struct {
	// Description A human readable description of the return reason code.
	Description string `json:"description"`

	// ReturnReasonCode A code that indicates a valid return reason.
	ReturnReasonCode string `json:"returnReasonCode"`

	// TranslatedDescription A translation of the description. The translation is in the language specified in the Language request parameter.
	TranslatedDescription *string `json:"translatedDescription,omitempty"`
}

ReasonCodeDetails A return reason code, a description, and an optional description translation.

type ReasonCodeDetailsList

type ReasonCodeDetailsList = []ReasonCodeDetails

ReasonCodeDetailsList An array of return reason code details.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResponseEditorFn

type ResponseEditorFn func(ctx context.Context, rsp *http.Response) error

ResponseEditorFn is the function signature for the ResponseEditor callback function

type ReturnAuthorization

type ReturnAuthorization struct {
	// AmazonRmaId The return merchandise authorization (RMA) that Amazon needs to process the return.
	AmazonRmaId string `json:"amazonRmaId"`

	// FulfillmentCenterId An identifier for the Amazon fulfillment center that the return items should be sent to.
	FulfillmentCenterId string `json:"fulfillmentCenterId"`

	// ReturnAuthorizationId An identifier for the return authorization. This identifier associates return items with the return authorization used to return them.
	ReturnAuthorizationId string `json:"returnAuthorizationId"`

	// ReturnToAddress A physical address.
	ReturnToAddress Address `json:"returnToAddress"`

	// RmaPageURL A URL for a web page that contains the return authorization barcode and the mailing label. This does not include pre-paid shipping.
	RmaPageURL string `json:"rmaPageURL"`
}

ReturnAuthorization Return authorization information for items accepted for return.

type ReturnAuthorizationList

type ReturnAuthorizationList = []ReturnAuthorization

ReturnAuthorizationList An array of return authorization information.

type ReturnItem

type ReturnItem struct {
	// AmazonReturnReasonCode The return reason code that the Amazon fulfillment center assigned to the return item.
	AmazonReturnReasonCode *string `json:"amazonReturnReasonCode,omitempty"`

	// AmazonShipmentId The identifier for the shipment that is associated with the return item.
	AmazonShipmentId string `json:"amazonShipmentId"`

	// FulfillmentCenterId The identifier for the Amazon fulfillment center that processed the return item.
	FulfillmentCenterId *string `json:"fulfillmentCenterId,omitempty"`

	// ReturnAuthorizationId Identifies the return authorization used to return this item. Refer to `ReturnAuthorization`.
	ReturnAuthorizationId *string `json:"returnAuthorizationId,omitempty"`

	// ReturnComment An optional comment about the return item.
	ReturnComment *string `json:"returnComment,omitempty"`

	// ReturnReceivedCondition The condition of the return item when received by an Amazon fulfillment center.
	ReturnReceivedCondition *ReturnItemDisposition `json:"returnReceivedCondition,omitempty"`

	// SellerFulfillmentOrderItemId The identifier assigned to the item by the seller when the fulfillment order was created.
	SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"`

	// SellerReturnItemId An identifier assigned by the seller to the return item.
	SellerReturnItemId string `json:"sellerReturnItemId"`

	// SellerReturnReasonCode The return reason code assigned to the return item by the seller.
	SellerReturnReasonCode string `json:"sellerReturnReasonCode"`

	// Status Indicates if the return item has been processed by a fulfillment center.
	Status            FulfillmentReturnItemStatus `json:"status"`
	StatusChangedDate Timestamp                   `json:"statusChangedDate"`
}

ReturnItem An item that Amazon accepted for return.

type ReturnItemDisposition

type ReturnItemDisposition string

ReturnItemDisposition The condition of the return item when received by an Amazon fulfillment center.

const (
	CarrierDamaged   ReturnItemDisposition = "CarrierDamaged"
	CustomerDamaged  ReturnItemDisposition = "CustomerDamaged"
	Defective        ReturnItemDisposition = "Defective"
	FulfillerDamaged ReturnItemDisposition = "FulfillerDamaged"
	Sellable         ReturnItemDisposition = "Sellable"
)

Defines values for ReturnItemDisposition.

type ReturnItemList

type ReturnItemList = []ReturnItem

ReturnItemList An array of items that Amazon accepted for return. Returns empty if no items were accepted for return.

type ScheduledDeliveryInfo

type ScheduledDeliveryInfo struct {
	// DeliveryTimeZone The time zone of the destination address for the fulfillment order preview. Must be an IANA time zone name. Example: Asia/Tokyo.
	DeliveryTimeZone string `json:"deliveryTimeZone"`

	// DeliveryWindows An array of delivery windows.
	DeliveryWindows DeliveryWindowList `json:"deliveryWindows"`
}

ScheduledDeliveryInfo Delivery information for a scheduled delivery. This is only available in the JP marketplace.

type ShippingSpeedCategory

type ShippingSpeedCategory string

ShippingSpeedCategory The shipping method used for the fulfillment order. When this value is `ScheduledDelivery`, choose Ship for the `fulfillmentAction`. Hold is not a valid `fulfillmentAction` value when the `shippingSpeedCategory` value is `ScheduledDelivery`.

const (
	Expedited         ShippingSpeedCategory = "Expedited"
	Priority          ShippingSpeedCategory = "Priority"
	ScheduledDelivery ShippingSpeedCategory = "ScheduledDelivery"
	Standard          ShippingSpeedCategory = "Standard"
)

Defines values for ShippingSpeedCategory.

type ShippingSpeedCategoryList

type ShippingSpeedCategoryList = []ShippingSpeedCategory

ShippingSpeedCategoryList defines model for ShippingSpeedCategoryList.

type StringList

type StringList = []string

StringList defines model for StringList.

type SubmitFulfillmentOrderStatusUpdateJSONRequestBody

type SubmitFulfillmentOrderStatusUpdateJSONRequestBody = SubmitFulfillmentOrderStatusUpdateRequest

SubmitFulfillmentOrderStatusUpdateJSONRequestBody defines body for SubmitFulfillmentOrderStatusUpdate for application/json ContentType.

type SubmitFulfillmentOrderStatusUpdateRequest

type SubmitFulfillmentOrderStatusUpdateRequest struct {
	// FulfillmentOrderStatus The current status of the fulfillment order.
	FulfillmentOrderStatus *FulfillmentOrderStatus `json:"fulfillmentOrderStatus,omitempty"`
}

SubmitFulfillmentOrderStatusUpdateRequest The request body schema for the `submitFulfillmentOrderStatusUpdate` operation.

type SubmitFulfillmentOrderStatusUpdateResp

func ParseSubmitFulfillmentOrderStatusUpdateResp

func ParseSubmitFulfillmentOrderStatusUpdateResp(rsp *http.Response) (*SubmitFulfillmentOrderStatusUpdateResp, error)

ParseSubmitFulfillmentOrderStatusUpdateResp parses an HTTP response from a SubmitFulfillmentOrderStatusUpdateWithResponse call

func (SubmitFulfillmentOrderStatusUpdateResp) Status

Status returns HTTPResponse.Status

func (SubmitFulfillmentOrderStatusUpdateResp) StatusCode

StatusCode returns HTTPResponse.StatusCode

type SubmitFulfillmentOrderStatusUpdateResponse

type SubmitFulfillmentOrderStatusUpdateResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

SubmitFulfillmentOrderStatusUpdateResponse The response schema for the `SubmitFulfillmentOrderStatusUpdate` operation.

type Timestamp

type Timestamp = time.Time

Timestamp defines model for Timestamp.

type TrackingAddress

type TrackingAddress struct {
	// City The city.
	City string `json:"city"`

	// Country The country.
	Country string `json:"country"`

	// State The state.
	State string `json:"state"`
}

TrackingAddress Address information for tracking the package.

type TrackingEvent

type TrackingEvent struct {
	// EventAddress Address information for tracking the package.
	EventAddress TrackingAddress `json:"eventAddress"`

	// EventCode The event code for the delivery event.
	EventCode EventCode `json:"eventCode"`
	EventDate Timestamp `json:"eventDate"`

	// EventDescription A description for the corresponding event code.
	EventDescription string `json:"eventDescription"`
}

TrackingEvent Information for tracking package deliveries.

type TrackingEventList

type TrackingEventList = []TrackingEvent

TrackingEventList An array of tracking event information.

type UnfulfillablePreviewItem

type UnfulfillablePreviewItem struct {
	ItemUnfulfillableReasons *StringList `json:"itemUnfulfillableReasons,omitempty"`

	// Quantity The item quantity.
	Quantity Quantity `json:"quantity"`

	// SellerFulfillmentOrderItemId A fulfillment order item identifier created with a call to the `getFulfillmentPreview` operation.
	SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"`

	// SellerSku The seller SKU of the item.
	SellerSku string `json:"sellerSku"`
}

UnfulfillablePreviewItem Information about unfulfillable items in a fulfillment order preview.

type UnfulfillablePreviewItemList

type UnfulfillablePreviewItemList = []UnfulfillablePreviewItem

UnfulfillablePreviewItemList An array of unfulfillable preview item information.

type UpdateFulfillmentOrderItem

type UpdateFulfillmentOrderItem struct {
	// DisplayableComment Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip.
	DisplayableComment *string `json:"displayableComment,omitempty"`

	// FulfillmentNetworkSku Amazon's fulfillment network SKU of the item.
	FulfillmentNetworkSku *string `json:"fulfillmentNetworkSku,omitempty"`

	// GiftMessage A message to the gift recipient, if applicable.
	GiftMessage *string `json:"giftMessage,omitempty"`

	// OrderItemDisposition Indicates whether the item is sellable or unsellable.
	OrderItemDisposition *string `json:"orderItemDisposition,omitempty"`

	// PerUnitDeclaredValue An amount of money, including units in the form of currency.
	PerUnitDeclaredValue *Money `json:"perUnitDeclaredValue,omitempty"`

	// PerUnitPrice An amount of money, including units in the form of currency.
	PerUnitPrice *Money `json:"perUnitPrice,omitempty"`

	// PerUnitTax An amount of money, including units in the form of currency.
	PerUnitTax *Money `json:"perUnitTax,omitempty"`

	// Quantity The item quantity.
	Quantity Quantity `json:"quantity"`

	// SellerFulfillmentOrderItemId Identifies the fulfillment order item to update. Created with a previous call to the `createFulfillmentOrder` operation.
	SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"`

	// SellerSku The seller SKU of the item.
	SellerSku *string `json:"sellerSku,omitempty"`
}

UpdateFulfillmentOrderItem Item information for updating a fulfillment order.

type UpdateFulfillmentOrderItemList

type UpdateFulfillmentOrderItemList = []UpdateFulfillmentOrderItem

UpdateFulfillmentOrderItemList An array of fulfillment order item information for updating a fulfillment order.

type UpdateFulfillmentOrderJSONRequestBody

type UpdateFulfillmentOrderJSONRequestBody = UpdateFulfillmentOrderRequest

UpdateFulfillmentOrderJSONRequestBody defines body for UpdateFulfillmentOrder for application/json ContentType.

type UpdateFulfillmentOrderRequest

type UpdateFulfillmentOrderRequest struct {
	// DestinationAddress A physical address.
	DestinationAddress *Address `json:"destinationAddress,omitempty"`

	// DisplayableOrderComment Order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip.
	DisplayableOrderComment *string    `json:"displayableOrderComment,omitempty"`
	DisplayableOrderDate    *Timestamp `json:"displayableOrderDate,omitempty"`

	// DisplayableOrderId A fulfillment order identifier that the seller creates. This value displays as the order identifier in recipient-facing materials such as the outbound shipment packing slip. The value of `DisplayableOrderId` should match the order identifier that the seller provides to the recipient. The seller can use the `SellerFulfillmentOrderId` for this value or they can specify an alternate value if they want the recipient to reference an alternate order identifier.
	DisplayableOrderId *string `json:"displayableOrderId,omitempty"`

	// FeatureConstraints A list of features and their fulfillment policies to apply to the order.
	FeatureConstraints *[]FeatureSettings `json:"featureConstraints,omitempty"`

	// FulfillmentAction Specifies whether the fulfillment order should ship now or have an order hold put on it.
	FulfillmentAction *FulfillmentAction `json:"fulfillmentAction,omitempty"`

	// FulfillmentPolicy The `FulfillmentPolicy` value specified when you submitted the `createFulfillmentOrder` operation.
	FulfillmentPolicy *FulfillmentPolicy `json:"fulfillmentPolicy,omitempty"`

	// Items An array of fulfillment order item information for updating a fulfillment order.
	Items *UpdateFulfillmentOrderItemList `json:"items,omitempty"`

	// MarketplaceId The marketplace the fulfillment order is placed against.
	MarketplaceId *string `json:"marketplaceId,omitempty"`

	// NotificationEmails A list of email addresses that the seller provides that are used by Amazon to send ship-complete notifications to recipients on behalf of the seller.
	NotificationEmails *NotificationEmailList `json:"notificationEmails,omitempty"`

	// ShipFromCountryCode The two-character country code for the country from which the fulfillment order ships. Must be in ISO 3166-1 alpha-2 format.
	ShipFromCountryCode *string `json:"shipFromCountryCode,omitempty"`

	// ShippingSpeedCategory The shipping method used for the fulfillment order. When this value is `ScheduledDelivery`, choose Ship for the `fulfillmentAction`. Hold is not a valid `fulfillmentAction` value when the `shippingSpeedCategory` value is `ScheduledDelivery`.
	ShippingSpeedCategory *ShippingSpeedCategory `json:"shippingSpeedCategory,omitempty"`
}

UpdateFulfillmentOrderRequest The request body schema for the `updateFulfillmentOrder` operation.

type UpdateFulfillmentOrderResp

func ParseUpdateFulfillmentOrderResp

func ParseUpdateFulfillmentOrderResp(rsp *http.Response) (*UpdateFulfillmentOrderResp, error)

ParseUpdateFulfillmentOrderResp parses an HTTP response from a UpdateFulfillmentOrderWithResponse call

func (UpdateFulfillmentOrderResp) Status

Status returns HTTPResponse.Status

func (UpdateFulfillmentOrderResp) StatusCode

func (r UpdateFulfillmentOrderResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateFulfillmentOrderResponse

type UpdateFulfillmentOrderResponse struct {
	// Errors A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

UpdateFulfillmentOrderResponse The response schema for the `updateFulfillmentOrder` operation.

type Weight

type Weight struct {
	// Unit The unit of weight.
	Unit WeightUnit `json:"unit"`

	// Value The weight value.
	Value string `json:"value"`
}

Weight The weight.

type WeightUnit

type WeightUnit string

WeightUnit The unit of weight.

const (
	KG        WeightUnit = "KG"
	KILOGRAMS WeightUnit = "KILOGRAMS"
	LB        WeightUnit = "LB"
	POUNDS    WeightUnit = "POUNDS"
)

Defines values for WeightUnit.

Jump to

Keyboard shortcuts

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