@amazon-sp-api-release/amazon-sp-api-sdk-js 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/helper/DefaultRateLimitMap.mjs +14 -1
- package/index.js +3 -0
- package/package.json +1 -1
- package/src/catalogitems_v2022_04_01/model/ErrorList.d.ts +1 -1
- package/src/catalogitems_v2022_04_01/model/ErrorList.js +2 -1
- package/src/catalogitems_v2022_04_01/model/ItemSearchResults.d.ts +11 -5
- package/src/catalogitems_v2022_04_01/model/ItemSearchResults.d.ts.map +1 -1
- package/src/catalogitems_v2022_04_01/model/ItemSearchResults.js +1 -5
- package/src/easyship_v2022_03_23/api/EasyShipApi.d.ts +2 -2
- package/src/easyship_v2022_03_23/api/EasyShipApi.js +2 -2
- package/src/easyship_v2022_03_23/model/HandoverMethod.d.ts +4 -4
- package/src/easyship_v2022_03_23/model/HandoverMethod.js +4 -4
- package/src/easyship_v2022_03_23/model/UnitOfLength.d.ts +2 -2
- package/src/easyship_v2022_03_23/model/UnitOfLength.js +2 -2
- package/src/easyship_v2022_03_23/model/UnitOfWeight.d.ts +4 -4
- package/src/easyship_v2022_03_23/model/UnitOfWeight.js +4 -4
- package/src/externalfulfillmentinventory_v2024_09_11/ApiClient.d.ts +260 -0
- package/src/externalfulfillmentinventory_v2024_09_11/ApiClient.d.ts.map +1 -0
- package/src/externalfulfillmentinventory_v2024_09_11/ApiClient.js +827 -0
- package/src/externalfulfillmentinventory_v2024_09_11/api/BatchInventoryApi.d.ts +42 -0
- package/src/externalfulfillmentinventory_v2024_09_11/api/BatchInventoryApi.d.ts.map +1 -0
- package/src/externalfulfillmentinventory_v2024_09_11/api/BatchInventoryApi.js +110 -0
- package/src/externalfulfillmentinventory_v2024_09_11/index.d.ts +16 -0
- package/src/externalfulfillmentinventory_v2024_09_11/index.d.ts.map +1 -0
- package/src/externalfulfillmentinventory_v2024_09_11/index.js +119 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/ActionableError.d.ts +28 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/ActionableError.d.ts.map +1 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/ActionableError.js +71 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/BatchInventoryRequest.d.ts +23 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/BatchInventoryRequest.d.ts.map +1 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/BatchInventoryRequest.js +64 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/BatchInventoryResponse.d.ts +23 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/BatchInventoryResponse.d.ts.map +1 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/BatchInventoryResponse.js +64 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/Error.d.ts +33 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/Error.d.ts.map +1 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/Error.js +83 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/ErrorList.d.ts +26 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/ErrorList.d.ts.map +1 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/ErrorList.js +66 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/HttpMethod.d.ts +24 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/HttpMethod.d.ts.map +1 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/HttpMethod.js +42 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/HttpStatusLine.d.ts +28 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/HttpStatusLine.d.ts.map +1 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/HttpStatusLine.js +71 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryRequest.d.ts +34 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryRequest.d.ts.map +1 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryRequest.js +83 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryRequestParams.d.ts +34 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryRequestParams.d.ts.map +1 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryRequestParams.js +79 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryResponse.d.ts +29 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryResponse.d.ts.map +1 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryResponse.js +75 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryResponseBody.d.ts +59 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryResponseBody.d.ts.map +1 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/InventoryResponseBody.js +112 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/MarketplaceAttributes.d.ts +39 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/MarketplaceAttributes.d.ts.map +1 -0
- package/src/externalfulfillmentinventory_v2024_09_11/model/MarketplaceAttributes.js +97 -0
- package/src/externalfulfillmentreturns_v2024_09_11/ApiClient.d.ts +260 -0
- package/src/externalfulfillmentreturns_v2024_09_11/ApiClient.d.ts.map +1 -0
- package/src/externalfulfillmentreturns_v2024_09_11/ApiClient.js +827 -0
- package/src/externalfulfillmentreturns_v2024_09_11/api/ReturnRetrievalApi.d.ts +104 -0
- package/src/externalfulfillmentreturns_v2024_09_11/api/ReturnRetrievalApi.d.ts.map +1 -0
- package/src/externalfulfillmentreturns_v2024_09_11/api/ReturnRetrievalApi.js +189 -0
- package/src/externalfulfillmentreturns_v2024_09_11/index.d.ts +16 -0
- package/src/externalfulfillmentreturns_v2024_09_11/index.d.ts.map +1 -0
- package/src/externalfulfillmentreturns_v2024_09_11/index.js +119 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/Error.d.ts +33 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/Error.d.ts.map +1 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/Error.js +83 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/ErrorList.d.ts +26 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/ErrorList.d.ts.map +1 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/ErrorList.js +66 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/InvoiceInformation.d.ts +25 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/InvoiceInformation.d.ts.map +1 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/InvoiceInformation.js +65 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/MarketplaceChannel.d.ts +28 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/MarketplaceChannel.d.ts.map +1 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/MarketplaceChannel.js +71 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/MarketplaceChannelDetails.d.ts +58 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/MarketplaceChannelDetails.d.ts.map +1 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/MarketplaceChannelDetails.js +111 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/OtpDetails.d.ts +27 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/OtpDetails.d.ts.map +1 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/OtpDetails.js +75 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/ReplanningDetails.d.ts +23 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/ReplanningDetails.d.ts.map +1 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/ReplanningDetails.js +64 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/Return.d.ts +138 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/Return.d.ts.map +1 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/Return.js +363 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnMetadata.d.ts +43 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnMetadata.d.ts.map +1 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnMetadata.js +89 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnShippingInfo.d.ts +39 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnShippingInfo.d.ts.map +1 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnShippingInfo.js +86 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnsResponse.d.ts +29 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnsResponse.d.ts.map +1 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/ReturnsResponse.js +72 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/TrackingInfo.d.ts +27 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/TrackingInfo.d.ts.map +1 -0
- package/src/externalfulfillmentreturns_v2024_09_11/model/TrackingInfo.js +75 -0
- package/src/externalfulfillmentshipments_v2024_09_11/ApiClient.d.ts +260 -0
- package/src/externalfulfillmentshipments_v2024_09_11/ApiClient.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/ApiClient.js +827 -0
- package/src/externalfulfillmentshipments_v2024_09_11/api/ShipmentProcessingApi.d.ts +178 -0
- package/src/externalfulfillmentshipments_v2024_09_11/api/ShipmentProcessingApi.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/api/ShipmentProcessingApi.js +521 -0
- package/src/externalfulfillmentshipments_v2024_09_11/api/ShipmentRetrievalApi.d.ts +86 -0
- package/src/externalfulfillmentshipments_v2024_09_11/api/ShipmentRetrievalApi.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/api/ShipmentRetrievalApi.js +182 -0
- package/src/externalfulfillmentshipments_v2024_09_11/index.d.ts +62 -0
- package/src/externalfulfillmentshipments_v2024_09_11/index.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/index.js +441 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Address.d.ts +103 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Address.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Address.js +169 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Amount.d.ts +27 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Amount.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Amount.js +75 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Cancellation.d.ts +46 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Cancellation.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Cancellation.js +119 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Charge.d.ts +52 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Charge.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Charge.js +140 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ChargeBreakup.d.ts +30 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ChargeBreakup.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ChargeBreakup.js +83 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ComplianceAttributes.d.ts +32 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ComplianceAttributes.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ComplianceAttributes.js +92 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/CourierSupportedAttributes.d.ts +27 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/CourierSupportedAttributes.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/CourierSupportedAttributes.js +75 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/CustomAttribute.d.ts +34 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/CustomAttribute.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/CustomAttribute.js +79 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/CustomAttributeType.d.ts +39 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/CustomAttributeType.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/CustomAttributeType.js +60 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Dimension.d.ts +37 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Dimension.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Dimension.js +95 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Document.d.ts +40 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Document.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Document.js +103 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/DocumentV2.d.ts +25 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/DocumentV2.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/DocumentV2.js +65 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Error.d.ts +33 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Error.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Error.js +83 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ErrorList.d.ts +26 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ErrorList.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ErrorList.js +66 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/GiftAttributes.d.ts +41 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/GiftAttributes.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/GiftAttributes.js +91 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceInfo.d.ts +27 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceInfo.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceInfo.js +75 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceRequirement.d.ts +47 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceRequirement.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceRequirement.js +117 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceResponse.d.ts +26 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceResponse.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/InvoiceResponse.js +65 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/LineItem.d.ts +31 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/LineItem.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/LineItem.js +73 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/LineItemWithReason.d.ts +42 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/LineItemWithReason.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/LineItemWithReason.js +93 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/MarketplaceAttributes.d.ts +49 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/MarketplaceAttributes.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/MarketplaceAttributes.js +111 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/OriginalLineItem.d.ts +30 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/OriginalLineItem.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/OriginalLineItem.js +86 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Package.d.ts +75 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Package.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Package.js +190 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageDeliveryStatus.d.ts +34 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageDeliveryStatus.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageDeliveryStatus.js +79 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageDimensions.d.ts +30 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageDimensions.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageDimensions.js +83 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageLineItem.d.ts +51 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageLineItem.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageLineItem.js +107 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageShipLabel.d.ts +46 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageShipLabel.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageShipLabel.js +95 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageStatus.d.ts +44 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageStatus.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageStatus.js +66 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageSubStatus.d.ts +34 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageSubStatus.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackageSubStatus.js +54 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Packages.d.ts +26 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Packages.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Packages.js +66 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackingSlipRequirement.d.ts +46 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackingSlipRequirement.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PackingSlipRequirement.js +111 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Pagination.d.ts +22 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Pagination.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Pagination.js +63 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PartyIdentificationInfo.d.ts +51 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PartyIdentificationInfo.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PartyIdentificationInfo.js +123 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PieceType.d.ts +24 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PieceType.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PieceType.js +42 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PresenceStatus.d.ts +24 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PresenceStatus.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/PresenceStatus.js +42 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Priority.d.ts +24 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Priority.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Priority.js +42 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/RecommendedPackage.d.ts +32 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/RecommendedPackage.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/RecommendedPackage.js +86 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/RecommendedPackageLineItem.d.ts +25 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/RecommendedPackageLineItem.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/RecommendedPackageLineItem.js +65 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ReplacedShipmentInfo.d.ts +37 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ReplacedShipmentInfo.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ReplacedShipmentInfo.js +94 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/RequirementLevel.d.ts +24 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/RequirementLevel.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/RequirementLevel.js +42 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelMetadata.d.ts +44 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelMetadata.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelMetadata.js +98 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelsInput.d.ts +31 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelsInput.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelsInput.js +73 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelsResponse.d.ts +26 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelsResponse.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipLabelsResponse.js +66 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Shipment.d.ts +122 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Shipment.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Shipment.js +369 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentAcknowledgementRequest.d.ts +32 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentAcknowledgementRequest.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentAcknowledgementRequest.js +74 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentInfo.d.ts +75 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentInfo.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentInfo.js +173 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentLineItem.d.ts +103 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentLineItem.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentLineItem.js +196 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentRequirements.d.ts +29 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentRequirements.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentRequirements.js +75 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentsResponse.d.ts +29 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentsResponse.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShipmentsResponse.js +72 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingInfo.d.ts +60 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingInfo.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingInfo.js +118 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingOptions.d.ts +56 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingOptions.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingOptions.js +130 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingOptionsResponse.d.ts +28 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingOptionsResponse.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/ShippingOptionsResponse.js +71 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Status.d.ts +24 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Status.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Status.js +42 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Tax.d.ts +55 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Tax.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Tax.js +143 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/TaxRegistrationInfo.d.ts +50 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/TaxRegistrationInfo.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/TaxRegistrationInfo.js +107 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/TimeWindow.d.ts +43 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/TimeWindow.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/TimeWindow.js +103 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Weight.d.ts +37 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Weight.d.ts.map +1 -0
- package/src/externalfulfillmentshipments_v2024_09_11/model/Weight.js +95 -0
- package/src/fulfillmentinbound_v2024_03_20/api/FbaInboundApi.d.ts +0 -18
- package/src/fulfillmentinbound_v2024_03_20/api/FbaInboundApi.d.ts.map +1 -1
- package/src/fulfillmentinbound_v2024_03_20/api/FbaInboundApi.js +0 -64
- package/src/fulfillmentinbound_v2024_03_20/index.d.ts +1 -5
- package/src/fulfillmentinbound_v2024_03_20/index.d.ts.map +1 -1
- package/src/fulfillmentinbound_v2024_03_20/index.js +0 -28
- package/src/fulfillmentoutbound_v2020_07_01/model/Address.d.ts +7 -3
- package/src/fulfillmentoutbound_v2020_07_01/model/Address.d.ts.map +1 -1
- package/src/fulfillmentoutbound_v2020_07_01/model/Address.js +1 -3
- package/src/fulfillmentoutbound_v2020_07_01/model/DeliveryDocument.d.ts +1 -1
- package/src/fulfillmentoutbound_v2020_07_01/model/DeliveryDocument.js +2 -2
- package/src/fulfillmentoutbound_v2020_07_01/model/FeatureSettings.d.ts +1 -1
- package/src/fulfillmentoutbound_v2020_07_01/model/FeatureSettings.js +2 -2
- package/src/merchantfulfillment_v0/index.d.ts +4 -1
- package/src/merchantfulfillment_v0/index.d.ts.map +1 -1
- package/src/merchantfulfillment_v0/index.js +21 -0
- package/src/merchantfulfillment_v0/model/RateItem.d.ts +44 -0
- package/src/merchantfulfillment_v0/model/RateItem.d.ts.map +1 -0
- package/src/merchantfulfillment_v0/model/RateItem.js +89 -0
- package/src/merchantfulfillment_v0/model/RateItemID.d.ts +19 -0
- package/src/merchantfulfillment_v0/model/RateItemID.d.ts.map +1 -0
- package/src/merchantfulfillment_v0/model/RateItemID.js +36 -0
- package/src/merchantfulfillment_v0/model/RateItemType.d.ts +19 -0
- package/src/merchantfulfillment_v0/model/RateItemType.d.ts.map +1 -0
- package/src/merchantfulfillment_v0/model/RateItemType.js +36 -0
- package/src/merchantfulfillment_v0/model/ShippingService.d.ts +10 -1
- package/src/merchantfulfillment_v0/model/ShippingService.d.ts.map +1 -1
- package/src/merchantfulfillment_v0/model/ShippingService.js +19 -1
- package/src/orders_v0/model/Address.d.ts +3 -6
- package/src/orders_v0/model/Address.d.ts.map +1 -1
- package/src/orders_v0/model/Address.js +1 -3
- package/src/vendordforders_v2021_12_28/model/OrderDetails.d.ts +6 -0
- package/src/vendordforders_v2021_12_28/model/OrderDetails.d.ts.map +1 -1
- package/src/vendordforders_v2021_12_28/model/OrderDetails.js +8 -0
- package/src/fulfillmentinbound_v2024_03_20/model/BoxIdentifierInput.d.ts +0 -34
- package/src/fulfillmentinbound_v2024_03_20/model/BoxIdentifierInput.d.ts.map +0 -1
- package/src/fulfillmentinbound_v2024_03_20/model/BoxIdentifierInput.js +0 -83
- package/src/fulfillmentinbound_v2024_03_20/model/BoxIdentifierType.d.ts +0 -24
- package/src/fulfillmentinbound_v2024_03_20/model/BoxIdentifierType.d.ts.map +0 -1
- package/src/fulfillmentinbound_v2024_03_20/model/BoxIdentifierType.js +0 -42
- package/src/fulfillmentinbound_v2024_03_20/model/UpdateBoxIdentifiersRequest.d.ts +0 -26
- package/src/fulfillmentinbound_v2024_03_20/model/UpdateBoxIdentifiersRequest.d.ts.map +0 -1
- package/src/fulfillmentinbound_v2024_03_20/model/UpdateBoxIdentifiersRequest.js +0 -66
- package/src/fulfillmentinbound_v2024_03_20/model/UpdateBoxIdentifiersResponse.d.ts +0 -25
- package/src/fulfillmentinbound_v2024_03_20/model/UpdateBoxIdentifiersResponse.d.ts.map +0 -1
- package/src/fulfillmentinbound_v2024_03_20/model/UpdateBoxIdentifiersResponse.js +0 -65
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Amazon External Fulfillment Shipments Processing
|
|
3
|
+
* You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon's external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
6
|
+
* Contact: marketplaceapitest@amazon.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { ApiClient } from '../ApiClient.js'
|
|
15
|
+
import { ErrorList } from '../model/ErrorList.js'
|
|
16
|
+
import { InvoiceResponse } from '../model/InvoiceResponse.js'
|
|
17
|
+
import { Package } from '../model/Package.js'
|
|
18
|
+
import { PackageDeliveryStatus } from '../model/PackageDeliveryStatus.js'
|
|
19
|
+
import { Packages } from '../model/Packages.js'
|
|
20
|
+
import { ShipLabelsInput } from '../model/ShipLabelsInput.js'
|
|
21
|
+
import { ShipLabelsResponse } from '../model/ShipLabelsResponse.js'
|
|
22
|
+
import { ShipmentAcknowledgementRequest } from '../model/ShipmentAcknowledgementRequest.js'
|
|
23
|
+
import { ShippingOptionsResponse } from '../model/ShippingOptionsResponse.js'
|
|
24
|
+
import { SuperagentRateLimiter } from '../../../helper/SuperagentRateLimiter.mjs'
|
|
25
|
+
import { DefaultRateLimitFetcher } from '../../../helper/DefaultRateLimitFetcher.mjs'
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* ShipmentProcessing service.
|
|
29
|
+
* @module externalfulfillmentshipments_v2024_09_11/api/ShipmentProcessingApi
|
|
30
|
+
* @version 2024-09-11
|
|
31
|
+
*/
|
|
32
|
+
export class ShipmentProcessingApi {
|
|
33
|
+
// Private member stores the default rate limiters
|
|
34
|
+
#defaultRateLimiterMap
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new ShipmentProcessingApi.
|
|
38
|
+
* @alias module:externalfulfillmentshipments_v2024_09_11/api/ShipmentProcessingApi
|
|
39
|
+
* @class
|
|
40
|
+
* @param {ApiClient} [apiClient] Optional API client implementation to use,
|
|
41
|
+
* default to {@link ApiClient#instance} if unspecified.
|
|
42
|
+
*/
|
|
43
|
+
constructor (apiClient) {
|
|
44
|
+
this.apiClient = apiClient || ApiClient.instance
|
|
45
|
+
this.initializeDefaultRateLimiterMap()
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Initialize rate limiters for API operations
|
|
50
|
+
*/
|
|
51
|
+
initializeDefaultRateLimiterMap () {
|
|
52
|
+
this.#defaultRateLimiterMap = new Map()
|
|
53
|
+
const defaultRateLimitFetcher = new DefaultRateLimitFetcher()
|
|
54
|
+
const operations = [
|
|
55
|
+
'ShipmentProcessingApi-createPackages',
|
|
56
|
+
'ShipmentProcessingApi-generateInvoice',
|
|
57
|
+
'ShipmentProcessingApi-generateShipLabels',
|
|
58
|
+
'ShipmentProcessingApi-processShipment',
|
|
59
|
+
'ShipmentProcessingApi-retrieveInvoice',
|
|
60
|
+
'ShipmentProcessingApi-retrieveShippingOptions',
|
|
61
|
+
'ShipmentProcessingApi-updatePackage',
|
|
62
|
+
'ShipmentProcessingApi-updatePackageStatus'
|
|
63
|
+
]
|
|
64
|
+
|
|
65
|
+
for (const operation of operations) {
|
|
66
|
+
const config = defaultRateLimitFetcher.getLimit(operation)
|
|
67
|
+
this.#defaultRateLimiterMap.set(operation, new SuperagentRateLimiter(config))
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Get rate limiter for a specific operation
|
|
73
|
+
* @param {String} operation name
|
|
74
|
+
*/
|
|
75
|
+
getRateLimiter (operation) {
|
|
76
|
+
return this.#defaultRateLimiterMap.get(operation)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Provide details about the packages in the specified shipment.
|
|
81
|
+
* @param {String} shipmentId The ID of the shipment.
|
|
82
|
+
* @param {Packages} body A list of packages in the shipment.
|
|
83
|
+
* @return {Promise<void>}
|
|
84
|
+
*/
|
|
85
|
+
createPackagesWithHttpInfo (shipmentId, body) {
|
|
86
|
+
const postBody = body
|
|
87
|
+
|
|
88
|
+
// verify the required parameter 'shipmentId' is set
|
|
89
|
+
if (shipmentId === undefined || shipmentId === null) {
|
|
90
|
+
throw new Error("Missing the required parameter 'shipmentId' when calling createPackages")
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// verify the required parameter 'body' is set
|
|
94
|
+
if (body === undefined || body === null) {
|
|
95
|
+
throw new Error("Missing the required parameter 'body' when calling createPackages")
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const pathParams = {
|
|
99
|
+
shipmentId
|
|
100
|
+
}
|
|
101
|
+
const queryParams = {
|
|
102
|
+
}
|
|
103
|
+
const headerParams = {
|
|
104
|
+
}
|
|
105
|
+
const formParams = {
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const contentTypes = ['application/json']
|
|
109
|
+
const accepts = ['application/json']
|
|
110
|
+
const returnType = null
|
|
111
|
+
|
|
112
|
+
return this.apiClient.callApi('ShipmentProcessingApi-createPackages',
|
|
113
|
+
'/externalFulfillment/2024-09-11/shipments/{shipmentId}/packages', 'POST',
|
|
114
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
115
|
+
contentTypes, accepts, returnType, this.getRateLimiter('ShipmentProcessingApi-createPackages')
|
|
116
|
+
)
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Provide details about the packages in the specified shipment.
|
|
121
|
+
* @param {String} shipmentId The ID of the shipment.
|
|
122
|
+
* @param {Packages} body A list of packages in the shipment.
|
|
123
|
+
* @return {Promise<void>}
|
|
124
|
+
*/
|
|
125
|
+
createPackages (shipmentId, body) {
|
|
126
|
+
return this.createPackagesWithHttpInfo(shipmentId, body)
|
|
127
|
+
.then(function (response_and_data) {
|
|
128
|
+
return response_and_data.data
|
|
129
|
+
})
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Get invoices for the shipment you specify.
|
|
134
|
+
* @param {String} shipmentId The ID of the shipment whose invoice you want.
|
|
135
|
+
* @return {Promise<InvoiceResponse>}
|
|
136
|
+
*/
|
|
137
|
+
generateInvoiceWithHttpInfo (shipmentId) {
|
|
138
|
+
const postBody = null
|
|
139
|
+
|
|
140
|
+
// verify the required parameter 'shipmentId' is set
|
|
141
|
+
if (shipmentId === undefined || shipmentId === null) {
|
|
142
|
+
throw new Error("Missing the required parameter 'shipmentId' when calling generateInvoice")
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const pathParams = {
|
|
146
|
+
shipmentId
|
|
147
|
+
}
|
|
148
|
+
const queryParams = {
|
|
149
|
+
}
|
|
150
|
+
const headerParams = {
|
|
151
|
+
}
|
|
152
|
+
const formParams = {
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const contentTypes = []
|
|
156
|
+
const accepts = ['application/json']
|
|
157
|
+
const returnType = InvoiceResponse
|
|
158
|
+
|
|
159
|
+
return this.apiClient.callApi('ShipmentProcessingApi-generateInvoice',
|
|
160
|
+
'/externalFulfillment/2024-09-11/shipments/{shipmentId}/invoice', 'POST',
|
|
161
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
162
|
+
contentTypes, accepts, returnType, this.getRateLimiter('ShipmentProcessingApi-generateInvoice')
|
|
163
|
+
)
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Get invoices for the shipment you specify.
|
|
168
|
+
* @param {String} shipmentId The ID of the shipment whose invoice you want.
|
|
169
|
+
* @return {Promise<InvoiceResponse>}
|
|
170
|
+
*/
|
|
171
|
+
generateInvoice (shipmentId) {
|
|
172
|
+
return this.generateInvoiceWithHttpInfo(shipmentId)
|
|
173
|
+
.then(function (response_and_data) {
|
|
174
|
+
return response_and_data.data
|
|
175
|
+
})
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Generate and retrieve all shipping labels for one or more packages in the shipment you specify.
|
|
180
|
+
* @param {String} shipmentId The ID of the shipment whose shipping labels you want to generate and retrieve.
|
|
181
|
+
* @param {String} operation Specify whether you want to generate or regenerate a label.
|
|
182
|
+
* @param {Object} [opts] Optional parameters
|
|
183
|
+
* @param {String} [opts.shippingOptionId] The ID of the shipping option whose shipping labels you want.
|
|
184
|
+
* @param {ShipLabelsInput} [opts.body] Shipping details for when shipping is not done by the marketplace channel.
|
|
185
|
+
* @return {Promise<ShipLabelsResponse>}
|
|
186
|
+
*/
|
|
187
|
+
generateShipLabelsWithHttpInfo (shipmentId, operation, opts) {
|
|
188
|
+
opts = opts || {}
|
|
189
|
+
const postBody = opts.body
|
|
190
|
+
|
|
191
|
+
// verify the required parameter 'shipmentId' is set
|
|
192
|
+
if (shipmentId === undefined || shipmentId === null) {
|
|
193
|
+
throw new Error("Missing the required parameter 'shipmentId' when calling generateShipLabels")
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// verify the required parameter 'operation' is set
|
|
197
|
+
if (operation === undefined || operation === null) {
|
|
198
|
+
throw new Error("Missing the required parameter 'operation' when calling generateShipLabels")
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
const pathParams = {
|
|
202
|
+
shipmentId
|
|
203
|
+
}
|
|
204
|
+
const queryParams = {
|
|
205
|
+
shippingOptionId: opts.shippingOptionId,
|
|
206
|
+
operation
|
|
207
|
+
}
|
|
208
|
+
const headerParams = {
|
|
209
|
+
}
|
|
210
|
+
const formParams = {
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
const contentTypes = ['application/json']
|
|
214
|
+
const accepts = ['application/json']
|
|
215
|
+
const returnType = ShipLabelsResponse
|
|
216
|
+
|
|
217
|
+
return this.apiClient.callApi('ShipmentProcessingApi-generateShipLabels',
|
|
218
|
+
'/externalFulfillment/2024-09-11/shipments/{shipmentId}/shipLabels', 'PUT',
|
|
219
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
220
|
+
contentTypes, accepts, returnType, this.getRateLimiter('ShipmentProcessingApi-generateShipLabels')
|
|
221
|
+
)
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Generate and retrieve all shipping labels for one or more packages in the shipment you specify.
|
|
226
|
+
* @param {String} shipmentId The ID of the shipment whose shipping labels you want to generate and retrieve.
|
|
227
|
+
* @param {String} operation Specify whether you want to generate or regenerate a label.
|
|
228
|
+
* @param {Object} [opts] Optional parameters
|
|
229
|
+
* @param {String} [opts.shippingOptionId] The ID of the shipping option whose shipping labels you want.
|
|
230
|
+
* @param {ShipLabelsInput} [opts.body] Shipping details for when shipping is not done by the marketplace channel.
|
|
231
|
+
* @return {Promise<ShipLabelsResponse>}
|
|
232
|
+
*/
|
|
233
|
+
generateShipLabels (shipmentId, operation, opts) {
|
|
234
|
+
return this.generateShipLabelsWithHttpInfo(shipmentId, operation, opts)
|
|
235
|
+
.then(function (response_and_data) {
|
|
236
|
+
return response_and_data.data
|
|
237
|
+
})
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Confirm or reject the specified shipment.
|
|
242
|
+
* @param {String} shipmentId The ID of the shipment you want to confirm or reject.
|
|
243
|
+
* @param {String} operation The status of the shipment.
|
|
244
|
+
* @param {Object} [opts] Optional parameters
|
|
245
|
+
* @param {ShipmentAcknowledgementRequest} [opts.body] Information about the shipment and its line items.
|
|
246
|
+
* @return {Promise<void>}
|
|
247
|
+
*/
|
|
248
|
+
processShipmentWithHttpInfo (shipmentId, operation, opts) {
|
|
249
|
+
opts = opts || {}
|
|
250
|
+
const postBody = opts.body
|
|
251
|
+
|
|
252
|
+
// verify the required parameter 'shipmentId' is set
|
|
253
|
+
if (shipmentId === undefined || shipmentId === null) {
|
|
254
|
+
throw new Error("Missing the required parameter 'shipmentId' when calling processShipment")
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// verify the required parameter 'operation' is set
|
|
258
|
+
if (operation === undefined || operation === null) {
|
|
259
|
+
throw new Error("Missing the required parameter 'operation' when calling processShipment")
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
const pathParams = {
|
|
263
|
+
shipmentId
|
|
264
|
+
}
|
|
265
|
+
const queryParams = {
|
|
266
|
+
operation
|
|
267
|
+
}
|
|
268
|
+
const headerParams = {
|
|
269
|
+
}
|
|
270
|
+
const formParams = {
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
const contentTypes = ['application/json']
|
|
274
|
+
const accepts = ['application/json']
|
|
275
|
+
const returnType = null
|
|
276
|
+
|
|
277
|
+
return this.apiClient.callApi('ShipmentProcessingApi-processShipment',
|
|
278
|
+
'/externalFulfillment/2024-09-11/shipments/{shipmentId}', 'POST',
|
|
279
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
280
|
+
contentTypes, accepts, returnType, this.getRateLimiter('ShipmentProcessingApi-processShipment')
|
|
281
|
+
)
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Confirm or reject the specified shipment.
|
|
286
|
+
* @param {String} shipmentId The ID of the shipment you want to confirm or reject.
|
|
287
|
+
* @param {String} operation The status of the shipment.
|
|
288
|
+
* @param {Object} [opts] Optional parameters
|
|
289
|
+
* @param {ShipmentAcknowledgementRequest} [opts.body] Information about the shipment and its line items.
|
|
290
|
+
* @return {Promise<void>}
|
|
291
|
+
*/
|
|
292
|
+
processShipment (shipmentId, operation, opts) {
|
|
293
|
+
return this.processShipmentWithHttpInfo(shipmentId, operation, opts)
|
|
294
|
+
.then(function (response_and_data) {
|
|
295
|
+
return response_and_data.data
|
|
296
|
+
})
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Retrieve invoices for the shipment you specify.
|
|
301
|
+
* @param {String} shipmentId The ID of the shipment whose invoice you want to retrieve.
|
|
302
|
+
* @return {Promise<InvoiceResponse>}
|
|
303
|
+
*/
|
|
304
|
+
retrieveInvoiceWithHttpInfo (shipmentId) {
|
|
305
|
+
const postBody = null
|
|
306
|
+
|
|
307
|
+
// verify the required parameter 'shipmentId' is set
|
|
308
|
+
if (shipmentId === undefined || shipmentId === null) {
|
|
309
|
+
throw new Error("Missing the required parameter 'shipmentId' when calling retrieveInvoice")
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
const pathParams = {
|
|
313
|
+
shipmentId
|
|
314
|
+
}
|
|
315
|
+
const queryParams = {
|
|
316
|
+
}
|
|
317
|
+
const headerParams = {
|
|
318
|
+
}
|
|
319
|
+
const formParams = {
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
const contentTypes = []
|
|
323
|
+
const accepts = ['application/json']
|
|
324
|
+
const returnType = InvoiceResponse
|
|
325
|
+
|
|
326
|
+
return this.apiClient.callApi('ShipmentProcessingApi-retrieveInvoice',
|
|
327
|
+
'/externalFulfillment/2024-09-11/shipments/{shipmentId}/invoice', 'GET',
|
|
328
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
329
|
+
contentTypes, accepts, returnType, this.getRateLimiter('ShipmentProcessingApi-retrieveInvoice')
|
|
330
|
+
)
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Retrieve invoices for the shipment you specify.
|
|
335
|
+
* @param {String} shipmentId The ID of the shipment whose invoice you want to retrieve.
|
|
336
|
+
* @return {Promise<InvoiceResponse>}
|
|
337
|
+
*/
|
|
338
|
+
retrieveInvoice (shipmentId) {
|
|
339
|
+
return this.retrieveInvoiceWithHttpInfo(shipmentId)
|
|
340
|
+
.then(function (response_and_data) {
|
|
341
|
+
return response_and_data.data
|
|
342
|
+
})
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Get a list of shipping options for a package in a shipment given the shipment's marketplace and channel. If the marketplace and channel have a pre-determined shipping option, then this operation returns an empty response.
|
|
347
|
+
* @param {String} shipmentId The ID of the shipment to which the package belongs.
|
|
348
|
+
* @param {String} packageId The ID of the package for which you want to retrieve shipping options.
|
|
349
|
+
* @return {Promise<ShippingOptionsResponse>}
|
|
350
|
+
*/
|
|
351
|
+
retrieveShippingOptionsWithHttpInfo (shipmentId, packageId) {
|
|
352
|
+
const postBody = null
|
|
353
|
+
|
|
354
|
+
// verify the required parameter 'shipmentId' is set
|
|
355
|
+
if (shipmentId === undefined || shipmentId === null) {
|
|
356
|
+
throw new Error("Missing the required parameter 'shipmentId' when calling retrieveShippingOptions")
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
// verify the required parameter 'packageId' is set
|
|
360
|
+
if (packageId === undefined || packageId === null) {
|
|
361
|
+
throw new Error("Missing the required parameter 'packageId' when calling retrieveShippingOptions")
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
const pathParams = {
|
|
365
|
+
shipmentId
|
|
366
|
+
}
|
|
367
|
+
const queryParams = {
|
|
368
|
+
packageId
|
|
369
|
+
}
|
|
370
|
+
const headerParams = {
|
|
371
|
+
}
|
|
372
|
+
const formParams = {
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
const contentTypes = []
|
|
376
|
+
const accepts = ['application/json']
|
|
377
|
+
const returnType = ShippingOptionsResponse
|
|
378
|
+
|
|
379
|
+
return this.apiClient.callApi('ShipmentProcessingApi-retrieveShippingOptions',
|
|
380
|
+
'/externalFulfillment/2024-09-11/shipments/{shipmentId}/shippingOptions', 'GET',
|
|
381
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
382
|
+
contentTypes, accepts, returnType, this.getRateLimiter('ShipmentProcessingApi-retrieveShippingOptions')
|
|
383
|
+
)
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Get a list of shipping options for a package in a shipment given the shipment's marketplace and channel. If the marketplace and channel have a pre-determined shipping option, then this operation returns an empty response.
|
|
388
|
+
* @param {String} shipmentId The ID of the shipment to which the package belongs.
|
|
389
|
+
* @param {String} packageId The ID of the package for which you want to retrieve shipping options.
|
|
390
|
+
* @return {Promise<ShippingOptionsResponse>}
|
|
391
|
+
*/
|
|
392
|
+
retrieveShippingOptions (shipmentId, packageId) {
|
|
393
|
+
return this.retrieveShippingOptionsWithHttpInfo(shipmentId, packageId)
|
|
394
|
+
.then(function (response_and_data) {
|
|
395
|
+
return response_and_data.data
|
|
396
|
+
})
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Updates the details about the packages that will be used to fulfill the specified shipment.
|
|
401
|
+
* @param {String} shipmentId The ID of the shipment to which the package belongs.
|
|
402
|
+
* @param {String} packageId The ID of the package whose information you want to update.
|
|
403
|
+
* @param {Package} body The body of the request.
|
|
404
|
+
* @return {Promise<void>}
|
|
405
|
+
*/
|
|
406
|
+
updatePackageWithHttpInfo (shipmentId, packageId, body) {
|
|
407
|
+
const postBody = body
|
|
408
|
+
|
|
409
|
+
// verify the required parameter 'shipmentId' is set
|
|
410
|
+
if (shipmentId === undefined || shipmentId === null) {
|
|
411
|
+
throw new Error("Missing the required parameter 'shipmentId' when calling updatePackage")
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
// verify the required parameter 'packageId' is set
|
|
415
|
+
if (packageId === undefined || packageId === null) {
|
|
416
|
+
throw new Error("Missing the required parameter 'packageId' when calling updatePackage")
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
// verify the required parameter 'body' is set
|
|
420
|
+
if (body === undefined || body === null) {
|
|
421
|
+
throw new Error("Missing the required parameter 'body' when calling updatePackage")
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
const pathParams = {
|
|
425
|
+
shipmentId,
|
|
426
|
+
packageId
|
|
427
|
+
}
|
|
428
|
+
const queryParams = {
|
|
429
|
+
}
|
|
430
|
+
const headerParams = {
|
|
431
|
+
}
|
|
432
|
+
const formParams = {
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
const contentTypes = ['application/json']
|
|
436
|
+
const accepts = ['application/json']
|
|
437
|
+
const returnType = null
|
|
438
|
+
|
|
439
|
+
return this.apiClient.callApi('ShipmentProcessingApi-updatePackage',
|
|
440
|
+
'/externalFulfillment/2024-09-11/shipments/{shipmentId}/packages/{packageId}', 'PUT',
|
|
441
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
442
|
+
contentTypes, accepts, returnType, this.getRateLimiter('ShipmentProcessingApi-updatePackage')
|
|
443
|
+
)
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Updates the details about the packages that will be used to fulfill the specified shipment.
|
|
448
|
+
* @param {String} shipmentId The ID of the shipment to which the package belongs.
|
|
449
|
+
* @param {String} packageId The ID of the package whose information you want to update.
|
|
450
|
+
* @param {Package} body The body of the request.
|
|
451
|
+
* @return {Promise<void>}
|
|
452
|
+
*/
|
|
453
|
+
updatePackage (shipmentId, packageId, body) {
|
|
454
|
+
return this.updatePackageWithHttpInfo(shipmentId, packageId, body)
|
|
455
|
+
.then(function (response_and_data) {
|
|
456
|
+
return response_and_data.data
|
|
457
|
+
})
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Updates the status of the packages.
|
|
462
|
+
* @param {String} shipmentId The ID of the shipment to which the package belongs.
|
|
463
|
+
* @param {String} packageId The ID of the package whose status you want to update.
|
|
464
|
+
* @param {Object} [opts] Optional parameters
|
|
465
|
+
* @param {String} [opts.status] **DEPRECATED**. Do not use. Package status is defined in the body parameter.
|
|
466
|
+
* @param {PackageDeliveryStatus} [opts.body] The body of the request.
|
|
467
|
+
* @return {Promise<void>}
|
|
468
|
+
*/
|
|
469
|
+
updatePackageStatusWithHttpInfo (shipmentId, packageId, opts) {
|
|
470
|
+
opts = opts || {}
|
|
471
|
+
const postBody = opts.body
|
|
472
|
+
|
|
473
|
+
// verify the required parameter 'shipmentId' is set
|
|
474
|
+
if (shipmentId === undefined || shipmentId === null) {
|
|
475
|
+
throw new Error("Missing the required parameter 'shipmentId' when calling updatePackageStatus")
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
// verify the required parameter 'packageId' is set
|
|
479
|
+
if (packageId === undefined || packageId === null) {
|
|
480
|
+
throw new Error("Missing the required parameter 'packageId' when calling updatePackageStatus")
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
const pathParams = {
|
|
484
|
+
shipmentId,
|
|
485
|
+
packageId
|
|
486
|
+
}
|
|
487
|
+
const queryParams = {
|
|
488
|
+
status: opts.status
|
|
489
|
+
}
|
|
490
|
+
const headerParams = {
|
|
491
|
+
}
|
|
492
|
+
const formParams = {
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
const contentTypes = ['application/json']
|
|
496
|
+
const accepts = ['application/json']
|
|
497
|
+
const returnType = null
|
|
498
|
+
|
|
499
|
+
return this.apiClient.callApi('ShipmentProcessingApi-updatePackageStatus',
|
|
500
|
+
'/externalFulfillment/2024-09-11/shipments/{shipmentId}/packages/{packageId}', 'PATCH',
|
|
501
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
502
|
+
contentTypes, accepts, returnType, this.getRateLimiter('ShipmentProcessingApi-updatePackageStatus')
|
|
503
|
+
)
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Updates the status of the packages.
|
|
508
|
+
* @param {String} shipmentId The ID of the shipment to which the package belongs.
|
|
509
|
+
* @param {String} packageId The ID of the package whose status you want to update.
|
|
510
|
+
* @param {Object} [opts] Optional parameters
|
|
511
|
+
* @param {String} [opts.status] **DEPRECATED**. Do not use. Package status is defined in the body parameter.
|
|
512
|
+
* @param {PackageDeliveryStatus} [opts.body] The body of the request.
|
|
513
|
+
* @return {Promise<void>}
|
|
514
|
+
*/
|
|
515
|
+
updatePackageStatus (shipmentId, packageId, opts) {
|
|
516
|
+
return this.updatePackageStatusWithHttpInfo(shipmentId, packageId, opts)
|
|
517
|
+
.then(function (response_and_data) {
|
|
518
|
+
return response_and_data.data
|
|
519
|
+
})
|
|
520
|
+
}
|
|
521
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ShipmentRetrieval service.
|
|
3
|
+
* @module externalfulfillmentshipments_v2024_09_11/api/ShipmentRetrievalApi
|
|
4
|
+
* @version 2024-09-11
|
|
5
|
+
*/
|
|
6
|
+
export class ShipmentRetrievalApi {
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new ShipmentRetrievalApi.
|
|
9
|
+
* @alias module:externalfulfillmentshipments_v2024_09_11/api/ShipmentRetrievalApi
|
|
10
|
+
* @class
|
|
11
|
+
* @param {ApiClient} [apiClient] Optional API client implementation to use,
|
|
12
|
+
* default to {@link ApiClient#instance} if unspecified.
|
|
13
|
+
*/
|
|
14
|
+
constructor(apiClient?: ApiClient);
|
|
15
|
+
apiClient: any;
|
|
16
|
+
/**
|
|
17
|
+
* Initialize rate limiters for API operations
|
|
18
|
+
*/
|
|
19
|
+
initializeDefaultRateLimiterMap(): void;
|
|
20
|
+
/**
|
|
21
|
+
* Get rate limiter for a specific operation
|
|
22
|
+
* @param {String} operation name
|
|
23
|
+
*/
|
|
24
|
+
getRateLimiter(operation: string): any;
|
|
25
|
+
/**
|
|
26
|
+
* Get a single shipment with the ID you specify.
|
|
27
|
+
* @param {String} shipmentId The ID of the shipment you want to retrieve.
|
|
28
|
+
* @return {Promise<Shipment>}
|
|
29
|
+
*/
|
|
30
|
+
getShipmentWithHttpInfo(shipmentId: string): Promise<Shipment>;
|
|
31
|
+
/**
|
|
32
|
+
* Get a single shipment with the ID you specify.
|
|
33
|
+
* @param {String} shipmentId The ID of the shipment you want to retrieve.
|
|
34
|
+
* @return {Promise<Shipment>}
|
|
35
|
+
*/
|
|
36
|
+
getShipment(shipmentId: string): Promise<Shipment>;
|
|
37
|
+
/**
|
|
38
|
+
* Get a list of shipments created for the seller in the status you specify. Shipments can be further filtered based on the fulfillment node or the time of the shipments' last update.
|
|
39
|
+
* @param {String} status The status of shipment you want to include in the response. To retrieve all new shipments, set this value to `ACCEPTED`.
|
|
40
|
+
* @param {Object} [opts] Optional parameters
|
|
41
|
+
* @param {String} [opts.locationId] The Amazon channel location identifier for the shipments you want to retrieve.
|
|
42
|
+
* @param {String} [opts.marketplaceId] The marketplace ID associated with the location. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
43
|
+
* @param {String} [opts.channelName] The channel name associated with the location.
|
|
44
|
+
* @param {String} [opts.lastUpdatedAfter] The response includes shipments whose latest update is after the specified time. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
45
|
+
* @param {String} [opts.lastUpdatedBefore] The response includes shipments whose latest update is before the specified time. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
46
|
+
* @param {Number} [opts.maxResults] The maximum number of shipments to include in the response.
|
|
47
|
+
* @param {String} [opts.paginationToken] A token that you use to retrieve the next page of results. The response includes `nextToken` when there are multiple pages of results. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
48
|
+
* @return {Promise<ShipmentsResponse>}
|
|
49
|
+
*/
|
|
50
|
+
getShipmentsWithHttpInfo(status: string, opts?: {
|
|
51
|
+
locationId?: string;
|
|
52
|
+
marketplaceId?: string;
|
|
53
|
+
channelName?: string;
|
|
54
|
+
lastUpdatedAfter?: string;
|
|
55
|
+
lastUpdatedBefore?: string;
|
|
56
|
+
maxResults?: number;
|
|
57
|
+
paginationToken?: string;
|
|
58
|
+
}): Promise<ShipmentsResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* Get a list of shipments created for the seller in the status you specify. Shipments can be further filtered based on the fulfillment node or the time of the shipments' last update.
|
|
61
|
+
* @param {String} status The status of shipment you want to include in the response. To retrieve all new shipments, set this value to `ACCEPTED`.
|
|
62
|
+
* @param {Object} [opts] Optional parameters
|
|
63
|
+
* @param {String} [opts.locationId] The Amazon channel location identifier for the shipments you want to retrieve.
|
|
64
|
+
* @param {String} [opts.marketplaceId] The marketplace ID associated with the location. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
65
|
+
* @param {String} [opts.channelName] The channel name associated with the location.
|
|
66
|
+
* @param {String} [opts.lastUpdatedAfter] The response includes shipments whose latest update is after the specified time. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
67
|
+
* @param {String} [opts.lastUpdatedBefore] The response includes shipments whose latest update is before the specified time. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
68
|
+
* @param {Number} [opts.maxResults] The maximum number of shipments to include in the response.
|
|
69
|
+
* @param {String} [opts.paginationToken] A token that you use to retrieve the next page of results. The response includes `nextToken` when there are multiple pages of results. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
70
|
+
* @return {Promise<ShipmentsResponse>}
|
|
71
|
+
*/
|
|
72
|
+
getShipments(status: string, opts?: {
|
|
73
|
+
locationId?: string;
|
|
74
|
+
marketplaceId?: string;
|
|
75
|
+
channelName?: string;
|
|
76
|
+
lastUpdatedAfter?: string;
|
|
77
|
+
lastUpdatedBefore?: string;
|
|
78
|
+
maxResults?: number;
|
|
79
|
+
paginationToken?: string;
|
|
80
|
+
}): Promise<ShipmentsResponse>;
|
|
81
|
+
#private;
|
|
82
|
+
}
|
|
83
|
+
import { Shipment } from '../model/Shipment.js';
|
|
84
|
+
import { ShipmentsResponse } from '../model/ShipmentsResponse.js';
|
|
85
|
+
import { ApiClient } from '../ApiClient.js';
|
|
86
|
+
//# sourceMappingURL=ShipmentRetrievalApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShipmentRetrievalApi.d.ts","sourceRoot":"","sources":["ShipmentRetrievalApi.js"],"names":[],"mappings":"AAoBA;;;;EAIE;AACF;IAIE;;;;;;QAMI;IACJ,wBAHY,SAAS,EAMpB;IAFC,eAAgD;IAIlD;;SAEK;IACL,wCAYC;IAED;;;SAGK;IACL,uCAEC;IAED;;;;SAIK;IACL,6CAFc,OAAO,CAAC,QAAQ,CAAC,CA6B9B;IAED;;;;SAIK;IACL,iCAFc,OAAO,CAAC,QAAQ,CAAC,CAO9B;IAED;;;;;;;;;;;;SAYK;IACL,gDATK;QAAsB,UAAU;QACV,aAAa;QACb,WAAW;QACX,gBAAgB;QAChB,iBAAiB;QACjB,UAAU;QACV,eAAe;KACrC,GAAS,OAAO,CAAC,iBAAiB,CAAC,CAqCvC;IAED;;;;;;;;;;;;SAYK;IACL,oCATK;QAAsB,UAAU;QACV,aAAa;QACb,WAAW;QACX,gBAAgB;QAChB,iBAAiB;QACjB,UAAU;QACV,eAAe;KACrC,GAAS,OAAO,CAAC,iBAAiB,CAAC,CAOvC;;CACF;yBAtKwB,sBAAsB;kCACb,+BAA+B;0BAHvC,iBAAiB"}
|