Documentation ¶
Overview ¶
Package fulfillmentinboundv0 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
Index ¶
- func NewConfirmPreorderRequest(server string, shipmentId string, params *ConfirmPreorderParams) (*http.Request, error)
- func NewConfirmTransportRequest(server string, shipmentId string) (*http.Request, error)
- func NewCreateInboundShipmentPlanRequest(server string, body CreateInboundShipmentPlanJSONRequestBody) (*http.Request, error)
- func NewCreateInboundShipmentPlanRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateInboundShipmentRequest(server string, shipmentId string, body CreateInboundShipmentJSONRequestBody) (*http.Request, error)
- func NewCreateInboundShipmentRequestWithBody(server string, shipmentId string, contentType string, body io.Reader) (*http.Request, error)
- func NewEstimateTransportRequest(server string, shipmentId string) (*http.Request, error)
- func NewGetBillOfLadingRequest(server string, shipmentId string) (*http.Request, error)
- func NewGetLabelsRequest(server string, shipmentId string, params *GetLabelsParams) (*http.Request, error)
- func NewGetPreorderInfoRequest(server string, shipmentId string, params *GetPreorderInfoParams) (*http.Request, error)
- func NewGetPrepInstructionsRequest(server string, params *GetPrepInstructionsParams) (*http.Request, error)
- func NewGetShipmentItemsByShipmentIdRequest(server string, shipmentId string, params *GetShipmentItemsByShipmentIdParams) (*http.Request, error)
- func NewGetShipmentItemsRequest(server string, params *GetShipmentItemsParams) (*http.Request, error)
- func NewGetShipmentsRequest(server string, params *GetShipmentsParams) (*http.Request, error)
- func NewGetTransportDetailsRequest(server string, shipmentId string) (*http.Request, error)
- func NewPutTransportDetailsRequest(server string, shipmentId string, body PutTransportDetailsJSONRequestBody) (*http.Request, error)
- func NewPutTransportDetailsRequestWithBody(server string, shipmentId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateInboundShipmentRequest(server string, shipmentId string, body UpdateInboundShipmentJSONRequestBody) (*http.Request, error)
- func NewUpdateInboundShipmentRequestWithBody(server string, shipmentId string, contentType string, body io.Reader) (*http.Request, error)
- func NewVoidTransportRequest(server string, shipmentId string) (*http.Request, error)
- type ASINPrepInstructions
- type ASINPrepInstructionsList
- type Address
- type AmazonPrepFeesDetails
- type AmazonPrepFeesDetailsList
- type Amount
- type BarcodeInstruction
- type BigDecimalType
- type BillOfLadingDownloadURL
- type BoxContentsFeeDetails
- type BoxContentsSource
- type Client
- func (c *Client) ConfirmPreorder(ctx context.Context, shipmentId string, params *ConfirmPreorderParams) (*http.Response, error)
- func (c *Client) ConfirmTransport(ctx context.Context, shipmentId string) (*http.Response, error)
- func (c *Client) CreateInboundShipment(ctx context.Context, shipmentId string, ...) (*http.Response, error)
- func (c *Client) CreateInboundShipmentPlan(ctx context.Context, body CreateInboundShipmentPlanJSONRequestBody) (*http.Response, error)
- func (c *Client) CreateInboundShipmentPlanWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) CreateInboundShipmentWithBody(ctx context.Context, shipmentId string, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) EstimateTransport(ctx context.Context, shipmentId string) (*http.Response, error)
- func (c *Client) GetBillOfLading(ctx context.Context, shipmentId string) (*http.Response, error)
- func (c *Client) GetLabels(ctx context.Context, shipmentId string, params *GetLabelsParams) (*http.Response, error)
- func (c *Client) GetPreorderInfo(ctx context.Context, shipmentId string, params *GetPreorderInfoParams) (*http.Response, error)
- func (c *Client) GetPrepInstructions(ctx context.Context, params *GetPrepInstructionsParams) (*http.Response, error)
- func (c *Client) GetShipmentItems(ctx context.Context, params *GetShipmentItemsParams) (*http.Response, error)
- func (c *Client) GetShipmentItemsByShipmentId(ctx context.Context, shipmentId string, ...) (*http.Response, error)
- func (c *Client) GetShipments(ctx context.Context, params *GetShipmentsParams) (*http.Response, error)
- func (c *Client) GetTransportDetails(ctx context.Context, shipmentId string) (*http.Response, error)
- func (c *Client) PutTransportDetails(ctx context.Context, shipmentId string, ...) (*http.Response, error)
- func (c *Client) PutTransportDetailsWithBody(ctx context.Context, shipmentId string, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) UpdateInboundShipment(ctx context.Context, shipmentId string, ...) (*http.Response, error)
- func (c *Client) UpdateInboundShipmentWithBody(ctx context.Context, shipmentId string, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) VoidTransport(ctx context.Context, shipmentId string) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) ConfirmPreorderWithResponse(ctx context.Context, shipmentId string, params *ConfirmPreorderParams) (*ConfirmPreorderResp, error)
- func (c *ClientWithResponses) ConfirmTransportWithResponse(ctx context.Context, shipmentId string) (*ConfirmTransportResp, error)
- func (c *ClientWithResponses) CreateInboundShipmentPlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateInboundShipmentPlanResp, error)
- func (c *ClientWithResponses) CreateInboundShipmentPlanWithResponse(ctx context.Context, body CreateInboundShipmentPlanJSONRequestBody) (*CreateInboundShipmentPlanResp, error)
- func (c *ClientWithResponses) CreateInboundShipmentWithBodyWithResponse(ctx context.Context, shipmentId string, contentType string, body io.Reader) (*CreateInboundShipmentResp, error)
- func (c *ClientWithResponses) CreateInboundShipmentWithResponse(ctx context.Context, shipmentId string, ...) (*CreateInboundShipmentResp, error)
- func (c *ClientWithResponses) EstimateTransportWithResponse(ctx context.Context, shipmentId string) (*EstimateTransportResp, error)
- func (c *ClientWithResponses) GetBillOfLadingWithResponse(ctx context.Context, shipmentId string) (*GetBillOfLadingResp, error)
- func (c *ClientWithResponses) GetLabelsWithResponse(ctx context.Context, shipmentId string, params *GetLabelsParams) (*GetLabelsResp, error)
- func (c *ClientWithResponses) GetPreorderInfoWithResponse(ctx context.Context, shipmentId string, params *GetPreorderInfoParams) (*GetPreorderInfoResp, error)
- func (c *ClientWithResponses) GetPrepInstructionsWithResponse(ctx context.Context, params *GetPrepInstructionsParams) (*GetPrepInstructionsResp, error)
- func (c *ClientWithResponses) GetShipmentItemsByShipmentIdWithResponse(ctx context.Context, shipmentId string, ...) (*GetShipmentItemsByShipmentIdResp, error)
- func (c *ClientWithResponses) GetShipmentItemsWithResponse(ctx context.Context, params *GetShipmentItemsParams) (*GetShipmentItemsResp, error)
- func (c *ClientWithResponses) GetShipmentsWithResponse(ctx context.Context, params *GetShipmentsParams) (*GetShipmentsResp, error)
- func (c *ClientWithResponses) GetTransportDetailsWithResponse(ctx context.Context, shipmentId string) (*GetTransportDetailsResp, error)
- func (c *ClientWithResponses) PutTransportDetailsWithBodyWithResponse(ctx context.Context, shipmentId string, contentType string, body io.Reader) (*PutTransportDetailsResp, error)
- func (c *ClientWithResponses) PutTransportDetailsWithResponse(ctx context.Context, shipmentId string, ...) (*PutTransportDetailsResp, error)
- func (c *ClientWithResponses) UpdateInboundShipmentWithBodyWithResponse(ctx context.Context, shipmentId string, contentType string, body io.Reader) (*UpdateInboundShipmentResp, error)
- func (c *ClientWithResponses) UpdateInboundShipmentWithResponse(ctx context.Context, shipmentId string, ...) (*UpdateInboundShipmentResp, error)
- func (c *ClientWithResponses) VoidTransportWithResponse(ctx context.Context, shipmentId string) (*VoidTransportResp, error)
- type ClientWithResponsesInterface
- type CommonTransportResult
- type Condition
- type ConfirmPreorderParams
- type ConfirmPreorderResp
- type ConfirmPreorderResponse
- type ConfirmPreorderResult
- type ConfirmTransportResp
- type ConfirmTransportResponse
- type Contact
- type CreateInboundShipmentJSONRequestBody
- type CreateInboundShipmentPlanJSONRequestBody
- type CreateInboundShipmentPlanRequest
- type CreateInboundShipmentPlanResp
- type CreateInboundShipmentPlanResponse
- type CreateInboundShipmentPlanResult
- type CreateInboundShipmentResp
- type CurrencyCode
- type DateStringType
- type Dimensions
- type Error
- type ErrorList
- type ErrorReason
- type EstimateTransportResp
- type EstimateTransportResponse
- type GetBillOfLadingResp
- type GetBillOfLadingResponse
- type GetLabelsParams
- type GetLabelsParamsLabelType
- type GetLabelsParamsPageType
- type GetLabelsResp
- type GetLabelsResponse
- type GetPreorderInfoParams
- type GetPreorderInfoResp
- type GetPreorderInfoResponse
- type GetPreorderInfoResult
- type GetPrepInstructionsParams
- type GetPrepInstructionsResp
- type GetPrepInstructionsResponse
- type GetPrepInstructionsResult
- type GetShipmentItemsByShipmentIdParams
- type GetShipmentItemsByShipmentIdResp
- type GetShipmentItemsParams
- type GetShipmentItemsParamsQueryType
- type GetShipmentItemsResp
- type GetShipmentItemsResponse
- type GetShipmentItemsResult
- type GetShipmentsParams
- type GetShipmentsParamsQueryType
- type GetShipmentsParamsShipmentStatusList
- type GetShipmentsResp
- type GetShipmentsResponse
- type GetShipmentsResult
- type GetTransportDetailsResp
- type GetTransportDetailsResponse
- type GetTransportDetailsResult
- type HttpRequestDoer
- type InboundShipmentHeader
- type InboundShipmentInfo
- type InboundShipmentItem
- type InboundShipmentItemList
- type InboundShipmentList
- type InboundShipmentPlan
- type InboundShipmentPlanItem
- type InboundShipmentPlanItemList
- type InboundShipmentPlanList
- type InboundShipmentPlanRequestItem
- type InboundShipmentPlanRequestItemList
- type InboundShipmentRequest
- type InboundShipmentResponse
- type InboundShipmentResult
- type IntendedBoxContentsSource
- type InvalidASIN
- type InvalidASINList
- type InvalidSKU
- type InvalidSKUList
- type LabelDownloadURL
- type LabelPrepPreference
- type LabelPrepType
- type NonPartneredLtlDataInput
- type NonPartneredLtlDataOutput
- type NonPartneredSmallParcelDataInput
- type NonPartneredSmallParcelDataOutput
- type NonPartneredSmallParcelPackageInput
- type NonPartneredSmallParcelPackageInputList
- type NonPartneredSmallParcelPackageOutput
- type NonPartneredSmallParcelPackageOutputList
- type PackageStatus
- type Pallet
- type PalletList
- type PartneredEstimate
- type PartneredLtlDataInput
- type PartneredLtlDataOutput
- type PartneredSmallParcelDataInput
- type PartneredSmallParcelDataOutput
- type PartneredSmallParcelPackageInput
- type PartneredSmallParcelPackageInputList
- type PartneredSmallParcelPackageOutput
- type PartneredSmallParcelPackageOutputList
- type PrepDetails
- type PrepDetailsList
- type PrepGuidance
- type PrepInstruction
- type PrepInstructionList
- type PrepOwner
- type ProNumber
- type PutTransportDetailsJSONRequestBody
- type PutTransportDetailsRequest
- type PutTransportDetailsResp
- type PutTransportDetailsResponse
- type Quantity
- type RequestEditorFn
- type ResponseEditorFn
- type SKUPrepInstructions
- type SKUPrepInstructionsList
- type SellerFreightClass
- type ShipmentStatus
- type ShipmentType
- type TimeStampStringType
- type TrackingId
- type TransportContent
- type TransportDetailInput
- type TransportDetailOutput
- type TransportHeader
- type TransportResult
- type TransportStatus
- type UnitOfMeasurement
- type UnitOfWeight
- type UnsignedIntType
- type UpdateInboundShipmentJSONRequestBody
- type UpdateInboundShipmentResp
- type VoidTransportResp
- type VoidTransportResponse
- type Weight
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfirmPreorderRequest ¶
func NewConfirmPreorderRequest(server string, shipmentId string, params *ConfirmPreorderParams) (*http.Request, error)
NewConfirmPreorderRequest generates requests for ConfirmPreorder
func NewConfirmTransportRequest ¶
NewConfirmTransportRequest generates requests for ConfirmTransport
func NewCreateInboundShipmentPlanRequest ¶
func NewCreateInboundShipmentPlanRequest(server string, body CreateInboundShipmentPlanJSONRequestBody) (*http.Request, error)
NewCreateInboundShipmentPlanRequest calls the generic CreateInboundShipmentPlan builder with application/json body
func NewCreateInboundShipmentPlanRequestWithBody ¶
func NewCreateInboundShipmentPlanRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateInboundShipmentPlanRequestWithBody generates requests for CreateInboundShipmentPlan with any type of body
func NewCreateInboundShipmentRequest ¶
func NewCreateInboundShipmentRequest(server string, shipmentId string, body CreateInboundShipmentJSONRequestBody) (*http.Request, error)
NewCreateInboundShipmentRequest calls the generic CreateInboundShipment builder with application/json body
func NewCreateInboundShipmentRequestWithBody ¶
func NewCreateInboundShipmentRequestWithBody(server string, shipmentId string, contentType string, body io.Reader) (*http.Request, error)
NewCreateInboundShipmentRequestWithBody generates requests for CreateInboundShipment with any type of body
func NewEstimateTransportRequest ¶
NewEstimateTransportRequest generates requests for EstimateTransport
func NewGetBillOfLadingRequest ¶
NewGetBillOfLadingRequest generates requests for GetBillOfLading
func NewGetLabelsRequest ¶
func NewGetLabelsRequest(server string, shipmentId string, params *GetLabelsParams) (*http.Request, error)
NewGetLabelsRequest generates requests for GetLabels
func NewGetPreorderInfoRequest ¶
func NewGetPreorderInfoRequest(server string, shipmentId string, params *GetPreorderInfoParams) (*http.Request, error)
NewGetPreorderInfoRequest generates requests for GetPreorderInfo
func NewGetPrepInstructionsRequest ¶
func NewGetPrepInstructionsRequest(server string, params *GetPrepInstructionsParams) (*http.Request, error)
NewGetPrepInstructionsRequest generates requests for GetPrepInstructions
func NewGetShipmentItemsByShipmentIdRequest ¶
func NewGetShipmentItemsByShipmentIdRequest(server string, shipmentId string, params *GetShipmentItemsByShipmentIdParams) (*http.Request, error)
NewGetShipmentItemsByShipmentIdRequest generates requests for GetShipmentItemsByShipmentId
func NewGetShipmentItemsRequest ¶
func NewGetShipmentItemsRequest(server string, params *GetShipmentItemsParams) (*http.Request, error)
NewGetShipmentItemsRequest generates requests for GetShipmentItems
func NewGetShipmentsRequest ¶
func NewGetShipmentsRequest(server string, params *GetShipmentsParams) (*http.Request, error)
NewGetShipmentsRequest generates requests for GetShipments
func NewGetTransportDetailsRequest ¶
NewGetTransportDetailsRequest generates requests for GetTransportDetails
func NewPutTransportDetailsRequest ¶
func NewPutTransportDetailsRequest(server string, shipmentId string, body PutTransportDetailsJSONRequestBody) (*http.Request, error)
NewPutTransportDetailsRequest calls the generic PutTransportDetails builder with application/json body
func NewPutTransportDetailsRequestWithBody ¶
func NewPutTransportDetailsRequestWithBody(server 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(server string, shipmentId string, body UpdateInboundShipmentJSONRequestBody) (*http.Request, error)
NewUpdateInboundShipmentRequest calls the generic UpdateInboundShipment builder with application/json body
Types ¶
type ASINPrepInstructions ¶
type ASINPrepInstructions struct { // ASIN The Amazon Standard Identification Number (ASIN) of the item. ASIN *string `json:"ASIN,omitempty"` // BarcodeInstruction 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"` // PrepGuidance Item preparation instructions. PrepGuidance *PrepGuidance `json:"PrepGuidance,omitempty"` // PrepInstructionList A list of preparation instructions to help with item sourcing decisions. PrepInstructionList *PrepInstructionList `json:"PrepInstructionList,omitempty"` }
ASINPrepInstructions Item preparation instructions to help with item sourcing decisions.
type ASINPrepInstructionsList ¶
type ASINPrepInstructionsList = []ASINPrepInstructions
ASINPrepInstructionsList A list of item preparation instructions.
type Address ¶
type Address struct { // AddressLine1 The street address information. AddressLine1 string `json:"AddressLine1"` // AddressLine2 Additional street address information, if required. AddressLine2 *string `json:"AddressLine2,omitempty"` // City The city. City string `json:"City"` // CountryCode The country code in two-character ISO 3166-1 alpha-2 format. CountryCode string `json:"CountryCode"` // DistrictOrCounty The district or county. DistrictOrCounty *string `json:"DistrictOrCounty,omitempty"` // Name Name of the individual or business. Name string `json:"Name"` // PostalCode 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"` // StateOrProvinceCode 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 Specific details to identify a place.
type AmazonPrepFeesDetails ¶
type AmazonPrepFeesDetails struct { // FeePerUnit The monetary value. FeePerUnit *Amount `json:"FeePerUnit,omitempty"` // PrepInstruction 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 The fees for Amazon to prep goods for shipment.
type AmazonPrepFeesDetailsList ¶
type AmazonPrepFeesDetailsList = []AmazonPrepFeesDetails
AmazonPrepFeesDetailsList A list of preparation instructions and fees for Amazon to prep goods for shipment.
type Amount ¶
type Amount struct { // CurrencyCode The currency code. CurrencyCode CurrencyCode `json:"CurrencyCode"` // Value Number format that supports decimal. Value BigDecimalType `json:"Value"` }
Amount The monetary value.
type BarcodeInstruction ¶
type BarcodeInstruction string
BarcodeInstruction Labeling requirements for the item. For more information about FBA labeling requirements, see the Seller Central Help for your marketplace.
const ( CanUseOriginalBarcode BarcodeInstruction = "CanUseOriginalBarcode" MustProvideSellerSKU BarcodeInstruction = "MustProvideSellerSKU" RequiresFNSKULabel BarcodeInstruction = "RequiresFNSKULabel" )
Defines values for BarcodeInstruction.
type BigDecimalType ¶
type BigDecimalType = float64
BigDecimalType Number format that supports decimal.
type BillOfLadingDownloadURL ¶
type BillOfLadingDownloadURL struct { // DownloadURL 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 Download URL for the bill of lading.
type BoxContentsFeeDetails ¶
type BoxContentsFeeDetails struct { // FeePerUnit The monetary value. FeePerUnit *Amount `json:"FeePerUnit,omitempty"` // TotalFee The monetary value. TotalFee *Amount `json:"TotalFee,omitempty"` // TotalUnits The item quantity. TotalUnits *Quantity `json:"TotalUnits,omitempty"` }
BoxContentsFeeDetails The manual processing fee per unit and total fee for a shipment.
type BoxContentsSource ¶
type BoxContentsSource string
BoxContentsSource Where the seller provided box contents information for a shipment.
const ( BoxContentsSourceFEED BoxContentsSource = "FEED" BoxContentsSourceINTERACTIVE BoxContentsSource = "INTERACTIVE" BoxContentsSourceN2DBARCODE BoxContentsSource = "2D_BARCODE" BoxContentsSourceNONE BoxContentsSource = "NONE" )
Defines values for 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. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn // A callback for modifying response which are generated after receive from the network. ResponseEditors []ResponseEditorFn // The user agent header identifies your application, its version number, and the platform and programming language you are using. // You must include a user agent header in each request submitted to the sales partner API. UserAgent string }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) ConfirmPreorder ¶
func (*Client) ConfirmTransport ¶
func (*Client) CreateInboundShipment ¶
func (*Client) CreateInboundShipmentPlan ¶
func (*Client) CreateInboundShipmentPlanWithBody ¶
func (*Client) CreateInboundShipmentWithBody ¶
func (*Client) EstimateTransport ¶
func (*Client) GetBillOfLading ¶
func (*Client) GetPreorderInfo ¶
func (*Client) GetPrepInstructions ¶
func (*Client) GetShipmentItems ¶
func (*Client) GetShipmentItemsByShipmentId ¶
func (*Client) GetShipments ¶
func (*Client) GetTransportDetails ¶
func (*Client) PutTransportDetails ¶
func (*Client) PutTransportDetailsWithBody ¶
func (*Client) UpdateInboundShipment ¶
func (*Client) UpdateInboundShipmentWithBody ¶
type ClientInterface ¶
type ClientInterface interface { // CreateInboundShipmentPlanWithBody 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) // CreateInboundShipmentWithBody 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) // UpdateInboundShipmentWithBody 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) // PutTransportDetailsWithBody 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 ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
func WithResponseEditorFn ¶
func WithResponseEditorFn(fn ResponseEditorFn) ClientOption
WithResponseEditorFn allows setting up a callback function, which will be called right after receive the response.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) ConfirmPreorderWithResponse ¶
func (c *ClientWithResponses) ConfirmPreorderWithResponse(ctx context.Context, shipmentId string, params *ConfirmPreorderParams) (*ConfirmPreorderResp, error)
ConfirmPreorderWithResponse request returning *ConfirmPreorderResp
func (*ClientWithResponses) ConfirmTransportWithResponse ¶
func (c *ClientWithResponses) ConfirmTransportWithResponse(ctx context.Context, shipmentId string) (*ConfirmTransportResp, error)
ConfirmTransportWithResponse request returning *ConfirmTransportResp
func (*ClientWithResponses) CreateInboundShipmentPlanWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateInboundShipmentPlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateInboundShipmentPlanResp, error)
CreateInboundShipmentPlanWithBodyWithResponse request with arbitrary body returning *CreateInboundShipmentPlanResp
func (*ClientWithResponses) CreateInboundShipmentPlanWithResponse ¶
func (c *ClientWithResponses) CreateInboundShipmentPlanWithResponse(ctx context.Context, body CreateInboundShipmentPlanJSONRequestBody) (*CreateInboundShipmentPlanResp, error)
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 *CreateInboundShipmentResp
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 *EstimateTransportResp
func (*ClientWithResponses) GetBillOfLadingWithResponse ¶
func (c *ClientWithResponses) GetBillOfLadingWithResponse(ctx context.Context, shipmentId string) (*GetBillOfLadingResp, error)
GetBillOfLadingWithResponse request returning *GetBillOfLadingResp
func (*ClientWithResponses) GetLabelsWithResponse ¶
func (c *ClientWithResponses) GetLabelsWithResponse(ctx context.Context, shipmentId string, params *GetLabelsParams) (*GetLabelsResp, error)
GetLabelsWithResponse request returning *GetLabelsResp
func (*ClientWithResponses) GetPreorderInfoWithResponse ¶
func (c *ClientWithResponses) GetPreorderInfoWithResponse(ctx context.Context, shipmentId string, params *GetPreorderInfoParams) (*GetPreorderInfoResp, error)
GetPreorderInfoWithResponse request returning *GetPreorderInfoResp
func (*ClientWithResponses) GetPrepInstructionsWithResponse ¶
func (c *ClientWithResponses) GetPrepInstructionsWithResponse(ctx context.Context, params *GetPrepInstructionsParams) (*GetPrepInstructionsResp, error)
GetPrepInstructionsWithResponse request returning *GetPrepInstructionsResp
func (*ClientWithResponses) GetShipmentItemsByShipmentIdWithResponse ¶
func (c *ClientWithResponses) GetShipmentItemsByShipmentIdWithResponse(ctx context.Context, shipmentId string, params *GetShipmentItemsByShipmentIdParams) (*GetShipmentItemsByShipmentIdResp, error)
GetShipmentItemsByShipmentIdWithResponse request returning *GetShipmentItemsByShipmentIdResp
func (*ClientWithResponses) GetShipmentItemsWithResponse ¶
func (c *ClientWithResponses) GetShipmentItemsWithResponse(ctx context.Context, params *GetShipmentItemsParams) (*GetShipmentItemsResp, error)
GetShipmentItemsWithResponse request returning *GetShipmentItemsResp
func (*ClientWithResponses) GetShipmentsWithResponse ¶
func (c *ClientWithResponses) GetShipmentsWithResponse(ctx context.Context, params *GetShipmentsParams) (*GetShipmentsResp, error)
GetShipmentsWithResponse request returning *GetShipmentsResp
func (*ClientWithResponses) GetTransportDetailsWithResponse ¶
func (c *ClientWithResponses) GetTransportDetailsWithResponse(ctx context.Context, shipmentId string) (*GetTransportDetailsResp, error)
GetTransportDetailsWithResponse request returning *GetTransportDetailsResp
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 *PutTransportDetailsResp
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 *UpdateInboundShipmentResp
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 *VoidTransportResp
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // CreateInboundShipmentPlanWithBodyWithResponse request with any body CreateInboundShipmentPlanWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateInboundShipmentPlanResp, error) CreateInboundShipmentPlanWithResponse(ctx context.Context, body CreateInboundShipmentPlanJSONRequestBody) (*CreateInboundShipmentPlanResp, error) // GetPrepInstructionsWithResponse request GetPrepInstructionsWithResponse(ctx context.Context, params *GetPrepInstructionsParams) (*GetPrepInstructionsResp, error) // GetShipmentItemsWithResponse request GetShipmentItemsWithResponse(ctx context.Context, params *GetShipmentItemsParams) (*GetShipmentItemsResp, error) // GetShipmentsWithResponse request GetShipmentsWithResponse(ctx context.Context, params *GetShipmentsParams) (*GetShipmentsResp, error) // CreateInboundShipmentWithBodyWithResponse 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) // UpdateInboundShipmentWithBodyWithResponse 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) // GetBillOfLadingWithResponse request GetBillOfLadingWithResponse(ctx context.Context, shipmentId string) (*GetBillOfLadingResp, error) // GetShipmentItemsByShipmentIdWithResponse request GetShipmentItemsByShipmentIdWithResponse(ctx context.Context, shipmentId string, params *GetShipmentItemsByShipmentIdParams) (*GetShipmentItemsByShipmentIdResp, error) // GetLabelsWithResponse request GetLabelsWithResponse(ctx context.Context, shipmentId string, params *GetLabelsParams) (*GetLabelsResp, error) // GetPreorderInfoWithResponse request GetPreorderInfoWithResponse(ctx context.Context, shipmentId string, params *GetPreorderInfoParams) (*GetPreorderInfoResp, error) // ConfirmPreorderWithResponse request ConfirmPreorderWithResponse(ctx context.Context, shipmentId string, params *ConfirmPreorderParams) (*ConfirmPreorderResp, error) // GetTransportDetailsWithResponse request GetTransportDetailsWithResponse(ctx context.Context, shipmentId string) (*GetTransportDetailsResp, error) // PutTransportDetailsWithBodyWithResponse 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) // ConfirmTransportWithResponse request ConfirmTransportWithResponse(ctx context.Context, shipmentId string) (*ConfirmTransportResp, error) // EstimateTransportWithResponse request EstimateTransportWithResponse(ctx context.Context, shipmentId string) (*EstimateTransportResp, error) // VoidTransportWithResponse 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 { // TransportResult The workflow status for a shipment with an Amazon-partnered carrier. TransportResult *TransportResult `json:"TransportResult,omitempty"` }
CommonTransportResult Common container for transport result
type Condition ¶
type Condition string
Condition The condition of the item.
const ( Club Condition = "Club" CollectibleAcceptable Condition = "CollectibleAcceptable" CollectibleGood Condition = "CollectibleGood" CollectibleLikeNew Condition = "CollectibleLikeNew" CollectiblePoor Condition = "CollectiblePoor" CollectibleVeryGood Condition = "CollectibleVeryGood" NewItem Condition = "NewItem" NewOEM Condition = "NewOEM" NewOpenBox Condition = "NewOpenBox" NewWithWarranty Condition = "NewWithWarranty" Refurbished Condition = "Refurbished" RefurbishedWithWarranty Condition = "RefurbishedWithWarranty" UsedAcceptable Condition = "UsedAcceptable" UsedGood Condition = "UsedGood" UsedLikeNew Condition = "UsedLikeNew" UsedPoor Condition = "UsedPoor" UsedRefurbished Condition = "UsedRefurbished" UsedVeryGood Condition = "UsedVeryGood" )
Defines values for Condition.
type ConfirmPreorderParams ¶
type ConfirmPreorderParams struct { // NeedByDate 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 `form:"NeedByDate" json:"NeedByDate"` // MarketplaceId A marketplace identifier. Specifies the marketplace the shipment is tied to. MarketplaceId string `form:"MarketplaceId" json:"MarketplaceId"` }
ConfirmPreorderParams defines parameters for ConfirmPreorder.
type ConfirmPreorderResp ¶
type ConfirmPreorderResp struct { Body []byte HTTPResponse *http.Response JSON200 *ConfirmPreorderResponse JSON400 *ConfirmPreorderResponse JSON401 *ConfirmPreorderResponse JSON403 *ConfirmPreorderResponse JSON404 *ConfirmPreorderResponse JSON429 *ConfirmPreorderResponse JSON500 *ConfirmPreorderResponse JSON503 *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 { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Result for confirm preorder operation Payload *ConfirmPreorderResult `json:"payload,omitempty"` }
ConfirmPreorderResponse The response schema for the confirmPreorder operation.
type ConfirmPreorderResult ¶
type ConfirmPreorderResult struct { // ConfirmedFulfillableDate Type containing date in string format ConfirmedFulfillableDate *DateStringType `json:"ConfirmedFulfillableDate,omitempty"` // ConfirmedNeedByDate Type containing date in string format ConfirmedNeedByDate *DateStringType `json:"ConfirmedNeedByDate,omitempty"` }
ConfirmPreorderResult Result for confirm preorder operation
type ConfirmTransportResp ¶
type ConfirmTransportResp struct { Body []byte HTTPResponse *http.Response JSON200 *ConfirmTransportResponse JSON400 *ConfirmTransportResponse JSON401 *ConfirmTransportResponse JSON403 *ConfirmTransportResponse JSON404 *ConfirmTransportResponse JSON429 *ConfirmTransportResponse JSON500 *ConfirmTransportResponse JSON503 *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 { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Common container for transport result Payload *CommonTransportResult `json:"payload,omitempty"` }
ConfirmTransportResponse The response schema for the confirmTransport operation.
type Contact ¶
type Contact struct { // Email The email address of the contact person. Email string `json:"Email"` // Fax The fax number of the contact person. Fax *string `json:"Fax,omitempty"` // Name The name of the contact person. Name string `json:"Name"` // Phone The phone number of the contact person. Phone string `json:"Phone"` }
Contact Contact information for the person in the seller's organization who is responsible for a Less Than Truckload/Full Truckload (LTL/FTL) shipment.
type CreateInboundShipmentJSONRequestBody ¶
type CreateInboundShipmentJSONRequestBody = InboundShipmentRequest
CreateInboundShipmentJSONRequestBody defines body for CreateInboundShipment for application/json ContentType.
type CreateInboundShipmentPlanJSONRequestBody ¶
type CreateInboundShipmentPlanJSONRequestBody = CreateInboundShipmentPlanRequest
CreateInboundShipmentPlanJSONRequestBody defines body for CreateInboundShipmentPlan for application/json ContentType.
type CreateInboundShipmentPlanRequest ¶
type CreateInboundShipmentPlanRequest struct { // InboundShipmentPlanRequestItems List of inbound shipment plan requests InboundShipmentPlanRequestItems InboundShipmentPlanRequestItemList `json:"InboundShipmentPlanRequestItems"` // LabelPrepPreference The preference for label preparation for an inbound shipment. LabelPrepPreference LabelPrepPreference `json:"LabelPrepPreference"` // ShipFromAddress Specific details to identify a place. ShipFromAddress Address `json:"ShipFromAddress"` // ShipToCountryCode 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"` // ShipToCountrySubdivisionCode 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 The request schema for the createInboundShipmentPlan operation.
type CreateInboundShipmentPlanResp ¶
type CreateInboundShipmentPlanResp struct { Body []byte HTTPResponse *http.Response JSON200 *CreateInboundShipmentPlanResponse JSON400 *CreateInboundShipmentPlanResponse JSON401 *CreateInboundShipmentPlanResponse JSON403 *CreateInboundShipmentPlanResponse JSON404 *CreateInboundShipmentPlanResponse JSON429 *CreateInboundShipmentPlanResponse JSON500 *CreateInboundShipmentPlanResponse JSON503 *CreateInboundShipmentPlanResponse }
func ParseCreateInboundShipmentPlanResp ¶
func ParseCreateInboundShipmentPlanResp(rsp *http.Response) (*CreateInboundShipmentPlanResp, error)
ParseCreateInboundShipmentPlanResp parses an HTTP response from a CreateInboundShipmentPlanWithResponse call
func (CreateInboundShipmentPlanResp) Status ¶
func (r CreateInboundShipmentPlanResp) Status() string
Status returns HTTPResponse.Status
func (CreateInboundShipmentPlanResp) StatusCode ¶
func (r CreateInboundShipmentPlanResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateInboundShipmentPlanResponse ¶
type CreateInboundShipmentPlanResponse struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Result for the create inbound shipment operation Payload *CreateInboundShipmentPlanResult `json:"payload,omitempty"` }
CreateInboundShipmentPlanResponse The response schema for the createInboundShipmentPlan operation.
type CreateInboundShipmentPlanResult ¶
type CreateInboundShipmentPlanResult struct { // InboundShipmentPlans A list of inbound shipment plan information InboundShipmentPlans *InboundShipmentPlanList `json:"InboundShipmentPlans,omitempty"` }
CreateInboundShipmentPlanResult Result for the create inbound shipment operation
type CreateInboundShipmentResp ¶
type CreateInboundShipmentResp struct { Body []byte HTTPResponse *http.Response JSON200 *InboundShipmentResponse JSON400 *InboundShipmentResponse JSON401 *InboundShipmentResponse JSON403 *InboundShipmentResponse JSON404 *InboundShipmentResponse JSON429 *InboundShipmentResponse JSON500 *InboundShipmentResponse JSON503 *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 The currency code.
const ( GBP CurrencyCode = "GBP" USD CurrencyCode = "USD" )
Defines values for CurrencyCode.
type DateStringType ¶
type DateStringType = openapi_types.Date
DateStringType Type containing date in string format
type Dimensions ¶
type Dimensions struct { // Height Number format that supports decimal. Height BigDecimalType `json:"Height"` // Length Number format that supports decimal. Length BigDecimalType `json:"Length"` // Unit Indicates the unit of measurement. Unit UnitOfMeasurement `json:"Unit"` // Width Number format that supports decimal. Width BigDecimalType `json:"Width"` }
Dimensions The dimension values and unit of measurement.
type Error ¶
type Error struct { // Code An error code that identifies the type of error that occured. Code string `json:"code"` // Details Additional details that can help the caller understand or fix the issue. Details *string `json:"details,omitempty"` // Message A message that describes the error condition in a human-readable form. Message string `json:"message"` }
Error Error response returned when the request is unsuccessful.
type ErrorList ¶
type ErrorList = []Error
ErrorList A list of error responses returned when a request is unsuccessful.
type ErrorReason ¶
type ErrorReason string
ErrorReason The reason that the ASIN is invalid.
const ( ErrorReasonDoesNotExist ErrorReason = "DoesNotExist" ErrorReasonInvalidASIN ErrorReason = "InvalidASIN" )
Defines values for ErrorReason.
type EstimateTransportResp ¶
type EstimateTransportResp struct { Body []byte HTTPResponse *http.Response JSON200 *EstimateTransportResponse JSON400 *EstimateTransportResponse JSON401 *EstimateTransportResponse JSON403 *EstimateTransportResponse JSON404 *EstimateTransportResponse JSON429 *EstimateTransportResponse JSON500 *EstimateTransportResponse JSON503 *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 { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Common container for transport result Payload *CommonTransportResult `json:"payload,omitempty"` }
EstimateTransportResponse The response schema for the estimateTransport operation.
type GetBillOfLadingResp ¶
type GetBillOfLadingResp struct { Body []byte HTTPResponse *http.Response JSON200 *GetBillOfLadingResponse JSON400 *GetBillOfLadingResponse JSON401 *GetBillOfLadingResponse JSON403 *GetBillOfLadingResponse JSON404 *GetBillOfLadingResponse JSON429 *GetBillOfLadingResponse JSON500 *GetBillOfLadingResponse JSON503 *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 { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Download URL for the bill of lading. Payload *BillOfLadingDownloadURL `json:"payload,omitempty"` }
GetBillOfLadingResponse The response schema for the getBillOfLading operation.
type GetLabelsParams ¶
type GetLabelsParams struct { // PageType The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error. PageType GetLabelsParamsPageType `form:"PageType" json:"PageType"` // LabelType The type of labels requested. LabelType GetLabelsParamsLabelType `form:"LabelType" json:"LabelType"` // NumberOfPackages The number of packages in the shipment. NumberOfPackages *int `form:"NumberOfPackages,omitempty" json:"NumberOfPackages,omitempty"` // PackageLabelsToPrint 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 `form:"PackageLabelsToPrint,omitempty" json:"PackageLabelsToPrint,omitempty"` // NumberOfPallets The number of pallets in the shipment. This returns four identical labels for each pallet. NumberOfPallets *int `form:"NumberOfPallets,omitempty" json:"NumberOfPallets,omitempty"` // PageSize The page size for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. Max value:1000. PageSize *int `form:"PageSize,omitempty" json:"PageSize,omitempty"` // PageStartIndex The page start index for paginating through the total packages' labels. This is a required parameter for Non-Partnered LTL Shipments. PageStartIndex *int `form:"PageStartIndex,omitempty" json:"PageStartIndex,omitempty"` }
GetLabelsParams defines parameters for GetLabels.
type GetLabelsParamsLabelType ¶
type GetLabelsParamsLabelType string
GetLabelsParamsLabelType defines parameters for GetLabels.
const ( BARCODE2D GetLabelsParamsLabelType = "BARCODE_2D" PALLET GetLabelsParamsLabelType = "PALLET" UNIQUE GetLabelsParamsLabelType = "UNIQUE" )
Defines values for GetLabelsParamsLabelType.
type GetLabelsParamsPageType ¶
type GetLabelsParamsPageType string
GetLabelsParamsPageType defines parameters for GetLabels.
const ( PackageLabelA42 GetLabelsParamsPageType = "PackageLabel_A4_2" PackageLabelA44 GetLabelsParamsPageType = "PackageLabel_A4_4" PackageLabelLetter2 GetLabelsParamsPageType = "PackageLabel_Letter_2" PackageLabelLetter4 GetLabelsParamsPageType = "PackageLabel_Letter_4" PackageLabelLetter6 GetLabelsParamsPageType = "PackageLabel_Letter_6" PackageLabelLetter6CarrierLeft GetLabelsParamsPageType = "PackageLabel_Letter_6_CarrierLeft" PackageLabelPlainPaper GetLabelsParamsPageType = "PackageLabel_Plain_Paper" PackageLabelPlainPaperCarrierBottom GetLabelsParamsPageType = "PackageLabel_Plain_Paper_CarrierBottom" PackageLabelThermal GetLabelsParamsPageType = "PackageLabel_Thermal" PackageLabelThermalNoCarrierRotation GetLabelsParamsPageType = "PackageLabel_Thermal_No_Carrier_Rotation" PackageLabelThermalNonPCP GetLabelsParamsPageType = "PackageLabel_Thermal_NonPCP" PackageLabelThermalUnified GetLabelsParamsPageType = "PackageLabel_Thermal_Unified" )
Defines values for GetLabelsParamsPageType.
type GetLabelsResp ¶
type GetLabelsResp struct { Body []byte HTTPResponse *http.Response JSON200 *GetLabelsResponse JSON400 *GetLabelsResponse JSON401 *GetLabelsResponse JSON403 *GetLabelsResponse JSON404 *GetLabelsResponse JSON429 *GetLabelsResponse JSON500 *GetLabelsResponse JSON503 *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 { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Download URL for a label Payload *LabelDownloadURL `json:"payload,omitempty"` }
GetLabelsResponse The response schema for the getLabels operation.
type GetPreorderInfoParams ¶
type GetPreorderInfoParams struct { // MarketplaceId A marketplace identifier. Specifies the marketplace the shipment is tied to. MarketplaceId string `form:"MarketplaceId" json:"MarketplaceId"` }
GetPreorderInfoParams defines parameters for GetPreorderInfo.
type GetPreorderInfoResp ¶
type GetPreorderInfoResp struct { Body []byte HTTPResponse *http.Response JSON200 *GetPreorderInfoResponse JSON400 *GetPreorderInfoResponse JSON401 *GetPreorderInfoResponse JSON403 *GetPreorderInfoResponse JSON404 *GetPreorderInfoResponse JSON429 *GetPreorderInfoResponse JSON500 *GetPreorderInfoResponse JSON503 *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 { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Result for the get preorder info operation Payload *GetPreorderInfoResult `json:"payload,omitempty"` }
GetPreorderInfoResponse The response schema for the getPreorderInfo operation.
type GetPreorderInfoResult ¶
type GetPreorderInfoResult struct { // ConfirmedFulfillableDate Type containing date in string format ConfirmedFulfillableDate *DateStringType `json:"ConfirmedFulfillableDate,omitempty"` // NeedByDate Type containing date in string format NeedByDate *DateStringType `json:"NeedByDate,omitempty"` // ShipmentConfirmedForPreorder Indicates whether this shipment has been confirmed for pre-order. ShipmentConfirmedForPreorder *bool `json:"ShipmentConfirmedForPreorder,omitempty"` // ShipmentContainsPreorderableItems 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 Result for the get preorder info operation
type GetPrepInstructionsParams ¶
type GetPrepInstructionsParams struct { // ShipToCountryCode 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 `form:"ShipToCountryCode" json:"ShipToCountryCode"` // SellerSKUList 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 `form:"SellerSKUList,omitempty" json:"SellerSKUList,omitempty"` // ASINList 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 `form:"ASINList,omitempty" json:"ASINList,omitempty"` }
GetPrepInstructionsParams defines parameters for GetPrepInstructions.
type GetPrepInstructionsResp ¶
type GetPrepInstructionsResp struct { Body []byte HTTPResponse *http.Response JSON200 *GetPrepInstructionsResponse JSON400 *GetPrepInstructionsResponse JSON401 *GetPrepInstructionsResponse JSON403 *GetPrepInstructionsResponse JSON404 *GetPrepInstructionsResponse JSON429 *GetPrepInstructionsResponse JSON500 *GetPrepInstructionsResponse JSON503 *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 { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Result for the get prep instructions operation Payload *GetPrepInstructionsResult `json:"payload,omitempty"` }
GetPrepInstructionsResponse The response schema for the getPrepInstructions operation.
type GetPrepInstructionsResult ¶
type GetPrepInstructionsResult struct { // ASINPrepInstructionsList A list of item preparation instructions. ASINPrepInstructionsList *ASINPrepInstructionsList `json:"ASINPrepInstructionsList,omitempty"` // InvalidASINList A list of invalid ASIN values and the reasons they are invalid. InvalidASINList *InvalidASINList `json:"InvalidASINList,omitempty"` // InvalidSKUList A list of invalid SKU values and the reason they are invalid. InvalidSKUList *InvalidSKUList `json:"InvalidSKUList,omitempty"` // SKUPrepInstructionsList A list of SKU labeling requirements and item preparation instructions. SKUPrepInstructionsList *SKUPrepInstructionsList `json:"SKUPrepInstructionsList,omitempty"` }
GetPrepInstructionsResult Result for the get prep instructions operation
type GetShipmentItemsByShipmentIdParams ¶
type GetShipmentItemsByShipmentIdParams struct { // MarketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored. MarketplaceId string `form:"MarketplaceId" json:"MarketplaceId"` }
GetShipmentItemsByShipmentIdParams defines parameters for GetShipmentItemsByShipmentId.
type GetShipmentItemsByShipmentIdResp ¶
type GetShipmentItemsByShipmentIdResp struct { Body []byte HTTPResponse *http.Response JSON200 *GetShipmentItemsResponse JSON400 *GetShipmentItemsResponse JSON401 *GetShipmentItemsResponse JSON403 *GetShipmentItemsResponse JSON404 *GetShipmentItemsResponse JSON429 *GetShipmentItemsResponse JSON500 *GetShipmentItemsResponse JSON503 *GetShipmentItemsResponse }
func ParseGetShipmentItemsByShipmentIdResp ¶
func ParseGetShipmentItemsByShipmentIdResp(rsp *http.Response) (*GetShipmentItemsByShipmentIdResp, error)
ParseGetShipmentItemsByShipmentIdResp parses an HTTP response from a GetShipmentItemsByShipmentIdWithResponse call
func (GetShipmentItemsByShipmentIdResp) Status ¶
func (r GetShipmentItemsByShipmentIdResp) Status() string
Status returns HTTPResponse.Status
func (GetShipmentItemsByShipmentIdResp) StatusCode ¶
func (r GetShipmentItemsByShipmentIdResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetShipmentItemsParams ¶
type GetShipmentItemsParams struct { // LastUpdatedAfter 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 `form:"LastUpdatedAfter,omitempty" json:"LastUpdatedAfter,omitempty"` // LastUpdatedBefore 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 `form:"LastUpdatedBefore,omitempty" json:"LastUpdatedBefore,omitempty"` // QueryType 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 GetShipmentItemsParamsQueryType `form:"QueryType" json:"QueryType"` // NextToken A string token returned in the response to your previous request. NextToken *string `form:"NextToken,omitempty" json:"NextToken,omitempty"` // MarketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored. MarketplaceId string `form:"MarketplaceId" json:"MarketplaceId"` }
GetShipmentItemsParams defines parameters for GetShipmentItems.
type GetShipmentItemsParamsQueryType ¶
type GetShipmentItemsParamsQueryType string
GetShipmentItemsParamsQueryType defines parameters for GetShipmentItems.
const ( GetShipmentItemsParamsQueryTypeDATERANGE GetShipmentItemsParamsQueryType = "DATE_RANGE" GetShipmentItemsParamsQueryTypeNEXTTOKEN GetShipmentItemsParamsQueryType = "NEXT_TOKEN" )
Defines values for GetShipmentItemsParamsQueryType.
type GetShipmentItemsResp ¶
type GetShipmentItemsResp struct { Body []byte HTTPResponse *http.Response JSON200 *GetShipmentItemsResponse JSON400 *GetShipmentItemsResponse JSON401 *GetShipmentItemsResponse JSON403 *GetShipmentItemsResponse JSON404 *GetShipmentItemsResponse JSON429 *GetShipmentItemsResponse JSON500 *GetShipmentItemsResponse JSON503 *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 { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Result for the get shipment items operation Payload *GetShipmentItemsResult `json:"payload,omitempty"` }
GetShipmentItemsResponse The response schema for the getShipmentItems operation.
type GetShipmentItemsResult ¶
type GetShipmentItemsResult struct { // ItemData A list of inbound shipment item information. ItemData *InboundShipmentItemList `json:"ItemData,omitempty"` // NextToken When present and not empty, pass this string token in the next request to return the next response page. NextToken *string `json:"NextToken,omitempty"` }
GetShipmentItemsResult Result for the get shipment items operation
type GetShipmentsParams ¶
type GetShipmentsParams struct { // ShipmentStatusList A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify. ShipmentStatusList *[]GetShipmentsParamsShipmentStatusList `form:"ShipmentStatusList,omitempty" json:"ShipmentStatusList,omitempty"` // ShipmentIdList 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 `form:"ShipmentIdList,omitempty" json:"ShipmentIdList,omitempty"` // LastUpdatedAfter 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 `form:"LastUpdatedAfter,omitempty" json:"LastUpdatedAfter,omitempty"` // LastUpdatedBefore 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 `form:"LastUpdatedBefore,omitempty" json:"LastUpdatedBefore,omitempty"` // QueryType 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 GetShipmentsParamsQueryType `form:"QueryType" json:"QueryType"` // NextToken A string token returned in the response to your previous request. NextToken *string `form:"NextToken,omitempty" json:"NextToken,omitempty"` // MarketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored. MarketplaceId string `form:"MarketplaceId" json:"MarketplaceId"` }
GetShipmentsParams defines parameters for GetShipments.
type GetShipmentsParamsQueryType ¶
type GetShipmentsParamsQueryType string
GetShipmentsParamsQueryType defines parameters for GetShipments.
const ( GetShipmentsParamsQueryTypeDATERANGE GetShipmentsParamsQueryType = "DATE_RANGE" GetShipmentsParamsQueryTypeNEXTTOKEN GetShipmentsParamsQueryType = "NEXT_TOKEN" GetShipmentsParamsQueryTypeSHIPMENT GetShipmentsParamsQueryType = "SHIPMENT" )
Defines values for GetShipmentsParamsQueryType.
type GetShipmentsParamsShipmentStatusList ¶
type GetShipmentsParamsShipmentStatusList string
GetShipmentsParamsShipmentStatusList defines parameters for GetShipments.
const ( GetShipmentsParamsShipmentStatusListCANCELLED GetShipmentsParamsShipmentStatusList = "CANCELLED" GetShipmentsParamsShipmentStatusListCHECKEDIN GetShipmentsParamsShipmentStatusList = "CHECKED_IN" GetShipmentsParamsShipmentStatusListCLOSED GetShipmentsParamsShipmentStatusList = "CLOSED" GetShipmentsParamsShipmentStatusListDELETED GetShipmentsParamsShipmentStatusList = "DELETED" GetShipmentsParamsShipmentStatusListDELIVERED GetShipmentsParamsShipmentStatusList = "DELIVERED" GetShipmentsParamsShipmentStatusListERROR GetShipmentsParamsShipmentStatusList = "ERROR" GetShipmentsParamsShipmentStatusListINTRANSIT GetShipmentsParamsShipmentStatusList = "IN_TRANSIT" GetShipmentsParamsShipmentStatusListREADYTOSHIP GetShipmentsParamsShipmentStatusList = "READY_TO_SHIP" GetShipmentsParamsShipmentStatusListRECEIVING GetShipmentsParamsShipmentStatusList = "RECEIVING" GetShipmentsParamsShipmentStatusListSHIPPED GetShipmentsParamsShipmentStatusList = "SHIPPED" GetShipmentsParamsShipmentStatusListWORKING GetShipmentsParamsShipmentStatusList = "WORKING" )
Defines values for GetShipmentsParamsShipmentStatusList.
type GetShipmentsResp ¶
type GetShipmentsResp struct { Body []byte HTTPResponse *http.Response JSON200 *GetShipmentsResponse JSON400 *GetShipmentsResponse JSON401 *GetShipmentsResponse JSON403 *GetShipmentsResponse JSON404 *GetShipmentsResponse JSON429 *GetShipmentsResponse JSON500 *GetShipmentsResponse JSON503 *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 { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Result for the get shipments operation Payload *GetShipmentsResult `json:"payload,omitempty"` }
GetShipmentsResponse The response schema for the getShipments operation.
type GetShipmentsResult ¶
type GetShipmentsResult struct { // NextToken When present and not empty, pass this string token in the next request to return the next response page. NextToken *string `json:"NextToken,omitempty"` // ShipmentData A list of inbound shipment information. ShipmentData *InboundShipmentList `json:"ShipmentData,omitempty"` }
GetShipmentsResult Result for the get shipments operation
type GetTransportDetailsResp ¶
type GetTransportDetailsResp struct { Body []byte HTTPResponse *http.Response JSON200 *GetTransportDetailsResponse JSON400 *GetTransportDetailsResponse JSON401 *GetTransportDetailsResponse JSON403 *GetTransportDetailsResponse JSON404 *GetTransportDetailsResponse JSON429 *GetTransportDetailsResponse JSON500 *GetTransportDetailsResponse JSON503 *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 { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Result for the get transport details operation Payload *GetTransportDetailsResult `json:"payload,omitempty"` }
GetTransportDetailsResponse The response schema for the getTransportDetails operation.
type GetTransportDetailsResult ¶
type GetTransportDetailsResult struct { // TransportContent 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 Result for the get transport details operation
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InboundShipmentHeader ¶
type InboundShipmentHeader struct { // AreCasesRequired 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"` // DestinationFulfillmentCenterId 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"` // IntendedBoxContentsSource How the seller intends to provide box contents information for a shipment. Leaving this field blank is equivalent to selecting `NONE`, which will incur a fee if the seller does not provide box contents information. IntendedBoxContentsSource *IntendedBoxContentsSource `json:"IntendedBoxContentsSource,omitempty"` // LabelPrepPreference The preference for label preparation for an inbound shipment. LabelPrepPreference LabelPrepPreference `json:"LabelPrepPreference"` // ShipFromAddress Specific details to identify a place. ShipFromAddress Address `json:"ShipFromAddress"` // ShipmentName 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"` // ShipmentStatus 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 Inbound shipment information used to create and update inbound shipments.
type InboundShipmentInfo ¶
type InboundShipmentInfo struct { // AreCasesRequired 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"` // BoxContentsSource Where the seller provided box contents information for a shipment. BoxContentsSource *BoxContentsSource `json:"BoxContentsSource,omitempty"` // ConfirmedNeedByDate Type containing date in string format ConfirmedNeedByDate *DateStringType `json:"ConfirmedNeedByDate,omitempty"` // DestinationFulfillmentCenterId An Amazon fulfillment center identifier created by Amazon. DestinationFulfillmentCenterId *string `json:"DestinationFulfillmentCenterId,omitempty"` // EstimatedBoxContentsFee The manual processing fee per unit and total fee for a shipment. EstimatedBoxContentsFee *BoxContentsFeeDetails `json:"EstimatedBoxContentsFee,omitempty"` // LabelPrepType The type of label preparation that is required for the inbound shipment. LabelPrepType *LabelPrepType `json:"LabelPrepType,omitempty"` // ShipFromAddress Specific details to identify a place. ShipFromAddress Address `json:"ShipFromAddress"` // ShipmentId The shipment identifier submitted in the request. ShipmentId *string `json:"ShipmentId,omitempty"` // ShipmentName The name for the inbound shipment. ShipmentName *string `json:"ShipmentName,omitempty"` // ShipmentStatus 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 Information about the seller's inbound shipments. Returned by the listInboundShipments operation.
type InboundShipmentItem ¶
type InboundShipmentItem struct { // FulfillmentNetworkSKU Amazon's fulfillment network SKU of the item. FulfillmentNetworkSKU *string `json:"FulfillmentNetworkSKU,omitempty"` // PrepDetailsList A list of preparation instructions and who is responsible for that preparation. PrepDetailsList *PrepDetailsList `json:"PrepDetailsList,omitempty"` // QuantityInCase The item quantity. QuantityInCase *Quantity `json:"QuantityInCase,omitempty"` // QuantityReceived The item quantity. QuantityReceived *Quantity `json:"QuantityReceived,omitempty"` // QuantityShipped The item quantity. QuantityShipped Quantity `json:"QuantityShipped"` // ReleaseDate Type containing date in string format ReleaseDate *DateStringType `json:"ReleaseDate,omitempty"` // SellerSKU The seller SKU of the item. SellerSKU string `json:"SellerSKU"` // ShipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. ShipmentId *string `json:"ShipmentId,omitempty"` }
InboundShipmentItem Item information for an inbound shipment. Submitted with a call to the createInboundShipment or updateInboundShipment operation.
type InboundShipmentItemList ¶
type InboundShipmentItemList = []InboundShipmentItem
InboundShipmentItemList A list of inbound shipment item information.
type InboundShipmentList ¶
type InboundShipmentList = []InboundShipmentInfo
InboundShipmentList A list of inbound shipment information.
type InboundShipmentPlan ¶
type InboundShipmentPlan struct { // DestinationFulfillmentCenterId An Amazon fulfillment center identifier created by Amazon. DestinationFulfillmentCenterId string `json:"DestinationFulfillmentCenterId"` // EstimatedBoxContentsFee The manual processing fee per unit and total fee for a shipment. EstimatedBoxContentsFee *BoxContentsFeeDetails `json:"EstimatedBoxContentsFee,omitempty"` // Items A list of inbound shipment plan item information. Items InboundShipmentPlanItemList `json:"Items"` // LabelPrepType The type of label preparation that is required for the inbound shipment. LabelPrepType LabelPrepType `json:"LabelPrepType"` // ShipToAddress Specific details to identify a place. ShipToAddress Address `json:"ShipToAddress"` // ShipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. ShipmentId string `json:"ShipmentId"` }
InboundShipmentPlan Inbound shipment information used to create an inbound shipment. Returned by the createInboundShipmentPlan operation.
type InboundShipmentPlanItem ¶
type InboundShipmentPlanItem struct { // FulfillmentNetworkSKU Amazon's fulfillment network SKU of the item. FulfillmentNetworkSKU string `json:"FulfillmentNetworkSKU"` // PrepDetailsList A list of preparation instructions and who is responsible for that preparation. PrepDetailsList *PrepDetailsList `json:"PrepDetailsList,omitempty"` // Quantity The item quantity. Quantity Quantity `json:"Quantity"` // SellerSKU The seller SKU of the item. SellerSKU string `json:"SellerSKU"` }
InboundShipmentPlanItem Item information used to create an inbound shipment. Returned by the createInboundShipmentPlan operation.
type InboundShipmentPlanItemList ¶
type InboundShipmentPlanItemList = []InboundShipmentPlanItem
InboundShipmentPlanItemList A list of inbound shipment plan item information.
type InboundShipmentPlanList ¶
type InboundShipmentPlanList = []InboundShipmentPlan
InboundShipmentPlanList A list of inbound shipment plan information
type InboundShipmentPlanRequestItem ¶
type InboundShipmentPlanRequestItem struct { // ASIN The Amazon Standard Identification Number (ASIN) of the item. ASIN string `json:"ASIN"` // Condition The condition of the item. Condition Condition `json:"Condition"` // PrepDetailsList A list of preparation instructions and who is responsible for that preparation. PrepDetailsList *PrepDetailsList `json:"PrepDetailsList,omitempty"` // Quantity The item quantity. Quantity Quantity `json:"Quantity"` // QuantityInCase The item quantity. QuantityInCase *Quantity `json:"QuantityInCase,omitempty"` // SellerSKU The seller SKU of the item. SellerSKU string `json:"SellerSKU"` }
InboundShipmentPlanRequestItem Item information for creating an inbound shipment plan. Submitted with a call to the createInboundShipmentPlan operation.
type InboundShipmentPlanRequestItemList ¶
type InboundShipmentPlanRequestItemList = []InboundShipmentPlanRequestItem
InboundShipmentPlanRequestItemList List of inbound shipment plan requests
type InboundShipmentRequest ¶
type InboundShipmentRequest struct { // InboundShipmentHeader Inbound shipment information used to create and update inbound shipments. InboundShipmentHeader InboundShipmentHeader `json:"InboundShipmentHeader"` // InboundShipmentItems A list of inbound shipment item information. InboundShipmentItems InboundShipmentItemList `json:"InboundShipmentItems"` // MarketplaceId A marketplace identifier. Specifies the marketplace where the product would be stored. MarketplaceId string `json:"MarketplaceId"` }
InboundShipmentRequest The request schema for an inbound shipment.
type InboundShipmentResponse ¶
type InboundShipmentResponse struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Result of an inbound shipment operation Payload *InboundShipmentResult `json:"payload,omitempty"` }
InboundShipmentResponse The response schema for this operation.
type InboundShipmentResult ¶
type InboundShipmentResult struct { // ShipmentId The shipment identifier submitted in the request. ShipmentId string `json:"ShipmentId"` }
InboundShipmentResult Result of an inbound shipment operation
type IntendedBoxContentsSource ¶
type IntendedBoxContentsSource string
IntendedBoxContentsSource How the seller intends to provide box contents information for a shipment. Leaving this field blank is equivalent to selecting `NONE`, which will incur a fee if the seller does not provide box contents information.
const ( IntendedBoxContentsSourceFEED IntendedBoxContentsSource = "FEED" IntendedBoxContentsSourceN2DBARCODE IntendedBoxContentsSource = "2D_BARCODE" IntendedBoxContentsSourceNONE IntendedBoxContentsSource = "NONE" )
Defines values for IntendedBoxContentsSource.
type InvalidASIN ¶
type InvalidASIN struct { // ASIN The Amazon Standard Identification Number (ASIN) of the item. ASIN *string `json:"ASIN,omitempty"` // ErrorReason The reason that the ASIN is invalid. ErrorReason *ErrorReason `json:"ErrorReason,omitempty"` }
InvalidASIN Contains details about an invalid ASIN
type InvalidASINList ¶
type InvalidASINList = []InvalidASIN
InvalidASINList A list of invalid ASIN values and the reasons they are invalid.
type InvalidSKU ¶
type InvalidSKU struct { // ErrorReason The reason that the ASIN is invalid. ErrorReason *ErrorReason `json:"ErrorReason,omitempty"` // SellerSKU The seller SKU of the item. SellerSKU *string `json:"SellerSKU,omitempty"` }
InvalidSKU Contains detail about an invalid SKU
type InvalidSKUList ¶
type InvalidSKUList = []InvalidSKU
InvalidSKUList A list of invalid SKU values and the reason they are invalid.
type LabelDownloadURL ¶
type LabelDownloadURL struct { // DownloadURL URL to download the label for the package. Note: The URL will only be valid for 15 seconds DownloadURL *string `json:"DownloadURL,omitempty"` }
LabelDownloadURL Download URL for a label
type LabelPrepPreference ¶
type LabelPrepPreference string
LabelPrepPreference The preference for label preparation for an inbound shipment.
const ( LabelPrepPreferenceAMAZONLABELONLY LabelPrepPreference = "AMAZON_LABEL_ONLY" LabelPrepPreferenceAMAZONLABELPREFERRED LabelPrepPreference = "AMAZON_LABEL_PREFERRED" LabelPrepPreferenceSELLERLABEL LabelPrepPreference = "SELLER_LABEL" )
Defines values for LabelPrepPreference.
type LabelPrepType ¶
type LabelPrepType string
LabelPrepType The type of label preparation that is required for the inbound shipment.
const ( LabelPrepTypeAMAZONLABEL LabelPrepType = "AMAZON_LABEL" LabelPrepTypeNOLABEL LabelPrepType = "NO_LABEL" LabelPrepTypeSELLERLABEL LabelPrepType = "SELLER_LABEL" )
Defines values for LabelPrepType.
type NonPartneredLtlDataInput ¶
type NonPartneredLtlDataInput struct { // CarrierName The carrier that you are using for the inbound shipment. CarrierName string `json:"CarrierName"` // ProNumber The PRO number ("progressive number" or "progressive ID") assigned to the shipment by the carrier. ProNumber ProNumber `json:"ProNumber"` }
NonPartneredLtlDataInput 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.
type NonPartneredLtlDataOutput ¶
type NonPartneredLtlDataOutput struct { // CarrierName The carrier that you are using for the inbound shipment. CarrierName string `json:"CarrierName"` // ProNumber The PRO number ("progressive number" or "progressive ID") assigned to the shipment by the carrier. ProNumber ProNumber `json:"ProNumber"` }
NonPartneredLtlDataOutput Information returned by Amazon about a Less Than Truckload/Full Truckload (LTL/FTL) shipment shipped by a carrier that has not partnered with Amazon.
type NonPartneredSmallParcelDataInput ¶
type NonPartneredSmallParcelDataInput struct { // CarrierName The carrier that you are using for the inbound shipment. CarrierName string `json:"CarrierName"` // PackageList A list of package tracking information. PackageList NonPartneredSmallParcelPackageInputList `json:"PackageList"` }
NonPartneredSmallParcelDataInput Information that you provide to Amazon about a Small Parcel shipment shipped by a carrier that has not partnered with Amazon.
type NonPartneredSmallParcelDataOutput ¶
type NonPartneredSmallParcelDataOutput struct { // PackageList A list of packages, including carrier, tracking number, and status information for each package. PackageList NonPartneredSmallParcelPackageOutputList `json:"PackageList"` }
NonPartneredSmallParcelDataOutput Information returned by Amazon about a Small Parcel shipment by a carrier that has not partnered with Amazon.
type NonPartneredSmallParcelPackageInput ¶
type NonPartneredSmallParcelPackageInput struct { // TrackingId The tracking number of the package, provided by the carrier. TrackingId TrackingId `json:"TrackingId"` }
NonPartneredSmallParcelPackageInput The tracking number of the package, provided by the carrier.
type NonPartneredSmallParcelPackageInputList ¶
type NonPartneredSmallParcelPackageInputList = []NonPartneredSmallParcelPackageInput
NonPartneredSmallParcelPackageInputList A list of package tracking information.
type NonPartneredSmallParcelPackageOutput ¶
type NonPartneredSmallParcelPackageOutput struct { // CarrierName The carrier that you are using for the inbound shipment. CarrierName string `json:"CarrierName"` // PackageStatus The shipment status of the package. PackageStatus PackageStatus `json:"PackageStatus"` // TrackingId The tracking number of the package, provided by the carrier. TrackingId TrackingId `json:"TrackingId"` }
NonPartneredSmallParcelPackageOutput Carrier, tracking number, and status information for the package.
type NonPartneredSmallParcelPackageOutputList ¶
type NonPartneredSmallParcelPackageOutputList = []NonPartneredSmallParcelPackageOutput
NonPartneredSmallParcelPackageOutputList A list of packages, including carrier, tracking number, and status information for each package.
type PackageStatus ¶
type PackageStatus string
PackageStatus The shipment status of the package.
const ( PackageStatusCHECKEDIN PackageStatus = "CHECKED_IN" PackageStatusCLOSED PackageStatus = "CLOSED" PackageStatusDELETED PackageStatus = "DELETED" PackageStatusDELIVERED PackageStatus = "DELIVERED" PackageStatusINTRANSIT PackageStatus = "IN_TRANSIT" PackageStatusRECEIVING PackageStatus = "RECEIVING" PackageStatusSHIPPED PackageStatus = "SHIPPED" )
Defines values for PackageStatus.
type Pallet ¶
type Pallet struct { // Dimensions The dimension values and unit of measurement. Dimensions Dimensions `json:"Dimensions"` // IsStacked Indicates whether pallets will be stacked when carrier arrives for pick-up. IsStacked bool `json:"IsStacked"` // Weight The weight of the package. Weight *Weight `json:"Weight,omitempty"` }
Pallet Pallet information.
type PartneredEstimate ¶
type PartneredEstimate struct { // Amount The monetary value. Amount Amount `json:"Amount"` // ConfirmDeadline Timestamp in ISO 8601 format. ConfirmDeadline *TimeStampStringType `json:"ConfirmDeadline,omitempty"` // VoidDeadline Timestamp in ISO 8601 format. VoidDeadline *TimeStampStringType `json:"VoidDeadline,omitempty"` }
PartneredEstimate The estimated shipping cost for a shipment using an Amazon-partnered carrier.
type PartneredLtlDataInput ¶
type PartneredLtlDataInput struct { // BoxCount Contains an unsigned integer BoxCount *UnsignedIntType `json:"BoxCount,omitempty"` // Contact 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 Type containing date in string format FreightReadyDate *DateStringType `json:"FreightReadyDate,omitempty"` // PalletList A list of pallet information. PalletList *PalletList `json:"PalletList,omitempty"` // SellerDeclaredValue The monetary value. SellerDeclaredValue *Amount `json:"SellerDeclaredValue,omitempty"` // SellerFreightClass The freight class of the shipment. For information about determining the freight class, contact the carrier. SellerFreightClass *SellerFreightClass `json:"SellerFreightClass,omitempty"` // TotalWeight The weight of the package. TotalWeight *Weight `json:"TotalWeight,omitempty"` }
PartneredLtlDataInput Information that is required by an Amazon-partnered carrier to ship a Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment.
type PartneredLtlDataOutput ¶
type PartneredLtlDataOutput struct { // AmazonCalculatedValue The monetary value. AmazonCalculatedValue *Amount `json:"AmazonCalculatedValue,omitempty"` // AmazonReferenceId A unique identifier created by Amazon that identifies this Amazon-partnered, Less Than Truckload/Full Truckload (LTL/FTL) shipment. AmazonReferenceId string `json:"AmazonReferenceId"` // BoxCount Contains an unsigned integer BoxCount UnsignedIntType `json:"BoxCount"` // CarrierName The carrier for the inbound shipment. CarrierName string `json:"CarrierName"` // Contact 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 Type containing date in string format FreightReadyDate DateStringType `json:"FreightReadyDate"` // IsBillOfLadingAvailable Indicates whether the bill of lading for the shipment is available. IsBillOfLadingAvailable bool `json:"IsBillOfLadingAvailable"` // PalletList A list of pallet information. PalletList PalletList `json:"PalletList"` // PartneredEstimate The estimated shipping cost for a shipment using an Amazon-partnered carrier. PartneredEstimate *PartneredEstimate `json:"PartneredEstimate,omitempty"` // PreviewDeliveryDate Type containing date in string format PreviewDeliveryDate DateStringType `json:"PreviewDeliveryDate"` // PreviewFreightClass The freight class of the shipment. For information about determining the freight class, contact the carrier. PreviewFreightClass SellerFreightClass `json:"PreviewFreightClass"` // PreviewPickupDate Type containing date in string format PreviewPickupDate DateStringType `json:"PreviewPickupDate"` // SellerDeclaredValue The monetary value. SellerDeclaredValue *Amount `json:"SellerDeclaredValue,omitempty"` // SellerFreightClass The freight class of the shipment. For information about determining the freight class, contact the carrier. SellerFreightClass *SellerFreightClass `json:"SellerFreightClass,omitempty"` // TotalWeight The weight of the package. TotalWeight Weight `json:"TotalWeight"` }
PartneredLtlDataOutput Information returned by Amazon about a Less Than Truckload/Full Truckload (LTL/FTL) shipment by an Amazon-partnered carrier.
type PartneredSmallParcelDataInput ¶
type PartneredSmallParcelDataInput struct { // CarrierName The Amazon-partnered carrier to use for the inbound shipment. **`CarrierName`** values in France (FR), Italy (IT), Spain (ES), the United Kingdom (UK), and the United States (US): `UNITED_PARCEL_SERVICE_INC`. <br> **`CarrierName`** values in Germany (DE): `DHL_STANDARD`,`UNITED_PARCEL_SERVICE_INC`. <br>Default: `UNITED_PARCEL_SERVICE_INC`. CarrierName *string `json:"CarrierName,omitempty"` // PackageList A list of dimensions and weight information for packages. PackageList *PartneredSmallParcelPackageInputList `json:"PackageList,omitempty"` }
PartneredSmallParcelDataInput Information that is required by an Amazon-partnered carrier to ship a Small Parcel inbound shipment.
type PartneredSmallParcelDataOutput ¶
type PartneredSmallParcelDataOutput struct { // PackageList A list of packages, including shipping information from the Amazon-partnered carrier. PackageList PartneredSmallParcelPackageOutputList `json:"PackageList"` // PartneredEstimate The estimated shipping cost for a shipment using an Amazon-partnered carrier. PartneredEstimate *PartneredEstimate `json:"PartneredEstimate,omitempty"` }
PartneredSmallParcelDataOutput Information returned by Amazon about a Small Parcel shipment by an Amazon-partnered carrier.
type PartneredSmallParcelPackageInput ¶
type PartneredSmallParcelPackageInput struct { // Dimensions The dimension values and unit of measurement. Dimensions Dimensions `json:"Dimensions"` // Weight The weight of the package. Weight Weight `json:"Weight"` }
PartneredSmallParcelPackageInput Dimension and weight information for the package.
type PartneredSmallParcelPackageInputList ¶
type PartneredSmallParcelPackageInputList = []PartneredSmallParcelPackageInput
PartneredSmallParcelPackageInputList A list of dimensions and weight information for packages.
type PartneredSmallParcelPackageOutput ¶
type PartneredSmallParcelPackageOutput struct { // CarrierName The carrier specified with a previous call to putTransportDetails. CarrierName string `json:"CarrierName"` // Dimensions The dimension values and unit of measurement. Dimensions Dimensions `json:"Dimensions"` // PackageStatus The shipment status of the package. PackageStatus PackageStatus `json:"PackageStatus"` // TrackingId The tracking number of the package, provided by the carrier. TrackingId TrackingId `json:"TrackingId"` // Weight The weight of the package. Weight Weight `json:"Weight"` }
PartneredSmallParcelPackageOutput Dimension, weight, and shipping information for the package.
type PartneredSmallParcelPackageOutputList ¶
type PartneredSmallParcelPackageOutputList = []PartneredSmallParcelPackageOutput
PartneredSmallParcelPackageOutputList A list of packages, including shipping information from the Amazon-partnered carrier.
type PrepDetails ¶
type PrepDetails struct { // PrepInstruction 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"` // PrepOwner Indicates who will prepare the item. PrepOwner PrepOwner `json:"PrepOwner"` }
PrepDetails Preparation instructions and who is responsible for the preparation.
type PrepDetailsList ¶
type PrepDetailsList = []PrepDetails
PrepDetailsList A list of preparation instructions and who is responsible for that preparation.
type PrepGuidance ¶
type PrepGuidance string
PrepGuidance Item preparation instructions.
const ( ConsultHelpDocuments PrepGuidance = "ConsultHelpDocuments" NoAdditionalPrepRequired PrepGuidance = "NoAdditionalPrepRequired" SeePrepInstructionsList PrepGuidance = "SeePrepInstructionsList" )
Defines values for PrepGuidance.
type PrepInstruction ¶
type PrepInstruction string
PrepInstruction 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.
const ( BlackShrinkWrapping PrepInstruction = "BlackShrinkWrapping" BlankStickering PrepInstruction = "BlankStickering" Boxing PrepInstruction = "Boxing" BubbleWrapping PrepInstruction = "BubbleWrapping" CapSealing PrepInstruction = "CapSealing" Debundle PrepInstruction = "Debundle" HangGarment PrepInstruction = "HangGarment" Labeling PrepInstruction = "Labeling" NoPrep PrepInstruction = "NoPrep" Polybagging PrepInstruction = "Polybagging" RemoveFromHanger PrepInstruction = "RemoveFromHanger" SetCreation PrepInstruction = "SetCreation" SetStickering PrepInstruction = "SetStickering" ShipsInProductPackaging PrepInstruction = "ShipsInProductPackaging" SuffocationStickering PrepInstruction = "SuffocationStickering" Taping PrepInstruction = "Taping" )
Defines values for PrepInstruction.
type PrepInstructionList ¶
type PrepInstructionList = []PrepInstruction
PrepInstructionList A list of preparation instructions to help with item sourcing decisions.
type ProNumber ¶
type ProNumber = string
ProNumber The PRO number ("progressive number" or "progressive ID") assigned to the shipment by the carrier.
type PutTransportDetailsJSONRequestBody ¶
type PutTransportDetailsJSONRequestBody = PutTransportDetailsRequest
PutTransportDetailsJSONRequestBody defines body for PutTransportDetails for application/json ContentType.
type PutTransportDetailsRequest ¶
type PutTransportDetailsRequest struct { // IsPartnered Indicates whether a putTransportDetails request is for an Amazon-partnered carrier. IsPartnered bool `json:"IsPartnered"` // ShipmentType Specifies the carrier shipment type in a putTransportDetails request. ShipmentType ShipmentType `json:"ShipmentType"` // TransportDetails 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 The request schema for a putTransportDetails operation.
type PutTransportDetailsResp ¶
type PutTransportDetailsResp struct { Body []byte HTTPResponse *http.Response JSON200 *PutTransportDetailsResponse JSON400 *PutTransportDetailsResponse JSON401 *PutTransportDetailsResponse JSON403 *PutTransportDetailsResponse JSON404 *PutTransportDetailsResponse JSON429 *PutTransportDetailsResponse JSON500 *PutTransportDetailsResponse JSON503 *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 { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Common container for transport result Payload *CommonTransportResult `json:"payload,omitempty"` }
PutTransportDetailsResponse Workflow status for a shipment with an Amazon-partnered carrier.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResponseEditorFn ¶
ResponseEditorFn is the function signature for the ResponseEditor callback function
type SKUPrepInstructions ¶
type SKUPrepInstructions struct { // ASIN The Amazon Standard Identification Number (ASIN) of the item. ASIN *string `json:"ASIN,omitempty"` // AmazonPrepFeesDetailsList A list of preparation instructions and fees for Amazon to prep goods for shipment. AmazonPrepFeesDetailsList *AmazonPrepFeesDetailsList `json:"AmazonPrepFeesDetailsList,omitempty"` // BarcodeInstruction 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"` // PrepGuidance Item preparation instructions. PrepGuidance *PrepGuidance `json:"PrepGuidance,omitempty"` // PrepInstructionList A list of preparation instructions to help with item sourcing decisions. PrepInstructionList *PrepInstructionList `json:"PrepInstructionList,omitempty"` // SellerSKU The seller SKU of the item. SellerSKU *string `json:"SellerSKU,omitempty"` }
SKUPrepInstructions Labeling requirements and item preparation instructions to help you prepare items for shipment to Amazon's fulfillment network.
type SKUPrepInstructionsList ¶
type SKUPrepInstructionsList = []SKUPrepInstructions
SKUPrepInstructionsList A list of SKU labeling requirements and item preparation instructions.
type SellerFreightClass ¶
type SellerFreightClass string
SellerFreightClass The freight class of the shipment. For information about determining the freight class, contact the carrier.
const ( N100 SellerFreightClass = "100" N110 SellerFreightClass = "110" N125 SellerFreightClass = "125" N150 SellerFreightClass = "150" N175 SellerFreightClass = "175" N200 SellerFreightClass = "200" N250 SellerFreightClass = "250" N300 SellerFreightClass = "300" N400 SellerFreightClass = "400" N50 SellerFreightClass = "50" N500 SellerFreightClass = "500" N55 SellerFreightClass = "55" N60 SellerFreightClass = "60" N65 SellerFreightClass = "65" N70 SellerFreightClass = "70" N775 SellerFreightClass = "77.5" N85 SellerFreightClass = "85" N925 SellerFreightClass = "92.5" )
Defines values for SellerFreightClass.
type ShipmentStatus ¶
type ShipmentStatus string
ShipmentStatus 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.
const ( ShipmentStatusCANCELLED ShipmentStatus = "CANCELLED" ShipmentStatusCHECKEDIN ShipmentStatus = "CHECKED_IN" ShipmentStatusCLOSED ShipmentStatus = "CLOSED" ShipmentStatusDELETED ShipmentStatus = "DELETED" ShipmentStatusDELIVERED ShipmentStatus = "DELIVERED" ShipmentStatusERROR ShipmentStatus = "ERROR" ShipmentStatusINTRANSIT ShipmentStatus = "IN_TRANSIT" ShipmentStatusRECEIVING ShipmentStatus = "RECEIVING" ShipmentStatusSHIPPED ShipmentStatus = "SHIPPED" ShipmentStatusWORKING ShipmentStatus = "WORKING" )
Defines values for ShipmentStatus.
type ShipmentType ¶
type ShipmentType string
ShipmentType Specifies the carrier shipment type in a putTransportDetails request.
const ( LTL ShipmentType = "LTL" SP ShipmentType = "SP" )
Defines values for ShipmentType.
type TimeStampStringType ¶
TimeStampStringType Timestamp in ISO 8601 format.
type TrackingId ¶
type TrackingId = string
TrackingId The tracking number of the package, provided by the carrier.
type TransportContent ¶
type TransportContent struct { // TransportDetails Inbound shipment information, including carrier details and shipment status. TransportDetails TransportDetailOutput `json:"TransportDetails"` // TransportHeader 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"` // TransportResult The workflow status for a shipment with an Amazon-partnered carrier. TransportResult TransportResult `json:"TransportResult"` }
TransportContent Inbound shipment information, including carrier details, shipment status, and the workflow status for a request for shipment with an Amazon-partnered carrier.
type TransportDetailInput ¶
type TransportDetailInput struct { // NonPartneredLtlData 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"` // NonPartneredSmallParcelData 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"` // PartneredLtlData 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"` // PartneredSmallParcelData Information that is required by an Amazon-partnered carrier to ship a Small Parcel inbound shipment. PartneredSmallParcelData *PartneredSmallParcelDataInput `json:"PartneredSmallParcelData,omitempty"` }
TransportDetailInput 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.
type TransportDetailOutput ¶
type TransportDetailOutput struct { // NonPartneredLtlData 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"` // NonPartneredSmallParcelData Information returned by Amazon about a Small Parcel shipment by a carrier that has not partnered with Amazon. NonPartneredSmallParcelData *NonPartneredSmallParcelDataOutput `json:"NonPartneredSmallParcelData,omitempty"` // PartneredLtlData Information returned by Amazon about a Less Than Truckload/Full Truckload (LTL/FTL) shipment by an Amazon-partnered carrier. PartneredLtlData *PartneredLtlDataOutput `json:"PartneredLtlData,omitempty"` // PartneredSmallParcelData Information returned by Amazon about a Small Parcel shipment by an Amazon-partnered carrier. PartneredSmallParcelData *PartneredSmallParcelDataOutput `json:"PartneredSmallParcelData,omitempty"` }
TransportDetailOutput Inbound shipment information, including carrier details and shipment status.
type TransportHeader ¶
type TransportHeader struct { // IsPartnered 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"` // SellerId The Amazon seller identifier. SellerId string `json:"SellerId"` // ShipmentId A shipment identifier originally returned by the createInboundShipmentPlan operation. ShipmentId string `json:"ShipmentId"` // ShipmentType Specifies the carrier shipment type in a putTransportDetails request. ShipmentType ShipmentType `json:"ShipmentType"` }
TransportHeader 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).
type TransportResult ¶
type TransportResult struct { // ErrorCode An error code that identifies the type of error that occured. ErrorCode *string `json:"ErrorCode,omitempty"` // ErrorDescription A message that describes the error condition. ErrorDescription *string `json:"ErrorDescription,omitempty"` // TransportStatus Indicates the status of the Amazon-partnered carrier shipment. TransportStatus TransportStatus `json:"TransportStatus"` }
TransportResult The workflow status for a shipment with an Amazon-partnered carrier.
type TransportStatus ¶
type TransportStatus string
TransportStatus Indicates the status of the Amazon-partnered carrier shipment.
const ( TransportStatusCONFIRMED TransportStatus = "CONFIRMED" TransportStatusCONFIRMING TransportStatus = "CONFIRMING" TransportStatusERROR TransportStatus = "ERROR" TransportStatusERRORINVOIDING TransportStatus = "ERROR_IN_VOIDING" TransportStatusERRORONCONFIRMING TransportStatus = "ERROR_ON_CONFIRMING" TransportStatusERRORONESTIMATING TransportStatus = "ERROR_ON_ESTIMATING" TransportStatusESTIMATED TransportStatus = "ESTIMATED" TransportStatusESTIMATING TransportStatus = "ESTIMATING" TransportStatusVOIDED TransportStatus = "VOIDED" TransportStatusVOIDING TransportStatus = "VOIDING" TransportStatusWORKING TransportStatus = "WORKING" )
Defines values for TransportStatus.
type UnitOfMeasurement ¶
type UnitOfMeasurement string
UnitOfMeasurement Indicates the unit of measurement.
const ( Centimeters UnitOfMeasurement = "centimeters" Inches UnitOfMeasurement = "inches" )
Defines values for UnitOfMeasurement.
type UnitOfWeight ¶
type UnitOfWeight string
UnitOfWeight Indicates the unit of weight.
const ( Kilograms UnitOfWeight = "kilograms" Pounds UnitOfWeight = "pounds" )
Defines values for UnitOfWeight.
type UpdateInboundShipmentJSONRequestBody ¶
type UpdateInboundShipmentJSONRequestBody = InboundShipmentRequest
UpdateInboundShipmentJSONRequestBody defines body for UpdateInboundShipment for application/json ContentType.
type UpdateInboundShipmentResp ¶
type UpdateInboundShipmentResp struct { Body []byte HTTPResponse *http.Response JSON200 *InboundShipmentResponse JSON400 *InboundShipmentResponse JSON401 *InboundShipmentResponse JSON403 *InboundShipmentResponse JSON404 *InboundShipmentResponse JSON429 *InboundShipmentResponse JSON500 *InboundShipmentResponse JSON503 *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 JSON200 *VoidTransportResponse JSON400 *VoidTransportResponse JSON401 *VoidTransportResponse JSON403 *VoidTransportResponse JSON404 *VoidTransportResponse JSON429 *VoidTransportResponse JSON500 *VoidTransportResponse JSON503 *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 { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Common container for transport result Payload *CommonTransportResult `json:"payload,omitempty"` }
VoidTransportResponse The response schema for the voidTransport operation.
type Weight ¶
type Weight struct { // Unit Indicates the unit of weight. Unit UnitOfWeight `json:"Unit"` // Value Number format that supports decimal. Value BigDecimalType `json:"Value"` }
Weight The weight of the package.