@sp-api-sdk/fulfillment-outbound-api-2020-07-01 4.6.1 → 5.0.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/README.md +4 -4
- package/dist/index.cjs +1433 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3505 -0
- package/dist/index.d.ts +3505 -0
- package/dist/index.js +1374 -0
- package/dist/index.js.map +1 -0
- package/package.json +23 -12
- package/dist/cjs/api-model/api/fulfillment-outbound-api.js +0 -963
- package/dist/cjs/api-model/api.js +0 -30
- package/dist/cjs/api-model/base.js +0 -52
- package/dist/cjs/api-model/common.js +0 -123
- package/dist/cjs/api-model/configuration.js +0 -98
- package/dist/cjs/api-model/index.js +0 -32
- package/dist/cjs/api-model/models/additional-location-info.js +0 -47
- package/dist/cjs/api-model/models/address.js +0 -15
- package/dist/cjs/api-model/models/amount.js +0 -19
- package/dist/cjs/api-model/models/cancel-fulfillment-order-response.js +0 -15
- package/dist/cjs/api-model/models/codsettings.js +0 -15
- package/dist/cjs/api-model/models/create-fulfillment-order-item.js +0 -15
- package/dist/cjs/api-model/models/create-fulfillment-order-request.js +0 -15
- package/dist/cjs/api-model/models/create-fulfillment-order-response.js +0 -15
- package/dist/cjs/api-model/models/create-fulfillment-return-request.js +0 -15
- package/dist/cjs/api-model/models/create-fulfillment-return-response.js +0 -15
- package/dist/cjs/api-model/models/create-fulfillment-return-result.js +0 -15
- package/dist/cjs/api-model/models/create-return-item.js +0 -15
- package/dist/cjs/api-model/models/current-status.js +0 -39
- package/dist/cjs/api-model/models/date-range.js +0 -15
- package/dist/cjs/api-model/models/delivery-document.js +0 -15
- package/dist/cjs/api-model/models/delivery-information.js +0 -15
- package/dist/cjs/api-model/models/delivery-message.js +0 -15
- package/dist/cjs/api-model/models/delivery-offer.js +0 -15
- package/dist/cjs/api-model/models/delivery-policy.js +0 -15
- package/dist/cjs/api-model/models/delivery-preferences.js +0 -15
- package/dist/cjs/api-model/models/delivery-window.js +0 -15
- package/dist/cjs/api-model/models/destination.js +0 -15
- package/dist/cjs/api-model/models/drop-off-location.js +0 -26
- package/dist/cjs/api-model/models/event-code.js +0 -54
- package/dist/cjs/api-model/models/feature-settings.js +0 -20
- package/dist/cjs/api-model/models/feature-sku.js +0 -15
- package/dist/cjs/api-model/models/feature.js +0 -15
- package/dist/cjs/api-model/models/fee.js +0 -22
- package/dist/cjs/api-model/models/fulfillment-action.js +0 -23
- package/dist/cjs/api-model/models/fulfillment-order-item.js +0 -15
- package/dist/cjs/api-model/models/fulfillment-order-status.js +0 -30
- package/dist/cjs/api-model/models/fulfillment-order.js +0 -15
- package/dist/cjs/api-model/models/fulfillment-policy.js +0 -24
- package/dist/cjs/api-model/models/fulfillment-preview-item.js +0 -20
- package/dist/cjs/api-model/models/fulfillment-preview-shipment.js +0 -15
- package/dist/cjs/api-model/models/fulfillment-preview.js +0 -15
- package/dist/cjs/api-model/models/fulfillment-return-item-status.js +0 -23
- package/dist/cjs/api-model/models/fulfillment-shipment-item.js +0 -15
- package/dist/cjs/api-model/models/fulfillment-shipment-package.js +0 -15
- package/dist/cjs/api-model/models/fulfillment-shipment.js +0 -22
- package/dist/cjs/api-model/models/get-delivery-offers-product.js +0 -15
- package/dist/cjs/api-model/models/get-delivery-offers-request.js +0 -15
- package/dist/cjs/api-model/models/get-delivery-offers-response.js +0 -15
- package/dist/cjs/api-model/models/get-delivery-offers-result.js +0 -15
- package/dist/cjs/api-model/models/get-delivery-offers-terms.js +0 -15
- package/dist/cjs/api-model/models/get-feature-inventory-response.js +0 -15
- package/dist/cjs/api-model/models/get-feature-inventory-result.js +0 -15
- package/dist/cjs/api-model/models/get-feature-sku-response.js +0 -15
- package/dist/cjs/api-model/models/get-feature-sku-result.js +0 -15
- package/dist/cjs/api-model/models/get-features-response.js +0 -15
- package/dist/cjs/api-model/models/get-features-result.js +0 -15
- package/dist/cjs/api-model/models/get-fulfillment-order-response.js +0 -15
- package/dist/cjs/api-model/models/get-fulfillment-order-result.js +0 -15
- package/dist/cjs/api-model/models/get-fulfillment-preview-item.js +0 -15
- package/dist/cjs/api-model/models/get-fulfillment-preview-request.js +0 -15
- package/dist/cjs/api-model/models/get-fulfillment-preview-response.js +0 -15
- package/dist/cjs/api-model/models/get-fulfillment-preview-result.js +0 -15
- package/dist/cjs/api-model/models/get-package-tracking-details-response.js +0 -15
- package/dist/cjs/api-model/models/index.js +0 -104
- package/dist/cjs/api-model/models/invalid-item-reason-code.js +0 -25
- package/dist/cjs/api-model/models/invalid-item-reason.js +0 -15
- package/dist/cjs/api-model/models/invalid-return-item.js +0 -15
- package/dist/cjs/api-model/models/list-all-fulfillment-orders-response.js +0 -15
- package/dist/cjs/api-model/models/list-all-fulfillment-orders-result.js +0 -15
- package/dist/cjs/api-model/models/list-return-reason-codes-response.js +0 -15
- package/dist/cjs/api-model/models/list-return-reason-codes-result.js +0 -15
- package/dist/cjs/api-model/models/locker-details.js +0 -15
- package/dist/cjs/api-model/models/model-error.js +0 -15
- package/dist/cjs/api-model/models/money.js +0 -15
- package/dist/cjs/api-model/models/origin.js +0 -15
- package/dist/cjs/api-model/models/package-tracking-details.js +0 -15
- package/dist/cjs/api-model/models/payment-information.js +0 -15
- package/dist/cjs/api-model/models/product-identifier.js +0 -15
- package/dist/cjs/api-model/models/reason-code-details.js +0 -15
- package/dist/cjs/api-model/models/return-authorization.js +0 -15
- package/dist/cjs/api-model/models/return-item-disposition.js +0 -26
- package/dist/cjs/api-model/models/return-item.js +0 -15
- package/dist/cjs/api-model/models/scheduled-delivery-info.js +0 -15
- package/dist/cjs/api-model/models/shipping-speed-category.js +0 -25
- package/dist/cjs/api-model/models/submit-fulfillment-order-status-update-request.js +0 -15
- package/dist/cjs/api-model/models/submit-fulfillment-order-status-update-response.js +0 -15
- package/dist/cjs/api-model/models/tracking-address.js +0 -15
- package/dist/cjs/api-model/models/tracking-event.js +0 -15
- package/dist/cjs/api-model/models/unfulfillable-preview-item.js +0 -15
- package/dist/cjs/api-model/models/update-fulfillment-order-item.js +0 -15
- package/dist/cjs/api-model/models/update-fulfillment-order-request.js +0 -15
- package/dist/cjs/api-model/models/update-fulfillment-order-response.js +0 -15
- package/dist/cjs/api-model/models/variable-precision-address.js +0 -15
- package/dist/cjs/api-model/models/weight.js +0 -22
- package/dist/cjs/client.js +0 -105
- package/dist/cjs/index.js +0 -19
- package/dist/es/api-model/api/fulfillment-outbound-api.js +0 -953
- package/dist/es/api-model/api.js +0 -14
- package/dist/es/api-model/base.js +0 -44
- package/dist/es/api-model/common.js +0 -110
- package/dist/es/api-model/configuration.js +0 -94
- package/dist/es/api-model/index.js +0 -16
- package/dist/es/api-model/models/additional-location-info.js +0 -44
- package/dist/es/api-model/models/address.js +0 -14
- package/dist/es/api-model/models/amount.js +0 -16
- package/dist/es/api-model/models/cancel-fulfillment-order-response.js +0 -14
- package/dist/es/api-model/models/codsettings.js +0 -14
- package/dist/es/api-model/models/create-fulfillment-order-item.js +0 -14
- package/dist/es/api-model/models/create-fulfillment-order-request.js +0 -14
- package/dist/es/api-model/models/create-fulfillment-order-response.js +0 -14
- package/dist/es/api-model/models/create-fulfillment-return-request.js +0 -14
- package/dist/es/api-model/models/create-fulfillment-return-response.js +0 -14
- package/dist/es/api-model/models/create-fulfillment-return-result.js +0 -14
- package/dist/es/api-model/models/create-return-item.js +0 -14
- package/dist/es/api-model/models/current-status.js +0 -36
- package/dist/es/api-model/models/date-range.js +0 -14
- package/dist/es/api-model/models/delivery-document.js +0 -14
- package/dist/es/api-model/models/delivery-information.js +0 -14
- package/dist/es/api-model/models/delivery-message.js +0 -14
- package/dist/es/api-model/models/delivery-offer.js +0 -14
- package/dist/es/api-model/models/delivery-policy.js +0 -14
- package/dist/es/api-model/models/delivery-preferences.js +0 -14
- package/dist/es/api-model/models/delivery-window.js +0 -14
- package/dist/es/api-model/models/destination.js +0 -14
- package/dist/es/api-model/models/drop-off-location.js +0 -23
- package/dist/es/api-model/models/event-code.js +0 -51
- package/dist/es/api-model/models/feature-settings.js +0 -17
- package/dist/es/api-model/models/feature-sku.js +0 -14
- package/dist/es/api-model/models/feature.js +0 -14
- package/dist/es/api-model/models/fee.js +0 -19
- package/dist/es/api-model/models/fulfillment-action.js +0 -20
- package/dist/es/api-model/models/fulfillment-order-item.js +0 -14
- package/dist/es/api-model/models/fulfillment-order-status.js +0 -27
- package/dist/es/api-model/models/fulfillment-order.js +0 -14
- package/dist/es/api-model/models/fulfillment-policy.js +0 -21
- package/dist/es/api-model/models/fulfillment-preview-item.js +0 -17
- package/dist/es/api-model/models/fulfillment-preview-shipment.js +0 -14
- package/dist/es/api-model/models/fulfillment-preview.js +0 -14
- package/dist/es/api-model/models/fulfillment-return-item-status.js +0 -20
- package/dist/es/api-model/models/fulfillment-shipment-item.js +0 -14
- package/dist/es/api-model/models/fulfillment-shipment-package.js +0 -14
- package/dist/es/api-model/models/fulfillment-shipment.js +0 -19
- package/dist/es/api-model/models/get-delivery-offers-product.js +0 -14
- package/dist/es/api-model/models/get-delivery-offers-request.js +0 -14
- package/dist/es/api-model/models/get-delivery-offers-response.js +0 -14
- package/dist/es/api-model/models/get-delivery-offers-result.js +0 -14
- package/dist/es/api-model/models/get-delivery-offers-terms.js +0 -14
- package/dist/es/api-model/models/get-feature-inventory-response.js +0 -14
- package/dist/es/api-model/models/get-feature-inventory-result.js +0 -14
- package/dist/es/api-model/models/get-feature-sku-response.js +0 -14
- package/dist/es/api-model/models/get-feature-sku-result.js +0 -14
- package/dist/es/api-model/models/get-features-response.js +0 -14
- package/dist/es/api-model/models/get-features-result.js +0 -14
- package/dist/es/api-model/models/get-fulfillment-order-response.js +0 -14
- package/dist/es/api-model/models/get-fulfillment-order-result.js +0 -14
- package/dist/es/api-model/models/get-fulfillment-preview-item.js +0 -14
- package/dist/es/api-model/models/get-fulfillment-preview-request.js +0 -14
- package/dist/es/api-model/models/get-fulfillment-preview-response.js +0 -14
- package/dist/es/api-model/models/get-fulfillment-preview-result.js +0 -14
- package/dist/es/api-model/models/get-package-tracking-details-response.js +0 -14
- package/dist/es/api-model/models/index.js +0 -88
- package/dist/es/api-model/models/invalid-item-reason-code.js +0 -22
- package/dist/es/api-model/models/invalid-item-reason.js +0 -14
- package/dist/es/api-model/models/invalid-return-item.js +0 -14
- package/dist/es/api-model/models/list-all-fulfillment-orders-response.js +0 -14
- package/dist/es/api-model/models/list-all-fulfillment-orders-result.js +0 -14
- package/dist/es/api-model/models/list-return-reason-codes-response.js +0 -14
- package/dist/es/api-model/models/list-return-reason-codes-result.js +0 -14
- package/dist/es/api-model/models/locker-details.js +0 -14
- package/dist/es/api-model/models/model-error.js +0 -14
- package/dist/es/api-model/models/money.js +0 -14
- package/dist/es/api-model/models/origin.js +0 -14
- package/dist/es/api-model/models/package-tracking-details.js +0 -14
- package/dist/es/api-model/models/payment-information.js +0 -14
- package/dist/es/api-model/models/product-identifier.js +0 -14
- package/dist/es/api-model/models/reason-code-details.js +0 -14
- package/dist/es/api-model/models/return-authorization.js +0 -14
- package/dist/es/api-model/models/return-item-disposition.js +0 -23
- package/dist/es/api-model/models/return-item.js +0 -14
- package/dist/es/api-model/models/scheduled-delivery-info.js +0 -14
- package/dist/es/api-model/models/shipping-speed-category.js +0 -22
- package/dist/es/api-model/models/submit-fulfillment-order-status-update-request.js +0 -14
- package/dist/es/api-model/models/submit-fulfillment-order-status-update-response.js +0 -14
- package/dist/es/api-model/models/tracking-address.js +0 -14
- package/dist/es/api-model/models/tracking-event.js +0 -14
- package/dist/es/api-model/models/unfulfillable-preview-item.js +0 -14
- package/dist/es/api-model/models/update-fulfillment-order-item.js +0 -14
- package/dist/es/api-model/models/update-fulfillment-order-request.js +0 -14
- package/dist/es/api-model/models/update-fulfillment-order-response.js +0 -14
- package/dist/es/api-model/models/variable-precision-address.js +0 -14
- package/dist/es/api-model/models/weight.js +0 -19
- package/dist/es/client.js +0 -101
- package/dist/es/index.js +0 -3
- package/dist/types/api-model/api/fulfillment-outbound-api.d.ts +0 -645
- package/dist/types/api-model/api.d.ts +0 -12
- package/dist/types/api-model/base.d.ts +0 -42
- package/dist/types/api-model/common.d.ts +0 -34
- package/dist/types/api-model/configuration.d.ts +0 -98
- package/dist/types/api-model/index.d.ts +0 -14
- package/dist/types/api-model/models/additional-location-info.d.ts +0 -43
- package/dist/types/api-model/models/address.d.ts +0 -56
- package/dist/types/api-model/models/amount.d.ts +0 -28
- package/dist/types/api-model/models/cancel-fulfillment-order-response.d.ts +0 -20
- package/dist/types/api-model/models/codsettings.d.ts +0 -25
- package/dist/types/api-model/models/create-fulfillment-order-item.d.ts +0 -44
- package/dist/types/api-model/models/create-fulfillment-order-request.d.ts +0 -73
- package/dist/types/api-model/models/create-fulfillment-order-response.d.ts +0 -20
- package/dist/types/api-model/models/create-fulfillment-return-request.d.ts +0 -21
- package/dist/types/api-model/models/create-fulfillment-return-response.d.ts +0 -22
- package/dist/types/api-model/models/create-fulfillment-return-result.d.ts +0 -31
- package/dist/types/api-model/models/create-return-item.d.ts +0 -36
- package/dist/types/api-model/models/current-status.d.ts +0 -35
- package/dist/types/api-model/models/date-range.d.ts +0 -24
- package/dist/types/api-model/models/delivery-document.d.ts +0 -24
- package/dist/types/api-model/models/delivery-information.d.ts +0 -23
- package/dist/types/api-model/models/delivery-message.d.ts +0 -24
- package/dist/types/api-model/models/delivery-offer.d.ts +0 -24
- package/dist/types/api-model/models/delivery-policy.d.ts +0 -18
- package/dist/types/api-model/models/delivery-preferences.d.ts +0 -22
- package/dist/types/api-model/models/delivery-window.d.ts +0 -24
- package/dist/types/api-model/models/destination.d.ts +0 -22
- package/dist/types/api-model/models/drop-off-location.d.ts +0 -37
- package/dist/types/api-model/models/event-code.d.ts +0 -50
- package/dist/types/api-model/models/feature-settings.d.ts +0 -29
- package/dist/types/api-model/models/feature-sku.d.ts +0 -36
- package/dist/types/api-model/models/feature.d.ts +0 -28
- package/dist/types/api-model/models/fee.d.ts +0 -29
- package/dist/types/api-model/models/fulfillment-action.d.ts +0 -19
- package/dist/types/api-model/models/fulfillment-order-item.d.ts +0 -64
- package/dist/types/api-model/models/fulfillment-order-status.d.ts +0 -26
- package/dist/types/api-model/models/fulfillment-order.d.ts +0 -67
- package/dist/types/api-model/models/fulfillment-policy.d.ts +0 -20
- package/dist/types/api-model/models/fulfillment-preview-item.d.ts +0 -39
- package/dist/types/api-model/models/fulfillment-preview-shipment.d.ts +0 -41
- package/dist/types/api-model/models/fulfillment-preview.d.ts +0 -58
- package/dist/types/api-model/models/fulfillment-return-item-status.d.ts +0 -19
- package/dist/types/api-model/models/fulfillment-shipment-item.d.ts +0 -40
- package/dist/types/api-model/models/fulfillment-shipment-package.d.ts +0 -40
- package/dist/types/api-model/models/fulfillment-shipment.d.ts +0 -57
- package/dist/types/api-model/models/get-delivery-offers-product.d.ts +0 -20
- package/dist/types/api-model/models/get-delivery-offers-request.d.ts +0 -20
- package/dist/types/api-model/models/get-delivery-offers-response.d.ts +0 -22
- package/dist/types/api-model/models/get-delivery-offers-result.d.ts +0 -21
- package/dist/types/api-model/models/get-delivery-offers-terms.d.ts +0 -20
- package/dist/types/api-model/models/get-feature-inventory-response.d.ts +0 -22
- package/dist/types/api-model/models/get-feature-inventory-result.d.ts +0 -33
- package/dist/types/api-model/models/get-feature-sku-response.d.ts +0 -22
- package/dist/types/api-model/models/get-feature-sku-result.d.ts +0 -48
- package/dist/types/api-model/models/get-features-response.d.ts +0 -22
- package/dist/types/api-model/models/get-features-result.d.ts +0 -21
- package/dist/types/api-model/models/get-fulfillment-order-response.d.ts +0 -22
- package/dist/types/api-model/models/get-fulfillment-order-result.d.ts +0 -43
- package/dist/types/api-model/models/get-fulfillment-preview-item.d.ts +0 -30
- package/dist/types/api-model/models/get-fulfillment-preview-request.d.ts +0 -45
- package/dist/types/api-model/models/get-fulfillment-preview-response.d.ts +0 -22
- package/dist/types/api-model/models/get-fulfillment-preview-result.d.ts +0 -21
- package/dist/types/api-model/models/get-package-tracking-details-response.d.ts +0 -22
- package/dist/types/api-model/models/index.d.ts +0 -88
- package/dist/types/api-model/models/invalid-item-reason-code.d.ts +0 -21
- package/dist/types/api-model/models/invalid-item-reason.d.ts +0 -22
- package/dist/types/api-model/models/invalid-return-item.d.ts +0 -26
- package/dist/types/api-model/models/list-all-fulfillment-orders-response.d.ts +0 -22
- package/dist/types/api-model/models/list-all-fulfillment-orders-result.d.ts +0 -25
- package/dist/types/api-model/models/list-return-reason-codes-response.d.ts +0 -22
- package/dist/types/api-model/models/list-return-reason-codes-result.d.ts +0 -21
- package/dist/types/api-model/models/locker-details.d.ts +0 -24
- package/dist/types/api-model/models/model-error.d.ts +0 -28
- package/dist/types/api-model/models/money.d.ts +0 -24
- package/dist/types/api-model/models/origin.d.ts +0 -20
- package/dist/types/api-model/models/package-tracking-details.d.ts +0 -69
- package/dist/types/api-model/models/payment-information.d.ts +0 -28
- package/dist/types/api-model/models/product-identifier.d.ts +0 -20
- package/dist/types/api-model/models/reason-code-details.d.ts +0 -28
- package/dist/types/api-model/models/return-authorization.d.ts +0 -34
- package/dist/types/api-model/models/return-item-disposition.d.ts +0 -22
- package/dist/types/api-model/models/return-item.d.ts +0 -56
- package/dist/types/api-model/models/scheduled-delivery-info.d.ts +0 -25
- package/dist/types/api-model/models/shipping-speed-category.d.ts +0 -21
- package/dist/types/api-model/models/submit-fulfillment-order-status-update-request.d.ts +0 -18
- package/dist/types/api-model/models/submit-fulfillment-order-status-update-response.d.ts +0 -20
- package/dist/types/api-model/models/tracking-address.d.ts +0 -28
- package/dist/types/api-model/models/tracking-event.d.ts +0 -28
- package/dist/types/api-model/models/unfulfillable-preview-item.d.ts +0 -32
- package/dist/types/api-model/models/update-fulfillment-order-item.d.ts +0 -48
- package/dist/types/api-model/models/update-fulfillment-order-request.d.ts +0 -58
- package/dist/types/api-model/models/update-fulfillment-order-response.d.ts +0 -20
- package/dist/types/api-model/models/variable-precision-address.d.ts +0 -48
- package/dist/types/api-model/models/weight.d.ts +0 -31
- package/dist/types/client.d.ts +0 -6
- package/dist/types/index.d.ts +0 -3
package/dist/index.js
ADDED
|
@@ -0,0 +1,1374 @@
|
|
|
1
|
+
// src/client.ts
|
|
2
|
+
import { createAxiosInstance } from "@sp-api-sdk/common";
|
|
3
|
+
|
|
4
|
+
// src/api-model/api/fulfillment-outbound-api.ts
|
|
5
|
+
import globalAxios2 from "axios";
|
|
6
|
+
|
|
7
|
+
// src/api-model/base.ts
|
|
8
|
+
import globalAxios from "axios";
|
|
9
|
+
var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
10
|
+
var BaseAPI = class {
|
|
11
|
+
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
12
|
+
this.basePath = basePath;
|
|
13
|
+
this.axios = axios;
|
|
14
|
+
if (configuration) {
|
|
15
|
+
this.configuration = configuration;
|
|
16
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
basePath;
|
|
20
|
+
axios;
|
|
21
|
+
configuration;
|
|
22
|
+
};
|
|
23
|
+
var RequiredError = class extends Error {
|
|
24
|
+
constructor(field, msg) {
|
|
25
|
+
super(msg);
|
|
26
|
+
this.field = field;
|
|
27
|
+
this.name = "RequiredError";
|
|
28
|
+
}
|
|
29
|
+
field;
|
|
30
|
+
};
|
|
31
|
+
var operationServerMap = {};
|
|
32
|
+
|
|
33
|
+
// src/api-model/common.ts
|
|
34
|
+
var DUMMY_BASE_URL = "https://example.com";
|
|
35
|
+
var assertParamExists = function(functionName, paramName, paramValue) {
|
|
36
|
+
if (paramValue === null || paramValue === void 0) {
|
|
37
|
+
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
41
|
+
if (parameter == null) return;
|
|
42
|
+
if (typeof parameter === "object") {
|
|
43
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
44
|
+
parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
45
|
+
} else {
|
|
46
|
+
Object.keys(parameter).forEach(
|
|
47
|
+
(currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
} else {
|
|
51
|
+
if (urlSearchParams.has(key)) {
|
|
52
|
+
urlSearchParams.append(key, parameter);
|
|
53
|
+
} else {
|
|
54
|
+
urlSearchParams.set(key, parameter);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
var setSearchParams = function(url, ...objects) {
|
|
59
|
+
const searchParams = new URLSearchParams(url.search);
|
|
60
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
61
|
+
url.search = searchParams.toString();
|
|
62
|
+
};
|
|
63
|
+
var replaceWithSerializableTypeIfNeeded = function(key, value) {
|
|
64
|
+
if (value instanceof Set) {
|
|
65
|
+
return Array.from(value);
|
|
66
|
+
} else {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
var serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
71
|
+
const nonString = typeof value !== "string";
|
|
72
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
|
|
73
|
+
return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
|
|
74
|
+
};
|
|
75
|
+
var toPathString = function(url) {
|
|
76
|
+
return url.pathname + url.search + url.hash;
|
|
77
|
+
};
|
|
78
|
+
var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
|
|
79
|
+
return (axios = globalAxios3, basePath = BASE_PATH2) => {
|
|
80
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
81
|
+
return axios.request(axiosRequestArgs);
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
// src/api-model/api/fulfillment-outbound-api.ts
|
|
86
|
+
var FulfillmentOutboundApiAxiosParamCreator = function(configuration) {
|
|
87
|
+
return {
|
|
88
|
+
/**
|
|
89
|
+
* Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
90
|
+
* @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
cancelFulfillmentOrder: async (sellerFulfillmentOrderId, options = {}) => {
|
|
95
|
+
assertParamExists("cancelFulfillmentOrder", "sellerFulfillmentOrderId", sellerFulfillmentOrderId);
|
|
96
|
+
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/cancel`.replace("{sellerFulfillmentOrderId}", encodeURIComponent(String(sellerFulfillmentOrderId)));
|
|
97
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
98
|
+
let baseOptions;
|
|
99
|
+
if (configuration) {
|
|
100
|
+
baseOptions = configuration.baseOptions;
|
|
101
|
+
}
|
|
102
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
103
|
+
const localVarHeaderParameter = {};
|
|
104
|
+
const localVarQueryParameter = {};
|
|
105
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
106
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
107
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
108
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
109
|
+
return {
|
|
110
|
+
url: toPathString(localVarUrlObj),
|
|
111
|
+
options: localVarRequestOptions
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
/**
|
|
115
|
+
* Requests that Amazon ship items from the seller\'s inventory in Amazon\'s fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api)
|
|
116
|
+
* @param {CreateFulfillmentOrderRequest} body CreateFulfillmentOrderRequest parameter
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
createFulfillmentOrder: async (body, options = {}) => {
|
|
121
|
+
assertParamExists("createFulfillmentOrder", "body", body);
|
|
122
|
+
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders`;
|
|
123
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
124
|
+
let baseOptions;
|
|
125
|
+
if (configuration) {
|
|
126
|
+
baseOptions = configuration.baseOptions;
|
|
127
|
+
}
|
|
128
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
129
|
+
const localVarHeaderParameter = {};
|
|
130
|
+
const localVarQueryParameter = {};
|
|
131
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
132
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
133
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
134
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
135
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
136
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
137
|
+
return {
|
|
138
|
+
url: toPathString(localVarUrlObj),
|
|
139
|
+
options: localVarRequestOptions
|
|
140
|
+
};
|
|
141
|
+
},
|
|
142
|
+
/**
|
|
143
|
+
* Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
144
|
+
* @param {string} sellerFulfillmentOrderId An identifier the seller assigns to the fulfillment order at the time it was created. The seller uses their own records to find the correct `sellerFulfillmentOrderId` value based on the buyer\'s request to return items.
|
|
145
|
+
* @param {CreateFulfillmentReturnRequest} body The request body of the `createFulfillmentReturn` operation.
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
createFulfillmentReturn: async (sellerFulfillmentOrderId, body, options = {}) => {
|
|
150
|
+
assertParamExists("createFulfillmentReturn", "sellerFulfillmentOrderId", sellerFulfillmentOrderId);
|
|
151
|
+
assertParamExists("createFulfillmentReturn", "body", body);
|
|
152
|
+
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/return`.replace("{sellerFulfillmentOrderId}", encodeURIComponent(String(sellerFulfillmentOrderId)));
|
|
153
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
154
|
+
let baseOptions;
|
|
155
|
+
if (configuration) {
|
|
156
|
+
baseOptions = configuration.baseOptions;
|
|
157
|
+
}
|
|
158
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
159
|
+
const localVarHeaderParameter = {};
|
|
160
|
+
const localVarQueryParameter = {};
|
|
161
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
162
|
+
localVarHeaderParameter["Accept"] = "application/json,payload";
|
|
163
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
164
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
165
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
166
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
167
|
+
return {
|
|
168
|
+
url: toPathString(localVarUrlObj),
|
|
169
|
+
options: localVarRequestOptions
|
|
170
|
+
};
|
|
171
|
+
},
|
|
172
|
+
/**
|
|
173
|
+
* Returns delivery options that include an estimated delivery date and offer expiration, based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
174
|
+
* @param {GetDeliveryOffersRequest} body GetDeliveryOffersRequest parameter
|
|
175
|
+
* @param {*} [options] Override http request option.
|
|
176
|
+
* @throws {RequiredError}
|
|
177
|
+
*/
|
|
178
|
+
deliveryOffers: async (body, options = {}) => {
|
|
179
|
+
assertParamExists("deliveryOffers", "body", body);
|
|
180
|
+
const localVarPath = `/fba/outbound/2020-07-01/deliveryOffers`;
|
|
181
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
182
|
+
let baseOptions;
|
|
183
|
+
if (configuration) {
|
|
184
|
+
baseOptions = configuration.baseOptions;
|
|
185
|
+
}
|
|
186
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
187
|
+
const localVarHeaderParameter = {};
|
|
188
|
+
const localVarQueryParameter = {};
|
|
189
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
190
|
+
localVarHeaderParameter["Accept"] = "application/json,payload";
|
|
191
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
192
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
193
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
194
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
195
|
+
return {
|
|
196
|
+
url: toPathString(localVarUrlObj),
|
|
197
|
+
options: localVarRequestOptions
|
|
198
|
+
};
|
|
199
|
+
},
|
|
200
|
+
/**
|
|
201
|
+
* Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
202
|
+
* @param {string} marketplaceId The marketplace for which to return a list of the inventory that is eligible for the specified feature.
|
|
203
|
+
* @param {string} featureName The name of the feature for which to return a list of eligible inventory.
|
|
204
|
+
* @param {string} [nextToken] A string token returned in the response to your previous request that is used to return the next response page. A value of `null` will return the first page.
|
|
205
|
+
* @param {string} [queryStartDate] A date that you can use to select inventory that has been updated since a specified date. An update is defined as any change in feature-enabled inventory availability. The date must be in the format `yyyy-MM-ddTHH:mm:ss.sssZ`
|
|
206
|
+
* @param {*} [options] Override http request option.
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
*/
|
|
209
|
+
getFeatureInventory: async (marketplaceId, featureName, nextToken, queryStartDate, options = {}) => {
|
|
210
|
+
assertParamExists("getFeatureInventory", "marketplaceId", marketplaceId);
|
|
211
|
+
assertParamExists("getFeatureInventory", "featureName", featureName);
|
|
212
|
+
const localVarPath = `/fba/outbound/2020-07-01/features/inventory/{featureName}`.replace("{featureName}", encodeURIComponent(String(featureName)));
|
|
213
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
214
|
+
let baseOptions;
|
|
215
|
+
if (configuration) {
|
|
216
|
+
baseOptions = configuration.baseOptions;
|
|
217
|
+
}
|
|
218
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
219
|
+
const localVarHeaderParameter = {};
|
|
220
|
+
const localVarQueryParameter = {};
|
|
221
|
+
if (marketplaceId !== void 0) {
|
|
222
|
+
localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
223
|
+
}
|
|
224
|
+
if (nextToken !== void 0) {
|
|
225
|
+
localVarQueryParameter["nextToken"] = nextToken;
|
|
226
|
+
}
|
|
227
|
+
if (queryStartDate !== void 0) {
|
|
228
|
+
localVarQueryParameter["queryStartDate"] = queryStartDate instanceof Date ? queryStartDate.toISOString() : queryStartDate;
|
|
229
|
+
}
|
|
230
|
+
localVarHeaderParameter["Accept"] = "application/json,payload";
|
|
231
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
232
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
233
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
234
|
+
return {
|
|
235
|
+
url: toPathString(localVarUrlObj),
|
|
236
|
+
options: localVarRequestOptions
|
|
237
|
+
};
|
|
238
|
+
},
|
|
239
|
+
/**
|
|
240
|
+
* Returns the number of items with the `sellerSku` you specify that can have orders fulfilled using the specified feature. Note that if the `sellerSku` isn\'t eligible, the response will contain an empty `skuInfo` object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
241
|
+
* @param {string} marketplaceId The marketplace for which to return the count.
|
|
242
|
+
* @param {string} featureName The name of the feature.
|
|
243
|
+
* @param {string} sellerSku Used to identify an item in the given marketplace. `sellerSku` is qualified by the seller\'s `sellerId`, which is included with every operation that you submit.
|
|
244
|
+
* @param {*} [options] Override http request option.
|
|
245
|
+
* @throws {RequiredError}
|
|
246
|
+
*/
|
|
247
|
+
getFeatureSKU: async (marketplaceId, featureName, sellerSku, options = {}) => {
|
|
248
|
+
assertParamExists("getFeatureSKU", "marketplaceId", marketplaceId);
|
|
249
|
+
assertParamExists("getFeatureSKU", "featureName", featureName);
|
|
250
|
+
assertParamExists("getFeatureSKU", "sellerSku", sellerSku);
|
|
251
|
+
const localVarPath = `/fba/outbound/2020-07-01/features/inventory/{featureName}/{sellerSku}`.replace("{featureName}", encodeURIComponent(String(featureName))).replace("{sellerSku}", encodeURIComponent(String(sellerSku)));
|
|
252
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
253
|
+
let baseOptions;
|
|
254
|
+
if (configuration) {
|
|
255
|
+
baseOptions = configuration.baseOptions;
|
|
256
|
+
}
|
|
257
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
258
|
+
const localVarHeaderParameter = {};
|
|
259
|
+
const localVarQueryParameter = {};
|
|
260
|
+
if (marketplaceId !== void 0) {
|
|
261
|
+
localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
262
|
+
}
|
|
263
|
+
localVarHeaderParameter["Accept"] = "application/json,payload";
|
|
264
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
265
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
266
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
267
|
+
return {
|
|
268
|
+
url: toPathString(localVarUrlObj),
|
|
269
|
+
options: localVarRequestOptions
|
|
270
|
+
};
|
|
271
|
+
},
|
|
272
|
+
/**
|
|
273
|
+
* Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
274
|
+
* @param {string} marketplaceId The marketplace for which to return the list of features.
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
getFeatures: async (marketplaceId, options = {}) => {
|
|
279
|
+
assertParamExists("getFeatures", "marketplaceId", marketplaceId);
|
|
280
|
+
const localVarPath = `/fba/outbound/2020-07-01/features`;
|
|
281
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
282
|
+
let baseOptions;
|
|
283
|
+
if (configuration) {
|
|
284
|
+
baseOptions = configuration.baseOptions;
|
|
285
|
+
}
|
|
286
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
287
|
+
const localVarHeaderParameter = {};
|
|
288
|
+
const localVarQueryParameter = {};
|
|
289
|
+
if (marketplaceId !== void 0) {
|
|
290
|
+
localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
291
|
+
}
|
|
292
|
+
localVarHeaderParameter["Accept"] = "application/json,payload";
|
|
293
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
294
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
295
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
296
|
+
return {
|
|
297
|
+
url: toPathString(localVarUrlObj),
|
|
298
|
+
options: localVarRequestOptions
|
|
299
|
+
};
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
* Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
303
|
+
* @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
|
|
304
|
+
* @param {*} [options] Override http request option.
|
|
305
|
+
* @throws {RequiredError}
|
|
306
|
+
*/
|
|
307
|
+
getFulfillmentOrder: async (sellerFulfillmentOrderId, options = {}) => {
|
|
308
|
+
assertParamExists("getFulfillmentOrder", "sellerFulfillmentOrderId", sellerFulfillmentOrderId);
|
|
309
|
+
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}`.replace("{sellerFulfillmentOrderId}", encodeURIComponent(String(sellerFulfillmentOrderId)));
|
|
310
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
311
|
+
let baseOptions;
|
|
312
|
+
if (configuration) {
|
|
313
|
+
baseOptions = configuration.baseOptions;
|
|
314
|
+
}
|
|
315
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
316
|
+
const localVarHeaderParameter = {};
|
|
317
|
+
const localVarQueryParameter = {};
|
|
318
|
+
localVarHeaderParameter["Accept"] = "application/json,payload";
|
|
319
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
320
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
321
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
322
|
+
return {
|
|
323
|
+
url: toPathString(localVarUrlObj),
|
|
324
|
+
options: localVarRequestOptions
|
|
325
|
+
};
|
|
326
|
+
},
|
|
327
|
+
/**
|
|
328
|
+
* Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
329
|
+
* @param {GetFulfillmentPreviewRequest} body GetFulfillmentPreviewRequest parameter
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
*/
|
|
333
|
+
getFulfillmentPreview: async (body, options = {}) => {
|
|
334
|
+
assertParamExists("getFulfillmentPreview", "body", body);
|
|
335
|
+
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/preview`;
|
|
336
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
337
|
+
let baseOptions;
|
|
338
|
+
if (configuration) {
|
|
339
|
+
baseOptions = configuration.baseOptions;
|
|
340
|
+
}
|
|
341
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
342
|
+
const localVarHeaderParameter = {};
|
|
343
|
+
const localVarQueryParameter = {};
|
|
344
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
345
|
+
localVarHeaderParameter["Accept"] = "application/json,payload";
|
|
346
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
347
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
348
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
349
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
350
|
+
return {
|
|
351
|
+
url: toPathString(localVarUrlObj),
|
|
352
|
+
options: localVarRequestOptions
|
|
353
|
+
};
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
* Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
357
|
+
* @param {number} packageNumber The unencrypted package identifier. You can obtain this value from the `getFulfillmentOrder` operation.
|
|
358
|
+
* @param {*} [options] Override http request option.
|
|
359
|
+
* @throws {RequiredError}
|
|
360
|
+
*/
|
|
361
|
+
getPackageTrackingDetails: async (packageNumber, options = {}) => {
|
|
362
|
+
assertParamExists("getPackageTrackingDetails", "packageNumber", packageNumber);
|
|
363
|
+
const localVarPath = `/fba/outbound/2020-07-01/tracking`;
|
|
364
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
365
|
+
let baseOptions;
|
|
366
|
+
if (configuration) {
|
|
367
|
+
baseOptions = configuration.baseOptions;
|
|
368
|
+
}
|
|
369
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
370
|
+
const localVarHeaderParameter = {};
|
|
371
|
+
const localVarQueryParameter = {};
|
|
372
|
+
if (packageNumber !== void 0) {
|
|
373
|
+
localVarQueryParameter["packageNumber"] = packageNumber;
|
|
374
|
+
}
|
|
375
|
+
localVarHeaderParameter["Accept"] = "application/json,payload";
|
|
376
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
377
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
378
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
379
|
+
return {
|
|
380
|
+
url: toPathString(localVarUrlObj),
|
|
381
|
+
options: localVarRequestOptions
|
|
382
|
+
};
|
|
383
|
+
},
|
|
384
|
+
/**
|
|
385
|
+
* Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the `nextToken` parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api)
|
|
386
|
+
* @param {string} [queryStartDate] A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order.
|
|
387
|
+
* @param {string} [nextToken] A string token returned in the response to your previous request.
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
*/
|
|
391
|
+
listAllFulfillmentOrders: async (queryStartDate, nextToken, options = {}) => {
|
|
392
|
+
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders`;
|
|
393
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
394
|
+
let baseOptions;
|
|
395
|
+
if (configuration) {
|
|
396
|
+
baseOptions = configuration.baseOptions;
|
|
397
|
+
}
|
|
398
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
399
|
+
const localVarHeaderParameter = {};
|
|
400
|
+
const localVarQueryParameter = {};
|
|
401
|
+
if (queryStartDate !== void 0) {
|
|
402
|
+
localVarQueryParameter["queryStartDate"] = queryStartDate instanceof Date ? queryStartDate.toISOString() : queryStartDate;
|
|
403
|
+
}
|
|
404
|
+
if (nextToken !== void 0) {
|
|
405
|
+
localVarQueryParameter["nextToken"] = nextToken;
|
|
406
|
+
}
|
|
407
|
+
localVarHeaderParameter["Accept"] = "application/json,payload";
|
|
408
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
409
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
410
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
411
|
+
return {
|
|
412
|
+
url: toPathString(localVarUrlObj),
|
|
413
|
+
options: localVarRequestOptions
|
|
414
|
+
};
|
|
415
|
+
},
|
|
416
|
+
/**
|
|
417
|
+
* Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
418
|
+
* @param {string} sellerSku The seller SKU for which return reason codes are required.
|
|
419
|
+
* @param {string} [marketplaceId] The marketplace for which the seller wants return reason codes.
|
|
420
|
+
* @param {string} [sellerFulfillmentOrderId] The identifier assigned to the item by the seller when the fulfillment order was created. The service uses this value to determine the marketplace for which the seller wants return reason codes.
|
|
421
|
+
* @param {string} [language] The language that the `TranslatedDescription` property of the `ReasonCodeDetails` response object should be translated into.
|
|
422
|
+
* @param {*} [options] Override http request option.
|
|
423
|
+
* @throws {RequiredError}
|
|
424
|
+
*/
|
|
425
|
+
listReturnReasonCodes: async (sellerSku, marketplaceId, sellerFulfillmentOrderId, language, options = {}) => {
|
|
426
|
+
assertParamExists("listReturnReasonCodes", "sellerSku", sellerSku);
|
|
427
|
+
const localVarPath = `/fba/outbound/2020-07-01/returnReasonCodes`;
|
|
428
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
429
|
+
let baseOptions;
|
|
430
|
+
if (configuration) {
|
|
431
|
+
baseOptions = configuration.baseOptions;
|
|
432
|
+
}
|
|
433
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
434
|
+
const localVarHeaderParameter = {};
|
|
435
|
+
const localVarQueryParameter = {};
|
|
436
|
+
if (sellerSku !== void 0) {
|
|
437
|
+
localVarQueryParameter["sellerSku"] = sellerSku;
|
|
438
|
+
}
|
|
439
|
+
if (marketplaceId !== void 0) {
|
|
440
|
+
localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
441
|
+
}
|
|
442
|
+
if (sellerFulfillmentOrderId !== void 0) {
|
|
443
|
+
localVarQueryParameter["sellerFulfillmentOrderId"] = sellerFulfillmentOrderId;
|
|
444
|
+
}
|
|
445
|
+
if (language !== void 0) {
|
|
446
|
+
localVarQueryParameter["language"] = language;
|
|
447
|
+
}
|
|
448
|
+
localVarHeaderParameter["Accept"] = "application/json,payload";
|
|
449
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
450
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
451
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
452
|
+
return {
|
|
453
|
+
url: toPathString(localVarUrlObj),
|
|
454
|
+
options: localVarRequestOptions
|
|
455
|
+
};
|
|
456
|
+
},
|
|
457
|
+
/**
|
|
458
|
+
* Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
459
|
+
* @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
|
|
460
|
+
* @param {SubmitFulfillmentOrderStatusUpdateRequest} body The identifier assigned to the item by the seller when the fulfillment order was created.
|
|
461
|
+
* @param {*} [options] Override http request option.
|
|
462
|
+
* @throws {RequiredError}
|
|
463
|
+
*/
|
|
464
|
+
submitFulfillmentOrderStatusUpdate: async (sellerFulfillmentOrderId, body, options = {}) => {
|
|
465
|
+
assertParamExists("submitFulfillmentOrderStatusUpdate", "sellerFulfillmentOrderId", sellerFulfillmentOrderId);
|
|
466
|
+
assertParamExists("submitFulfillmentOrderStatusUpdate", "body", body);
|
|
467
|
+
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}/status`.replace("{sellerFulfillmentOrderId}", encodeURIComponent(String(sellerFulfillmentOrderId)));
|
|
468
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
469
|
+
let baseOptions;
|
|
470
|
+
if (configuration) {
|
|
471
|
+
baseOptions = configuration.baseOptions;
|
|
472
|
+
}
|
|
473
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
474
|
+
const localVarHeaderParameter = {};
|
|
475
|
+
const localVarQueryParameter = {};
|
|
476
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
477
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
478
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
479
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
480
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
481
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
482
|
+
return {
|
|
483
|
+
url: toPathString(localVarUrlObj),
|
|
484
|
+
options: localVarRequestOptions
|
|
485
|
+
};
|
|
486
|
+
},
|
|
487
|
+
/**
|
|
488
|
+
* Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
489
|
+
* @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
|
|
490
|
+
* @param {UpdateFulfillmentOrderRequest} body The request body of the `updateFulfillmentOrder` operation.
|
|
491
|
+
* @param {*} [options] Override http request option.
|
|
492
|
+
* @throws {RequiredError}
|
|
493
|
+
*/
|
|
494
|
+
updateFulfillmentOrder: async (sellerFulfillmentOrderId, body, options = {}) => {
|
|
495
|
+
assertParamExists("updateFulfillmentOrder", "sellerFulfillmentOrderId", sellerFulfillmentOrderId);
|
|
496
|
+
assertParamExists("updateFulfillmentOrder", "body", body);
|
|
497
|
+
const localVarPath = `/fba/outbound/2020-07-01/fulfillmentOrders/{sellerFulfillmentOrderId}`.replace("{sellerFulfillmentOrderId}", encodeURIComponent(String(sellerFulfillmentOrderId)));
|
|
498
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
499
|
+
let baseOptions;
|
|
500
|
+
if (configuration) {
|
|
501
|
+
baseOptions = configuration.baseOptions;
|
|
502
|
+
}
|
|
503
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
504
|
+
const localVarHeaderParameter = {};
|
|
505
|
+
const localVarQueryParameter = {};
|
|
506
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
507
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
508
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
509
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
510
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
511
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
512
|
+
return {
|
|
513
|
+
url: toPathString(localVarUrlObj),
|
|
514
|
+
options: localVarRequestOptions
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
var FulfillmentOutboundApiFp = function(configuration) {
|
|
520
|
+
const localVarAxiosParamCreator = FulfillmentOutboundApiAxiosParamCreator(configuration);
|
|
521
|
+
return {
|
|
522
|
+
/**
|
|
523
|
+
* Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
524
|
+
* @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
|
|
525
|
+
* @param {*} [options] Override http request option.
|
|
526
|
+
* @throws {RequiredError}
|
|
527
|
+
*/
|
|
528
|
+
async cancelFulfillmentOrder(sellerFulfillmentOrderId, options) {
|
|
529
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelFulfillmentOrder(sellerFulfillmentOrderId, options);
|
|
530
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
531
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.cancelFulfillmentOrder"]?.[localVarOperationServerIndex]?.url;
|
|
532
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
533
|
+
},
|
|
534
|
+
/**
|
|
535
|
+
* Requests that Amazon ship items from the seller\'s inventory in Amazon\'s fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api)
|
|
536
|
+
* @param {CreateFulfillmentOrderRequest} body CreateFulfillmentOrderRequest parameter
|
|
537
|
+
* @param {*} [options] Override http request option.
|
|
538
|
+
* @throws {RequiredError}
|
|
539
|
+
*/
|
|
540
|
+
async createFulfillmentOrder(body, options) {
|
|
541
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createFulfillmentOrder(body, options);
|
|
542
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
543
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.createFulfillmentOrder"]?.[localVarOperationServerIndex]?.url;
|
|
544
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
545
|
+
},
|
|
546
|
+
/**
|
|
547
|
+
* Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
548
|
+
* @param {string} sellerFulfillmentOrderId An identifier the seller assigns to the fulfillment order at the time it was created. The seller uses their own records to find the correct `sellerFulfillmentOrderId` value based on the buyer\'s request to return items.
|
|
549
|
+
* @param {CreateFulfillmentReturnRequest} body The request body of the `createFulfillmentReturn` operation.
|
|
550
|
+
* @param {*} [options] Override http request option.
|
|
551
|
+
* @throws {RequiredError}
|
|
552
|
+
*/
|
|
553
|
+
async createFulfillmentReturn(sellerFulfillmentOrderId, body, options) {
|
|
554
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createFulfillmentReturn(sellerFulfillmentOrderId, body, options);
|
|
555
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
556
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.createFulfillmentReturn"]?.[localVarOperationServerIndex]?.url;
|
|
557
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
558
|
+
},
|
|
559
|
+
/**
|
|
560
|
+
* Returns delivery options that include an estimated delivery date and offer expiration, based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
561
|
+
* @param {GetDeliveryOffersRequest} body GetDeliveryOffersRequest parameter
|
|
562
|
+
* @param {*} [options] Override http request option.
|
|
563
|
+
* @throws {RequiredError}
|
|
564
|
+
*/
|
|
565
|
+
async deliveryOffers(body, options) {
|
|
566
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deliveryOffers(body, options);
|
|
567
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
568
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.deliveryOffers"]?.[localVarOperationServerIndex]?.url;
|
|
569
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
570
|
+
},
|
|
571
|
+
/**
|
|
572
|
+
* Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
573
|
+
* @param {string} marketplaceId The marketplace for which to return a list of the inventory that is eligible for the specified feature.
|
|
574
|
+
* @param {string} featureName The name of the feature for which to return a list of eligible inventory.
|
|
575
|
+
* @param {string} [nextToken] A string token returned in the response to your previous request that is used to return the next response page. A value of `null` will return the first page.
|
|
576
|
+
* @param {string} [queryStartDate] A date that you can use to select inventory that has been updated since a specified date. An update is defined as any change in feature-enabled inventory availability. The date must be in the format `yyyy-MM-ddTHH:mm:ss.sssZ`
|
|
577
|
+
* @param {*} [options] Override http request option.
|
|
578
|
+
* @throws {RequiredError}
|
|
579
|
+
*/
|
|
580
|
+
async getFeatureInventory(marketplaceId, featureName, nextToken, queryStartDate, options) {
|
|
581
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatureInventory(marketplaceId, featureName, nextToken, queryStartDate, options);
|
|
582
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
583
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.getFeatureInventory"]?.[localVarOperationServerIndex]?.url;
|
|
584
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
585
|
+
},
|
|
586
|
+
/**
|
|
587
|
+
* Returns the number of items with the `sellerSku` you specify that can have orders fulfilled using the specified feature. Note that if the `sellerSku` isn\'t eligible, the response will contain an empty `skuInfo` object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
588
|
+
* @param {string} marketplaceId The marketplace for which to return the count.
|
|
589
|
+
* @param {string} featureName The name of the feature.
|
|
590
|
+
* @param {string} sellerSku Used to identify an item in the given marketplace. `sellerSku` is qualified by the seller\'s `sellerId`, which is included with every operation that you submit.
|
|
591
|
+
* @param {*} [options] Override http request option.
|
|
592
|
+
* @throws {RequiredError}
|
|
593
|
+
*/
|
|
594
|
+
async getFeatureSKU(marketplaceId, featureName, sellerSku, options) {
|
|
595
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatureSKU(marketplaceId, featureName, sellerSku, options);
|
|
596
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
597
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.getFeatureSKU"]?.[localVarOperationServerIndex]?.url;
|
|
598
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
599
|
+
},
|
|
600
|
+
/**
|
|
601
|
+
* Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
602
|
+
* @param {string} marketplaceId The marketplace for which to return the list of features.
|
|
603
|
+
* @param {*} [options] Override http request option.
|
|
604
|
+
* @throws {RequiredError}
|
|
605
|
+
*/
|
|
606
|
+
async getFeatures(marketplaceId, options) {
|
|
607
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatures(marketplaceId, options);
|
|
608
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
609
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.getFeatures"]?.[localVarOperationServerIndex]?.url;
|
|
610
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
611
|
+
},
|
|
612
|
+
/**
|
|
613
|
+
* Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
614
|
+
* @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
|
|
615
|
+
* @param {*} [options] Override http request option.
|
|
616
|
+
* @throws {RequiredError}
|
|
617
|
+
*/
|
|
618
|
+
async getFulfillmentOrder(sellerFulfillmentOrderId, options) {
|
|
619
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFulfillmentOrder(sellerFulfillmentOrderId, options);
|
|
620
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
621
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.getFulfillmentOrder"]?.[localVarOperationServerIndex]?.url;
|
|
622
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
623
|
+
},
|
|
624
|
+
/**
|
|
625
|
+
* Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
626
|
+
* @param {GetFulfillmentPreviewRequest} body GetFulfillmentPreviewRequest parameter
|
|
627
|
+
* @param {*} [options] Override http request option.
|
|
628
|
+
* @throws {RequiredError}
|
|
629
|
+
*/
|
|
630
|
+
async getFulfillmentPreview(body, options) {
|
|
631
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFulfillmentPreview(body, options);
|
|
632
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
633
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.getFulfillmentPreview"]?.[localVarOperationServerIndex]?.url;
|
|
634
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
635
|
+
},
|
|
636
|
+
/**
|
|
637
|
+
* Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
638
|
+
* @param {number} packageNumber The unencrypted package identifier. You can obtain this value from the `getFulfillmentOrder` operation.
|
|
639
|
+
* @param {*} [options] Override http request option.
|
|
640
|
+
* @throws {RequiredError}
|
|
641
|
+
*/
|
|
642
|
+
async getPackageTrackingDetails(packageNumber, options) {
|
|
643
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPackageTrackingDetails(packageNumber, options);
|
|
644
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
645
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.getPackageTrackingDetails"]?.[localVarOperationServerIndex]?.url;
|
|
646
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
647
|
+
},
|
|
648
|
+
/**
|
|
649
|
+
* Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the `nextToken` parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api)
|
|
650
|
+
* @param {string} [queryStartDate] A date used to select fulfillment orders that were last updated after (or at) a specified time. An update is defined as any change in fulfillment order status, including the creation of a new fulfillment order.
|
|
651
|
+
* @param {string} [nextToken] A string token returned in the response to your previous request.
|
|
652
|
+
* @param {*} [options] Override http request option.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
*/
|
|
655
|
+
async listAllFulfillmentOrders(queryStartDate, nextToken, options) {
|
|
656
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllFulfillmentOrders(queryStartDate, nextToken, options);
|
|
657
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
658
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.listAllFulfillmentOrders"]?.[localVarOperationServerIndex]?.url;
|
|
659
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
660
|
+
},
|
|
661
|
+
/**
|
|
662
|
+
* Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
663
|
+
* @param {string} sellerSku The seller SKU for which return reason codes are required.
|
|
664
|
+
* @param {string} [marketplaceId] The marketplace for which the seller wants return reason codes.
|
|
665
|
+
* @param {string} [sellerFulfillmentOrderId] The identifier assigned to the item by the seller when the fulfillment order was created. The service uses this value to determine the marketplace for which the seller wants return reason codes.
|
|
666
|
+
* @param {string} [language] The language that the `TranslatedDescription` property of the `ReasonCodeDetails` response object should be translated into.
|
|
667
|
+
* @param {*} [options] Override http request option.
|
|
668
|
+
* @throws {RequiredError}
|
|
669
|
+
*/
|
|
670
|
+
async listReturnReasonCodes(sellerSku, marketplaceId, sellerFulfillmentOrderId, language, options) {
|
|
671
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listReturnReasonCodes(sellerSku, marketplaceId, sellerFulfillmentOrderId, language, options);
|
|
672
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
673
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.listReturnReasonCodes"]?.[localVarOperationServerIndex]?.url;
|
|
674
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
675
|
+
},
|
|
676
|
+
/**
|
|
677
|
+
* Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
678
|
+
* @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
|
|
679
|
+
* @param {SubmitFulfillmentOrderStatusUpdateRequest} body The identifier assigned to the item by the seller when the fulfillment order was created.
|
|
680
|
+
* @param {*} [options] Override http request option.
|
|
681
|
+
* @throws {RequiredError}
|
|
682
|
+
*/
|
|
683
|
+
async submitFulfillmentOrderStatusUpdate(sellerFulfillmentOrderId, body, options) {
|
|
684
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.submitFulfillmentOrderStatusUpdate(sellerFulfillmentOrderId, body, options);
|
|
685
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
686
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.submitFulfillmentOrderStatusUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
687
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
688
|
+
},
|
|
689
|
+
/**
|
|
690
|
+
* Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
691
|
+
* @param {string} sellerFulfillmentOrderId The identifier assigned to the item by the seller when the fulfillment order was created.
|
|
692
|
+
* @param {UpdateFulfillmentOrderRequest} body The request body of the `updateFulfillmentOrder` operation.
|
|
693
|
+
* @param {*} [options] Override http request option.
|
|
694
|
+
* @throws {RequiredError}
|
|
695
|
+
*/
|
|
696
|
+
async updateFulfillmentOrder(sellerFulfillmentOrderId, body, options) {
|
|
697
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateFulfillmentOrder(sellerFulfillmentOrderId, body, options);
|
|
698
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
699
|
+
const localVarOperationServerBasePath = operationServerMap["FulfillmentOutboundApi.updateFulfillmentOrder"]?.[localVarOperationServerIndex]?.url;
|
|
700
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
701
|
+
}
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
var FulfillmentOutboundApiFactory = function(configuration, basePath, axios) {
|
|
705
|
+
const localVarFp = FulfillmentOutboundApiFp(configuration);
|
|
706
|
+
return {
|
|
707
|
+
/**
|
|
708
|
+
* Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
709
|
+
* @param {FulfillmentOutboundApiCancelFulfillmentOrderRequest} requestParameters Request parameters.
|
|
710
|
+
* @param {*} [options] Override http request option.
|
|
711
|
+
* @throws {RequiredError}
|
|
712
|
+
*/
|
|
713
|
+
cancelFulfillmentOrder(requestParameters, options) {
|
|
714
|
+
return localVarFp.cancelFulfillmentOrder(requestParameters.sellerFulfillmentOrderId, options).then((request) => request(axios, basePath));
|
|
715
|
+
},
|
|
716
|
+
/**
|
|
717
|
+
* Requests that Amazon ship items from the seller\'s inventory in Amazon\'s fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api)
|
|
718
|
+
* @param {FulfillmentOutboundApiCreateFulfillmentOrderRequest} requestParameters Request parameters.
|
|
719
|
+
* @param {*} [options] Override http request option.
|
|
720
|
+
* @throws {RequiredError}
|
|
721
|
+
*/
|
|
722
|
+
createFulfillmentOrder(requestParameters, options) {
|
|
723
|
+
return localVarFp.createFulfillmentOrder(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
724
|
+
},
|
|
725
|
+
/**
|
|
726
|
+
* Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
727
|
+
* @param {FulfillmentOutboundApiCreateFulfillmentReturnRequest} requestParameters Request parameters.
|
|
728
|
+
* @param {*} [options] Override http request option.
|
|
729
|
+
* @throws {RequiredError}
|
|
730
|
+
*/
|
|
731
|
+
createFulfillmentReturn(requestParameters, options) {
|
|
732
|
+
return localVarFp.createFulfillmentReturn(requestParameters.sellerFulfillmentOrderId, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
733
|
+
},
|
|
734
|
+
/**
|
|
735
|
+
* Returns delivery options that include an estimated delivery date and offer expiration, based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
736
|
+
* @param {FulfillmentOutboundApiDeliveryOffersRequest} requestParameters Request parameters.
|
|
737
|
+
* @param {*} [options] Override http request option.
|
|
738
|
+
* @throws {RequiredError}
|
|
739
|
+
*/
|
|
740
|
+
deliveryOffers(requestParameters, options) {
|
|
741
|
+
return localVarFp.deliveryOffers(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
742
|
+
},
|
|
743
|
+
/**
|
|
744
|
+
* Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
745
|
+
* @param {FulfillmentOutboundApiGetFeatureInventoryRequest} requestParameters Request parameters.
|
|
746
|
+
* @param {*} [options] Override http request option.
|
|
747
|
+
* @throws {RequiredError}
|
|
748
|
+
*/
|
|
749
|
+
getFeatureInventory(requestParameters, options) {
|
|
750
|
+
return localVarFp.getFeatureInventory(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.nextToken, requestParameters.queryStartDate, options).then((request) => request(axios, basePath));
|
|
751
|
+
},
|
|
752
|
+
/**
|
|
753
|
+
* Returns the number of items with the `sellerSku` you specify that can have orders fulfilled using the specified feature. Note that if the `sellerSku` isn\'t eligible, the response will contain an empty `skuInfo` object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
754
|
+
* @param {FulfillmentOutboundApiGetFeatureSKURequest} requestParameters Request parameters.
|
|
755
|
+
* @param {*} [options] Override http request option.
|
|
756
|
+
* @throws {RequiredError}
|
|
757
|
+
*/
|
|
758
|
+
getFeatureSKU(requestParameters, options) {
|
|
759
|
+
return localVarFp.getFeatureSKU(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.sellerSku, options).then((request) => request(axios, basePath));
|
|
760
|
+
},
|
|
761
|
+
/**
|
|
762
|
+
* Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
763
|
+
* @param {FulfillmentOutboundApiGetFeaturesRequest} requestParameters Request parameters.
|
|
764
|
+
* @param {*} [options] Override http request option.
|
|
765
|
+
* @throws {RequiredError}
|
|
766
|
+
*/
|
|
767
|
+
getFeatures(requestParameters, options) {
|
|
768
|
+
return localVarFp.getFeatures(requestParameters.marketplaceId, options).then((request) => request(axios, basePath));
|
|
769
|
+
},
|
|
770
|
+
/**
|
|
771
|
+
* Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
772
|
+
* @param {FulfillmentOutboundApiGetFulfillmentOrderRequest} requestParameters Request parameters.
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
*/
|
|
776
|
+
getFulfillmentOrder(requestParameters, options) {
|
|
777
|
+
return localVarFp.getFulfillmentOrder(requestParameters.sellerFulfillmentOrderId, options).then((request) => request(axios, basePath));
|
|
778
|
+
},
|
|
779
|
+
/**
|
|
780
|
+
* Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
781
|
+
* @param {FulfillmentOutboundApiGetFulfillmentPreviewRequest} requestParameters Request parameters.
|
|
782
|
+
* @param {*} [options] Override http request option.
|
|
783
|
+
* @throws {RequiredError}
|
|
784
|
+
*/
|
|
785
|
+
getFulfillmentPreview(requestParameters, options) {
|
|
786
|
+
return localVarFp.getFulfillmentPreview(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
787
|
+
},
|
|
788
|
+
/**
|
|
789
|
+
* Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
790
|
+
* @param {FulfillmentOutboundApiGetPackageTrackingDetailsRequest} requestParameters Request parameters.
|
|
791
|
+
* @param {*} [options] Override http request option.
|
|
792
|
+
* @throws {RequiredError}
|
|
793
|
+
*/
|
|
794
|
+
getPackageTrackingDetails(requestParameters, options) {
|
|
795
|
+
return localVarFp.getPackageTrackingDetails(requestParameters.packageNumber, options).then((request) => request(axios, basePath));
|
|
796
|
+
},
|
|
797
|
+
/**
|
|
798
|
+
* Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the `nextToken` parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api)
|
|
799
|
+
* @param {FulfillmentOutboundApiListAllFulfillmentOrdersRequest} requestParameters Request parameters.
|
|
800
|
+
* @param {*} [options] Override http request option.
|
|
801
|
+
* @throws {RequiredError}
|
|
802
|
+
*/
|
|
803
|
+
listAllFulfillmentOrders(requestParameters = {}, options) {
|
|
804
|
+
return localVarFp.listAllFulfillmentOrders(requestParameters.queryStartDate, requestParameters.nextToken, options).then((request) => request(axios, basePath));
|
|
805
|
+
},
|
|
806
|
+
/**
|
|
807
|
+
* Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
808
|
+
* @param {FulfillmentOutboundApiListReturnReasonCodesRequest} requestParameters Request parameters.
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
*/
|
|
812
|
+
listReturnReasonCodes(requestParameters, options) {
|
|
813
|
+
return localVarFp.listReturnReasonCodes(requestParameters.sellerSku, requestParameters.marketplaceId, requestParameters.sellerFulfillmentOrderId, requestParameters.language, options).then((request) => request(axios, basePath));
|
|
814
|
+
},
|
|
815
|
+
/**
|
|
816
|
+
* Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
817
|
+
* @param {FulfillmentOutboundApiSubmitFulfillmentOrderStatusUpdateRequest} requestParameters Request parameters.
|
|
818
|
+
* @param {*} [options] Override http request option.
|
|
819
|
+
* @throws {RequiredError}
|
|
820
|
+
*/
|
|
821
|
+
submitFulfillmentOrderStatusUpdate(requestParameters, options) {
|
|
822
|
+
return localVarFp.submitFulfillmentOrderStatusUpdate(requestParameters.sellerFulfillmentOrderId, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
823
|
+
},
|
|
824
|
+
/**
|
|
825
|
+
* Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
826
|
+
* @param {FulfillmentOutboundApiUpdateFulfillmentOrderRequest} requestParameters Request parameters.
|
|
827
|
+
* @param {*} [options] Override http request option.
|
|
828
|
+
* @throws {RequiredError}
|
|
829
|
+
*/
|
|
830
|
+
updateFulfillmentOrder(requestParameters, options) {
|
|
831
|
+
return localVarFp.updateFulfillmentOrder(requestParameters.sellerFulfillmentOrderId, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
832
|
+
}
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
var FulfillmentOutboundApi = class extends BaseAPI {
|
|
836
|
+
/**
|
|
837
|
+
* Requests that Amazon stop attempting to fulfill the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
838
|
+
* @param {FulfillmentOutboundApiCancelFulfillmentOrderRequest} requestParameters Request parameters.
|
|
839
|
+
* @param {*} [options] Override http request option.
|
|
840
|
+
* @throws {RequiredError}
|
|
841
|
+
*/
|
|
842
|
+
cancelFulfillmentOrder(requestParameters, options) {
|
|
843
|
+
return FulfillmentOutboundApiFp(this.configuration).cancelFulfillmentOrder(requestParameters.sellerFulfillmentOrderId, options).then((request) => request(this.axios, this.basePath));
|
|
844
|
+
}
|
|
845
|
+
/**
|
|
846
|
+
* Requests that Amazon ship items from the seller\'s inventory in Amazon\'s fulfillment network to a destination address. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api)
|
|
847
|
+
* @param {FulfillmentOutboundApiCreateFulfillmentOrderRequest} requestParameters Request parameters.
|
|
848
|
+
* @param {*} [options] Override http request option.
|
|
849
|
+
* @throws {RequiredError}
|
|
850
|
+
*/
|
|
851
|
+
createFulfillmentOrder(requestParameters, options) {
|
|
852
|
+
return FulfillmentOutboundApiFp(this.configuration).createFulfillmentOrder(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* Creates a fulfillment return. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
856
|
+
* @param {FulfillmentOutboundApiCreateFulfillmentReturnRequest} requestParameters Request parameters.
|
|
857
|
+
* @param {*} [options] Override http request option.
|
|
858
|
+
* @throws {RequiredError}
|
|
859
|
+
*/
|
|
860
|
+
createFulfillmentReturn(requestParameters, options) {
|
|
861
|
+
return FulfillmentOutboundApiFp(this.configuration).createFulfillmentReturn(requestParameters.sellerFulfillmentOrderId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* Returns delivery options that include an estimated delivery date and offer expiration, based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
865
|
+
* @param {FulfillmentOutboundApiDeliveryOffersRequest} requestParameters Request parameters.
|
|
866
|
+
* @param {*} [options] Override http request option.
|
|
867
|
+
* @throws {RequiredError}
|
|
868
|
+
*/
|
|
869
|
+
deliveryOffers(requestParameters, options) {
|
|
870
|
+
return FulfillmentOutboundApiFp(this.configuration).deliveryOffers(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* Returns a list of inventory items that are eligible for the fulfillment feature you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
874
|
+
* @param {FulfillmentOutboundApiGetFeatureInventoryRequest} requestParameters Request parameters.
|
|
875
|
+
* @param {*} [options] Override http request option.
|
|
876
|
+
* @throws {RequiredError}
|
|
877
|
+
*/
|
|
878
|
+
getFeatureInventory(requestParameters, options) {
|
|
879
|
+
return FulfillmentOutboundApiFp(this.configuration).getFeatureInventory(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.nextToken, requestParameters.queryStartDate, options).then((request) => request(this.axios, this.basePath));
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* Returns the number of items with the `sellerSku` you specify that can have orders fulfilled using the specified feature. Note that if the `sellerSku` isn\'t eligible, the response will contain an empty `skuInfo` object. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
883
|
+
* @param {FulfillmentOutboundApiGetFeatureSKURequest} requestParameters Request parameters.
|
|
884
|
+
* @param {*} [options] Override http request option.
|
|
885
|
+
* @throws {RequiredError}
|
|
886
|
+
*/
|
|
887
|
+
getFeatureSKU(requestParameters, options) {
|
|
888
|
+
return FulfillmentOutboundApiFp(this.configuration).getFeatureSKU(requestParameters.marketplaceId, requestParameters.featureName, requestParameters.sellerSku, options).then((request) => request(this.axios, this.basePath));
|
|
889
|
+
}
|
|
890
|
+
/**
|
|
891
|
+
* Returns a list of features available for Multi-Channel Fulfillment orders in the marketplace you specify, and whether the seller for which you made the call is enrolled for each feature. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
892
|
+
* @param {FulfillmentOutboundApiGetFeaturesRequest} requestParameters Request parameters.
|
|
893
|
+
* @param {*} [options] Override http request option.
|
|
894
|
+
* @throws {RequiredError}
|
|
895
|
+
*/
|
|
896
|
+
getFeatures(requestParameters, options) {
|
|
897
|
+
return FulfillmentOutboundApiFp(this.configuration).getFeatures(requestParameters.marketplaceId, options).then((request) => request(this.axios, this.basePath));
|
|
898
|
+
}
|
|
899
|
+
/**
|
|
900
|
+
* Returns the fulfillment order indicated by the specified order identifier. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
901
|
+
* @param {FulfillmentOutboundApiGetFulfillmentOrderRequest} requestParameters Request parameters.
|
|
902
|
+
* @param {*} [options] Override http request option.
|
|
903
|
+
* @throws {RequiredError}
|
|
904
|
+
*/
|
|
905
|
+
getFulfillmentOrder(requestParameters, options) {
|
|
906
|
+
return FulfillmentOutboundApiFp(this.configuration).getFulfillmentOrder(requestParameters.sellerFulfillmentOrderId, options).then((request) => request(this.axios, this.basePath));
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* Returns a list of fulfillment order previews based on shipping criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
910
|
+
* @param {FulfillmentOutboundApiGetFulfillmentPreviewRequest} requestParameters Request parameters.
|
|
911
|
+
* @param {*} [options] Override http request option.
|
|
912
|
+
* @throws {RequiredError}
|
|
913
|
+
*/
|
|
914
|
+
getFulfillmentPreview(requestParameters, options) {
|
|
915
|
+
return FulfillmentOutboundApiFp(this.configuration).getFulfillmentPreview(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* Returns delivery tracking information for a package in an outbound shipment for a Multi-Channel Fulfillment order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
919
|
+
* @param {FulfillmentOutboundApiGetPackageTrackingDetailsRequest} requestParameters Request parameters.
|
|
920
|
+
* @param {*} [options] Override http request option.
|
|
921
|
+
* @throws {RequiredError}
|
|
922
|
+
*/
|
|
923
|
+
getPackageTrackingDetails(requestParameters, options) {
|
|
924
|
+
return FulfillmentOutboundApiFp(this.configuration).getPackageTrackingDetails(requestParameters.packageNumber, options).then((request) => request(this.axios, this.basePath));
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* Returns a list of fulfillment orders fulfilled after (or at) a specified date-time, or indicated by the `nextToken` parameter. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api)
|
|
928
|
+
* @param {FulfillmentOutboundApiListAllFulfillmentOrdersRequest} requestParameters Request parameters.
|
|
929
|
+
* @param {*} [options] Override http request option.
|
|
930
|
+
* @throws {RequiredError}
|
|
931
|
+
*/
|
|
932
|
+
listAllFulfillmentOrders(requestParameters = {}, options) {
|
|
933
|
+
return FulfillmentOutboundApiFp(this.configuration).listAllFulfillmentOrders(requestParameters.queryStartDate, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
934
|
+
}
|
|
935
|
+
/**
|
|
936
|
+
* Returns a list of return reason codes for a seller SKU in a given marketplace. The parameters for this operation may contain special characters that require URL encoding. To avoid errors with SKUs when encoding URLs, refer to [URL Encoding](https://developer-docs.amazon.com/sp-api/docs/url-encoding). **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
937
|
+
* @param {FulfillmentOutboundApiListReturnReasonCodesRequest} requestParameters Request parameters.
|
|
938
|
+
* @param {*} [options] Override http request option.
|
|
939
|
+
* @throws {RequiredError}
|
|
940
|
+
*/
|
|
941
|
+
listReturnReasonCodes(requestParameters, options) {
|
|
942
|
+
return FulfillmentOutboundApiFp(this.configuration).listReturnReasonCodes(requestParameters.sellerSku, requestParameters.marketplaceId, requestParameters.sellerFulfillmentOrderId, requestParameters.language, options).then((request) => request(this.axios, this.basePath));
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
* Requests that Amazon update the status of an order in the sandbox testing environment. This is a sandbox-only operation and must be directed to a sandbox endpoint. Refer to [Fulfillment Outbound Dynamic Sandbox Guide](https://developer-docs.amazon.com/sp-api/docs/fulfillment-outbound-dynamic-sandbox-guide) and [Selling Partner API sandbox](https://developer-docs.amazon.com/sp-api/docs/the-selling-partner-api-sandbox) for more information.
|
|
946
|
+
* @param {FulfillmentOutboundApiSubmitFulfillmentOrderStatusUpdateRequest} requestParameters Request parameters.
|
|
947
|
+
* @param {*} [options] Override http request option.
|
|
948
|
+
* @throws {RequiredError}
|
|
949
|
+
*/
|
|
950
|
+
submitFulfillmentOrderStatusUpdate(requestParameters, options) {
|
|
951
|
+
return FulfillmentOutboundApiFp(this.configuration).submitFulfillmentOrderStatusUpdate(requestParameters.sellerFulfillmentOrderId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Updates and/or requests shipment for a fulfillment order with an order hold on it. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 30 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
955
|
+
* @param {FulfillmentOutboundApiUpdateFulfillmentOrderRequest} requestParameters Request parameters.
|
|
956
|
+
* @param {*} [options] Override http request option.
|
|
957
|
+
* @throws {RequiredError}
|
|
958
|
+
*/
|
|
959
|
+
updateFulfillmentOrder(requestParameters, options) {
|
|
960
|
+
return FulfillmentOutboundApiFp(this.configuration).updateFulfillmentOrder(requestParameters.sellerFulfillmentOrderId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
961
|
+
}
|
|
962
|
+
};
|
|
963
|
+
|
|
964
|
+
// src/api-model/configuration.ts
|
|
965
|
+
var Configuration = class {
|
|
966
|
+
/**
|
|
967
|
+
* parameter for apiKey security
|
|
968
|
+
* @param name security name
|
|
969
|
+
*/
|
|
970
|
+
apiKey;
|
|
971
|
+
/**
|
|
972
|
+
* parameter for basic security
|
|
973
|
+
*/
|
|
974
|
+
username;
|
|
975
|
+
/**
|
|
976
|
+
* parameter for basic security
|
|
977
|
+
*/
|
|
978
|
+
password;
|
|
979
|
+
/**
|
|
980
|
+
* parameter for oauth2 security
|
|
981
|
+
* @param name security name
|
|
982
|
+
* @param scopes oauth2 scope
|
|
983
|
+
*/
|
|
984
|
+
accessToken;
|
|
985
|
+
/**
|
|
986
|
+
* parameter for aws4 signature security
|
|
987
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
988
|
+
* @param {string} options.region - aws region
|
|
989
|
+
* @param {string} options.service - name of the service.
|
|
990
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
991
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
992
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
993
|
+
* @memberof Configuration
|
|
994
|
+
*/
|
|
995
|
+
awsv4;
|
|
996
|
+
/**
|
|
997
|
+
* override base path
|
|
998
|
+
*/
|
|
999
|
+
basePath;
|
|
1000
|
+
/**
|
|
1001
|
+
* override server index
|
|
1002
|
+
*/
|
|
1003
|
+
serverIndex;
|
|
1004
|
+
/**
|
|
1005
|
+
* base options for axios calls
|
|
1006
|
+
*/
|
|
1007
|
+
baseOptions;
|
|
1008
|
+
/**
|
|
1009
|
+
* The FormData constructor that will be used to create multipart form data
|
|
1010
|
+
* requests. You can inject this here so that execution environments that
|
|
1011
|
+
* do not support the FormData class can still run the generated client.
|
|
1012
|
+
*
|
|
1013
|
+
* @type {new () => FormData}
|
|
1014
|
+
*/
|
|
1015
|
+
formDataCtor;
|
|
1016
|
+
constructor(param = {}) {
|
|
1017
|
+
this.apiKey = param.apiKey;
|
|
1018
|
+
this.username = param.username;
|
|
1019
|
+
this.password = param.password;
|
|
1020
|
+
this.accessToken = param.accessToken;
|
|
1021
|
+
this.awsv4 = param.awsv4;
|
|
1022
|
+
this.basePath = param.basePath;
|
|
1023
|
+
this.serverIndex = param.serverIndex;
|
|
1024
|
+
this.baseOptions = {
|
|
1025
|
+
...param.baseOptions,
|
|
1026
|
+
headers: {
|
|
1027
|
+
...param.baseOptions?.headers
|
|
1028
|
+
}
|
|
1029
|
+
};
|
|
1030
|
+
this.formDataCtor = param.formDataCtor;
|
|
1031
|
+
}
|
|
1032
|
+
/**
|
|
1033
|
+
* Check if the given MIME is a JSON MIME.
|
|
1034
|
+
* JSON MIME examples:
|
|
1035
|
+
* application/json
|
|
1036
|
+
* application/json; charset=UTF8
|
|
1037
|
+
* APPLICATION/JSON
|
|
1038
|
+
* application/vnd.company+json
|
|
1039
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
1040
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
1041
|
+
*/
|
|
1042
|
+
isJsonMime(mime) {
|
|
1043
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
1044
|
+
return mime !== null && jsonMime.test(mime);
|
|
1045
|
+
}
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
// src/api-model/models/additional-location-info.ts
|
|
1049
|
+
var AdditionalLocationInfo = {
|
|
1050
|
+
AsInstructed: "AS_INSTRUCTED",
|
|
1051
|
+
Carport: "CARPORT",
|
|
1052
|
+
CustomerPickup: "CUSTOMER_PICKUP",
|
|
1053
|
+
Deck: "DECK",
|
|
1054
|
+
DoorPerson: "DOOR_PERSON",
|
|
1055
|
+
FrontDesk: "FRONT_DESK",
|
|
1056
|
+
FrontDoor: "FRONT_DOOR",
|
|
1057
|
+
Garage: "GARAGE",
|
|
1058
|
+
Guard: "GUARD",
|
|
1059
|
+
MailRoom: "MAIL_ROOM",
|
|
1060
|
+
MailSlot: "MAIL_SLOT",
|
|
1061
|
+
Mailbox: "MAILBOX",
|
|
1062
|
+
McBoy: "MC_BOY",
|
|
1063
|
+
McGirl: "MC_GIRL",
|
|
1064
|
+
McMan: "MC_MAN",
|
|
1065
|
+
McWoman: "MC_WOMAN",
|
|
1066
|
+
Neighbor: "NEIGHBOR",
|
|
1067
|
+
Office: "OFFICE",
|
|
1068
|
+
Outbuilding: "OUTBUILDING",
|
|
1069
|
+
Patio: "PATIO",
|
|
1070
|
+
Porch: "PORCH",
|
|
1071
|
+
RearDoor: "REAR_DOOR",
|
|
1072
|
+
Receptionist: "RECEPTIONIST",
|
|
1073
|
+
Receiver: "RECEIVER",
|
|
1074
|
+
SecureLocation: "SECURE_LOCATION",
|
|
1075
|
+
SideDoor: "SIDE_DOOR"
|
|
1076
|
+
};
|
|
1077
|
+
|
|
1078
|
+
// src/api-model/models/amount.ts
|
|
1079
|
+
var AmountUnitOfMeasureEnum = {
|
|
1080
|
+
Eaches: "Eaches"
|
|
1081
|
+
};
|
|
1082
|
+
|
|
1083
|
+
// src/api-model/models/current-status.ts
|
|
1084
|
+
var CurrentStatus = {
|
|
1085
|
+
InTransit: "IN_TRANSIT",
|
|
1086
|
+
Delivered: "DELIVERED",
|
|
1087
|
+
Returning: "RETURNING",
|
|
1088
|
+
Returned: "RETURNED",
|
|
1089
|
+
Undeliverable: "UNDELIVERABLE",
|
|
1090
|
+
Delayed: "DELAYED",
|
|
1091
|
+
AvailableForPickup: "AVAILABLE_FOR_PICKUP",
|
|
1092
|
+
CustomerAction: "CUSTOMER_ACTION",
|
|
1093
|
+
Unknown: "UNKNOWN",
|
|
1094
|
+
OutForDelivery: "OUT_FOR_DELIVERY",
|
|
1095
|
+
DeliveryAttempted: "DELIVERY_ATTEMPTED",
|
|
1096
|
+
PickupSuccessful: "PICKUP_SUCCESSFUL",
|
|
1097
|
+
PickupCancelled: "PICKUP_CANCELLED",
|
|
1098
|
+
PickupAttempted: "PICKUP_ATTEMPTED",
|
|
1099
|
+
PickupScheduled: "PICKUP_SCHEDULED",
|
|
1100
|
+
ReturnRequestAccepted: "RETURN_REQUEST_ACCEPTED",
|
|
1101
|
+
RefundIssued: "REFUND_ISSUED",
|
|
1102
|
+
ReturnReceivedInFc: "RETURN_RECEIVED_IN_FC"
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
// src/api-model/models/drop-off-location.ts
|
|
1106
|
+
var DropOffLocationTypeEnum = {
|
|
1107
|
+
FrontDoor: "FRONT_DOOR",
|
|
1108
|
+
DeliveryBox: "DELIVERY_BOX",
|
|
1109
|
+
GasMeterBox: "GAS_METER_BOX",
|
|
1110
|
+
BicycleBasket: "BICYCLE_BASKET",
|
|
1111
|
+
Garage: "GARAGE",
|
|
1112
|
+
Receptionist: "RECEPTIONIST",
|
|
1113
|
+
FallbackNeighborDelivery: "FALLBACK_NEIGHBOR_DELIVERY",
|
|
1114
|
+
DoNotLeaveUnattended: "DO_NOT_LEAVE_UNATTENDED"
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1117
|
+
// src/api-model/models/event-code.ts
|
|
1118
|
+
var EventCode = {
|
|
1119
|
+
Event101: "EVENT_101",
|
|
1120
|
+
Event102: "EVENT_102",
|
|
1121
|
+
Event201: "EVENT_201",
|
|
1122
|
+
Event202: "EVENT_202",
|
|
1123
|
+
Event203: "EVENT_203",
|
|
1124
|
+
Event204: "EVENT_204",
|
|
1125
|
+
Event205: "EVENT_205",
|
|
1126
|
+
Event206: "EVENT_206",
|
|
1127
|
+
Event301: "EVENT_301",
|
|
1128
|
+
Event302: "EVENT_302",
|
|
1129
|
+
Event304: "EVENT_304",
|
|
1130
|
+
Event306: "EVENT_306",
|
|
1131
|
+
Event307: "EVENT_307",
|
|
1132
|
+
Event308: "EVENT_308",
|
|
1133
|
+
Event309: "EVENT_309",
|
|
1134
|
+
Event401: "EVENT_401",
|
|
1135
|
+
Event402: "EVENT_402",
|
|
1136
|
+
Event403: "EVENT_403",
|
|
1137
|
+
Event404: "EVENT_404",
|
|
1138
|
+
Event405: "EVENT_405",
|
|
1139
|
+
Event406: "EVENT_406",
|
|
1140
|
+
Event407: "EVENT_407",
|
|
1141
|
+
Event408: "EVENT_408",
|
|
1142
|
+
Event409: "EVENT_409",
|
|
1143
|
+
Event411: "EVENT_411",
|
|
1144
|
+
Event412: "EVENT_412",
|
|
1145
|
+
Event413: "EVENT_413",
|
|
1146
|
+
Event414: "EVENT_414",
|
|
1147
|
+
Event415: "EVENT_415",
|
|
1148
|
+
Event416: "EVENT_416",
|
|
1149
|
+
Event417: "EVENT_417",
|
|
1150
|
+
Event418: "EVENT_418",
|
|
1151
|
+
Event419: "EVENT_419",
|
|
1152
|
+
Event801: "EVENT_801",
|
|
1153
|
+
Event804: "EVENT_804"
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1156
|
+
// src/api-model/models/feature-settings.ts
|
|
1157
|
+
var FeatureSettingsFeatureFulfillmentPolicyEnum = {
|
|
1158
|
+
Required: "Required",
|
|
1159
|
+
NotRequired: "NotRequired"
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
// src/api-model/models/fee.ts
|
|
1163
|
+
var FeeNameEnum = {
|
|
1164
|
+
FbaPerUnitFulfillmentFee: "FBAPerUnitFulfillmentFee",
|
|
1165
|
+
FbaPerOrderFulfillmentFee: "FBAPerOrderFulfillmentFee",
|
|
1166
|
+
FbaTransportationFee: "FBATransportationFee",
|
|
1167
|
+
FbaFulfillmentCodFee: "FBAFulfillmentCODFee"
|
|
1168
|
+
};
|
|
1169
|
+
|
|
1170
|
+
// src/api-model/models/fulfillment-action.ts
|
|
1171
|
+
var FulfillmentAction = {
|
|
1172
|
+
Ship: "Ship",
|
|
1173
|
+
Hold: "Hold"
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
// src/api-model/models/fulfillment-order-status.ts
|
|
1177
|
+
var FulfillmentOrderStatus = {
|
|
1178
|
+
New: "New",
|
|
1179
|
+
Received: "Received",
|
|
1180
|
+
Planning: "Planning",
|
|
1181
|
+
Processing: "Processing",
|
|
1182
|
+
Cancelled: "Cancelled",
|
|
1183
|
+
Complete: "Complete",
|
|
1184
|
+
CompletePartialled: "CompletePartialled",
|
|
1185
|
+
Unfulfillable: "Unfulfillable",
|
|
1186
|
+
Invalid: "Invalid"
|
|
1187
|
+
};
|
|
1188
|
+
|
|
1189
|
+
// src/api-model/models/fulfillment-policy.ts
|
|
1190
|
+
var FulfillmentPolicy = {
|
|
1191
|
+
FillOrKill: "FillOrKill",
|
|
1192
|
+
FillAll: "FillAll",
|
|
1193
|
+
FillAllAvailable: "FillAllAvailable"
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
// src/api-model/models/fulfillment-preview-item.ts
|
|
1197
|
+
var FulfillmentPreviewItemShippingWeightCalculationMethodEnum = {
|
|
1198
|
+
Package: "Package",
|
|
1199
|
+
Dimensional: "Dimensional"
|
|
1200
|
+
};
|
|
1201
|
+
|
|
1202
|
+
// src/api-model/models/fulfillment-return-item-status.ts
|
|
1203
|
+
var FulfillmentReturnItemStatus = {
|
|
1204
|
+
New: "New",
|
|
1205
|
+
Processed: "Processed"
|
|
1206
|
+
};
|
|
1207
|
+
|
|
1208
|
+
// src/api-model/models/fulfillment-shipment.ts
|
|
1209
|
+
var FulfillmentShipmentFulfillmentShipmentStatusEnum = {
|
|
1210
|
+
Pending: "PENDING",
|
|
1211
|
+
Shipped: "SHIPPED",
|
|
1212
|
+
CancelledByFulfiller: "CANCELLED_BY_FULFILLER",
|
|
1213
|
+
CancelledBySeller: "CANCELLED_BY_SELLER"
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
// src/api-model/models/invalid-item-reason-code.ts
|
|
1217
|
+
var InvalidItemReasonCode = {
|
|
1218
|
+
InvalidValues: "InvalidValues",
|
|
1219
|
+
DuplicateRequest: "DuplicateRequest",
|
|
1220
|
+
NoCompletedShipItems: "NoCompletedShipItems",
|
|
1221
|
+
NoReturnableQuantity: "NoReturnableQuantity"
|
|
1222
|
+
};
|
|
1223
|
+
|
|
1224
|
+
// src/api-model/models/return-item-disposition.ts
|
|
1225
|
+
var ReturnItemDisposition = {
|
|
1226
|
+
Sellable: "Sellable",
|
|
1227
|
+
Defective: "Defective",
|
|
1228
|
+
CustomerDamaged: "CustomerDamaged",
|
|
1229
|
+
CarrierDamaged: "CarrierDamaged",
|
|
1230
|
+
FulfillerDamaged: "FulfillerDamaged"
|
|
1231
|
+
};
|
|
1232
|
+
|
|
1233
|
+
// src/api-model/models/shipping-speed-category.ts
|
|
1234
|
+
var ShippingSpeedCategory = {
|
|
1235
|
+
Standard: "Standard",
|
|
1236
|
+
Expedited: "Expedited",
|
|
1237
|
+
Priority: "Priority",
|
|
1238
|
+
ScheduledDelivery: "ScheduledDelivery"
|
|
1239
|
+
};
|
|
1240
|
+
|
|
1241
|
+
// src/api-model/models/weight.ts
|
|
1242
|
+
var WeightUnitEnum = {
|
|
1243
|
+
Kg: "KG",
|
|
1244
|
+
Kilograms: "KILOGRAMS",
|
|
1245
|
+
Lb: "LB",
|
|
1246
|
+
Pounds: "POUNDS"
|
|
1247
|
+
};
|
|
1248
|
+
|
|
1249
|
+
// src/client.ts
|
|
1250
|
+
var clientRateLimits = [
|
|
1251
|
+
{
|
|
1252
|
+
method: "post",
|
|
1253
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
1254
|
+
urlRegex: new RegExp("^/fba/outbound/2020-07-01/fulfillmentOrders/preview$"),
|
|
1255
|
+
rate: 2,
|
|
1256
|
+
burst: 30
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
method: "post",
|
|
1260
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
1261
|
+
urlRegex: new RegExp("^/fba/outbound/2020-07-01/deliveryOffers$"),
|
|
1262
|
+
rate: 5,
|
|
1263
|
+
burst: 30
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
method: "get",
|
|
1267
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
1268
|
+
urlRegex: new RegExp("^/fba/outbound/2020-07-01/fulfillmentOrders$"),
|
|
1269
|
+
rate: 2,
|
|
1270
|
+
burst: 30
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
method: "post",
|
|
1274
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
1275
|
+
urlRegex: new RegExp("^/fba/outbound/2020-07-01/fulfillmentOrders$"),
|
|
1276
|
+
rate: 2,
|
|
1277
|
+
burst: 30
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
method: "get",
|
|
1281
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
1282
|
+
urlRegex: new RegExp("^/fba/outbound/2020-07-01/tracking$"),
|
|
1283
|
+
rate: 2,
|
|
1284
|
+
burst: 30
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
method: "get",
|
|
1288
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
1289
|
+
urlRegex: new RegExp("^/fba/outbound/2020-07-01/returnReasonCodes$"),
|
|
1290
|
+
rate: 2,
|
|
1291
|
+
burst: 30
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
method: "put",
|
|
1295
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
1296
|
+
urlRegex: new RegExp("^/fba/outbound/2020-07-01/fulfillmentOrders/[^/]*/return$"),
|
|
1297
|
+
rate: 2,
|
|
1298
|
+
burst: 30
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
method: "get",
|
|
1302
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
1303
|
+
urlRegex: new RegExp("^/fba/outbound/2020-07-01/fulfillmentOrders/[^/]*$"),
|
|
1304
|
+
rate: 2,
|
|
1305
|
+
burst: 30
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
method: "put",
|
|
1309
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
1310
|
+
urlRegex: new RegExp("^/fba/outbound/2020-07-01/fulfillmentOrders/[^/]*$"),
|
|
1311
|
+
rate: 2,
|
|
1312
|
+
burst: 30
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
method: "put",
|
|
1316
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
1317
|
+
urlRegex: new RegExp("^/fba/outbound/2020-07-01/fulfillmentOrders/[^/]*/cancel$"),
|
|
1318
|
+
rate: 2,
|
|
1319
|
+
burst: 30
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
method: "get",
|
|
1323
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
1324
|
+
urlRegex: new RegExp("^/fba/outbound/2020-07-01/features$"),
|
|
1325
|
+
rate: 2,
|
|
1326
|
+
burst: 30
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
method: "get",
|
|
1330
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
1331
|
+
urlRegex: new RegExp("^/fba/outbound/2020-07-01/features/inventory/[^/]*$"),
|
|
1332
|
+
rate: 2,
|
|
1333
|
+
burst: 30
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
method: "get",
|
|
1337
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
1338
|
+
urlRegex: new RegExp("^/fba/outbound/2020-07-01/features/inventory/[^/]*$"),
|
|
1339
|
+
rate: 2,
|
|
1340
|
+
burst: 30
|
|
1341
|
+
}
|
|
1342
|
+
];
|
|
1343
|
+
var FulfillmentOutboundApiClient = class extends FulfillmentOutboundApi {
|
|
1344
|
+
constructor(configuration) {
|
|
1345
|
+
const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
|
|
1346
|
+
super(new Configuration(), endpoint, axios);
|
|
1347
|
+
}
|
|
1348
|
+
};
|
|
1349
|
+
export {
|
|
1350
|
+
AdditionalLocationInfo,
|
|
1351
|
+
AmountUnitOfMeasureEnum,
|
|
1352
|
+
CurrentStatus,
|
|
1353
|
+
DropOffLocationTypeEnum,
|
|
1354
|
+
EventCode,
|
|
1355
|
+
FeatureSettingsFeatureFulfillmentPolicyEnum,
|
|
1356
|
+
FeeNameEnum,
|
|
1357
|
+
FulfillmentAction,
|
|
1358
|
+
FulfillmentOrderStatus,
|
|
1359
|
+
FulfillmentOutboundApi,
|
|
1360
|
+
FulfillmentOutboundApiAxiosParamCreator,
|
|
1361
|
+
FulfillmentOutboundApiClient,
|
|
1362
|
+
FulfillmentOutboundApiFactory,
|
|
1363
|
+
FulfillmentOutboundApiFp,
|
|
1364
|
+
FulfillmentPolicy,
|
|
1365
|
+
FulfillmentPreviewItemShippingWeightCalculationMethodEnum,
|
|
1366
|
+
FulfillmentReturnItemStatus,
|
|
1367
|
+
FulfillmentShipmentFulfillmentShipmentStatusEnum,
|
|
1368
|
+
InvalidItemReasonCode,
|
|
1369
|
+
ReturnItemDisposition,
|
|
1370
|
+
ShippingSpeedCategory,
|
|
1371
|
+
WeightUnitEnum,
|
|
1372
|
+
clientRateLimits
|
|
1373
|
+
};
|
|
1374
|
+
//# sourceMappingURL=index.js.map
|