Documentation ¶
Overview ¶
Package fbaOutbound provides primitives to interact the openapi HTTP API.
Code generated by go-sdk-codegen DO NOT EDIT.
Package fbaOutbound provides primitives to interact the openapi HTTP API.
Code generated by go-sdk-codegen DO NOT EDIT.
Index ¶
- func NewCancelFulfillmentOrderRequest(endpoint string, sellerFulfillmentOrderId string) (*http.Request, error)
- func NewCreateFulfillmentOrderRequest(endpoint string, body CreateFulfillmentOrderJSONRequestBody) (*http.Request, error)
- func NewCreateFulfillmentOrderRequestWithBody(endpoint string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateFulfillmentReturnRequest(endpoint string, sellerFulfillmentOrderId string, ...) (*http.Request, error)
- func NewCreateFulfillmentReturnRequestWithBody(endpoint string, sellerFulfillmentOrderId string, contentType string, ...) (*http.Request, error)
- func NewGetFeatureInventoryRequest(endpoint string, featureName string, params *GetFeatureInventoryParams) (*http.Request, error)
- func NewGetFeatureSKURequest(endpoint string, featureName string, sellerSku string, ...) (*http.Request, error)
- func NewGetFeaturesRequest(endpoint string, params *GetFeaturesParams) (*http.Request, error)
- func NewGetFulfillmentOrderRequest(endpoint string, sellerFulfillmentOrderId string) (*http.Request, error)
- func NewGetFulfillmentPreviewRequest(endpoint string, body GetFulfillmentPreviewJSONRequestBody) (*http.Request, error)
- func NewGetFulfillmentPreviewRequestWithBody(endpoint string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetPackageTrackingDetailsRequest(endpoint string, params *GetPackageTrackingDetailsParams) (*http.Request, error)
- func NewListAllFulfillmentOrdersRequest(endpoint string, params *ListAllFulfillmentOrdersParams) (*http.Request, error)
- func NewListReturnReasonCodesRequest(endpoint string, params *ListReturnReasonCodesParams) (*http.Request, error)
- func NewUpdateFulfillmentOrderRequest(endpoint string, sellerFulfillmentOrderId string, ...) (*http.Request, error)
- func NewUpdateFulfillmentOrderRequestWithBody(endpoint string, sellerFulfillmentOrderId string, contentType string, ...) (*http.Request, error)
- type AdditionalLocationInfo
- type Address
- type CODSettings
- type CancelFulfillmentOrderResp
- type CancelFulfillmentOrderResponse
- type Client
- func (c *Client) CancelFulfillmentOrder(ctx context.Context, sellerFulfillmentOrderId string) (*http.Response, error)
- func (c *Client) CreateFulfillmentOrder(ctx context.Context, body CreateFulfillmentOrderJSONRequestBody) (*http.Response, error)
- func (c *Client) CreateFulfillmentOrderWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) CreateFulfillmentReturn(ctx context.Context, sellerFulfillmentOrderId string, ...) (*http.Response, error)
- func (c *Client) CreateFulfillmentReturnWithBody(ctx context.Context, sellerFulfillmentOrderId string, contentType string, ...) (*http.Response, error)
- func (c *Client) GetFeatureInventory(ctx context.Context, featureName string, params *GetFeatureInventoryParams) (*http.Response, error)
- func (c *Client) GetFeatureSKU(ctx context.Context, featureName string, sellerSku string, ...) (*http.Response, error)
- func (c *Client) GetFeatures(ctx context.Context, params *GetFeaturesParams) (*http.Response, error)
- func (c *Client) GetFulfillmentOrder(ctx context.Context, sellerFulfillmentOrderId string) (*http.Response, error)
- func (c *Client) GetFulfillmentPreview(ctx context.Context, body GetFulfillmentPreviewJSONRequestBody) (*http.Response, error)
- func (c *Client) GetFulfillmentPreviewWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) GetPackageTrackingDetails(ctx context.Context, params *GetPackageTrackingDetailsParams) (*http.Response, error)
- func (c *Client) ListAllFulfillmentOrders(ctx context.Context, params *ListAllFulfillmentOrdersParams) (*http.Response, error)
- func (c *Client) ListReturnReasonCodes(ctx context.Context, params *ListReturnReasonCodesParams) (*http.Response, error)
- func (c *Client) UpdateFulfillmentOrder(ctx context.Context, sellerFulfillmentOrderId string, ...) (*http.Response, error)
- func (c *Client) UpdateFulfillmentOrderWithBody(ctx context.Context, sellerFulfillmentOrderId string, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CancelFulfillmentOrderWithResponse(ctx context.Context, sellerFulfillmentOrderId string) (*CancelFulfillmentOrderResp, error)
- func (c *ClientWithResponses) CreateFulfillmentOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateFulfillmentOrderResp, error)
- func (c *ClientWithResponses) CreateFulfillmentOrderWithResponse(ctx context.Context, body CreateFulfillmentOrderJSONRequestBody) (*CreateFulfillmentOrderResp, error)
- func (c *ClientWithResponses) CreateFulfillmentReturnWithBodyWithResponse(ctx context.Context, sellerFulfillmentOrderId string, contentType string, ...) (*CreateFulfillmentReturnResp, error)
- func (c *ClientWithResponses) CreateFulfillmentReturnWithResponse(ctx context.Context, sellerFulfillmentOrderId string, ...) (*CreateFulfillmentReturnResp, error)
- func (c *ClientWithResponses) GetFeatureInventoryWithResponse(ctx context.Context, featureName string, params *GetFeatureInventoryParams) (*GetFeatureInventoryResp, error)
- func (c *ClientWithResponses) GetFeatureSKUWithResponse(ctx context.Context, featureName string, sellerSku string, ...) (*GetFeatureSKUResp, error)
- func (c *ClientWithResponses) GetFeaturesWithResponse(ctx context.Context, params *GetFeaturesParams) (*GetFeaturesResp, error)
- func (c *ClientWithResponses) GetFulfillmentOrderWithResponse(ctx context.Context, sellerFulfillmentOrderId string) (*GetFulfillmentOrderResp, error)
- func (c *ClientWithResponses) GetFulfillmentPreviewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*GetFulfillmentPreviewResp, error)
- func (c *ClientWithResponses) GetFulfillmentPreviewWithResponse(ctx context.Context, body GetFulfillmentPreviewJSONRequestBody) (*GetFulfillmentPreviewResp, error)
- func (c *ClientWithResponses) GetPackageTrackingDetailsWithResponse(ctx context.Context, params *GetPackageTrackingDetailsParams) (*GetPackageTrackingDetailsResp, error)
- func (c *ClientWithResponses) ListAllFulfillmentOrdersWithResponse(ctx context.Context, params *ListAllFulfillmentOrdersParams) (*ListAllFulfillmentOrdersResp, error)
- func (c *ClientWithResponses) ListReturnReasonCodesWithResponse(ctx context.Context, params *ListReturnReasonCodesParams) (*ListReturnReasonCodesResp, error)
- func (c *ClientWithResponses) UpdateFulfillmentOrderWithBodyWithResponse(ctx context.Context, sellerFulfillmentOrderId string, contentType string, ...) (*UpdateFulfillmentOrderResp, error)
- func (c *ClientWithResponses) UpdateFulfillmentOrderWithResponse(ctx context.Context, sellerFulfillmentOrderId string, ...) (*UpdateFulfillmentOrderResp, error)
- type ClientWithResponsesInterface
- type CreateFulfillmentOrderItem
- type CreateFulfillmentOrderItemList
- type CreateFulfillmentOrderJSONBody
- type CreateFulfillmentOrderJSONRequestBody
- type CreateFulfillmentOrderRequest
- type CreateFulfillmentOrderResp
- type CreateFulfillmentOrderResponse
- type CreateFulfillmentReturnJSONBody
- type CreateFulfillmentReturnJSONRequestBody
- type CreateFulfillmentReturnRequest
- type CreateFulfillmentReturnResp
- type CreateFulfillmentReturnResponse
- type CreateFulfillmentReturnResult
- type CreateReturnItem
- type CreateReturnItemList
- type CurrentStatus
- type Decimal
- type DeliveryWindow
- type DeliveryWindowList
- type Error
- type ErrorList
- type EventCode
- type Feature
- type FeatureSettings
- type FeatureSku
- type Features
- type Fee
- type FeeList
- type FulfillmentAction
- type FulfillmentOrder
- type FulfillmentOrderItem
- type FulfillmentOrderItemList
- type FulfillmentOrderStatus
- type FulfillmentPolicy
- type FulfillmentPreview
- type FulfillmentPreviewItem
- type FulfillmentPreviewItemList
- type FulfillmentPreviewList
- type FulfillmentPreviewShipment
- type FulfillmentPreviewShipmentList
- type FulfillmentReturnItemStatus
- type FulfillmentShipment
- type FulfillmentShipmentItem
- type FulfillmentShipmentItemList
- type FulfillmentShipmentList
- type FulfillmentShipmentPackage
- type FulfillmentShipmentPackageList
- type GetFeatureInventoryParams
- type GetFeatureInventoryResp
- type GetFeatureInventoryResponse
- type GetFeatureInventoryResult
- type GetFeatureSKUParams
- type GetFeatureSKUResp
- type GetFeatureSkuResponse
- type GetFeatureSkuResult
- type GetFeaturesParams
- type GetFeaturesResp
- type GetFeaturesResponse
- type GetFeaturesResult
- type GetFulfillmentOrderResp
- type GetFulfillmentOrderResponse
- type GetFulfillmentOrderResult
- type GetFulfillmentPreviewItem
- type GetFulfillmentPreviewItemList
- type GetFulfillmentPreviewJSONBody
- type GetFulfillmentPreviewJSONRequestBody
- type GetFulfillmentPreviewRequest
- type GetFulfillmentPreviewResp
- type GetFulfillmentPreviewResponse
- type GetFulfillmentPreviewResult
- type GetPackageTrackingDetailsParams
- type GetPackageTrackingDetailsResp
- type GetPackageTrackingDetailsResponse
- type HttpRequestDoer
- type InvalidItemReason
- type InvalidItemReasonCode
- type InvalidReturnItem
- type InvalidReturnItemList
- type ListAllFulfillmentOrdersParams
- type ListAllFulfillmentOrdersResp
- type ListAllFulfillmentOrdersResponse
- type ListAllFulfillmentOrdersResult
- type ListReturnReasonCodesParams
- type ListReturnReasonCodesResp
- type ListReturnReasonCodesResponse
- type ListReturnReasonCodesResult
- type Money
- type NotificationEmailList
- type PackageTrackingDetails
- type Quantity
- type ReasonCodeDetails
- type ReasonCodeDetailsList
- type RequestBeforeFn
- type ResponseAfterFn
- type ReturnAuthorization
- type ReturnAuthorizationList
- type ReturnItem
- type ReturnItemDisposition
- type ReturnItemList
- type ScheduledDeliveryInfo
- type ShippingSpeedCategory
- type ShippingSpeedCategoryList
- type StringList
- type Timestamp
- type TrackingAddress
- type TrackingEvent
- type TrackingEventList
- type UnfulfillablePreviewItem
- type UnfulfillablePreviewItemList
- type UpdateFulfillmentOrderItem
- type UpdateFulfillmentOrderItemList
- type UpdateFulfillmentOrderJSONBody
- type UpdateFulfillmentOrderJSONRequestBody
- type UpdateFulfillmentOrderRequest
- type UpdateFulfillmentOrderResp
- type UpdateFulfillmentOrderResponse
- type Weight
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCancelFulfillmentOrderRequest ¶
func NewCancelFulfillmentOrderRequest(endpoint string, sellerFulfillmentOrderId string) (*http.Request, error)
NewCancelFulfillmentOrderRequest generates requests for CancelFulfillmentOrder
func NewCreateFulfillmentOrderRequest ¶
func NewCreateFulfillmentOrderRequest(endpoint string, body CreateFulfillmentOrderJSONRequestBody) (*http.Request, error)
NewCreateFulfillmentOrderRequest calls the generic CreateFulfillmentOrder builder with application/json body
func NewCreateFulfillmentOrderRequestWithBody ¶
func NewCreateFulfillmentOrderRequestWithBody(endpoint string, contentType string, body io.Reader) (*http.Request, error)
NewCreateFulfillmentOrderRequestWithBody generates requests for CreateFulfillmentOrder with any type of body
func NewCreateFulfillmentReturnRequest ¶
func NewCreateFulfillmentReturnRequest(endpoint string, sellerFulfillmentOrderId string, body CreateFulfillmentReturnJSONRequestBody) (*http.Request, error)
NewCreateFulfillmentReturnRequest calls the generic CreateFulfillmentReturn builder with application/json body
func NewCreateFulfillmentReturnRequestWithBody ¶
func NewCreateFulfillmentReturnRequestWithBody(endpoint 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(endpoint string, featureName string, params *GetFeatureInventoryParams) (*http.Request, error)
NewGetFeatureInventoryRequest generates requests for GetFeatureInventory
func NewGetFeatureSKURequest ¶
func NewGetFeatureSKURequest(endpoint string, featureName string, sellerSku string, params *GetFeatureSKUParams) (*http.Request, error)
NewGetFeatureSKURequest generates requests for GetFeatureSKU
func NewGetFeaturesRequest ¶
func NewGetFeaturesRequest(endpoint string, params *GetFeaturesParams) (*http.Request, error)
NewGetFeaturesRequest generates requests for GetFeatures
func NewGetFulfillmentOrderRequest ¶
func NewGetFulfillmentOrderRequest(endpoint string, sellerFulfillmentOrderId string) (*http.Request, error)
NewGetFulfillmentOrderRequest generates requests for GetFulfillmentOrder
func NewGetFulfillmentPreviewRequest ¶
func NewGetFulfillmentPreviewRequest(endpoint string, body GetFulfillmentPreviewJSONRequestBody) (*http.Request, error)
NewGetFulfillmentPreviewRequest calls the generic GetFulfillmentPreview builder with application/json body
func NewGetFulfillmentPreviewRequestWithBody ¶
func NewGetFulfillmentPreviewRequestWithBody(endpoint string, contentType string, body io.Reader) (*http.Request, error)
NewGetFulfillmentPreviewRequestWithBody generates requests for GetFulfillmentPreview with any type of body
func NewGetPackageTrackingDetailsRequest ¶
func NewGetPackageTrackingDetailsRequest(endpoint string, params *GetPackageTrackingDetailsParams) (*http.Request, error)
NewGetPackageTrackingDetailsRequest generates requests for GetPackageTrackingDetails
func NewListAllFulfillmentOrdersRequest ¶
func NewListAllFulfillmentOrdersRequest(endpoint string, params *ListAllFulfillmentOrdersParams) (*http.Request, error)
NewListAllFulfillmentOrdersRequest generates requests for ListAllFulfillmentOrders
func NewListReturnReasonCodesRequest ¶
func NewListReturnReasonCodesRequest(endpoint string, params *ListReturnReasonCodesParams) (*http.Request, error)
NewListReturnReasonCodesRequest generates requests for ListReturnReasonCodes
func NewUpdateFulfillmentOrderRequest ¶
func NewUpdateFulfillmentOrderRequest(endpoint string, sellerFulfillmentOrderId string, body UpdateFulfillmentOrderJSONRequestBody) (*http.Request, error)
NewUpdateFulfillmentOrderRequest calls the generic UpdateFulfillmentOrder builder with application/json body
func NewUpdateFulfillmentOrderRequestWithBody ¶
func NewUpdateFulfillmentOrderRequestWithBody(endpoint 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 defines model for AdditionalLocationInfo.
const ( AdditionalLocationInfo_AS_INSTRUCTED AdditionalLocationInfo = "AS_INSTRUCTED" AdditionalLocationInfo_CARPORT AdditionalLocationInfo = "CARPORT" AdditionalLocationInfo_CUSTOMER_PICKUP AdditionalLocationInfo = "CUSTOMER_PICKUP" AdditionalLocationInfo_DECK AdditionalLocationInfo = "DECK" AdditionalLocationInfo_DOOR_PERSON AdditionalLocationInfo = "DOOR_PERSON" AdditionalLocationInfo_FRONT_DESK AdditionalLocationInfo = "FRONT_DESK" AdditionalLocationInfo_FRONT_DOOR AdditionalLocationInfo = "FRONT_DOOR" AdditionalLocationInfo_GARAGE AdditionalLocationInfo = "GARAGE" AdditionalLocationInfo_GUARD AdditionalLocationInfo = "GUARD" AdditionalLocationInfo_MAILBOX AdditionalLocationInfo = "MAILBOX" AdditionalLocationInfo_MAIL_ROOM AdditionalLocationInfo = "MAIL_ROOM" AdditionalLocationInfo_MAIL_SLOT AdditionalLocationInfo = "MAIL_SLOT" AdditionalLocationInfo_MC_BOY AdditionalLocationInfo = "MC_BOY" AdditionalLocationInfo_MC_GIRL AdditionalLocationInfo = "MC_GIRL" AdditionalLocationInfo_MC_MAN AdditionalLocationInfo = "MC_MAN" AdditionalLocationInfo_MC_WOMAN AdditionalLocationInfo = "MC_WOMAN" AdditionalLocationInfo_NEIGHBOR AdditionalLocationInfo = "NEIGHBOR" AdditionalLocationInfo_OFFICE AdditionalLocationInfo = "OFFICE" AdditionalLocationInfo_OUTBUILDING AdditionalLocationInfo = "OUTBUILDING" AdditionalLocationInfo_PATIO AdditionalLocationInfo = "PATIO" AdditionalLocationInfo_PORCH AdditionalLocationInfo = "PORCH" AdditionalLocationInfo_REAR_DOOR AdditionalLocationInfo = "REAR_DOOR" AdditionalLocationInfo_RECEIVER AdditionalLocationInfo = "RECEIVER" AdditionalLocationInfo_RECEPTIONIST AdditionalLocationInfo = "RECEPTIONIST" AdditionalLocationInfo_SECURE_LOCATION AdditionalLocationInfo = "SECURE_LOCATION" AdditionalLocationInfo_SIDE_DOOR AdditionalLocationInfo = "SIDE_DOOR" )
List of AdditionalLocationInfo
type Address ¶
type Address struct { // The first line of the address. AddressLine1 string `json:"addressLine1"` // Additional address information, if required. AddressLine2 *string `json:"addressLine2,omitempty"` // Additional address information, if required. AddressLine3 *string `json:"addressLine3,omitempty"` // The city where the person, business, or institution is located. City *string `json:"city,omitempty"` // The two digit country code. In ISO 3166-1 alpha-2 format. CountryCode string `json:"countryCode"` // The district or county where the person, business, or institution is located. DistrictOrCounty string `json:"districtOrCounty"` // The name of the person, business or institution at the address. Name string `json:"name"` // The phone number of the person, business, or institution located at the address. Phone *string `json:"phone,omitempty"` // The postal code of the address. PostalCode *string `json:"postalCode,omitempty"` // The state or region where the person, business or institution is located. StateOrRegion *string `json:"stateOrRegion,omitempty"` }
Address defines model for Address.
type CODSettings ¶
type CODSettings struct { // An amount of money, including units in the form of currency. CodCharge *Money `json:"codCharge,omitempty"` // An amount of money, including units in the form of currency. CodChargeTax *Money `json:"codChargeTax,omitempty"` // When true, this fulfillment order requires a COD (Cash On Delivery) payment. IsCodRequired bool `json:"isCodRequired"` // An amount of money, including units in the form of currency. ShippingCharge *Money `json:"shippingCharge,omitempty"` // An amount of money, including units in the form of currency. ShippingChargeTax *Money `json:"shippingChargeTax,omitempty"` }
CODSettings defines model for CODSettings.
type CancelFulfillmentOrderResp ¶
type CancelFulfillmentOrderResp struct { Body []byte HTTPResponse *http.Response Model *CancelFulfillmentOrderResponse }
func ParseCancelFulfillmentOrderResp ¶
func ParseCancelFulfillmentOrderResp(rsp *http.Response) (*CancelFulfillmentOrderResp, error)
ParseCancelFulfillmentOrderResp parses an HTTP response from a CancelFulfillmentOrderWithResponse call
func (CancelFulfillmentOrderResp) Status ¶
func (r CancelFulfillmentOrderResp) Status() string
Status returns HTTPResponse.Status
func (CancelFulfillmentOrderResp) StatusCode ¶
func (r CancelFulfillmentOrderResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CancelFulfillmentOrderResponse ¶
type CancelFulfillmentOrderResponse struct { // A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` }
CancelFulfillmentOrderResponse defines model for CancelFulfillmentOrderResponse.
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. Endpoint string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A callback for modifying requests which are generated before sending over // the network. RequestBefore RequestBeforeFn // A callback for modifying response which are generated before sending over // the network. ResponseAfter ResponseAfterFn // 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(endpoint string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CancelFulfillmentOrder ¶
func (*Client) CreateFulfillmentOrder ¶
func (*Client) CreateFulfillmentOrderWithBody ¶
func (*Client) CreateFulfillmentReturn ¶
func (*Client) CreateFulfillmentReturnWithBody ¶
func (*Client) GetFeatureInventory ¶
func (*Client) GetFeatureSKU ¶
func (*Client) GetFeatures ¶
func (*Client) GetFulfillmentOrder ¶
func (*Client) GetFulfillmentPreview ¶
func (*Client) GetFulfillmentPreviewWithBody ¶
func (*Client) GetPackageTrackingDetails ¶
func (*Client) ListAllFulfillmentOrders ¶
func (*Client) ListReturnReasonCodes ¶
func (*Client) UpdateFulfillmentOrder ¶
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) // CreateFulfillmentOrder 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) // GetFulfillmentPreview 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) // UpdateFulfillmentOrder 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) // CreateFulfillmentReturn 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) // 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 ¶
ClientOption allows setting custom parameters during construction
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 WithRequestBefore ¶
func WithRequestBefore(fn RequestBeforeFn) ClientOption
WithRequestBefore allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
func WithResponseAfter ¶
func WithResponseAfter(fn ResponseAfterFn) ClientOption
WithResponseAfter allows setting up a callback function, which will be called right after get response the request. This can be used to log.
func WithUserAgent ¶
func WithUserAgent(userAgent string) ClientOption
WithUserAgent set up useragent add user agent to every request automatically
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(endpoint 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 *CancelFulfillmentOrderResponse
func (*ClientWithResponses) CreateFulfillmentOrderWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateFulfillmentOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateFulfillmentOrderResp, error)
CreateFulfillmentOrderWithBodyWithResponse request with arbitrary body returning *CreateFulfillmentOrderResponse
func (*ClientWithResponses) CreateFulfillmentOrderWithResponse ¶
func (c *ClientWithResponses) CreateFulfillmentOrderWithResponse(ctx context.Context, body CreateFulfillmentOrderJSONRequestBody) (*CreateFulfillmentOrderResp, error)
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 *CreateFulfillmentReturnResponse
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 *GetFeatureInventoryResponse
func (*ClientWithResponses) GetFeatureSKUWithResponse ¶
func (c *ClientWithResponses) GetFeatureSKUWithResponse(ctx context.Context, featureName string, sellerSku string, params *GetFeatureSKUParams) (*GetFeatureSKUResp, error)
GetFeatureSKUWithResponse request returning *GetFeatureSKUResponse
func (*ClientWithResponses) GetFeaturesWithResponse ¶
func (c *ClientWithResponses) GetFeaturesWithResponse(ctx context.Context, params *GetFeaturesParams) (*GetFeaturesResp, error)
GetFeaturesWithResponse request returning *GetFeaturesResponse
func (*ClientWithResponses) GetFulfillmentOrderWithResponse ¶
func (c *ClientWithResponses) GetFulfillmentOrderWithResponse(ctx context.Context, sellerFulfillmentOrderId string) (*GetFulfillmentOrderResp, error)
GetFulfillmentOrderWithResponse request returning *GetFulfillmentOrderResponse
func (*ClientWithResponses) GetFulfillmentPreviewWithBodyWithResponse ¶
func (c *ClientWithResponses) GetFulfillmentPreviewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*GetFulfillmentPreviewResp, error)
GetFulfillmentPreviewWithBodyWithResponse request with arbitrary body returning *GetFulfillmentPreviewResponse
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 *GetPackageTrackingDetailsResponse
func (*ClientWithResponses) ListAllFulfillmentOrdersWithResponse ¶
func (c *ClientWithResponses) ListAllFulfillmentOrdersWithResponse(ctx context.Context, params *ListAllFulfillmentOrdersParams) (*ListAllFulfillmentOrdersResp, error)
ListAllFulfillmentOrdersWithResponse request returning *ListAllFulfillmentOrdersResponse
func (*ClientWithResponses) ListReturnReasonCodesWithResponse ¶
func (c *ClientWithResponses) ListReturnReasonCodesWithResponse(ctx context.Context, params *ListReturnReasonCodesParams) (*ListReturnReasonCodesResp, error)
ListReturnReasonCodesWithResponse request returning *ListReturnReasonCodesResponse
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 *UpdateFulfillmentOrderResponse
func (*ClientWithResponses) UpdateFulfillmentOrderWithResponse ¶
func (c *ClientWithResponses) UpdateFulfillmentOrderWithResponse(ctx context.Context, sellerFulfillmentOrderId string, body UpdateFulfillmentOrderJSONRequestBody) (*UpdateFulfillmentOrderResp, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetFeatures request GetFeaturesWithResponse(ctx context.Context, params *GetFeaturesParams) (*GetFeaturesResp, error) // GetFeatureInventory request GetFeatureInventoryWithResponse(ctx context.Context, featureName string, params *GetFeatureInventoryParams) (*GetFeatureInventoryResp, error) // GetFeatureSKU request GetFeatureSKUWithResponse(ctx context.Context, featureName string, sellerSku string, params *GetFeatureSKUParams) (*GetFeatureSKUResp, error) // ListAllFulfillmentOrders request ListAllFulfillmentOrdersWithResponse(ctx context.Context, params *ListAllFulfillmentOrdersParams) (*ListAllFulfillmentOrdersResp, error) // CreateFulfillmentOrder request with any body CreateFulfillmentOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateFulfillmentOrderResp, error) CreateFulfillmentOrderWithResponse(ctx context.Context, body CreateFulfillmentOrderJSONRequestBody) (*CreateFulfillmentOrderResp, error) // GetFulfillmentPreview request with any body GetFulfillmentPreviewWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*GetFulfillmentPreviewResp, error) GetFulfillmentPreviewWithResponse(ctx context.Context, body GetFulfillmentPreviewJSONRequestBody) (*GetFulfillmentPreviewResp, error) // GetFulfillmentOrder request GetFulfillmentOrderWithResponse(ctx context.Context, sellerFulfillmentOrderId string) (*GetFulfillmentOrderResp, error) // UpdateFulfillmentOrder 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) // CancelFulfillmentOrder request CancelFulfillmentOrderWithResponse(ctx context.Context, sellerFulfillmentOrderId string) (*CancelFulfillmentOrderResp, error) // CreateFulfillmentReturn 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) // ListReturnReasonCodes request ListReturnReasonCodesWithResponse(ctx context.Context, params *ListReturnReasonCodesParams) (*ListReturnReasonCodesResp, error) // GetPackageTrackingDetails 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 { // Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip. DisplayableComment *string `json:"displayableComment,omitempty"` // Amazon's fulfillment network SKU of the item. FulfillmentNetworkSku *string `json:"fulfillmentNetworkSku,omitempty"` // A message to the gift recipient, if applicable. GiftMessage *string `json:"giftMessage,omitempty"` // An amount of money, including units in the form of currency. PerUnitDeclaredValue *Money `json:"perUnitDeclaredValue,omitempty"` // An amount of money, including units in the form of currency. PerUnitPrice *Money `json:"perUnitPrice,omitempty"` // An amount of money, including units in the form of currency. PerUnitTax *Money `json:"perUnitTax,omitempty"` // The item quantity. Quantity Quantity `json:"quantity"` // 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"` // The seller SKU of the item. SellerSku string `json:"sellerSku"` }
CreateFulfillmentOrderItem defines model for CreateFulfillmentOrderItem.
type CreateFulfillmentOrderItemList ¶
type CreateFulfillmentOrderItemList []CreateFulfillmentOrderItem
CreateFulfillmentOrderItemList defines model for CreateFulfillmentOrderItemList.
type CreateFulfillmentOrderJSONBody ¶
type CreateFulfillmentOrderJSONBody CreateFulfillmentOrderRequest
CreateFulfillmentOrderJSONBody defines parameters for CreateFulfillmentOrder.
type CreateFulfillmentOrderJSONRequestBody ¶
type CreateFulfillmentOrderJSONRequestBody CreateFulfillmentOrderJSONBody
CreateFulfillmentOrderRequestBody defines body for CreateFulfillmentOrder for application/json ContentType.
type CreateFulfillmentOrderRequest ¶
type CreateFulfillmentOrderRequest struct { // The COD (Cash On Delivery) charges that you associate with a COD fulfillment order. CodSettings *CODSettings `json:"codSettings,omitempty"` // The time range within which a Scheduled Delivery fulfillment order should be delivered. DeliveryWindow *DeliveryWindow `json:"deliveryWindow,omitempty"` // A physical address. DestinationAddress Address `json:"destinationAddress"` // Order-specific text that appears in recipient-facing materials such as the outbound shipment packing slip. DisplayableOrderComment string `json:"displayableOrderComment"` DisplayableOrderDate Timestamp `json:"displayableOrderDate"` // 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"` // A list of features and their fulfillment policies to apply to the order. FeatureConstraints *[]FeatureSettings `json:"featureConstraints,omitempty"` // Specifies whether the fulfillment order should ship now or have an order hold put on it. FulfillmentAction *FulfillmentAction `json:"fulfillmentAction,omitempty"` // The FulfillmentPolicy value specified when you submitted the createFulfillmentOrder operation. FulfillmentPolicy *FulfillmentPolicy `json:"fulfillmentPolicy,omitempty"` // An array of item information for creating a fulfillment order. Items CreateFulfillmentOrderItemList `json:"items"` // The marketplace the fulfillment order is placed against. MarketplaceId *string `json:"marketplaceId,omitempty"` // 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"` // 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"` // 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"` // The shipping method used for the fulfillment order. ShippingSpeedCategory ShippingSpeedCategory `json:"shippingSpeedCategory"` }
CreateFulfillmentOrderRequest defines model for CreateFulfillmentOrderRequest.
type CreateFulfillmentOrderResp ¶
type CreateFulfillmentOrderResp struct { Body []byte HTTPResponse *http.Response Model *CreateFulfillmentOrderResponse }
func ParseCreateFulfillmentOrderResp ¶
func ParseCreateFulfillmentOrderResp(rsp *http.Response) (*CreateFulfillmentOrderResp, error)
ParseCreateFulfillmentOrderResp parses an HTTP response from a CreateFulfillmentOrderWithResponse call
func (CreateFulfillmentOrderResp) Status ¶
func (r CreateFulfillmentOrderResp) Status() string
Status returns HTTPResponse.Status
func (CreateFulfillmentOrderResp) StatusCode ¶
func (r CreateFulfillmentOrderResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateFulfillmentOrderResponse ¶
type CreateFulfillmentOrderResponse struct { // A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` }
CreateFulfillmentOrderResponse defines model for CreateFulfillmentOrderResponse.
type CreateFulfillmentReturnJSONBody ¶
type CreateFulfillmentReturnJSONBody CreateFulfillmentReturnRequest
CreateFulfillmentReturnJSONBody defines parameters for CreateFulfillmentReturn.
type CreateFulfillmentReturnJSONRequestBody ¶
type CreateFulfillmentReturnJSONRequestBody CreateFulfillmentReturnJSONBody
CreateFulfillmentReturnRequestBody defines body for CreateFulfillmentReturn for application/json ContentType.
type CreateFulfillmentReturnRequest ¶
type CreateFulfillmentReturnRequest struct { // An array of items to be returned. Items CreateReturnItemList `json:"items"` }
CreateFulfillmentReturnRequest defines model for CreateFulfillmentReturnRequest.
type CreateFulfillmentReturnResp ¶
type CreateFulfillmentReturnResp struct { Body []byte HTTPResponse *http.Response Model *CreateFulfillmentReturnResponse }
func ParseCreateFulfillmentReturnResp ¶
func ParseCreateFulfillmentReturnResp(rsp *http.Response) (*CreateFulfillmentReturnResp, error)
ParseCreateFulfillmentReturnResp parses an HTTP response from a CreateFulfillmentReturnWithResponse call
func (CreateFulfillmentReturnResp) Status ¶
func (r CreateFulfillmentReturnResp) Status() string
Status returns HTTPResponse.Status
func (CreateFulfillmentReturnResp) StatusCode ¶
func (r CreateFulfillmentReturnResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateFulfillmentReturnResponse ¶
type CreateFulfillmentReturnResponse struct { // A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` Payload *CreateFulfillmentReturnResult `json:"payload,omitempty"` }
CreateFulfillmentReturnResponse defines model for CreateFulfillmentReturnResponse.
type CreateFulfillmentReturnResult ¶
type CreateFulfillmentReturnResult struct { // An array of invalid return item information. InvalidReturnItems *InvalidReturnItemList `json:"invalidReturnItems,omitempty"` // An array of return authorization information. ReturnAuthorizations *ReturnAuthorizationList `json:"returnAuthorizations,omitempty"` // 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 { // The identifier for the shipment that is associated with the return item. AmazonShipmentId string `json:"amazonShipmentId"` // An optional comment about the return item. ReturnComment *string `json:"returnComment,omitempty"` // The return reason code assigned to the return item by the seller. ReturnReasonCode string `json:"returnReasonCode"` // The identifier assigned to the item by the seller when the fulfillment order was created. SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"` // An identifier assigned by the seller to the return item. SellerReturnItemId string `json:"sellerReturnItemId"` }
CreateReturnItem defines model for CreateReturnItem.
type CreateReturnItemList ¶
type CreateReturnItemList []CreateReturnItem
CreateReturnItemList defines model for CreateReturnItemList.
type CurrentStatus ¶
type CurrentStatus string
CurrentStatus defines model for CurrentStatus.
const ( CurrentStatus_AVAILABLE_FOR_PICKUP CurrentStatus = "AVAILABLE_FOR_PICKUP" CurrentStatus_CUSTOMER_ACTION CurrentStatus = "CUSTOMER_ACTION" CurrentStatus_DELAYED CurrentStatus = "DELAYED" CurrentStatus_DELIVERED CurrentStatus = "DELIVERED" CurrentStatus_IN_TRANSIT CurrentStatus = "IN_TRANSIT" CurrentStatus_RETURNED CurrentStatus = "RETURNED" CurrentStatus_RETURNING CurrentStatus = "RETURNING" CurrentStatus_UNDELIVERABLE CurrentStatus = "UNDELIVERABLE" )
List of CurrentStatus
type DeliveryWindow ¶
type DeliveryWindow struct { EndDate Timestamp `json:"endDate"` StartDate Timestamp `json:"startDate"` }
DeliveryWindow defines model for DeliveryWindow.
type DeliveryWindowList ¶
type DeliveryWindowList []DeliveryWindow
DeliveryWindowList defines model for DeliveryWindowList.
type Error ¶
type Error struct { // An error code that identifies the type of error that occurred. Code string `json:"code"` // Additional details that can help the caller understand or fix the issue. Details *string `json:"details,omitempty"` // A message that describes the error condition. Message string `json:"message"` }
Error defines model for Error.
type EventCode ¶
type EventCode string
EventCode defines model for EventCode.
const ( EventCode_EVENT_101 EventCode = "EVENT_101" EventCode_EVENT_102 EventCode = "EVENT_102" EventCode_EVENT_201 EventCode = "EVENT_201" EventCode_EVENT_202 EventCode = "EVENT_202" EventCode_EVENT_203 EventCode = "EVENT_203" EventCode_EVENT_204 EventCode = "EVENT_204" EventCode_EVENT_205 EventCode = "EVENT_205" EventCode_EVENT_206 EventCode = "EVENT_206" EventCode_EVENT_301 EventCode = "EVENT_301" EventCode_EVENT_302 EventCode = "EVENT_302" EventCode_EVENT_304 EventCode = "EVENT_304" EventCode_EVENT_306 EventCode = "EVENT_306" EventCode_EVENT_307 EventCode = "EVENT_307" EventCode_EVENT_308 EventCode = "EVENT_308" EventCode_EVENT_309 EventCode = "EVENT_309" EventCode_EVENT_401 EventCode = "EVENT_401" EventCode_EVENT_402 EventCode = "EVENT_402" EventCode_EVENT_403 EventCode = "EVENT_403" EventCode_EVENT_404 EventCode = "EVENT_404" EventCode_EVENT_405 EventCode = "EVENT_405" EventCode_EVENT_406 EventCode = "EVENT_406" EventCode_EVENT_407 EventCode = "EVENT_407" EventCode_EVENT_408 EventCode = "EVENT_408" EventCode_EVENT_409 EventCode = "EVENT_409" EventCode_EVENT_411 EventCode = "EVENT_411" EventCode_EVENT_412 EventCode = "EVENT_412" EventCode_EVENT_413 EventCode = "EVENT_413" EventCode_EVENT_414 EventCode = "EVENT_414" EventCode_EVENT_415 EventCode = "EVENT_415" EventCode_EVENT_416 EventCode = "EVENT_416" EventCode_EVENT_417 EventCode = "EVENT_417" EventCode_EVENT_418 EventCode = "EVENT_418" EventCode_EVENT_419 EventCode = "EVENT_419" )
List of EventCode
type Feature ¶
type Feature struct { // The feature description. FeatureDescription string `json:"featureDescription"` // The feature name. FeatureName string `json:"featureName"` // When true, indicates that the seller is eligible to use the feature. SellerEligible *bool `json:"sellerEligible,omitempty"` }
Feature defines model for Feature.
type FeatureSettings ¶
type FeatureSettings struct { // Specifies the policy to use when fulfilling an order. FeatureFulfillmentPolicy *string `json:"featureFulfillmentPolicy,omitempty"` // The name of the feature. FeatureName *string `json:"featureName,omitempty"` }
FeatureSettings defines model for FeatureSettings.
type FeatureSku ¶
type FeatureSku struct { // The Amazon Standard Identification Number (ASIN) of the item. Asin *string `json:"asin,omitempty"` // The unique SKU used by Amazon's fulfillment network. FnSku *string `json:"fnSku,omitempty"` // Other seller SKUs that are shared across the same inventory. OverlappingSkus *[]string `json:"overlappingSkus,omitempty"` // 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"` // The number of SKUs available for this service. SkuCount *float32 `json:"skuCount,omitempty"` }
FeatureSku defines model for FeatureSku.
type Fee ¶
type Fee struct { // An amount of money, including units in the form of currency. Amount Money `json:"amount"` // The type of fee. Name string `json:"name"` }
Fee defines model for Fee.
type FulfillmentAction ¶
type FulfillmentAction string
FulfillmentAction defines model for FulfillmentAction.
const ( FulfillmentAction_Hold FulfillmentAction = "Hold" FulfillmentAction_Ship FulfillmentAction = "Ship" )
List of FulfillmentAction
type FulfillmentOrder ¶
type FulfillmentOrder struct { // The COD (Cash On Delivery) charges that you associate with a COD fulfillment order. CodSettings *CODSettings `json:"codSettings,omitempty"` // The time range within which a Scheduled Delivery fulfillment order should be delivered. DeliveryWindow *DeliveryWindow `json:"deliveryWindow,omitempty"` // A physical address. DestinationAddress Address `json:"destinationAddress"` // 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"` // 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"` // A list of features and their fulfillment policies to apply to the order. FeatureConstraints *[]FeatureSettings `json:"featureConstraints,omitempty"` // Specifies whether the fulfillment order should ship now or have an order hold put on it. FulfillmentAction *FulfillmentAction `json:"fulfillmentAction,omitempty"` // The current status of the fulfillment order. FulfillmentOrderStatus FulfillmentOrderStatus `json:"fulfillmentOrderStatus"` // The FulfillmentPolicy value specified when you submitted the createFulfillmentOrder operation. FulfillmentPolicy *FulfillmentPolicy `json:"fulfillmentPolicy,omitempty"` // The identifier for the marketplace the fulfillment order is placed against. MarketplaceId string `json:"marketplaceId"` // 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"` // The fulfillment order identifier submitted with the createFulfillmentOrder operation. SellerFulfillmentOrderId string `json:"sellerFulfillmentOrderId"` // The shipping method used for the fulfillment order. ShippingSpeedCategory ShippingSpeedCategory `json:"shippingSpeedCategory"` StatusUpdatedDate Timestamp `json:"statusUpdatedDate"` }
FulfillmentOrder defines model for FulfillmentOrder.
type FulfillmentOrderItem ¶
type FulfillmentOrderItem struct { // The item quantity. CancelledQuantity Quantity `json:"cancelledQuantity"` // 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"` // Amazon's fulfillment network SKU of the item. FulfillmentNetworkSku *string `json:"fulfillmentNetworkSku,omitempty"` // A message to the gift recipient, if applicable. GiftMessage *string `json:"giftMessage,omitempty"` // Indicates whether the item is sellable or unsellable. OrderItemDisposition *string `json:"orderItemDisposition,omitempty"` // An amount of money, including units in the form of currency. PerUnitDeclaredValue *Money `json:"perUnitDeclaredValue,omitempty"` // An amount of money, including units in the form of currency. PerUnitPrice *Money `json:"perUnitPrice,omitempty"` // An amount of money, including units in the form of currency. PerUnitTax *Money `json:"perUnitTax,omitempty"` // The item quantity. Quantity Quantity `json:"quantity"` // A fulfillment order item identifier submitted with a call to the createFulfillmentOrder operation. SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"` // The seller SKU of the item. SellerSku string `json:"sellerSku"` // The item quantity. UnfulfillableQuantity Quantity `json:"unfulfillableQuantity"` }
FulfillmentOrderItem defines model for FulfillmentOrderItem.
type FulfillmentOrderItemList ¶
type FulfillmentOrderItemList []FulfillmentOrderItem
FulfillmentOrderItemList defines model for FulfillmentOrderItemList.
type FulfillmentOrderStatus ¶
type FulfillmentOrderStatus string
FulfillmentOrderStatus defines model for FulfillmentOrderStatus.
const ( FulfillmentOrderStatus_Cancelled FulfillmentOrderStatus = "Cancelled" FulfillmentOrderStatus_Complete FulfillmentOrderStatus = "Complete" FulfillmentOrderStatus_CompletePartialled FulfillmentOrderStatus = "CompletePartialled" FulfillmentOrderStatus_Invalid FulfillmentOrderStatus = "Invalid" FulfillmentOrderStatus_New FulfillmentOrderStatus = "New" FulfillmentOrderStatus_Planning FulfillmentOrderStatus = "Planning" FulfillmentOrderStatus_Processing FulfillmentOrderStatus = "Processing" FulfillmentOrderStatus_Received FulfillmentOrderStatus = "Received" FulfillmentOrderStatus_Unfulfillable FulfillmentOrderStatus = "Unfulfillable" )
List of FulfillmentOrderStatus
type FulfillmentPolicy ¶
type FulfillmentPolicy string
FulfillmentPolicy defines model for FulfillmentPolicy.
const ( FulfillmentPolicy_FillAll FulfillmentPolicy = "FillAll" FulfillmentPolicy_FillAllAvailable FulfillmentPolicy = "FillAllAvailable" FulfillmentPolicy_FillOrKill FulfillmentPolicy = "FillOrKill" )
List of FulfillmentPolicy
type FulfillmentPreview ¶
type FulfillmentPreview struct { // An array of fee type and cost pairs. EstimatedFees *FeeList `json:"estimatedFees,omitempty"` // The weight. EstimatedShippingWeight *Weight `json:"estimatedShippingWeight,omitempty"` // A list of features and their fulfillment policies to apply to the order. FeatureConstraints *[]FeatureSettings `json:"featureConstraints,omitempty"` // An array of fulfillment preview shipment information. FulfillmentPreviewShipments *FulfillmentPreviewShipmentList `json:"fulfillmentPreviewShipments,omitempty"` // When true, this fulfillment order preview is for COD (Cash On Delivery). IsCODCapable bool `json:"isCODCapable"` // When true, this fulfillment order preview is fulfillable. IsFulfillable bool `json:"isFulfillable"` // The marketplace the fulfillment order is placed against. MarketplaceId string `json:"marketplaceId"` OrderUnfulfillableReasons *StringList `json:"orderUnfulfillableReasons,omitempty"` // Delivery information for a scheduled delivery. ScheduledDeliveryInfo *ScheduledDeliveryInfo `json:"scheduledDeliveryInfo,omitempty"` // The shipping method used for the fulfillment order. ShippingSpeedCategory ShippingSpeedCategory `json:"shippingSpeedCategory"` // An array of unfulfillable preview item information. UnfulfillablePreviewItems *UnfulfillablePreviewItemList `json:"unfulfillablePreviewItems,omitempty"` }
FulfillmentPreview defines model for FulfillmentPreview.
type FulfillmentPreviewItem ¶
type FulfillmentPreviewItem struct { // The weight. EstimatedShippingWeight *Weight `json:"estimatedShippingWeight,omitempty"` // The item quantity. Quantity Quantity `json:"quantity"` // A fulfillment order item identifier that the seller created with a call to the createFulfillmentOrder operation. SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"` // The seller SKU of the item. SellerSku string `json:"sellerSku"` // The method used to calculate the estimated shipping weight. ShippingWeightCalculationMethod *string `json:"shippingWeightCalculationMethod,omitempty"` }
FulfillmentPreviewItem defines model for FulfillmentPreviewItem.
type FulfillmentPreviewItemList ¶
type FulfillmentPreviewItemList []FulfillmentPreviewItem
FulfillmentPreviewItemList defines model for FulfillmentPreviewItemList.
type FulfillmentPreviewList ¶
type FulfillmentPreviewList []FulfillmentPreview
FulfillmentPreviewList defines model for FulfillmentPreviewList.
type FulfillmentPreviewShipment ¶
type FulfillmentPreviewShipment struct { EarliestArrivalDate *Timestamp `json:"earliestArrivalDate,omitempty"` EarliestShipDate *Timestamp `json:"earliestShipDate,omitempty"` // An array of fulfillment preview item information. FulfillmentPreviewItems FulfillmentPreviewItemList `json:"fulfillmentPreviewItems"` LatestArrivalDate *Timestamp `json:"latestArrivalDate,omitempty"` LatestShipDate *Timestamp `json:"latestShipDate,omitempty"` // Provides additional insight into the shipment timeline when exact delivery dates are not able to be precomputed. ShippingNotes *[]string `json:"shippingNotes,omitempty"` }
FulfillmentPreviewShipment defines model for FulfillmentPreviewShipment.
type FulfillmentPreviewShipmentList ¶
type FulfillmentPreviewShipmentList []FulfillmentPreviewShipment
FulfillmentPreviewShipmentList defines model for FulfillmentPreviewShipmentList.
type FulfillmentReturnItemStatus ¶
type FulfillmentReturnItemStatus string
FulfillmentReturnItemStatus defines model for FulfillmentReturnItemStatus.
const ( FulfillmentReturnItemStatus_New FulfillmentReturnItemStatus = "New" FulfillmentReturnItemStatus_Processed FulfillmentReturnItemStatus = "Processed" )
List of FulfillmentReturnItemStatus
type FulfillmentShipment ¶
type FulfillmentShipment struct { // A shipment identifier assigned by Amazon. AmazonShipmentId string `json:"amazonShipmentId"` EstimatedArrivalDate *Timestamp `json:"estimatedArrivalDate,omitempty"` // An identifier for the fulfillment center that the shipment will be sent from. FulfillmentCenterId string `json:"fulfillmentCenterId"` // An array of fulfillment shipment item information. FulfillmentShipmentItem FulfillmentShipmentItemList `json:"fulfillmentShipmentItem"` // An array of fulfillment shipment package information. FulfillmentShipmentPackage *FulfillmentShipmentPackageList `json:"fulfillmentShipmentPackage,omitempty"` // The current status of the shipment. FulfillmentShipmentStatus string `json:"fulfillmentShipmentStatus"` ShippingDate *Timestamp `json:"shippingDate,omitempty"` // Provides additional insight into shipment timeline. Primairly used to communicate that actual delivery dates aren't available. ShippingNotes *[]string `json:"shippingNotes,omitempty"` }
FulfillmentShipment defines model for FulfillmentShipment.
type FulfillmentShipmentItem ¶
type FulfillmentShipmentItem struct { // An identifier for the package that contains the item quantity. PackageNumber *int32 `json:"packageNumber,omitempty"` // The item quantity. Quantity Quantity `json:"quantity"` // The fulfillment order item identifier that the seller created and submitted with a call to the createFulfillmentOrder operation. SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"` // The seller SKU of the item. SellerSku string `json:"sellerSku"` // The serial number of the shipped item. SerialNumber *string `json:"serialNumber,omitempty"` }
FulfillmentShipmentItem defines model for FulfillmentShipmentItem.
type FulfillmentShipmentItemList ¶
type FulfillmentShipmentItemList []FulfillmentShipmentItem
FulfillmentShipmentItemList defines model for FulfillmentShipmentItemList.
type FulfillmentShipmentList ¶
type FulfillmentShipmentList []FulfillmentShipment
FulfillmentShipmentList defines model for FulfillmentShipmentList.
type FulfillmentShipmentPackage ¶
type FulfillmentShipmentPackage struct { // Identifies the carrier who will deliver the shipment to the recipient. CarrierCode string `json:"carrierCode"` EstimatedArrivalDate *Timestamp `json:"estimatedArrivalDate,omitempty"` // Identifies a package in a shipment. PackageNumber int32 `json:"packageNumber"` // The tracking number, if provided, can be used to obtain tracking and delivery information. TrackingNumber *string `json:"trackingNumber,omitempty"` }
FulfillmentShipmentPackage defines model for FulfillmentShipmentPackage.
type FulfillmentShipmentPackageList ¶
type FulfillmentShipmentPackageList []FulfillmentShipmentPackage
FulfillmentShipmentPackageList defines model for FulfillmentShipmentPackageList.
type GetFeatureInventoryParams ¶
type GetFeatureInventoryParams struct { // The marketplace for which to return a list of the inventory that is eligible for the specified feature. MarketplaceId string `json:"marketplaceId"` // 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 `json:"nextToken,omitempty"` }
GetFeatureInventoryParams defines parameters for GetFeatureInventory.
type GetFeatureInventoryResp ¶
type GetFeatureInventoryResp struct { Body []byte HTTPResponse *http.Response Model *GetFeatureInventoryResponse }
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 { // A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // The payload for the getEligibileInventory operation. Payload *GetFeatureInventoryResult `json:"payload,omitempty"` }
GetFeatureInventoryResponse defines model for GetFeatureInventoryResponse.
type GetFeatureInventoryResult ¶
type GetFeatureInventoryResult struct { // The name of the feature. FeatureName string `json:"featureName"` // An array of SKUs eligible for this feature and the quantity available. FeatureSkus *[]FeatureSku `json:"featureSkus,omitempty"` // The requested marketplace. MarketplaceId string `json:"marketplaceId"` // 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 defines model for GetFeatureInventoryResult.
type GetFeatureSKUParams ¶
type GetFeatureSKUParams struct { // The marketplace for which to return the count. MarketplaceId string `json:"marketplaceId"` }
GetFeatureSKUParams defines parameters for GetFeatureSKU.
type GetFeatureSKUResp ¶
type GetFeatureSKUResp struct { Body []byte HTTPResponse *http.Response Model *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 { // A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // The payload for the getFeatureSKU operation. Payload *GetFeatureSkuResult `json:"payload,omitempty"` }
GetFeatureSkuResponse defines model for GetFeatureSkuResponse.
type GetFeatureSkuResult ¶
type GetFeatureSkuResult struct { // The name of the feature. FeatureName string `json:"featureName"` // 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"` // When true, the seller SKU is eligible for the requested feature. IsEligible bool `json:"isEligible"` // The requested marketplace. MarketplaceId string `json:"marketplaceId"` // 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 defines model for GetFeatureSkuResult.
type GetFeaturesParams ¶
type GetFeaturesParams struct { // The marketplace for which to return the list of features. MarketplaceId string `json:"marketplaceId"` }
GetFeaturesParams defines parameters for GetFeatures.
type GetFeaturesResp ¶
type GetFeaturesResp struct { Body []byte HTTPResponse *http.Response Model *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 { // A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // The payload for the getFeatures operation. Payload *GetFeaturesResult `json:"payload,omitempty"` }
GetFeaturesResponse defines model for GetFeaturesResponse.
type GetFeaturesResult ¶
type GetFeaturesResult struct { // An array of features. Features Features `json:"features"` }
GetFeaturesResult defines model for GetFeaturesResult.
type GetFulfillmentOrderResp ¶
type GetFulfillmentOrderResp struct { Body []byte HTTPResponse *http.Response Model *GetFulfillmentOrderResponse }
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 { // A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` Payload *GetFulfillmentOrderResult `json:"payload,omitempty"` }
GetFulfillmentOrderResponse defines model for GetFulfillmentOrderResponse.
type GetFulfillmentOrderResult ¶
type GetFulfillmentOrderResult struct { // General information about a fulfillment order, including its status. FulfillmentOrder FulfillmentOrder `json:"fulfillmentOrder"` // An array of fulfillment order item information. FulfillmentOrderItems FulfillmentOrderItemList `json:"fulfillmentOrderItems"` // An array of fulfillment shipment information. FulfillmentShipments *FulfillmentShipmentList `json:"fulfillmentShipments,omitempty"` // An array of return authorization information. ReturnAuthorizations ReturnAuthorizationList `json:"returnAuthorizations"` // 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 { // An amount of money, including units in the form of currency. PerUnitDeclaredValue *Money `json:"perUnitDeclaredValue,omitempty"` // The item quantity. Quantity Quantity `json:"quantity"` // A fulfillment order item identifier that the seller creates to track items in the fulfillment preview. SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"` // The seller SKU of the item. SellerSku string `json:"sellerSku"` }
GetFulfillmentPreviewItem defines model for GetFulfillmentPreviewItem.
type GetFulfillmentPreviewItemList ¶
type GetFulfillmentPreviewItemList []GetFulfillmentPreviewItem
GetFulfillmentPreviewItemList defines model for GetFulfillmentPreviewItemList.
type GetFulfillmentPreviewJSONBody ¶
type GetFulfillmentPreviewJSONBody GetFulfillmentPreviewRequest
GetFulfillmentPreviewJSONBody defines parameters for GetFulfillmentPreview.
type GetFulfillmentPreviewJSONRequestBody ¶
type GetFulfillmentPreviewJSONRequestBody GetFulfillmentPreviewJSONBody
GetFulfillmentPreviewRequestBody defines body for GetFulfillmentPreview for application/json ContentType.
type GetFulfillmentPreviewRequest ¶
type GetFulfillmentPreviewRequest struct { // A physical address. Address Address `json:"address"` // A list of features and their fulfillment policies to apply to the order. FeatureConstraints *[]FeatureSettings `json:"featureConstraints,omitempty"` // Specifies whether to return fulfillment order previews that are for COD (Cash On Delivery). // // Possible values: // // * true - Returns all fulfillment order previews (both for COD and not for COD). // * false - Returns only fulfillment order previews that are not for COD. IncludeCODFulfillmentPreview *bool `json:"includeCODFulfillmentPreview,omitempty"` // Specifies whether to return 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"` // An array of fulfillment preview item information. Items GetFulfillmentPreviewItemList `json:"items"` // The marketplace the fulfillment order is placed against. MarketplaceId *string `json:"marketplaceId,omitempty"` ShippingSpeedCategories *ShippingSpeedCategoryList `json:"shippingSpeedCategories,omitempty"` }
GetFulfillmentPreviewRequest defines model for GetFulfillmentPreviewRequest.
type GetFulfillmentPreviewResp ¶
type GetFulfillmentPreviewResp struct { Body []byte HTTPResponse *http.Response Model *GetFulfillmentPreviewResponse }
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 { // A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // 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 defines model for GetFulfillmentPreviewResponse.
type GetFulfillmentPreviewResult ¶
type GetFulfillmentPreviewResult struct { // An array of fulfillment preview information. FulfillmentPreviews *FulfillmentPreviewList `json:"fulfillmentPreviews,omitempty"` }
GetFulfillmentPreviewResult defines model for GetFulfillmentPreviewResult.
type GetPackageTrackingDetailsParams ¶
type GetPackageTrackingDetailsParams struct { // The unencrypted package identifier returned by the getFulfillmentOrder operation. PackageNumber int32 `json:"packageNumber"` }
GetPackageTrackingDetailsParams defines parameters for GetPackageTrackingDetails.
type GetPackageTrackingDetailsResp ¶
type GetPackageTrackingDetailsResp struct { Body []byte HTTPResponse *http.Response Model *GetPackageTrackingDetailsResponse }
func ParseGetPackageTrackingDetailsResp ¶
func ParseGetPackageTrackingDetailsResp(rsp *http.Response) (*GetPackageTrackingDetailsResp, error)
ParseGetPackageTrackingDetailsResp parses an HTTP response from a GetPackageTrackingDetailsWithResponse call
func (GetPackageTrackingDetailsResp) Status ¶
func (r GetPackageTrackingDetailsResp) Status() string
Status returns HTTPResponse.Status
func (GetPackageTrackingDetailsResp) StatusCode ¶
func (r GetPackageTrackingDetailsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPackageTrackingDetailsResponse ¶
type GetPackageTrackingDetailsResponse struct { // A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` Payload *PackageTrackingDetails `json:"payload,omitempty"` }
GetPackageTrackingDetailsResponse defines model for GetPackageTrackingDetailsResponse.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InvalidItemReason ¶
type InvalidItemReason struct { // A human readable description of the invalid item reason code. Description string `json:"description"` // A code for why the item is invalid for return. InvalidItemReasonCode InvalidItemReasonCode `json:"invalidItemReasonCode"` }
InvalidItemReason defines model for InvalidItemReason.
type InvalidItemReasonCode ¶
type InvalidItemReasonCode string
InvalidItemReasonCode defines model for InvalidItemReasonCode.
const ( InvalidItemReasonCode_DuplicateRequest InvalidItemReasonCode = "DuplicateRequest" InvalidItemReasonCode_InvalidValues InvalidItemReasonCode = "InvalidValues" InvalidItemReasonCode_NoCompletedShipItems InvalidItemReasonCode = "NoCompletedShipItems" InvalidItemReasonCode_NoReturnableQuantity InvalidItemReasonCode = "NoReturnableQuantity" )
List of InvalidItemReasonCode
type InvalidReturnItem ¶
type InvalidReturnItem struct { // The reason that the item is invalid for return. InvalidItemReason InvalidItemReason `json:"invalidItemReason"` // The identifier assigned to the item by the seller when the fulfillment order was created. SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"` // An identifier assigned by the seller to the return item. SellerReturnItemId string `json:"sellerReturnItemId"` }
InvalidReturnItem defines model for InvalidReturnItem.
type InvalidReturnItemList ¶
type InvalidReturnItemList []InvalidReturnItem
InvalidReturnItemList defines model for InvalidReturnItemList.
type ListAllFulfillmentOrdersParams ¶
type ListAllFulfillmentOrdersParams struct { // 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 `json:"queryStartDate,omitempty"` // A string token returned in the response to your previous request. NextToken *string `json:"nextToken,omitempty"` }
ListAllFulfillmentOrdersParams defines parameters for ListAllFulfillmentOrders.
type ListAllFulfillmentOrdersResp ¶
type ListAllFulfillmentOrdersResp struct { Body []byte HTTPResponse *http.Response Model *ListAllFulfillmentOrdersResponse }
func ParseListAllFulfillmentOrdersResp ¶
func ParseListAllFulfillmentOrdersResp(rsp *http.Response) (*ListAllFulfillmentOrdersResp, error)
ParseListAllFulfillmentOrdersResp parses an HTTP response from a ListAllFulfillmentOrdersWithResponse call
func (ListAllFulfillmentOrdersResp) Status ¶
func (r ListAllFulfillmentOrdersResp) Status() string
Status returns HTTPResponse.Status
func (ListAllFulfillmentOrdersResp) StatusCode ¶
func (r ListAllFulfillmentOrdersResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAllFulfillmentOrdersResponse ¶
type ListAllFulfillmentOrdersResponse struct { // A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` Payload *ListAllFulfillmentOrdersResult `json:"payload,omitempty"` }
ListAllFulfillmentOrdersResponse defines model for ListAllFulfillmentOrdersResponse.
type ListAllFulfillmentOrdersResult ¶
type ListAllFulfillmentOrdersResult struct { // An array of fulfillment order information. FulfillmentOrders *[]FulfillmentOrder `json:"fulfillmentOrders,omitempty"` // 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 { // The seller SKU for which return reason codes are required. SellerSku string `json:"sellerSku"` // The marketplace for which the seller wants return reason codes. MarketplaceId *string `json:"marketplaceId,omitempty"` // 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 `json:"sellerFulfillmentOrderId,omitempty"` // The language that the TranslatedDescription property of the ReasonCodeDetails response object should be translated into. Language string `json:"language"` }
ListReturnReasonCodesParams defines parameters for ListReturnReasonCodes.
type ListReturnReasonCodesResp ¶
type ListReturnReasonCodesResp struct { Body []byte HTTPResponse *http.Response Model *ListReturnReasonCodesResponse }
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 { // A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` Payload *ListReturnReasonCodesResult `json:"payload,omitempty"` }
ListReturnReasonCodesResponse defines model for ListReturnReasonCodesResponse.
type ListReturnReasonCodesResult ¶
type ListReturnReasonCodesResult struct { // An array of return reason code details. ReasonCodeDetails *ReasonCodeDetailsList `json:"reasonCodeDetails,omitempty"` }
ListReturnReasonCodesResult defines model for ListReturnReasonCodesResult.
type Money ¶
type Money struct { // Three digit currency code in ISO 4217 format. CurrencyCode string `json:"currencyCode"` // 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 defines model for Money.
type NotificationEmailList ¶
type NotificationEmailList []string
NotificationEmailList defines model for NotificationEmailList.
type PackageTrackingDetails ¶
type PackageTrackingDetails struct { // Additional location information. AdditionalLocationInfo *AdditionalLocationInfo `json:"additionalLocationInfo,omitempty"` // The name of the carrier. CarrierCode *string `json:"carrierCode,omitempty"` // The phone number of the carrier. CarrierPhoneNumber *string `json:"carrierPhoneNumber,omitempty"` // The URL of the carrier’s website. CarrierURL *string `json:"carrierURL,omitempty"` // The current delivery status of the package. CurrentStatus *CurrentStatus `json:"currentStatus,omitempty"` // Description corresponding to the CurrentStatus value. CurrentStatusDescription *string `json:"currentStatusDescription,omitempty"` // Link on swiship.com that allows customers to track the package. CustomerTrackingLink *string `json:"customerTrackingLink,omitempty"` EstimatedArrivalDate *Timestamp `json:"estimatedArrivalDate,omitempty"` // The package identifier. PackageNumber int32 `json:"packageNumber"` ShipDate *Timestamp `json:"shipDate,omitempty"` // Address information for tracking the package. ShipToAddress *TrackingAddress `json:"shipToAddress,omitempty"` // The name of the person who signed for the package. SignedForBy *string `json:"signedForBy,omitempty"` // An array of tracking event information. TrackingEvents *TrackingEventList `json:"trackingEvents,omitempty"` // The tracking number for the package. TrackingNumber *string `json:"trackingNumber,omitempty"` }
PackageTrackingDetails defines model for PackageTrackingDetails.
type ReasonCodeDetails ¶
type ReasonCodeDetails struct { // A human readable description of the return reason code. Description string `json:"description"` // A code that indicates a valid return reason. ReturnReasonCode string `json:"returnReasonCode"` // A translation of the description. The translation is in the language specified in the Language request parameter. TranslatedDescription *string `json:"translatedDescription,omitempty"` }
ReasonCodeDetails defines model for ReasonCodeDetails.
type ReasonCodeDetailsList ¶
type ReasonCodeDetailsList []ReasonCodeDetails
ReasonCodeDetailsList defines model for ReasonCodeDetailsList.
type RequestBeforeFn ¶
RequestBeforeFn is the function signature for the RequestBefore callback function
type ResponseAfterFn ¶
ResponseAfterFn is the function signature for the ResponseAfter callback function
type ReturnAuthorization ¶
type ReturnAuthorization struct { // The return merchandise authorization (RMA) that Amazon needs to process the return. AmazonRmaId string `json:"amazonRmaId"` // An identifier for the Amazon fulfillment center that the return items should be sent to. FulfillmentCenterId string `json:"fulfillmentCenterId"` // An identifier for the return authorization. This identifier associates return items with the return authorization used to return them. ReturnAuthorizationId string `json:"returnAuthorizationId"` // A physical address. ReturnToAddress Address `json:"returnToAddress"` // 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 defines model for ReturnAuthorization.
type ReturnAuthorizationList ¶
type ReturnAuthorizationList []ReturnAuthorization
ReturnAuthorizationList defines model for ReturnAuthorizationList.
type ReturnItem ¶
type ReturnItem struct { // The return reason code that the Amazon fulfillment center assigned to the return item. AmazonReturnReasonCode *string `json:"amazonReturnReasonCode,omitempty"` // The identifier for the shipment that is associated with the return item. AmazonShipmentId string `json:"amazonShipmentId"` // The identifier for the Amazon fulfillment center that processed the return item. FulfillmentCenterId *string `json:"fulfillmentCenterId,omitempty"` // Identifies the return authorization used to return this item. See ReturnAuthorization. ReturnAuthorizationId *string `json:"returnAuthorizationId,omitempty"` // An optional comment about the return item. ReturnComment *string `json:"returnComment,omitempty"` // The condition of the return item when received by an Amazon fulfillment center. ReturnReceivedCondition *ReturnItemDisposition `json:"returnReceivedCondition,omitempty"` // The identifier assigned to the item by the seller when the fulfillment order was created. SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"` // An identifier assigned by the seller to the return item. SellerReturnItemId string `json:"sellerReturnItemId"` // The return reason code assigned to the return item by the seller. SellerReturnReasonCode string `json:"sellerReturnReasonCode"` // Indicates if the return item has been processed by a fulfillment center. Status FulfillmentReturnItemStatus `json:"status"` StatusChangedDate Timestamp `json:"statusChangedDate"` }
ReturnItem defines model for ReturnItem.
type ReturnItemDisposition ¶
type ReturnItemDisposition string
ReturnItemDisposition defines model for ReturnItemDisposition.
const ( ReturnItemDisposition_CarrierDamaged ReturnItemDisposition = "CarrierDamaged" ReturnItemDisposition_CustomerDamaged ReturnItemDisposition = "CustomerDamaged" ReturnItemDisposition_Defective ReturnItemDisposition = "Defective" ReturnItemDisposition_FulfillerDamaged ReturnItemDisposition = "FulfillerDamaged" ReturnItemDisposition_Sellable ReturnItemDisposition = "Sellable" )
List of ReturnItemDisposition
type ReturnItemList ¶
type ReturnItemList []ReturnItem
ReturnItemList defines model for ReturnItemList.
type ScheduledDeliveryInfo ¶
type ScheduledDeliveryInfo struct { // 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"` // An array of delivery windows. DeliveryWindows DeliveryWindowList `json:"deliveryWindows"` }
ScheduledDeliveryInfo defines model for ScheduledDeliveryInfo.
type ShippingSpeedCategory ¶
type ShippingSpeedCategory string
ShippingSpeedCategory defines model for ShippingSpeedCategory.
const ( ShippingSpeedCategory_Expedited ShippingSpeedCategory = "Expedited" ShippingSpeedCategory_Priority ShippingSpeedCategory = "Priority" ShippingSpeedCategory_ScheduledDelivery ShippingSpeedCategory = "ScheduledDelivery" ShippingSpeedCategory_Standard ShippingSpeedCategory = "Standard" )
List of ShippingSpeedCategory
type ShippingSpeedCategoryList ¶
type ShippingSpeedCategoryList []ShippingSpeedCategory
ShippingSpeedCategoryList defines model for ShippingSpeedCategoryList.
type TrackingAddress ¶
type TrackingAddress struct { // The city. City string `json:"city"` // The country. Country string `json:"country"` // The state. State string `json:"state"` }
TrackingAddress defines model for TrackingAddress.
type TrackingEvent ¶
type TrackingEvent struct { // Address information for tracking the package. EventAddress TrackingAddress `json:"eventAddress"` // The event code for the delivery event. EventCode EventCode `json:"eventCode"` EventDate Timestamp `json:"eventDate"` // A description for the corresponding event code. EventDescription string `json:"eventDescription"` }
TrackingEvent defines model for TrackingEvent.
type TrackingEventList ¶
type TrackingEventList []TrackingEvent
TrackingEventList defines model for TrackingEventList.
type UnfulfillablePreviewItem ¶
type UnfulfillablePreviewItem struct { ItemUnfulfillableReasons *StringList `json:"itemUnfulfillableReasons,omitempty"` // The item quantity. Quantity Quantity `json:"quantity"` // A fulfillment order item identifier created with a call to the getFulfillmentPreview operation. SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"` // The seller SKU of the item. SellerSku string `json:"sellerSku"` }
UnfulfillablePreviewItem defines model for UnfulfillablePreviewItem.
type UnfulfillablePreviewItemList ¶
type UnfulfillablePreviewItemList []UnfulfillablePreviewItem
UnfulfillablePreviewItemList defines model for UnfulfillablePreviewItemList.
type UpdateFulfillmentOrderItem ¶
type UpdateFulfillmentOrderItem struct { // Item-specific text that displays in recipient-facing materials such as the outbound shipment packing slip. DisplayableComment *string `json:"displayableComment,omitempty"` // Amazon's fulfillment network SKU of the item. FulfillmentNetworkSku *string `json:"fulfillmentNetworkSku,omitempty"` // A message to the gift recipient, if applicable. GiftMessage *string `json:"giftMessage,omitempty"` // Indicates whether the item is sellable or unsellable. OrderItemDisposition *string `json:"orderItemDisposition,omitempty"` // An amount of money, including units in the form of currency. PerUnitDeclaredValue *Money `json:"perUnitDeclaredValue,omitempty"` // An amount of money, including units in the form of currency. PerUnitPrice *Money `json:"perUnitPrice,omitempty"` // An amount of money, including units in the form of currency. PerUnitTax *Money `json:"perUnitTax,omitempty"` // The item quantity. Quantity Quantity `json:"quantity"` // Identifies the fulfillment order item to update. Created with a previous call to the createFulfillmentOrder operation. SellerFulfillmentOrderItemId string `json:"sellerFulfillmentOrderItemId"` // The seller SKU of the item. SellerSku *string `json:"sellerSku,omitempty"` }
UpdateFulfillmentOrderItem defines model for UpdateFulfillmentOrderItem.
type UpdateFulfillmentOrderItemList ¶
type UpdateFulfillmentOrderItemList []UpdateFulfillmentOrderItem
UpdateFulfillmentOrderItemList defines model for UpdateFulfillmentOrderItemList.
type UpdateFulfillmentOrderJSONBody ¶
type UpdateFulfillmentOrderJSONBody UpdateFulfillmentOrderRequest
UpdateFulfillmentOrderJSONBody defines parameters for UpdateFulfillmentOrder.
type UpdateFulfillmentOrderJSONRequestBody ¶
type UpdateFulfillmentOrderJSONRequestBody UpdateFulfillmentOrderJSONBody
UpdateFulfillmentOrderRequestBody defines body for UpdateFulfillmentOrder for application/json ContentType.
type UpdateFulfillmentOrderRequest ¶
type UpdateFulfillmentOrderRequest struct { // A physical address. DestinationAddress *Address `json:"destinationAddress,omitempty"` // 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"` // 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"` // A list of features and their fulfillment policies to apply to the order. FeatureConstraints *[]FeatureSettings `json:"featureConstraints,omitempty"` // Specifies whether the fulfillment order should ship now or have an order hold put on it. FulfillmentAction *FulfillmentAction `json:"fulfillmentAction,omitempty"` // The FulfillmentPolicy value specified when you submitted the createFulfillmentOrder operation. FulfillmentPolicy *FulfillmentPolicy `json:"fulfillmentPolicy,omitempty"` // An array of fulfillment order item information for updating a fulfillment order. Items *UpdateFulfillmentOrderItemList `json:"items,omitempty"` // The marketplace the fulfillment order is placed against. MarketplaceId *string `json:"marketplaceId,omitempty"` // 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"` // 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"` // The shipping method used for the fulfillment order. ShippingSpeedCategory *ShippingSpeedCategory `json:"shippingSpeedCategory,omitempty"` }
UpdateFulfillmentOrderRequest defines model for UpdateFulfillmentOrderRequest.
type UpdateFulfillmentOrderResp ¶
type UpdateFulfillmentOrderResp struct { Body []byte HTTPResponse *http.Response Model *UpdateFulfillmentOrderResponse }
func ParseUpdateFulfillmentOrderResp ¶
func ParseUpdateFulfillmentOrderResp(rsp *http.Response) (*UpdateFulfillmentOrderResp, error)
ParseUpdateFulfillmentOrderResp parses an HTTP response from a UpdateFulfillmentOrderWithResponse call
func (UpdateFulfillmentOrderResp) Status ¶
func (r UpdateFulfillmentOrderResp) Status() string
Status returns HTTPResponse.Status
func (UpdateFulfillmentOrderResp) StatusCode ¶
func (r UpdateFulfillmentOrderResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateFulfillmentOrderResponse ¶
type UpdateFulfillmentOrderResponse struct { // A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` }
UpdateFulfillmentOrderResponse defines model for UpdateFulfillmentOrderResponse.