fbaInbound

package
v0.0.0-...-3a03c6d Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package fbaInbound provides primitives to interact the openapi HTTP API.

Code generated by go-sdk-codegen DO NOT EDIT.

Package fbaInbound provides primitives to interact the openapi HTTP API.

Code generated by go-sdk-codegen DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfirmPreorderRequest

func NewConfirmPreorderRequest(endpoint string, shipmentId string, params *ConfirmPreorderParams) (*http.Request, error)

NewConfirmPreorderRequest generates requests for ConfirmPreorder

func NewConfirmTransportRequest

func NewConfirmTransportRequest(endpoint string, shipmentId string) (*http.Request, error)

NewConfirmTransportRequest generates requests for ConfirmTransport

func NewCreateInboundShipmentPlanRequest

func NewCreateInboundShipmentPlanRequest(endpoint string, body CreateInboundShipmentPlanJSONRequestBody) (*http.Request, error)

NewCreateInboundShipmentPlanRequest calls the generic CreateInboundShipmentPlan builder with application/json body

func NewCreateInboundShipmentPlanRequestWithBody

func NewCreateInboundShipmentPlanRequestWithBody(endpoint string, contentType string, body io.Reader) (*http.Request, error)

NewCreateInboundShipmentPlanRequestWithBody generates requests for CreateInboundShipmentPlan with any type of body

func NewCreateInboundShipmentRequest

func NewCreateInboundShipmentRequest(endpoint string, shipmentId string, body CreateInboundShipmentJSONRequestBody) (*http.Request, error)

NewCreateInboundShipmentRequest calls the generic CreateInboundShipment builder with application/json body

func NewCreateInboundShipmentRequestWithBody

func NewCreateInboundShipmentRequestWithBody(endpoint string, shipmentId string, contentType string, body io.Reader) (*http.Request, error)

NewCreateInboundShipmentRequestWithBody generates requests for CreateInboundShipment with any type of body

func NewEstimateTransportRequest

func NewEstimateTransportRequest(endpoint string, shipmentId string) (*http.Request, error)

NewEstimateTransportRequest generates requests for EstimateTransport

func NewGetBillOfLadingRequest

func NewGetBillOfLadingRequest(endpoint string, shipmentId string) (*http.Request, error)

NewGetBillOfLadingRequest generates requests for GetBillOfLading

func NewGetInboundGuidanceRequest

func NewGetInboundGuidanceRequest(endpoint string, params *GetInboundGuidanceParams) (*http.Request, error)

NewGetInboundGuidanceRequest generates requests for GetInboundGuidance

func NewGetLabelsRequest

func NewGetLabelsRequest(endpoint string, shipmentId string, params *GetLabelsParams) (*http.Request, error)

NewGetLabelsRequest generates requests for GetLabels

func NewGetPreorderInfoRequest

func NewGetPreorderInfoRequest(endpoint string, shipmentId string, params *GetPreorderInfoParams) (*http.Request, error)

NewGetPreorderInfoRequest generates requests for GetPreorderInfo

func NewGetPrepInstructionsRequest

func NewGetPrepInstructionsRequest(endpoint string, params *GetPrepInstructionsParams) (*http.Request, error)

NewGetPrepInstructionsRequest generates requests for GetPrepInstructions

func NewGetShipmentItemsByShipmentIdRequest

func NewGetShipmentItemsByShipmentIdRequest(endpoint string, shipmentId string, params *GetShipmentItemsByShipmentIdParams) (*http.Request, error)

NewGetShipmentItemsByShipmentIdRequest generates requests for GetShipmentItemsByShipmentId

func NewGetShipmentItemsRequest

func NewGetShipmentItemsRequest(endpoint string, params *GetShipmentItemsParams) (*http.Request, error)

NewGetShipmentItemsRequest generates requests for GetShipmentItems

func NewGetShipmentsRequest

func NewGetShipmentsRequest(endpoint string, params *GetShipmentsParams) (*http.Request, error)

NewGetShipmentsRequest generates requests for GetShipments

func NewGetTransportDetailsRequest

func NewGetTransportDetailsRequest(endpoint string, shipmentId string) (*http.Request, error)

NewGetTransportDetailsRequest generates requests for GetTransportDetails

func NewPutTransportDetailsRequest

func NewPutTransportDetailsRequest(endpoint string, shipmentId string, body PutTransportDetailsJSONRequestBody) (*http.Request, error)

NewPutTransportDetailsRequest calls the generic PutTransportDetails builder with application/json body

func NewPutTransportDetailsRequestWithBody

func NewPutTransportDetailsRequestWithBody(endpoint string, shipmentId string, contentType string, body io.Reader) (*http.Request, error)

NewPutTransportDetailsRequestWithBody generates requests for PutTransportDetails with any type of body

func NewUpdateInboundShipmentRequest

func NewUpdateInboundShipmentRequest(endpoint string, shipmentId string, body UpdateInboundShipmentJSONRequestBody) (*http.Request, error)

NewUpdateInboundShipmentRequest calls the generic UpdateInboundShipment builder with application/json body

func NewUpdateInboundShipmentRequestWithBody

func NewUpdateInboundShipmentRequestWithBody(endpoint string, shipmentId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateInboundShipmentRequestWithBody generates requests for UpdateInboundShipment with any type of body

func NewVoidTransportRequest

func NewVoidTransportRequest(endpoint string, shipmentId string) (*http.Request, error)

NewVoidTransportRequest generates requests for VoidTransport

Types

type ASINInboundGuidance

type ASINInboundGuidance struct {

	// The Amazon Standard Identification Number (ASIN) of the item.
	ASIN string `json:"ASIN"`

	// A list of inbound guidance reason information.
	GuidanceReasonList *GuidanceReasonList `json:"GuidanceReasonList,omitempty"`

	// Specific inbound guidance for an item.
	InboundGuidance InboundGuidance `json:"InboundGuidance"`
}

ASINInboundGuidance defines model for ASINInboundGuidance.

type ASINInboundGuidanceList

type ASINInboundGuidanceList []ASINInboundGuidance

ASINInboundGuidanceList defines model for ASINInboundGuidanceList.

type ASINPrepInstructions

type ASINPrepInstructions struct {

	// The Amazon Standard Identification Number (ASIN) of the item.
	ASIN *string `json:"ASIN,omitempty"`

	// Labeling requirements for the item. For more information about FBA labeling requirements, see the Seller Central Help for your marketplace.
	BarcodeInstruction *BarcodeInstruction `json:"BarcodeInstruction,omitempty"`

	// Item preparation instructions.
	PrepGuidance *PrepGuidance `json:"PrepGuidance,omitempty"`

	// A list of preparation instructions to help with item sourcing decisions.
	PrepInstructionList *PrepInstructionList `json:"PrepInstructionList,omitempty"`
}

ASINPrepInstructions defines model for ASINPrepInstructions.

type ASINPrepInstructionsList

type ASINPrepInstructionsList []ASINPrepInstructions

ASINPrepInstructionsList defines model for ASINPrepInstructionsList.

type Address

type Address struct {

	// The street address information.
	AddressLine1 string `json:"AddressLine1"`

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

	// The city.
	City string `json:"City"`

	// The country code in two-character ISO 3166-1 alpha-2 format.
	CountryCode string `json:"CountryCode"`

	// The district or county.
	DistrictOrCounty *string `json:"DistrictOrCounty,omitempty"`

	// Name of the individual or business.
	Name string `json:"Name"`

	// The postal code.
	//
	// If postal codes are used in your marketplace, we recommended that you include one with your request. This helps Amazon select the most appropriate Amazon fulfillment center for the inbound shipment plan.
	PostalCode string `json:"PostalCode"`

	// The state or province code.
	//
	// If state or province codes are used in your marketplace, it is recommended that you include one with your request. This helps Amazon to select the most appropriate Amazon fulfillment center for your inbound shipment plan.
	StateOrProvinceCode string `json:"StateOrProvinceCode"`
}

Address defines model for Address.

type AmazonPrepFeesDetails

type AmazonPrepFeesDetails struct {

	// The monetary value.
	FeePerUnit *Amount `json:"FeePerUnit,omitempty"`

	// Preparation instructions for shipping an item to Amazon's fulfillment network. For more information about preparing items for shipment to Amazon's fulfillment network, see the Seller Central Help for your marketplace.
	PrepInstruction *PrepInstruction `json:"PrepInstruction,omitempty"`
}

AmazonPrepFeesDetails defines model for AmazonPrepFeesDetails.

type AmazonPrepFeesDetailsList

type AmazonPrepFeesDetailsList []AmazonPrepFeesDetails

AmazonPrepFeesDetailsList defines model for AmazonPrepFeesDetailsList.

type Amount

type Amount struct {

	// The currency code.
	CurrencyCode CurrencyCode   `json:"CurrencyCode"`
	Value        BigDecimalType `json:"Value"`
}

Amount defines model for Amount.

type BarcodeInstruction

type BarcodeInstruction string

BarcodeInstruction defines model for BarcodeInstruction.

const (
	BarcodeInstruction_CanUseOriginalBarcode BarcodeInstruction = "CanUseOriginalBarcode"
	BarcodeInstruction_MustProvideSellerSKU  BarcodeInstruction = "MustProvideSellerSKU"
	BarcodeInstruction_RequiresFNSKULabel    BarcodeInstruction = "RequiresFNSKULabel"
)

List of BarcodeInstruction

type BigDecimalType

type BigDecimalType float64

BigDecimalType defines model for BigDecimalType.

type BillOfLadingDownloadURL

type BillOfLadingDownloadURL struct {

	// URL to download the bill of lading for the package. Note: The URL will only be valid for 15 seconds
	DownloadURL *string `json:"DownloadURL,omitempty"`
}

BillOfLadingDownloadURL defines model for BillOfLadingDownloadURL.

type BoxContentsFeeDetails

type BoxContentsFeeDetails struct {

	// The monetary value.
	FeePerUnit *Amount `json:"FeePerUnit,omitempty"`

	// The monetary value.
	TotalFee *Amount `json:"TotalFee,omitempty"`

	// The item quantity.
	TotalUnits *Quantity `json:"TotalUnits,omitempty"`
}

BoxContentsFeeDetails defines model for BoxContentsFeeDetails.

type BoxContentsSource

type BoxContentsSource string

BoxContentsSource defines model for BoxContentsSource.

const (
	BoxContentsSource_FEED        BoxContentsSource = "FEED"
	BoxContentsSource_INTERACTIVE BoxContentsSource = "INTERACTIVE"
	BoxContentsSource_NONE        BoxContentsSource = "NONE"
	BoxContentsSource__D_BARCODE  BoxContentsSource = "2D_BARCODE"
)

List of BoxContentsSource

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

func (c *Client) ConfirmPreorder(ctx context.Context, shipmentId string, params *ConfirmPreorderParams) (*http.Response, error)

func (*Client) ConfirmTransport

func (c *Client) ConfirmTransport(ctx context.Context, shipmentId string) (*http.Response, error)

func (*Client) CreateInboundShipment

func (c *Client) CreateInboundShipment(ctx context.Context, shipmentId string, body CreateInboundShipmentJSONRequestBody) (*http.Response, error)

func (*Client) CreateInboundShipmentPlan

func (c *Client) CreateInboundShipmentPlan(ctx context.Context, body CreateInboundShipmentPlanJSONRequestBody) (*http.Response, error)

func (*Client) CreateInboundShipmentPlanWithBody

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

func (*Client) CreateInboundShipmentWithBody

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

func (*Client) EstimateTransport

func (c *Client) EstimateTransport(ctx context.Context, shipmentId string) (*http.Response, error)

func (*Client) GetBillOfLading

func (c *Client) GetBillOfLading(ctx context.Context, shipmentId string) (*http.Response, error)

func (*Client) GetInboundGuidance

func (c *Client) GetInboundGuidance(ctx context.Context, params *GetInboundGuidanceParams) (*http.Response, error)

func (*Client) GetLabels

func (c *Client) GetLabels(ctx context.Context, shipmentId string, params *GetLabelsParams) (*http.Response, error)

func (*Client) GetPreorderInfo

func (c *Client) GetPreorderInfo(ctx context.Context, shipmentId string, params *GetPreorderInfoParams) (*http.Response, error)

func (*Client) GetPrepInstructions

func (c *Client) GetPrepInstructions(ctx context.Context, params *GetPrepInstructionsParams) (*http.Response, error)

func (*Client) GetShipmentItems

func (c *Client) GetShipmentItems(ctx context.Context, params *GetShipmentItemsParams) (*http.Response, error)

func (*Client) GetShipmentItemsByShipmentId

func (c *Client) GetShipmentItemsByShipmentId(ctx context.Context, shipmentId string, params *GetShipmentItemsByShipmentIdParams) (*http.Response, error)

func (*Client) GetShipments

func (c *Client) GetShipments(ctx context.Context, params *GetShipmentsParams) (*http.Response, error)

func (*Client) GetTransportDetails

func (c *Client) GetTransportDetails(ctx context.Context, shipmentId string) (*http.Response, error)

func (*Client) PutTransportDetails

func (c *Client) PutTransportDetails(ctx context.Context, shipmentId string, body PutTransportDetailsJSONRequestBody) (*http.Response, error)

func (*Client) PutTransportDetailsWithBody

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

func (*Client) UpdateInboundShipment

func (c *Client) UpdateInboundShipment(ctx context.Context, shipmentId string, body UpdateInboundShipmentJSONRequestBody) (*http.Response, error)

func (*Client) UpdateInboundShipmentWithBody

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

func (*Client) VoidTransport

func (c *Client) VoidTransport(ctx context.Context, shipmentId string) (*http.Response, error)

type ClientInterface

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

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

	CreateInboundShipmentPlan(ctx context.Context, body CreateInboundShipmentPlanJSONRequestBody) (*http.Response, error)

	// GetPrepInstructions request
	GetPrepInstructions(ctx context.Context, params *GetPrepInstructionsParams) (*http.Response, error)

	// GetShipmentItems request
	GetShipmentItems(ctx context.Context, params *GetShipmentItemsParams) (*http.Response, error)

	// GetShipments request
	GetShipments(ctx context.Context, params *GetShipmentsParams) (*http.Response, error)

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

	CreateInboundShipment(ctx context.Context, shipmentId string, body CreateInboundShipmentJSONRequestBody) (*http.Response, error)

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

	UpdateInboundShipment(ctx context.Context, shipmentId string, body UpdateInboundShipmentJSONRequestBody) (*http.Response, error)

	// GetBillOfLading request
	GetBillOfLading(ctx context.Context, shipmentId string) (*http.Response, error)

	// GetShipmentItemsByShipmentId request
	GetShipmentItemsByShipmentId(ctx context.Context, shipmentId string, params *GetShipmentItemsByShipmentIdParams) (*http.Response, error)

	// GetLabels request
	GetLabels(ctx context.Context, shipmentId string, params *GetLabelsParams) (*http.Response, error)

	// GetPreorderInfo request
	GetPreorderInfo(ctx context.Context, shipmentId string, params *GetPreorderInfoParams) (*http.Response, error)

	// ConfirmPreorder request
	ConfirmPreorder(ctx context.Context, shipmentId string, params *ConfirmPreorderParams) (*http.Response, error)

	// GetTransportDetails request
	GetTransportDetails(ctx context.Context, shipmentId string) (*http.Response, error)

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

	PutTransportDetails(ctx context.Context, shipmentId string, body PutTransportDetailsJSONRequestBody) (*http.Response, error)

	// ConfirmTransport request
	ConfirmTransport(ctx context.Context, shipmentId string) (*http.Response, error)

	// EstimateTransport request
	EstimateTransport(ctx context.Context, shipmentId string) (*http.Response, error)

	// VoidTransport request
	VoidTransport(ctx context.Context, shipmentId string) (*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 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) ConfirmPreorderWithResponse

func (c *ClientWithResponses) ConfirmPreorderWithResponse(ctx context.Context, shipmentId string, params *ConfirmPreorderParams) (*ConfirmPreorderResp, error)

ConfirmPreorderWithResponse request returning *ConfirmPreorderResponse

func (*ClientWithResponses) ConfirmTransportWithResponse

func (c *ClientWithResponses) ConfirmTransportWithResponse(ctx context.Context, shipmentId string) (*ConfirmTransportResp, error)

ConfirmTransportWithResponse request returning *ConfirmTransportResponse

func (*ClientWithResponses) CreateInboundShipmentPlanWithBodyWithResponse

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

CreateInboundShipmentPlanWithBodyWithResponse request with arbitrary body returning *CreateInboundShipmentPlanResponse

func (*ClientWithResponses) CreateInboundShipmentPlanWithResponse

func (*ClientWithResponses) CreateInboundShipmentWithBodyWithResponse

func (c *ClientWithResponses) CreateInboundShipmentWithBodyWithResponse(ctx context.Context, shipmentId string, contentType string, body io.Reader) (*CreateInboundShipmentResp, error)

CreateInboundShipmentWithBodyWithResponse request with arbitrary body returning *CreateInboundShipmentResponse

func (*ClientWithResponses) CreateInboundShipmentWithResponse

func (c *ClientWithResponses) CreateInboundShipmentWithResponse(ctx context.Context, shipmentId string, body CreateInboundShipmentJSONRequestBody) (*CreateInboundShipmentResp, error)

func (*ClientWithResponses) EstimateTransportWithResponse

func (c *ClientWithResponses) EstimateTransportWithResponse(ctx context.Context, shipmentId string) (*EstimateTransportResp, error)

EstimateTransportWithResponse request returning *EstimateTransportResponse

func (*ClientWithResponses) GetBillOfLadingWithResponse

func (c *ClientWithResponses) GetBillOfLadingWithResponse(ctx context.Context, shipmentId string) (*GetBillOfLadingResp, error)

GetBillOfLadingWithResponse request returning *GetBillOfLadingResponse

func (*ClientWithResponses) GetInboundGuidanceWithResponse

func (c *ClientWithResponses) GetInboundGuidanceWithResponse(ctx context.Context, params *GetInboundGuidanceParams) (*GetInboundGuidanceResp, error)

GetInboundGuidanceWithResponse request returning *GetInboundGuidanceResponse

func (*ClientWithResponses) GetLabelsWithResponse

func (c *ClientWithResponses) GetLabelsWithResponse(ctx context.Context, shipmentId string, params *GetLabelsParams) (*GetLabelsResp, error)

GetLabelsWithResponse request returning *GetLabelsResponse

func (*ClientWithResponses) GetPreorderInfoWithResponse

func (c *ClientWithResponses) GetPreorderInfoWithResponse(ctx context.Context, shipmentId string, params *GetPreorderInfoParams) (*GetPreorderInfoResp, error)

GetPreorderInfoWithResponse request returning *GetPreorderInfoResponse

func (*ClientWithResponses) GetPrepInstructionsWithResponse

func (c *ClientWithResponses) GetPrepInstructionsWithResponse(ctx context.Context, params *GetPrepInstructionsParams) (*GetPrepInstructionsResp, error)

GetPrepInstructionsWithResponse request returning *GetPrepInstructionsResponse

func (*ClientWithResponses) GetShipmentItemsByShipmentIdWithResponse

func (c *ClientWithResponses) GetShipmentItemsByShipmentIdWithResponse(ctx context.Context, shipmentId string, params *GetShipmentItemsByShipmentIdParams) (*GetShipmentItemsByShipmentIdResp, error)

GetShipmentItemsByShipmentIdWithResponse request returning *GetShipmentItemsByShipmentIdResponse

func (*ClientWithResponses) GetShipmentItemsWithResponse

func (c *ClientWithResponses) GetShipmentItemsWithResponse(ctx context.Context, params *GetShipmentItemsParams) (*GetShipmentItemsResp, error)

GetShipmentItemsWithResponse request returning *GetShipmentItemsResponse

func (*ClientWithResponses) GetShipmentsWithResponse

func (c *ClientWithResponses) GetShipmentsWithResponse(ctx context.Context, params *GetShipmentsParams) (*GetShipmentsResp, error)

GetShipmentsWithResponse request returning *GetShipmentsResponse

func (*ClientWithResponses) GetTransportDetailsWithResponse

func (c *ClientWithResponses) GetTransportDetailsWithResponse(ctx context.Context, shipmentId string) (*GetTransportDetailsResp, error)

GetTransportDetailsWithResponse request returning *GetTransportDetailsResponse

func (*ClientWithResponses) PutTransportDetailsWithBodyWithResponse

func (c *ClientWithResponses) PutTransportDetailsWithBodyWithResponse(ctx context.Context, shipmentId string, contentType string, body io.Reader) (*PutTransportDetailsResp, error)

PutTransportDetailsWithBodyWithResponse request with arbitrary body returning *PutTransportDetailsResponse

func (*ClientWithResponses) PutTransportDetailsWithResponse

func (c *ClientWithResponses) PutTransportDetailsWithResponse(ctx context.Context, shipmentId string, body PutTransportDetailsJSONRequestBody) (*PutTransportDetailsResp, error)

func (*ClientWithResponses) UpdateInboundShipmentWithBodyWithResponse

func (c *ClientWithResponses) UpdateInboundShipmentWithBodyWithResponse(ctx context.Context, shipmentId string, contentType string, body io.Reader) (*UpdateInboundShipmentResp, error)

UpdateInboundShipmentWithBodyWithResponse request with arbitrary body returning *UpdateInboundShipmentResponse

func (*ClientWithResponses) UpdateInboundShipmentWithResponse

func (c *ClientWithResponses) UpdateInboundShipmentWithResponse(ctx context.Context, shipmentId string, body UpdateInboundShipmentJSONRequestBody) (*UpdateInboundShipmentResp, error)

func (*ClientWithResponses) VoidTransportWithResponse

func (c *ClientWithResponses) VoidTransportWithResponse(ctx context.Context, shipmentId string) (*VoidTransportResp, error)

VoidTransportWithResponse request returning *VoidTransportResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetInboundGuidance request
	GetInboundGuidanceWithResponse(ctx context.Context, params *GetInboundGuidanceParams) (*GetInboundGuidanceResp, error)

	// CreateInboundShipmentPlan request  with any body
	CreateInboundShipmentPlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateInboundShipmentPlanResp, error)

	CreateInboundShipmentPlanWithResponse(ctx context.Context, body CreateInboundShipmentPlanJSONRequestBody) (*CreateInboundShipmentPlanResp, error)

	// GetPrepInstructions request
	GetPrepInstructionsWithResponse(ctx context.Context, params *GetPrepInstructionsParams) (*GetPrepInstructionsResp, error)

	// GetShipmentItems request
	GetShipmentItemsWithResponse(ctx context.Context, params *GetShipmentItemsParams) (*GetShipmentItemsResp, error)

	// GetShipments request
	GetShipmentsWithResponse(ctx context.Context, params *GetShipmentsParams) (*GetShipmentsResp, error)

	// CreateInboundShipment request  with any body
	CreateInboundShipmentWithBodyWithResponse(ctx context.Context, shipmentId string, contentType string, body io.Reader) (*CreateInboundShipmentResp, error)

	CreateInboundShipmentWithResponse(ctx context.Context, shipmentId string, body CreateInboundShipmentJSONRequestBody) (*CreateInboundShipmentResp, error)

	// UpdateInboundShipment request  with any body
	UpdateInboundShipmentWithBodyWithResponse(ctx context.Context, shipmentId string, contentType string, body io.Reader) (*UpdateInboundShipmentResp, error)

	UpdateInboundShipmentWithResponse(ctx context.Context, shipmentId string, body UpdateInboundShipmentJSONRequestBody) (*UpdateInboundShipmentResp, error)

	// GetBillOfLading request
	GetBillOfLadingWithResponse(ctx context.Context, shipmentId string) (*GetBillOfLadingResp, error)

	// GetShipmentItemsByShipmentId request
	GetShipmentItemsByShipmentIdWithResponse(ctx context.Context, shipmentId string, params *GetShipmentItemsByShipmentIdParams) (*GetShipmentItemsByShipmentIdResp, error)

	// GetLabels request
	GetLabelsWithResponse(ctx context.Context, shipmentId string, params *GetLabelsParams) (*GetLabelsResp, error)

	// GetPreorderInfo request
	GetPreorderInfoWithResponse(ctx context.Context, shipmentId string, params *GetPreorderInfoParams) (*GetPreorderInfoResp, error)

	// ConfirmPreorder request
	ConfirmPreorderWithResponse(ctx context.Context, shipmentId string, params *ConfirmPreorderParams) (*ConfirmPreorderResp, error)

	// GetTransportDetails request
	GetTransportDetailsWithResponse(ctx context.Context, shipmentId string) (*GetTransportDetailsResp, error)

	// PutTransportDetails request  with any body
	PutTransportDetailsWithBodyWithResponse(ctx context.Context, shipmentId string, contentType string, body io.Reader) (*PutTransportDetailsResp, error)

	PutTransportDetailsWithResponse(ctx context.Context, shipmentId string, body PutTransportDetailsJSONRequestBody) (*PutTransportDetailsResp, error)

	// ConfirmTransport request
	ConfirmTransportWithResponse(ctx context.Context, shipmentId string) (*ConfirmTransportResp, error)

	// EstimateTransport request
	EstimateTransportWithResponse(ctx context.Context, shipmentId string) (*EstimateTransportResp, error)

	// VoidTransport request
	VoidTransportWithResponse(ctx context.Context, shipmentId string) (*VoidTransportResp, error)
}

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

type CommonTransportResult

type CommonTransportResult struct {

	// The workflow status for a shipment with an Amazon-partnered carrier.
	TransportResult *TransportResult `json:"TransportResult,omitempty"`
}

CommonTransportResult defines model for CommonTransportResult.

type Condition

type Condition string

Condition defines model for Condition.

const (
	Condition_Club                    Condition = "Club"
	Condition_CollectibleAcceptable   Condition = "CollectibleAcceptable"
	Condition_CollectibleGood         Condition = "CollectibleGood"
	Condition_CollectibleLikeNew      Condition = "CollectibleLikeNew"
	Condition_CollectiblePoor         Condition = "CollectiblePoor"
	Condition_CollectibleVeryGood     Condition = "CollectibleVeryGood"
	Condition_NewItem                 Condition = "NewItem"
	Condition_NewOEM                  Condition = "NewOEM"
	Condition_NewOpenBox              Condition = "NewOpenBox"
	Condition_NewWithWarranty         Condition = "NewWithWarranty"
	Condition_Refurbished             Condition = "Refurbished"
	Condition_RefurbishedWithWarranty Condition = "RefurbishedWithWarranty"
	Condition_UsedAcceptable          Condition = "UsedAcceptable"
	Condition_UsedGood                Condition = "UsedGood"
	Condition_UsedLikeNew             Condition = "UsedLikeNew"
	Condition_UsedPoor                Condition = "UsedPoor"
	Condition_UsedRefurbished         Condition = "UsedRefurbished"
	Condition_UsedVeryGood            Condition = "UsedVeryGood"
)

List of Condition

type ConfirmPreorderParams

type ConfirmPreorderParams struct {

	// Date that the shipment must arrive at the Amazon fulfillment center to avoid delivery promise breaks for pre-ordered items. Must be in YYYY-MM-DD format. The response to the getPreorderInfo operation returns this value.
	NeedByDate openapi_types.Date `json:"NeedByDate"`

	// A marketplace identifier. Specifies the marketplace the shipment is tied to.
	MarketplaceId string `json:"MarketplaceId"`
}

ConfirmPreorderParams defines parameters for ConfirmPreorder.

type ConfirmPreorderResp

type ConfirmPreorderResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *ConfirmPreorderResponse
}

func ParseConfirmPreorderResp

func ParseConfirmPreorderResp(rsp *http.Response) (*ConfirmPreorderResp, error)

ParseConfirmPreorderResp parses an HTTP response from a ConfirmPreorderWithResponse call

func (ConfirmPreorderResp) Status

func (r ConfirmPreorderResp) Status() string

Status returns HTTPResponse.Status

func (ConfirmPreorderResp) StatusCode

func (r ConfirmPreorderResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ConfirmPreorderResponse

type ConfirmPreorderResponse struct {

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

ConfirmPreorderResponse defines model for ConfirmPreorderResponse.

type ConfirmPreorderResult

type ConfirmPreorderResult struct {
	ConfirmedFulfillableDate *DateStringType `json:"ConfirmedFulfillableDate,omitempty"`
	ConfirmedNeedByDate      *DateStringType `json:"ConfirmedNeedByDate,omitempty"`
}

ConfirmPreorderResult defines model for ConfirmPreorderResult.

type ConfirmTransportResp

type ConfirmTransportResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *ConfirmTransportResponse
}

func ParseConfirmTransportResp

func ParseConfirmTransportResp(rsp *http.Response) (*ConfirmTransportResp, error)

ParseConfirmTransportResp parses an HTTP response from a ConfirmTransportWithResponse call

func (ConfirmTransportResp) Status

func (r ConfirmTransportResp) Status() string

Status returns HTTPResponse.Status

func (ConfirmTransportResp) StatusCode

func (r ConfirmTransportResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ConfirmTransportResponse

type ConfirmTransportResponse struct {

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

ConfirmTransportResponse defines model for ConfirmTransportResponse.

type Contact

type Contact struct {

	// The email address of the contact person.
	Email string `json:"Email"`

	// The fax number of the contact person.
	Fax *string `json:"Fax,omitempty"`

	// The name of the contact person.
	Name string `json:"Name"`

	// The phone number of the contact person.
	Phone string `json:"Phone"`
}

Contact defines model for Contact.

type CreateInboundShipmentJSONBody

type CreateInboundShipmentJSONBody InboundShipmentRequest

CreateInboundShipmentJSONBody defines parameters for CreateInboundShipment.

type CreateInboundShipmentJSONRequestBody

type CreateInboundShipmentJSONRequestBody CreateInboundShipmentJSONBody

CreateInboundShipmentRequestBody defines body for CreateInboundShipment for application/json ContentType.

type CreateInboundShipmentPlanJSONBody

type CreateInboundShipmentPlanJSONBody CreateInboundShipmentPlanRequest

CreateInboundShipmentPlanJSONBody defines parameters for CreateInboundShipmentPlan.

type CreateInboundShipmentPlanJSONRequestBody

type CreateInboundShipmentPlanJSONRequestBody CreateInboundShipmentPlanJSONBody

CreateInboundShipmentPlanRequestBody defines body for CreateInboundShipmentPlan for application/json ContentType.

type CreateInboundShipmentPlanRequest

type CreateInboundShipmentPlanRequest struct {
	InboundShipmentPlanRequestItems InboundShipmentPlanRequestItemList `json:"InboundShipmentPlanRequestItems"`

	// The preference for label preparation for an inbound shipment.
	LabelPrepPreference LabelPrepPreference `json:"LabelPrepPreference"`
	ShipFromAddress     Address             `json:"ShipFromAddress"`

	// The two-character country code for the country where the inbound shipment is to be sent.
	//
	// Note: Not required. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error.
	//
	//  Values:
	//
	//  ShipToCountryCode values for North America:
	//  * CA – Canada
	//  * MX - Mexico
	//  * US - United States
	//
	// ShipToCountryCode values for MCI sellers in Europe:
	//  * DE – Germany
	//  * ES – Spain
	//  * FR – France
	//  * GB – United Kingdom
	//  * IT – Italy
	//
	// Default: The country code for the seller's home marketplace.
	ShipToCountryCode *string `json:"ShipToCountryCode,omitempty"`

	// The two-character country code, followed by a dash and then up to three characters that represent the subdivision of the country where the inbound shipment is to be sent. For example, "IN-MH". In full ISO 3166-2 format.
	//
	// Note: Not required. Specifying both ShipToCountryCode and ShipToCountrySubdivisionCode returns an error.
	ShipToCountrySubdivisionCode *string `json:"ShipToCountrySubdivisionCode,omitempty"`
}

CreateInboundShipmentPlanRequest defines model for CreateInboundShipmentPlanRequest.

type CreateInboundShipmentPlanResp

type CreateInboundShipmentPlanResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *CreateInboundShipmentPlanResponse
}

func ParseCreateInboundShipmentPlanResp

func ParseCreateInboundShipmentPlanResp(rsp *http.Response) (*CreateInboundShipmentPlanResp, error)

ParseCreateInboundShipmentPlanResp parses an HTTP response from a CreateInboundShipmentPlanWithResponse call

func (CreateInboundShipmentPlanResp) Status

Status returns HTTPResponse.Status

func (CreateInboundShipmentPlanResp) StatusCode

func (r CreateInboundShipmentPlanResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateInboundShipmentPlanResponse

type CreateInboundShipmentPlanResponse struct {

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

CreateInboundShipmentPlanResponse defines model for CreateInboundShipmentPlanResponse.

type CreateInboundShipmentPlanResult

type CreateInboundShipmentPlanResult struct {

	// A list of inbound shipment plan information
	InboundShipmentPlans *InboundShipmentPlanList `json:"InboundShipmentPlans,omitempty"`
}

CreateInboundShipmentPlanResult defines model for CreateInboundShipmentPlanResult.

type CreateInboundShipmentResp

type CreateInboundShipmentResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *InboundShipmentResponse
}

func ParseCreateInboundShipmentResp

func ParseCreateInboundShipmentResp(rsp *http.Response) (*CreateInboundShipmentResp, error)

ParseCreateInboundShipmentResp parses an HTTP response from a CreateInboundShipmentWithResponse call

func (CreateInboundShipmentResp) Status

func (r CreateInboundShipmentResp) Status() string

Status returns HTTPResponse.Status

func (CreateInboundShipmentResp) StatusCode

func (r CreateInboundShipmentResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CurrencyCode

type CurrencyCode string

CurrencyCode defines model for CurrencyCode.

const (
	CurrencyCode_GBP CurrencyCode = "GBP"
	CurrencyCode_USD CurrencyCode = "USD"
)

List of CurrencyCode

type DateStringType

type DateStringType openapi_types.Date

DateStringType defines model for DateStringType.

type Dimensions

type Dimensions struct {
	Height BigDecimalType `json:"Height"`
	Length BigDecimalType `json:"Length"`

	// Indicates the unit of measurement.
	Unit  UnitOfMeasurement `json:"Unit"`
	Width BigDecimalType    `json:"Width"`
}

Dimensions defines model for Dimensions.

type Error

type Error struct {

	// An error code that identifies the type of error that occured.
	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 in a human-readable form.
	Message string `json:"message"`
}

Error defines model for Error.

type ErrorList

type ErrorList []Error

ErrorList defines model for ErrorList.

type ErrorReason

type ErrorReason string

ErrorReason defines model for ErrorReason.

const (
	ErrorReason_DoesNotExist ErrorReason = "DoesNotExist"
	ErrorReason_InvalidASIN  ErrorReason = "InvalidASIN"
)

List of ErrorReason

type EstimateTransportResp

type EstimateTransportResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *EstimateTransportResponse
}

func ParseEstimateTransportResp

func ParseEstimateTransportResp(rsp *http.Response) (*EstimateTransportResp, error)

ParseEstimateTransportResp parses an HTTP response from a EstimateTransportWithResponse call

func (EstimateTransportResp) Status

func (r EstimateTransportResp) Status() string

Status returns HTTPResponse.Status

func (EstimateTransportResp) StatusCode

func (r EstimateTransportResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EstimateTransportResponse

type EstimateTransportResponse struct {

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

EstimateTransportResponse defines model for EstimateTransportResponse.

type GetBillOfLadingResp

type GetBillOfLadingResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetBillOfLadingResponse
}

func ParseGetBillOfLadingResp

func ParseGetBillOfLadingResp(rsp *http.Response) (*GetBillOfLadingResp, error)

ParseGetBillOfLadingResp parses an HTTP response from a GetBillOfLadingWithResponse call

func (GetBillOfLadingResp) Status

func (r GetBillOfLadingResp) Status() string

Status returns HTTPResponse.Status

func (GetBillOfLadingResp) StatusCode

func (r GetBillOfLadingResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBillOfLadingResponse

type GetBillOfLadingResponse struct {

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

GetBillOfLadingResponse defines model for GetBillOfLadingResponse.

type GetInboundGuidanceParams

type GetInboundGuidanceParams struct {

	// A marketplace identifier. Specifies the marketplace where the product would be stored.
	MarketplaceId string `json:"MarketplaceId"`

	// A list of SellerSKU values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: SellerSKU is qualified by the SellerId, which is included with every Selling Partner API operation that you submit. If you specify a SellerSKU that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold.
	SellerSKUList *[]string `json:"SellerSKUList,omitempty"`

	// A list of ASIN values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: If you specify a ASIN that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold.
	ASINList *[]string `json:"ASINList,omitempty"`
}

GetInboundGuidanceParams defines parameters for GetInboundGuidance.

type GetInboundGuidanceResp

type GetInboundGuidanceResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetInboundGuidanceResponse
}

func ParseGetInboundGuidanceResp

func ParseGetInboundGuidanceResp(rsp *http.Response) (*GetInboundGuidanceResp, error)

ParseGetInboundGuidanceResp parses an HTTP response from a GetInboundGuidanceWithResponse call

func (GetInboundGuidanceResp) Status

func (r GetInboundGuidanceResp) Status() string

Status returns HTTPResponse.Status

func (GetInboundGuidanceResp) StatusCode

func (r GetInboundGuidanceResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetInboundGuidanceResponse

type GetInboundGuidanceResponse struct {

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

GetInboundGuidanceResponse defines model for GetInboundGuidanceResponse.

type GetInboundGuidanceResult

type GetInboundGuidanceResult struct {

	// A list of ASINs and their associated inbound guidance.
	ASINInboundGuidanceList *ASINInboundGuidanceList `json:"ASINInboundGuidanceList,omitempty"`

	// A list of invalid ASIN values and the reasons they are invalid.
	InvalidASINList *InvalidASINList `json:"InvalidASINList,omitempty"`

	// A list of invalid SKU values and the reason they are invalid.
	InvalidSKUList *InvalidSKUList `json:"InvalidSKUList,omitempty"`

	// A list of SKU inbound guidance information.
	SKUInboundGuidanceList *SKUInboundGuidanceList `json:"SKUInboundGuidanceList,omitempty"`
}

GetInboundGuidanceResult defines model for GetInboundGuidanceResult.

type GetLabelsParams

type GetLabelsParams struct {

	// The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error.
	PageType string `json:"PageType"`

	// The type of labels requested.
	LabelType string `json:"LabelType"`

	// The number of packages in the shipment.
	NumberOfPackages *int `json:"NumberOfPackages,omitempty"`

	// A list of identifiers that specify packages for which you want package labels printed.
	//
	// Must match CartonId values previously passed using the FBA Inbound Shipment Carton Information Feed. If not, the operation returns the IncorrectPackageIdentifier error code.
	PackageLabelsToPrint *[]string `json:"PackageLabelsToPrint,omitempty"`

	// The number of pallets in the shipment. This returns four identical labels for each pallet.
	NumberOfPallets *int `json:"NumberOfPallets,omitempty"`
}

GetLabelsParams defines parameters for GetLabels.

type GetLabelsResp

type GetLabelsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetLabelsResponse
}

func ParseGetLabelsResp

func ParseGetLabelsResp(rsp *http.Response) (*GetLabelsResp, error)

ParseGetLabelsResp parses an HTTP response from a GetLabelsWithResponse call

func (GetLabelsResp) Status

func (r GetLabelsResp) Status() string

Status returns HTTPResponse.Status

func (GetLabelsResp) StatusCode

func (r GetLabelsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLabelsResponse

type GetLabelsResponse struct {

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

GetLabelsResponse defines model for GetLabelsResponse.

type GetPreorderInfoParams

type GetPreorderInfoParams struct {

	// A marketplace identifier. Specifies the marketplace the shipment is tied to.
	MarketplaceId string `json:"MarketplaceId"`
}

GetPreorderInfoParams defines parameters for GetPreorderInfo.

type GetPreorderInfoResp

type GetPreorderInfoResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetPreorderInfoResponse
}

func ParseGetPreorderInfoResp

func ParseGetPreorderInfoResp(rsp *http.Response) (*GetPreorderInfoResp, error)

ParseGetPreorderInfoResp parses an HTTP response from a GetPreorderInfoWithResponse call

func (GetPreorderInfoResp) Status

func (r GetPreorderInfoResp) Status() string

Status returns HTTPResponse.Status

func (GetPreorderInfoResp) StatusCode

func (r GetPreorderInfoResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPreorderInfoResponse

type GetPreorderInfoResponse struct {

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

GetPreorderInfoResponse defines model for GetPreorderInfoResponse.

type GetPreorderInfoResult

type GetPreorderInfoResult struct {
	ConfirmedFulfillableDate *DateStringType `json:"ConfirmedFulfillableDate,omitempty"`
	NeedByDate               *DateStringType `json:"NeedByDate,omitempty"`

	// Indicates whether this shipment has been confirmed for pre-order.
	ShipmentConfirmedForPreorder *bool `json:"ShipmentConfirmedForPreorder,omitempty"`

	// Indicates whether the shipment contains items that have been enabled for pre-order. For more information about enabling items for pre-order, see the Seller Central Help.
	ShipmentContainsPreorderableItems *bool `json:"ShipmentContainsPreorderableItems,omitempty"`
}

GetPreorderInfoResult defines model for GetPreorderInfoResult.

type GetPrepInstructionsParams

type GetPrepInstructionsParams struct {

	// The country code of the country to which the items will be shipped. Note that labeling requirements and item preparation instructions can vary by country.
	ShipToCountryCode string `json:"ShipToCountryCode"`

	// A list of SellerSKU values. Used to identify items for which you want labeling requirements and item preparation instructions for shipment to Amazon's fulfillment network. The SellerSKU is qualified by the Seller ID, which is included with every call to the Seller Partner API.
	//
	// Note: Include seller SKUs that you have used to list items on Amazon's retail website. If you include a seller SKU that you have never used to list an item on Amazon's retail website, the seller SKU is returned in the InvalidSKUList property in the response.
	SellerSKUList *[]string `json:"SellerSKUList,omitempty"`

	// A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions.
	//
	// Note: ASINs must be included in the product catalog for at least one of the marketplaces that the seller  participates in. Any ASIN that is not included in the product catalog for at least one of the marketplaces that the seller participates in is returned in the InvalidASINList property in the response. You can find out which marketplaces a seller participates in by calling the getMarketplaceParticipations operation in the Selling Partner API for Sellers.
	ASINList *[]string `json:"ASINList,omitempty"`
}

GetPrepInstructionsParams defines parameters for GetPrepInstructions.

type GetPrepInstructionsResp

type GetPrepInstructionsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetPrepInstructionsResponse
}

func ParseGetPrepInstructionsResp

func ParseGetPrepInstructionsResp(rsp *http.Response) (*GetPrepInstructionsResp, error)

ParseGetPrepInstructionsResp parses an HTTP response from a GetPrepInstructionsWithResponse call

func (GetPrepInstructionsResp) Status

func (r GetPrepInstructionsResp) Status() string

Status returns HTTPResponse.Status

func (GetPrepInstructionsResp) StatusCode

func (r GetPrepInstructionsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPrepInstructionsResponse

type GetPrepInstructionsResponse struct {

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

GetPrepInstructionsResponse defines model for GetPrepInstructionsResponse.

type GetPrepInstructionsResult

type GetPrepInstructionsResult struct {

	// A list of item preparation instructions.
	ASINPrepInstructionsList *ASINPrepInstructionsList `json:"ASINPrepInstructionsList,omitempty"`

	// A list of invalid ASIN values and the reasons they are invalid.
	InvalidASINList *InvalidASINList `json:"InvalidASINList,omitempty"`

	// A list of invalid SKU values and the reason they are invalid.
	InvalidSKUList *InvalidSKUList `json:"InvalidSKUList,omitempty"`

	// A list of SKU labeling requirements and item preparation instructions.
	SKUPrepInstructionsList *SKUPrepInstructionsList `json:"SKUPrepInstructionsList,omitempty"`
}

GetPrepInstructionsResult defines model for GetPrepInstructionsResult.

type GetShipmentItemsByShipmentIdParams

type GetShipmentItemsByShipmentIdParams struct {

	// A marketplace identifier. Specifies the marketplace where the product would be stored.
	MarketplaceId string `json:"MarketplaceId"`
}

GetShipmentItemsByShipmentIdParams defines parameters for GetShipmentItemsByShipmentId.

type GetShipmentItemsByShipmentIdResp

type GetShipmentItemsByShipmentIdResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetShipmentItemsResponse
}

func ParseGetShipmentItemsByShipmentIdResp

func ParseGetShipmentItemsByShipmentIdResp(rsp *http.Response) (*GetShipmentItemsByShipmentIdResp, error)

ParseGetShipmentItemsByShipmentIdResp parses an HTTP response from a GetShipmentItemsByShipmentIdWithResponse call

func (GetShipmentItemsByShipmentIdResp) Status

Status returns HTTPResponse.Status

func (GetShipmentItemsByShipmentIdResp) StatusCode

func (r GetShipmentItemsByShipmentIdResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetShipmentItemsParams

type GetShipmentItemsParams struct {

	// A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller.
	LastUpdatedAfter *time.Time `json:"LastUpdatedAfter,omitempty"`

	// A date used for selecting inbound shipment items that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller.
	LastUpdatedBefore *time.Time `json:"LastUpdatedBefore,omitempty"`

	// Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request.
	QueryType string `json:"QueryType"`

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

	// A marketplace identifier. Specifies the marketplace where the product would be stored.
	MarketplaceId string `json:"MarketplaceId"`
}

GetShipmentItemsParams defines parameters for GetShipmentItems.

type GetShipmentItemsResp

type GetShipmentItemsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetShipmentItemsResponse
}

func ParseGetShipmentItemsResp

func ParseGetShipmentItemsResp(rsp *http.Response) (*GetShipmentItemsResp, error)

ParseGetShipmentItemsResp parses an HTTP response from a GetShipmentItemsWithResponse call

func (GetShipmentItemsResp) Status

func (r GetShipmentItemsResp) Status() string

Status returns HTTPResponse.Status

func (GetShipmentItemsResp) StatusCode

func (r GetShipmentItemsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetShipmentItemsResponse

type GetShipmentItemsResponse struct {

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

GetShipmentItemsResponse defines model for GetShipmentItemsResponse.

type GetShipmentItemsResult

type GetShipmentItemsResult struct {

	// A list of inbound shipment item information.
	ItemData *InboundShipmentItemList `json:"ItemData,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"`
}

GetShipmentItemsResult defines model for GetShipmentItemsResult.

type GetShipmentsParams

type GetShipmentsParams struct {

	// A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify.
	ShipmentStatusList *[]string `json:"ShipmentStatusList,omitempty"`

	// A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned.
	ShipmentIdList *[]string `json:"ShipmentIdList,omitempty"`

	// A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller.
	LastUpdatedAfter *time.Time `json:"LastUpdatedAfter,omitempty"`

	// A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller.
	LastUpdatedBefore *time.Time `json:"LastUpdatedBefore,omitempty"`

	// Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request.
	QueryType string `json:"QueryType"`

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

	// A marketplace identifier. Specifies the marketplace where the product would be stored.
	MarketplaceId string `json:"MarketplaceId"`
}

GetShipmentsParams defines parameters for GetShipments.

type GetShipmentsResp

type GetShipmentsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetShipmentsResponse
}

func ParseGetShipmentsResp

func ParseGetShipmentsResp(rsp *http.Response) (*GetShipmentsResp, error)

ParseGetShipmentsResp parses an HTTP response from a GetShipmentsWithResponse call

func (GetShipmentsResp) Status

func (r GetShipmentsResp) Status() string

Status returns HTTPResponse.Status

func (GetShipmentsResp) StatusCode

func (r GetShipmentsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetShipmentsResponse

type GetShipmentsResponse struct {

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

GetShipmentsResponse defines model for GetShipmentsResponse.

type GetShipmentsResult

type GetShipmentsResult struct {

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

	// A list of inbound shipment information.
	ShipmentData *InboundShipmentList `json:"ShipmentData,omitempty"`
}

GetShipmentsResult defines model for GetShipmentsResult.

type GetTransportDetailsResp

type GetTransportDetailsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetTransportDetailsResponse
}

func ParseGetTransportDetailsResp

func ParseGetTransportDetailsResp(rsp *http.Response) (*GetTransportDetailsResp, error)

ParseGetTransportDetailsResp parses an HTTP response from a GetTransportDetailsWithResponse call

func (GetTransportDetailsResp) Status

func (r GetTransportDetailsResp) Status() string

Status returns HTTPResponse.Status

func (GetTransportDetailsResp) StatusCode

func (r GetTransportDetailsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTransportDetailsResponse

type GetTransportDetailsResponse struct {

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

GetTransportDetailsResponse defines model for GetTransportDetailsResponse.

type GetTransportDetailsResult

type GetTransportDetailsResult struct {

	// Inbound shipment information, including carrier details, shipment status, and the workflow status for a request for shipment with an Amazon-partnered carrier.
	TransportContent *TransportContent `json:"TransportContent,omitempty"`
}

GetTransportDetailsResult defines model for GetTransportDetailsResult.

type GuidanceReason

type GuidanceReason string

GuidanceReason defines model for GuidanceReason.

const (
	GuidanceReason_NoApplicableGuidance GuidanceReason = "NoApplicableGuidance"
	GuidanceReason_SlowMovingASIN       GuidanceReason = "SlowMovingASIN"
)

List of GuidanceReason

type GuidanceReasonList

type GuidanceReasonList []GuidanceReason

GuidanceReasonList defines model for GuidanceReasonList.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InboundGuidance

type InboundGuidance string

InboundGuidance defines model for InboundGuidance.

const (
	InboundGuidance_InboundNotRecommended InboundGuidance = "InboundNotRecommended"
	InboundGuidance_InboundOK             InboundGuidance = "InboundOK"
)

List of InboundGuidance

type InboundShipmentHeader

type InboundShipmentHeader struct {

	// Indicates whether or not an inbound shipment contains case-packed boxes. Note: A shipment must contain either all case-packed boxes or all individually packed boxes.
	//
	// Possible values:
	//
	// true - All boxes in the shipment must be case packed.
	//
	// false - All boxes in the shipment must be individually packed.
	//
	// Note: If AreCasesRequired = true for an inbound shipment, then the value of QuantityInCase must be greater than zero for every item in the shipment. Otherwise the service returns an error.
	AreCasesRequired *bool `json:"AreCasesRequired,omitempty"`

	// The identifier for the fulfillment center to which the shipment will be shipped. Get this value from the InboundShipmentPlan object in the response returned by the createInboundShipmentPlan operation.
	DestinationFulfillmentCenterId string `json:"DestinationFulfillmentCenterId"`

	// How the seller intends to provide box contents information for a shipment.
	IntendedBoxContentsSource *IntendedBoxContentsSource `json:"IntendedBoxContentsSource,omitempty"`

	// The preference for label preparation for an inbound shipment.
	LabelPrepPreference LabelPrepPreference `json:"LabelPrepPreference"`
	ShipFromAddress     Address             `json:"ShipFromAddress"`

	// The name for the shipment. Use a naming convention that helps distinguish between shipments over time, such as the date the shipment was created.
	ShipmentName string `json:"ShipmentName"`

	// Indicates the status of the inbound shipment. When used with the createInboundShipment operation, WORKING is the only valid value. When used with the updateInboundShipment operation, possible values are WORKING, SHIPPED or CANCELLED.
	ShipmentStatus ShipmentStatus `json:"ShipmentStatus"`
}

InboundShipmentHeader defines model for InboundShipmentHeader.

type InboundShipmentInfo

type InboundShipmentInfo struct {

	// Indicates whether or not an inbound shipment contains case-packed boxes. When AreCasesRequired = true for an inbound shipment, all items in the inbound shipment must be case packed.
	AreCasesRequired bool `json:"AreCasesRequired"`

	// Where the seller provided box contents information for a shipment.
	BoxContentsSource   *BoxContentsSource `json:"BoxContentsSource,omitempty"`
	ConfirmedNeedByDate *DateStringType    `json:"ConfirmedNeedByDate,omitempty"`

	// An Amazon fulfillment center identifier created by Amazon.
	DestinationFulfillmentCenterId *string `json:"DestinationFulfillmentCenterId,omitempty"`

	// The manual processing fee per unit and total fee for a shipment.
	EstimatedBoxContentsFee *BoxContentsFeeDetails `json:"EstimatedBoxContentsFee,omitempty"`

	// The type of label preparation that is required for the inbound shipment.
	LabelPrepType   *LabelPrepType `json:"LabelPrepType,omitempty"`
	ShipFromAddress Address        `json:"ShipFromAddress"`

	// The shipment identifier submitted in the request.
	ShipmentId *string `json:"ShipmentId,omitempty"`

	// The name for the inbound shipment.
	ShipmentName *string `json:"ShipmentName,omitempty"`

	// Indicates the status of the inbound shipment. When used with the createInboundShipment operation, WORKING is the only valid value. When used with the updateInboundShipment operation, possible values are WORKING, SHIPPED or CANCELLED.
	ShipmentStatus *ShipmentStatus `json:"ShipmentStatus,omitempty"`
}

InboundShipmentInfo defines model for InboundShipmentInfo.

type InboundShipmentItem

type InboundShipmentItem struct {

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

	// A list of preparation instructions and who is responsible for that preparation.
	PrepDetailsList *PrepDetailsList `json:"PrepDetailsList,omitempty"`

	// The item quantity.
	QuantityInCase *Quantity `json:"QuantityInCase,omitempty"`

	// The item quantity.
	QuantityReceived *Quantity `json:"QuantityReceived,omitempty"`

	// The item quantity.
	QuantityShipped Quantity `json:"QuantityShipped"`
	ReleaseDate     *string  `json:"ReleaseDate,omitempty"`

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

	// A shipment identifier originally returned by the createInboundShipmentPlan operation.
	ShipmentId *string `json:"ShipmentId,omitempty"`
}

InboundShipmentItem defines model for InboundShipmentItem.

type InboundShipmentItemList

type InboundShipmentItemList []InboundShipmentItem

InboundShipmentItemList defines model for InboundShipmentItemList.

type InboundShipmentList

type InboundShipmentList []InboundShipmentInfo

InboundShipmentList defines model for InboundShipmentList.

type InboundShipmentPlan

type InboundShipmentPlan struct {

	// An Amazon fulfillment center identifier created by Amazon.
	DestinationFulfillmentCenterId string `json:"DestinationFulfillmentCenterId"`

	// The manual processing fee per unit and total fee for a shipment.
	EstimatedBoxContentsFee *BoxContentsFeeDetails `json:"EstimatedBoxContentsFee,omitempty"`

	// A list of inbound shipment plan item information.
	Items InboundShipmentPlanItemList `json:"Items"`

	// The type of label preparation that is required for the inbound shipment.
	LabelPrepType LabelPrepType `json:"LabelPrepType"`
	ShipToAddress Address       `json:"ShipToAddress"`

	// A shipment identifier originally returned by the createInboundShipmentPlan operation.
	ShipmentId string `json:"ShipmentId"`
}

InboundShipmentPlan defines model for InboundShipmentPlan.

type InboundShipmentPlanItem

type InboundShipmentPlanItem struct {

	// Amazon's fulfillment network SKU of the item.
	FulfillmentNetworkSKU string `json:"FulfillmentNetworkSKU"`

	// A list of preparation instructions and who is responsible for that preparation.
	PrepDetailsList *PrepDetailsList `json:"PrepDetailsList,omitempty"`

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

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

InboundShipmentPlanItem defines model for InboundShipmentPlanItem.

type InboundShipmentPlanItemList

type InboundShipmentPlanItemList []InboundShipmentPlanItem

InboundShipmentPlanItemList defines model for InboundShipmentPlanItemList.

type InboundShipmentPlanList

type InboundShipmentPlanList []InboundShipmentPlan

InboundShipmentPlanList defines model for InboundShipmentPlanList.

type InboundShipmentPlanRequestItem

type InboundShipmentPlanRequestItem struct {

	// The Amazon Standard Identification Number (ASIN) of the item.
	ASIN string `json:"ASIN"`

	// The condition of the item.
	Condition Condition `json:"Condition"`

	// A list of preparation instructions and who is responsible for that preparation.
	PrepDetailsList *PrepDetailsList `json:"PrepDetailsList,omitempty"`

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

	// The item quantity.
	QuantityInCase *Quantity `json:"QuantityInCase,omitempty"`

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

InboundShipmentPlanRequestItem defines model for InboundShipmentPlanRequestItem.

type InboundShipmentPlanRequestItemList

type InboundShipmentPlanRequestItemList []InboundShipmentPlanRequestItem

InboundShipmentPlanRequestItemList defines model for InboundShipmentPlanRequestItemList.

type InboundShipmentRequest

type InboundShipmentRequest struct {

	// Inbound shipment information used to create and update inbound shipments.
	InboundShipmentHeader InboundShipmentHeader `json:"InboundShipmentHeader"`

	// A list of inbound shipment item information.
	InboundShipmentItems InboundShipmentItemList `json:"InboundShipmentItems"`

	// A marketplace identifier. Specifies the marketplace where the product would be stored.
	MarketplaceId string `json:"MarketplaceId"`
}

InboundShipmentRequest defines model for InboundShipmentRequest.

type InboundShipmentResponse

type InboundShipmentResponse struct {

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

InboundShipmentResponse defines model for InboundShipmentResponse.

type InboundShipmentResult

type InboundShipmentResult struct {

	// The shipment identifier submitted in the request.
	ShipmentId string `json:"ShipmentId"`
}

InboundShipmentResult defines model for InboundShipmentResult.

type IntendedBoxContentsSource

type IntendedBoxContentsSource string

IntendedBoxContentsSource defines model for IntendedBoxContentsSource.

const (
	IntendedBoxContentsSource_FEED       IntendedBoxContentsSource = "FEED"
	IntendedBoxContentsSource_NONE       IntendedBoxContentsSource = "NONE"
	IntendedBoxContentsSource__D_BARCODE IntendedBoxContentsSource = "2D_BARCODE"
)

List of IntendedBoxContentsSource

type InvalidASIN

type InvalidASIN struct {

	// The Amazon Standard Identification Number (ASIN) of the item.
	ASIN *string `json:"ASIN,omitempty"`

	// The reason that the ASIN is invalid.
	ErrorReason *ErrorReason `json:"ErrorReason,omitempty"`
}

InvalidASIN defines model for InvalidASIN.

type InvalidASINList

type InvalidASINList []InvalidASIN

InvalidASINList defines model for InvalidASINList.

type InvalidSKU

type InvalidSKU struct {

	// The reason that the ASIN is invalid.
	ErrorReason *ErrorReason `json:"ErrorReason,omitempty"`

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

InvalidSKU defines model for InvalidSKU.

type InvalidSKUList

type InvalidSKUList []InvalidSKU

InvalidSKUList defines model for InvalidSKUList.

type LabelDownloadURL

type LabelDownloadURL struct {

	// URL to download the label for the package. Note: The URL will only be valid for 15 seconds
	DownloadURL *string `json:"DownloadURL,omitempty"`
}

LabelDownloadURL defines model for LabelDownloadURL.

type LabelPrepPreference

type LabelPrepPreference string

LabelPrepPreference defines model for LabelPrepPreference.

const (
	LabelPrepPreference_AMAZON_LABEL_ONLY      LabelPrepPreference = "AMAZON_LABEL_ONLY"
	LabelPrepPreference_AMAZON_LABEL_PREFERRED LabelPrepPreference = "AMAZON_LABEL_PREFERRED"
	LabelPrepPreference_SELLER_LABEL           LabelPrepPreference = "SELLER_LABEL"
)

List of LabelPrepPreference

type LabelPrepType

type LabelPrepType string

LabelPrepType defines model for LabelPrepType.

const (
	LabelPrepType_AMAZON_LABEL LabelPrepType = "AMAZON_LABEL"
	LabelPrepType_NO_LABEL     LabelPrepType = "NO_LABEL"
	LabelPrepType_SELLER_LABEL LabelPrepType = "SELLER_LABEL"
)

List of LabelPrepType

type NonPartneredLtlDataInput

type NonPartneredLtlDataInput struct {

	// The carrier that you are using for the inbound shipment.
	CarrierName string `json:"CarrierName"`

	// The PRO number ("progressive number" or "progressive ID") assigned to the shipment by the carrier.
	ProNumber ProNumber `json:"ProNumber"`
}

NonPartneredLtlDataInput defines model for NonPartneredLtlDataInput.

type NonPartneredLtlDataOutput

type NonPartneredLtlDataOutput struct {

	// The carrier that you are using for the inbound shipment.
	CarrierName string `json:"CarrierName"`

	// The PRO number ("progressive number" or "progressive ID") assigned to the shipment by the carrier.
	ProNumber ProNumber `json:"ProNumber"`
}

NonPartneredLtlDataOutput defines model for NonPartneredLtlDataOutput.

type NonPartneredSmallParcelDataInput

type NonPartneredSmallParcelDataInput struct {

	// The carrier that you are using for the inbound shipment.
	CarrierName string `json:"CarrierName"`

	// A list of package tracking information.
	PackageList NonPartneredSmallParcelPackageInputList `json:"PackageList"`
}

NonPartneredSmallParcelDataInput defines model for NonPartneredSmallParcelDataInput.

type NonPartneredSmallParcelDataOutput

type NonPartneredSmallParcelDataOutput struct {

	// A list of packages, including carrier, tracking number, and status information for each package.
	PackageList NonPartneredSmallParcelPackageOutputList `json:"PackageList"`
}

NonPartneredSmallParcelDataOutput defines model for NonPartneredSmallParcelDataOutput.

type NonPartneredSmallParcelPackageInput

type NonPartneredSmallParcelPackageInput struct {

	// The tracking number of the package, provided by the carrier.
	TrackingId TrackingId `json:"TrackingId"`
}

NonPartneredSmallParcelPackageInput defines model for NonPartneredSmallParcelPackageInput.

type NonPartneredSmallParcelPackageInputList

type NonPartneredSmallParcelPackageInputList []NonPartneredSmallParcelPackageInput

NonPartneredSmallParcelPackageInputList defines model for NonPartneredSmallParcelPackageInputList.

type NonPartneredSmallParcelPackageOutput

type NonPartneredSmallParcelPackageOutput struct {

	// The carrier that you are using for the inbound shipment.
	CarrierName string `json:"CarrierName"`

	// The shipment status of the package.
	PackageStatus PackageStatus `json:"PackageStatus"`

	// The tracking number of the package, provided by the carrier.
	TrackingId TrackingId `json:"TrackingId"`
}

NonPartneredSmallParcelPackageOutput defines model for NonPartneredSmallParcelPackageOutput.

type NonPartneredSmallParcelPackageOutputList

type NonPartneredSmallParcelPackageOutputList []NonPartneredSmallParcelPackageOutput

NonPartneredSmallParcelPackageOutputList defines model for NonPartneredSmallParcelPackageOutputList.

type PackageStatus

type PackageStatus string

PackageStatus defines model for PackageStatus.

const (
	PackageStatus_CHECKED_IN PackageStatus = "CHECKED_IN"
	PackageStatus_CLOSED     PackageStatus = "CLOSED"
	PackageStatus_DELETED    PackageStatus = "DELETED"
	PackageStatus_DELIVERED  PackageStatus = "DELIVERED"
	PackageStatus_IN_TRANSIT PackageStatus = "IN_TRANSIT"
	PackageStatus_RECEIVING  PackageStatus = "RECEIVING"
	PackageStatus_SHIPPED    PackageStatus = "SHIPPED"
)

List of PackageStatus

type Pallet

type Pallet struct {

	// The dimension values and unit of measurement.
	Dimensions Dimensions `json:"Dimensions"`

	// Indicates whether pallets will be stacked when carrier arrives for pick-up.
	IsStacked bool `json:"IsStacked"`

	// The weight of the package.
	Weight *Weight `json:"Weight,omitempty"`
}

Pallet defines model for Pallet.

type PalletList

type PalletList []Pallet

PalletList defines model for PalletList.

type PartneredEstimate

type PartneredEstimate struct {

	// The monetary value.
	Amount          Amount               `json:"Amount"`
	ConfirmDeadline *TimeStampStringType `json:"ConfirmDeadline,omitempty"`
	VoidDeadline    *TimeStampStringType `json:"VoidDeadline,omitempty"`
}

PartneredEstimate defines model for PartneredEstimate.

type PartneredLtlDataInput

type PartneredLtlDataInput struct {
	BoxCount *UnsignedIntType `json:"BoxCount,omitempty"`

	// Contact information for the person in the seller's organization who is responsible for a Less Than Truckload/Full Truckload (LTL/FTL) shipment.
	Contact          *Contact        `json:"Contact,omitempty"`
	FreightReadyDate *DateStringType `json:"FreightReadyDate,omitempty"`

	// A list of pallet information.
	PalletList *PalletList `json:"PalletList,omitempty"`

	// The monetary value.
	SellerDeclaredValue *Amount `json:"SellerDeclaredValue,omitempty"`

	// The freight class of the shipment. For information about determining the freight class, contact the carrier.
	SellerFreightClass *SellerFreightClass `json:"SellerFreightClass,omitempty"`

	// The weight of the package.
	TotalWeight *Weight `json:"TotalWeight,omitempty"`
}

PartneredLtlDataInput defines model for PartneredLtlDataInput.

type PartneredLtlDataOutput

type PartneredLtlDataOutput struct {

	// The monetary value.
	AmazonCalculatedValue *Amount `json:"AmazonCalculatedValue,omitempty"`

	// A unique identifier created by Amazon that identifies this Amazon-partnered, Less Than Truckload/Full Truckload (LTL/FTL) shipment.
	AmazonReferenceId string          `json:"AmazonReferenceId"`
	BoxCount          UnsignedIntType `json:"BoxCount"`

	// The carrier for the inbound shipment.
	CarrierName string `json:"CarrierName"`

	// Contact information for the person in the seller's organization who is responsible for a Less Than Truckload/Full Truckload (LTL/FTL) shipment.
	Contact          Contact        `json:"Contact"`
	FreightReadyDate DateStringType `json:"FreightReadyDate"`

	// Indicates whether the bill of lading for the shipment is available.
	IsBillOfLadingAvailable bool `json:"IsBillOfLadingAvailable"`

	// A list of pallet information.
	PalletList PalletList `json:"PalletList"`

	// The estimated shipping cost for a shipment using an Amazon-partnered carrier.
	PartneredEstimate   *PartneredEstimate `json:"PartneredEstimate,omitempty"`
	PreviewDeliveryDate DateStringType     `json:"PreviewDeliveryDate"`

	// The freight class of the shipment. For information about determining the freight class, contact the carrier.
	PreviewFreightClass SellerFreightClass `json:"PreviewFreightClass"`
	PreviewPickupDate   DateStringType     `json:"PreviewPickupDate"`

	// The monetary value.
	SellerDeclaredValue *Amount `json:"SellerDeclaredValue,omitempty"`

	// The freight class of the shipment. For information about determining the freight class, contact the carrier.
	SellerFreightClass *SellerFreightClass `json:"SellerFreightClass,omitempty"`

	// The weight of the package.
	TotalWeight Weight `json:"TotalWeight"`
}

PartneredLtlDataOutput defines model for PartneredLtlDataOutput.

type PartneredSmallParcelDataInput

type PartneredSmallParcelDataInput struct {

	// The Amazon-partnered carrier to use for the inbound shipment.
	CarrierName *string `json:"CarrierName,omitempty"`

	// A list of dimensions and weight information for packages.
	PackageList *PartneredSmallParcelPackageInputList `json:"PackageList,omitempty"`
}

PartneredSmallParcelDataInput defines model for PartneredSmallParcelDataInput.

type PartneredSmallParcelDataOutput

type PartneredSmallParcelDataOutput struct {

	// A list of packages, including shipping information from the Amazon-partnered carrier.
	PackageList PartneredSmallParcelPackageOutputList `json:"PackageList"`

	// The estimated shipping cost for a shipment using an Amazon-partnered carrier.
	PartneredEstimate *PartneredEstimate `json:"PartneredEstimate,omitempty"`
}

PartneredSmallParcelDataOutput defines model for PartneredSmallParcelDataOutput.

type PartneredSmallParcelPackageInput

type PartneredSmallParcelPackageInput struct {

	// The dimension values and unit of measurement.
	Dimensions Dimensions `json:"Dimensions"`

	// The weight of the package.
	Weight Weight `json:"Weight"`
}

PartneredSmallParcelPackageInput defines model for PartneredSmallParcelPackageInput.

type PartneredSmallParcelPackageInputList

type PartneredSmallParcelPackageInputList []PartneredSmallParcelPackageInput

PartneredSmallParcelPackageInputList defines model for PartneredSmallParcelPackageInputList.

type PartneredSmallParcelPackageOutput

type PartneredSmallParcelPackageOutput struct {

	// The carrier specified with a previous call to putTransportDetails.
	CarrierName string `json:"CarrierName"`

	// The dimension values and unit of measurement.
	Dimensions Dimensions `json:"Dimensions"`

	// The shipment status of the package.
	PackageStatus PackageStatus `json:"PackageStatus"`

	// The tracking number of the package, provided by the carrier.
	TrackingId TrackingId `json:"TrackingId"`

	// The weight of the package.
	Weight Weight `json:"Weight"`
}

PartneredSmallParcelPackageOutput defines model for PartneredSmallParcelPackageOutput.

type PartneredSmallParcelPackageOutputList

type PartneredSmallParcelPackageOutputList []PartneredSmallParcelPackageOutput

PartneredSmallParcelPackageOutputList defines model for PartneredSmallParcelPackageOutputList.

type PrepDetails

type PrepDetails struct {

	// Preparation instructions for shipping an item to Amazon's fulfillment network. For more information about preparing items for shipment to Amazon's fulfillment network, see the Seller Central Help for your marketplace.
	PrepInstruction PrepInstruction `json:"PrepInstruction"`

	// Indicates who will prepare the item.
	PrepOwner PrepOwner `json:"PrepOwner"`
}

PrepDetails defines model for PrepDetails.

type PrepDetailsList

type PrepDetailsList []PrepDetails

PrepDetailsList defines model for PrepDetailsList.

type PrepGuidance

type PrepGuidance string

PrepGuidance defines model for PrepGuidance.

const (
	PrepGuidance_ConsultHelpDocuments     PrepGuidance = "ConsultHelpDocuments"
	PrepGuidance_NoAdditionalPrepRequired PrepGuidance = "NoAdditionalPrepRequired"
	PrepGuidance_SeePrepInstructionsList  PrepGuidance = "SeePrepInstructionsList"
)

List of PrepGuidance

type PrepInstruction

type PrepInstruction string

PrepInstruction defines model for PrepInstruction.

const (
	PrepInstruction_BlackShrinkWrapping PrepInstruction = "BlackShrinkWrapping"
	PrepInstruction_BubbleWrapping      PrepInstruction = "BubbleWrapping"
	PrepInstruction_HangGarment         PrepInstruction = "HangGarment"
	PrepInstruction_Labeling            PrepInstruction = "Labeling"
	PrepInstruction_Polybagging         PrepInstruction = "Polybagging"
	PrepInstruction_Taping              PrepInstruction = "Taping"
)

List of PrepInstruction

type PrepInstructionList

type PrepInstructionList []PrepInstruction

PrepInstructionList defines model for PrepInstructionList.

type PrepOwner

type PrepOwner string

PrepOwner defines model for PrepOwner.

const (
	PrepOwner_AMAZON PrepOwner = "AMAZON"
	PrepOwner_SELLER PrepOwner = "SELLER"
)

List of PrepOwner

type ProNumber

type ProNumber string

ProNumber defines model for ProNumber.

type PutTransportDetailsJSONBody

type PutTransportDetailsJSONBody PutTransportDetailsRequest

PutTransportDetailsJSONBody defines parameters for PutTransportDetails.

type PutTransportDetailsJSONRequestBody

type PutTransportDetailsJSONRequestBody PutTransportDetailsJSONBody

PutTransportDetailsRequestBody defines body for PutTransportDetails for application/json ContentType.

type PutTransportDetailsRequest

type PutTransportDetailsRequest struct {

	// Indicates whether a putTransportDetails request is for an Amazon-partnered carrier.
	IsPartnered bool `json:"IsPartnered"`

	// Specifies the carrier shipment type in a putTransportDetails request.
	ShipmentType ShipmentType `json:"ShipmentType"`

	// Information required to create an Amazon-partnered carrier shipping estimate, or to alert the Amazon fulfillment center to the arrival of an inbound shipment by a non-Amazon-partnered carrier.
	TransportDetails TransportDetailInput `json:"TransportDetails"`
}

PutTransportDetailsRequest defines model for PutTransportDetailsRequest.

type PutTransportDetailsResp

type PutTransportDetailsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *PutTransportDetailsResponse
}

func ParsePutTransportDetailsResp

func ParsePutTransportDetailsResp(rsp *http.Response) (*PutTransportDetailsResp, error)

ParsePutTransportDetailsResp parses an HTTP response from a PutTransportDetailsWithResponse call

func (PutTransportDetailsResp) Status

func (r PutTransportDetailsResp) Status() string

Status returns HTTPResponse.Status

func (PutTransportDetailsResp) StatusCode

func (r PutTransportDetailsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutTransportDetailsResponse

type PutTransportDetailsResponse struct {

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

PutTransportDetailsResponse defines model for PutTransportDetailsResponse.

type Quantity

type Quantity int32

Quantity defines model for Quantity.

type RequestBeforeFn

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

RequestBeforeFn is the function signature for the RequestBefore callback function

type ResponseAfterFn

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

ResponseAfterFn is the function signature for the ResponseAfter callback function

type SKUInboundGuidance

type SKUInboundGuidance struct {

	// The Amazon Standard Identification Number (ASIN) of the item.
	ASIN string `json:"ASIN"`

	// A list of inbound guidance reason information.
	GuidanceReasonList *GuidanceReasonList `json:"GuidanceReasonList,omitempty"`

	// Specific inbound guidance for an item.
	InboundGuidance InboundGuidance `json:"InboundGuidance"`

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

SKUInboundGuidance defines model for SKUInboundGuidance.

type SKUInboundGuidanceList

type SKUInboundGuidanceList []SKUInboundGuidance

SKUInboundGuidanceList defines model for SKUInboundGuidanceList.

type SKUPrepInstructions

type SKUPrepInstructions struct {

	// The Amazon Standard Identification Number (ASIN) of the item.
	ASIN *string `json:"ASIN,omitempty"`

	// A list of preparation instructions and fees for Amazon to prep goods for shipment.
	AmazonPrepFeesDetailsList *AmazonPrepFeesDetailsList `json:"AmazonPrepFeesDetailsList,omitempty"`

	// Labeling requirements for the item. For more information about FBA labeling requirements, see the Seller Central Help for your marketplace.
	BarcodeInstruction *BarcodeInstruction `json:"BarcodeInstruction,omitempty"`

	// Item preparation instructions.
	PrepGuidance *PrepGuidance `json:"PrepGuidance,omitempty"`

	// A list of preparation instructions to help with item sourcing decisions.
	PrepInstructionList *PrepInstructionList `json:"PrepInstructionList,omitempty"`

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

SKUPrepInstructions defines model for SKUPrepInstructions.

type SKUPrepInstructionsList

type SKUPrepInstructionsList []SKUPrepInstructions

SKUPrepInstructionsList defines model for SKUPrepInstructionsList.

type SellerFreightClass

type SellerFreightClass string

SellerFreightClass defines model for SellerFreightClass.

const (
	SellerFreightClass__0   SellerFreightClass = "50"
	SellerFreightClass__00  SellerFreightClass = "100"
	SellerFreightClass__001 SellerFreightClass = "500"
	SellerFreightClass__01  SellerFreightClass = "70"
	SellerFreightClass__10  SellerFreightClass = "110"
	SellerFreightClass__25  SellerFreightClass = "125"
	SellerFreightClass__2_5 SellerFreightClass = "92.5"
	SellerFreightClass__5   SellerFreightClass = "55"
	SellerFreightClass__50  SellerFreightClass = "150"
	SellerFreightClass__501 SellerFreightClass = "250"
	SellerFreightClass__51  SellerFreightClass = "85"
	SellerFreightClass__75  SellerFreightClass = "175"
	SellerFreightClass__7_5 SellerFreightClass = "77.5"
)

List of SellerFreightClass

type ShipmentStatus

type ShipmentStatus string

ShipmentStatus defines model for ShipmentStatus.

const (
	ShipmentStatus_CANCELLED  ShipmentStatus = "CANCELLED"
	ShipmentStatus_CHECKED_IN ShipmentStatus = "CHECKED_IN"
	ShipmentStatus_CLOSED     ShipmentStatus = "CLOSED"
	ShipmentStatus_DELETED    ShipmentStatus = "DELETED"
	ShipmentStatus_DELIVERED  ShipmentStatus = "DELIVERED"
	ShipmentStatus_ERROR      ShipmentStatus = "ERROR"
	ShipmentStatus_IN_TRANSIT ShipmentStatus = "IN_TRANSIT"
	ShipmentStatus_RECEIVING  ShipmentStatus = "RECEIVING"
	ShipmentStatus_SHIPPED    ShipmentStatus = "SHIPPED"
	ShipmentStatus_WORKING    ShipmentStatus = "WORKING"
)

List of ShipmentStatus

type ShipmentType

type ShipmentType string

ShipmentType defines model for ShipmentType.

const (
	ShipmentType_LTL ShipmentType = "LTL"
	ShipmentType_SP  ShipmentType = "SP"
)

List of ShipmentType

type TimeStampStringType

type TimeStampStringType time.Time

TimeStampStringType defines model for TimeStampStringType.

type TrackingId

type TrackingId string

TrackingId defines model for TrackingId.

type TransportContent

type TransportContent struct {

	// Inbound shipment information, including carrier details and shipment status.
	TransportDetails TransportDetailOutput `json:"TransportDetails"`

	// The shipping identifier, information about whether the shipment is by an Amazon-partnered carrier, and information about whether the shipment is Small Parcel or Less Than Truckload/Full Truckload (LTL/FTL).
	TransportHeader TransportHeader `json:"TransportHeader"`

	// The workflow status for a shipment with an Amazon-partnered carrier.
	TransportResult TransportResult `json:"TransportResult"`
}

TransportContent defines model for TransportContent.

type TransportDetailInput

type TransportDetailInput struct {

	// Information that you provide to Amazon about a Less Than Truckload/Full Truckload (LTL/FTL) shipment by a carrier that has not partnered with Amazon.
	NonPartneredLtlData *NonPartneredLtlDataInput `json:"NonPartneredLtlData,omitempty"`

	// Information that you provide to Amazon about a Small Parcel shipment shipped by a carrier that has not partnered with Amazon.
	NonPartneredSmallParcelData *NonPartneredSmallParcelDataInput `json:"NonPartneredSmallParcelData,omitempty"`

	// Information that is required by an Amazon-partnered carrier to ship a Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment.
	PartneredLtlData *PartneredLtlDataInput `json:"PartneredLtlData,omitempty"`

	// Information that is required by an Amazon-partnered carrier to ship a Small Parcel inbound shipment.
	PartneredSmallParcelData *PartneredSmallParcelDataInput `json:"PartneredSmallParcelData,omitempty"`
}

TransportDetailInput defines model for TransportDetailInput.

type TransportDetailOutput

type TransportDetailOutput struct {

	// Information returned by Amazon about a Less Than Truckload/Full Truckload (LTL/FTL) shipment shipped by a carrier that has not partnered with Amazon.
	NonPartneredLtlData *NonPartneredLtlDataOutput `json:"NonPartneredLtlData,omitempty"`

	// Information returned by Amazon about a Small Parcel shipment by a carrier that has not partnered with Amazon.
	NonPartneredSmallParcelData *NonPartneredSmallParcelDataOutput `json:"NonPartneredSmallParcelData,omitempty"`

	// Information returned by Amazon about a Less Than Truckload/Full Truckload (LTL/FTL) shipment by an Amazon-partnered carrier.
	PartneredLtlData *PartneredLtlDataOutput `json:"PartneredLtlData,omitempty"`

	// Information returned by Amazon about a Small Parcel shipment by an Amazon-partnered carrier.
	PartneredSmallParcelData *PartneredSmallParcelDataOutput `json:"PartneredSmallParcelData,omitempty"`
}

TransportDetailOutput defines model for TransportDetailOutput.

type TransportHeader

type TransportHeader struct {

	// Indicates whether a putTransportDetails request is for a partnered carrier.
	//
	// Possible values:
	//
	// * true – Request is for an Amazon-partnered carrier.
	//
	// * false – Request is for a non-Amazon-partnered carrier.
	IsPartnered bool `json:"IsPartnered"`

	// The Amazon seller identifier.
	SellerId string `json:"SellerId"`

	// A shipment identifier originally returned by the createInboundShipmentPlan operation.
	ShipmentId string `json:"ShipmentId"`

	// Specifies the carrier shipment type in a putTransportDetails request.
	ShipmentType ShipmentType `json:"ShipmentType"`
}

TransportHeader defines model for TransportHeader.

type TransportResult

type TransportResult struct {

	// An error code that identifies the type of error that occured.
	ErrorCode *string `json:"ErrorCode,omitempty"`

	// A message that describes the error condition.
	ErrorDescription *string `json:"ErrorDescription,omitempty"`

	// Indicates the status of the Amazon-partnered carrier shipment.
	TransportStatus TransportStatus `json:"TransportStatus"`
}

TransportResult defines model for TransportResult.

type TransportStatus

type TransportStatus string

TransportStatus defines model for TransportStatus.

const (
	TransportStatus_CONFIRMED           TransportStatus = "CONFIRMED"
	TransportStatus_CONFIRMING          TransportStatus = "CONFIRMING"
	TransportStatus_ERROR               TransportStatus = "ERROR"
	TransportStatus_ERROR_IN_VOIDING    TransportStatus = "ERROR_IN_VOIDING"
	TransportStatus_ERROR_ON_CONFIRMING TransportStatus = "ERROR_ON_CONFIRMING"
	TransportStatus_ERROR_ON_ESTIMATING TransportStatus = "ERROR_ON_ESTIMATING"
	TransportStatus_ESTIMATED           TransportStatus = "ESTIMATED"
	TransportStatus_ESTIMATING          TransportStatus = "ESTIMATING"
	TransportStatus_VOIDED              TransportStatus = "VOIDED"
	TransportStatus_VOIDING             TransportStatus = "VOIDING"
	TransportStatus_WORKING             TransportStatus = "WORKING"
)

List of TransportStatus

type UnitOfMeasurement

type UnitOfMeasurement string

UnitOfMeasurement defines model for UnitOfMeasurement.

const (
	UnitOfMeasurement_centimeters UnitOfMeasurement = "centimeters"
	UnitOfMeasurement_inches      UnitOfMeasurement = "inches"
)

List of UnitOfMeasurement

type UnitOfWeight

type UnitOfWeight string

UnitOfWeight defines model for UnitOfWeight.

const (
	UnitOfWeight_kilograms UnitOfWeight = "kilograms"
	UnitOfWeight_pounds    UnitOfWeight = "pounds"
)

List of UnitOfWeight

type UnsignedIntType

type UnsignedIntType int64

UnsignedIntType defines model for UnsignedIntType.

type UpdateInboundShipmentJSONBody

type UpdateInboundShipmentJSONBody InboundShipmentRequest

UpdateInboundShipmentJSONBody defines parameters for UpdateInboundShipment.

type UpdateInboundShipmentJSONRequestBody

type UpdateInboundShipmentJSONRequestBody UpdateInboundShipmentJSONBody

UpdateInboundShipmentRequestBody defines body for UpdateInboundShipment for application/json ContentType.

type UpdateInboundShipmentResp

type UpdateInboundShipmentResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *InboundShipmentResponse
}

func ParseUpdateInboundShipmentResp

func ParseUpdateInboundShipmentResp(rsp *http.Response) (*UpdateInboundShipmentResp, error)

ParseUpdateInboundShipmentResp parses an HTTP response from a UpdateInboundShipmentWithResponse call

func (UpdateInboundShipmentResp) Status

func (r UpdateInboundShipmentResp) Status() string

Status returns HTTPResponse.Status

func (UpdateInboundShipmentResp) StatusCode

func (r UpdateInboundShipmentResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VoidTransportResp

type VoidTransportResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *VoidTransportResponse
}

func ParseVoidTransportResp

func ParseVoidTransportResp(rsp *http.Response) (*VoidTransportResp, error)

ParseVoidTransportResp parses an HTTP response from a VoidTransportWithResponse call

func (VoidTransportResp) Status

func (r VoidTransportResp) Status() string

Status returns HTTPResponse.Status

func (VoidTransportResp) StatusCode

func (r VoidTransportResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VoidTransportResponse

type VoidTransportResponse struct {

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

VoidTransportResponse defines model for VoidTransportResponse.

type Weight

type Weight struct {

	// Indicates the unit of weight.
	Unit  UnitOfWeight   `json:"Unit"`
	Value BigDecimalType `json:"Value"`
}

Weight defines model for Weight.

Jump to

Keyboard shortcuts

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