@sp-api-sdk/shipping-api-v2 2.0.0 → 2.1.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 -2
- package/dist/cjs/api-model/api/shipping-api.js +274 -29
- package/dist/cjs/api-model/configuration.js +1 -2
- package/dist/cjs/api-model/models/carrier-account.js +15 -0
- package/dist/cjs/api-model/models/claim-reason.js +28 -0
- package/dist/cjs/api-model/models/create-claim-request.js +15 -0
- package/dist/cjs/api-model/models/create-claim-response.js +15 -0
- package/dist/cjs/api-model/models/detail-codes.js +53 -0
- package/dist/cjs/api-model/models/event-code.js +4 -1
- package/dist/cjs/api-model/models/goods-owner.js +15 -0
- package/dist/cjs/api-model/models/index.js +13 -0
- package/dist/cjs/api-model/models/label-attribute.js +26 -0
- package/dist/cjs/api-model/models/ndr-action.js +26 -0
- package/dist/cjs/api-model/models/ndr-request-data.js +15 -0
- package/dist/cjs/api-model/models/rate-item-id.js +6 -1
- package/dist/cjs/api-model/models/requested-label-customization.js +15 -0
- package/dist/cjs/api-model/models/settlement-type.js +25 -0
- package/dist/cjs/api-model/models/status.js +2 -1
- package/dist/cjs/api-model/models/submit-ndr-feedback-request.js +15 -0
- package/dist/cjs/api-model/models/tracking-detail-codes.js +15 -0
- package/dist/cjs/client.js +21 -0
- package/dist/es/api-model/api/shipping-api.js +273 -28
- package/dist/es/api-model/configuration.js +1 -2
- package/dist/es/api-model/models/carrier-account.js +14 -0
- package/dist/es/api-model/models/claim-reason.js +25 -0
- package/dist/es/api-model/models/create-claim-request.js +14 -0
- package/dist/es/api-model/models/create-claim-response.js +14 -0
- package/dist/es/api-model/models/detail-codes.js +50 -0
- package/dist/es/api-model/models/event-code.js +4 -1
- package/dist/es/api-model/models/goods-owner.js +14 -0
- package/dist/es/api-model/models/index.js +13 -0
- package/dist/es/api-model/models/label-attribute.js +23 -0
- package/dist/es/api-model/models/ndr-action.js +23 -0
- package/dist/es/api-model/models/ndr-request-data.js +14 -0
- package/dist/es/api-model/models/rate-item-id.js +6 -1
- package/dist/es/api-model/models/requested-label-customization.js +14 -0
- package/dist/es/api-model/models/settlement-type.js +22 -0
- package/dist/es/api-model/models/status.js +2 -1
- package/dist/es/api-model/models/submit-ndr-feedback-request.js +14 -0
- package/dist/es/api-model/models/tracking-detail-codes.js +14 -0
- package/dist/es/client.js +21 -0
- package/dist/types/api-model/api/shipping-api.d.ts +251 -42
- package/dist/types/api-model/common.d.ts +1 -1
- package/dist/types/api-model/models/access-point-details.d.ts +1 -1
- package/dist/types/api-model/models/access-point.d.ts +2 -2
- package/dist/types/api-model/models/active-account.d.ts +1 -1
- package/dist/types/api-model/models/benefits.d.ts +1 -1
- package/dist/types/api-model/models/carrier-account.d.ts +30 -0
- package/dist/types/api-model/models/claim-reason.d.ts +24 -0
- package/dist/types/api-model/models/create-claim-request.d.ts +57 -0
- package/dist/types/api-model/models/create-claim-response.d.ts +24 -0
- package/dist/types/api-model/models/detail-codes.d.ts +49 -0
- package/dist/types/api-model/models/error-list.d.ts +1 -1
- package/dist/types/api-model/models/event-code.d.ts +3 -0
- package/dist/types/api-model/models/event.d.ts +7 -0
- package/dist/types/api-model/models/excluded-benefit.d.ts +5 -5
- package/dist/types/api-model/models/get-rates-request.d.ts +7 -0
- package/dist/types/api-model/models/get-shipment-documents-result.d.ts +7 -0
- package/dist/types/api-model/models/goods-owner.d.ts +24 -0
- package/dist/types/api-model/models/index.d.ts +13 -0
- package/dist/types/api-model/models/label-attribute.d.ts +22 -0
- package/dist/types/api-model/models/link-carrier-account-response.d.ts +6 -0
- package/dist/types/api-model/models/ndr-action.d.ts +22 -0
- package/dist/types/api-model/models/ndr-request-data.d.ts +30 -0
- package/dist/types/api-model/models/one-click-shipment-request.d.ts +7 -0
- package/dist/types/api-model/models/operating-hours.d.ts +1 -1
- package/dist/types/api-model/models/purchase-shipment-result.d.ts +7 -0
- package/dist/types/api-model/models/rate-item-id.d.ts +5 -0
- package/dist/types/api-model/models/requested-document-specification.d.ts +7 -0
- package/dist/types/api-model/models/requested-label-customization.d.ts +25 -0
- package/dist/types/api-model/models/settlement-type.d.ts +21 -0
- package/dist/types/api-model/models/status.d.ts +1 -0
- package/dist/types/api-model/models/submit-ndr-feedback-request.d.ts +38 -0
- package/dist/types/api-model/models/time-of-day.d.ts +3 -3
- package/dist/types/api-model/models/tracking-detail-codes.d.ts +31 -0
- package/dist/types/api-model/models/tracking-summary.d.ts +7 -0
- package/dist/types/api-model/models/unlink-carrier-account-request.d.ts +6 -0
- package/package.json +4 -4
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amazon Shipping API
|
|
6
|
+
* The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
* Contact: swa-api-core@amazon.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ClaimReason = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* The reason for which shipper is filing the claim for a particular shipment.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
exports.ClaimReason = {
|
|
23
|
+
LostInTransit: 'LOST_IN_TRANSIT',
|
|
24
|
+
DamagedInTransit: 'DAMAGED_IN_TRANSIT',
|
|
25
|
+
DeliveredNotReceived: 'DELIVERED_NOT_RECEIVED',
|
|
26
|
+
ItemMissingSwitcheroo: 'ITEM_MISSING_SWITCHEROO',
|
|
27
|
+
CodAbuse: 'COD_ABUSE'
|
|
28
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amazon Shipping API
|
|
6
|
+
* The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
* Contact: swa-api-core@amazon.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amazon Shipping API
|
|
6
|
+
* The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
* Contact: swa-api-core@amazon.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amazon Shipping API
|
|
6
|
+
* The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
* Contact: swa-api-core@amazon.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.DetailCodes = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* A list of codes used to provide additional shipment information.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
exports.DetailCodes = {
|
|
23
|
+
BusinessClosed: 'BusinessClosed',
|
|
24
|
+
CustomerUnavailable: 'CustomerUnavailable',
|
|
25
|
+
PaymentNotReady: 'PaymentNotReady',
|
|
26
|
+
OtpNotAvailable: 'OtpNotAvailable',
|
|
27
|
+
DeliveryAttempted: 'DeliveryAttempted',
|
|
28
|
+
UnableToAccess: 'UnableToAccess',
|
|
29
|
+
UnableToContactRecipient: 'UnableToContactRecipient',
|
|
30
|
+
DeliveredToBehindWheelieBin: 'DeliveredToBehindWheelieBin',
|
|
31
|
+
DeliveredToPorch: 'DeliveredToPorch',
|
|
32
|
+
DeliveredToGarage: 'DeliveredToGarage',
|
|
33
|
+
DeliveredToGarden: 'DeliveredToGarden',
|
|
34
|
+
DeliveredToGreenhouse: 'DeliveredToGreenhouse',
|
|
35
|
+
DeliveredToMailSlot: 'DeliveredToMailSlot',
|
|
36
|
+
DeliveredToMailRoom: 'DeliveredToMailRoom',
|
|
37
|
+
DeliveredToNeighbor: 'DeliveredToNeighbor',
|
|
38
|
+
DeliveredToRearDoor: 'DeliveredToRearDoor',
|
|
39
|
+
DeliveredToReceptionist: 'DeliveredToReceptionist',
|
|
40
|
+
DeliveredToShed: 'DeliveredToShed',
|
|
41
|
+
DeliveredWithOtp: 'DeliveredWithOTP',
|
|
42
|
+
Signed: 'Signed',
|
|
43
|
+
Damaged: 'Damaged',
|
|
44
|
+
IncorrectItems: 'IncorrectItems',
|
|
45
|
+
NotRequired: 'NotRequired',
|
|
46
|
+
Rejected: 'Rejected',
|
|
47
|
+
RejectedByRecipientWithVerification: 'RejectedByRecipientWithVerification',
|
|
48
|
+
CancelledByRecipient: 'CancelledByRecipient',
|
|
49
|
+
AddressNotFound: 'AddressNotFound',
|
|
50
|
+
HazmatShipment: 'HazmatShipment',
|
|
51
|
+
Undeliverable: 'Undeliverable',
|
|
52
|
+
ArrivedAtLocalFacility: 'ArrivedAtLocalFacility'
|
|
53
|
+
};
|
|
@@ -30,5 +30,8 @@ exports.EventCode = {
|
|
|
30
30
|
ArrivedAtCarrierFacility: 'ArrivedAtCarrierFacility',
|
|
31
31
|
Rejected: 'Rejected',
|
|
32
32
|
Undeliverable: 'Undeliverable',
|
|
33
|
-
PickupCancelled: 'PickupCancelled'
|
|
33
|
+
PickupCancelled: 'PickupCancelled',
|
|
34
|
+
ReturnInitiated: 'ReturnInitiated',
|
|
35
|
+
AvailableForPickup: 'AvailableForPickup',
|
|
36
|
+
RecipientRequestedAlternateDeliveryTiming: 'RecipientRequestedAlternateDeliveryTiming'
|
|
34
37
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amazon Shipping API
|
|
6
|
+
* The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
* Contact: swa-api-core@amazon.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -28,18 +28,23 @@ __exportStar(require("./available-value-added-service-group"), exports);
|
|
|
28
28
|
__exportStar(require("./benefits"), exports);
|
|
29
29
|
__exportStar(require("./cancel-shipment-response"), exports);
|
|
30
30
|
__exportStar(require("./carrier"), exports);
|
|
31
|
+
__exportStar(require("./carrier-account"), exports);
|
|
31
32
|
__exportStar(require("./carrier-account-attribute"), exports);
|
|
32
33
|
__exportStar(require("./carrier-account-input"), exports);
|
|
33
34
|
__exportStar(require("./channel-details"), exports);
|
|
34
35
|
__exportStar(require("./channel-type"), exports);
|
|
35
36
|
__exportStar(require("./charge-component"), exports);
|
|
37
|
+
__exportStar(require("./claim-reason"), exports);
|
|
36
38
|
__exportStar(require("./client-reference-detail"), exports);
|
|
37
39
|
__exportStar(require("./collect-on-delivery"), exports);
|
|
38
40
|
__exportStar(require("./collection-forms-history-record"), exports);
|
|
39
41
|
__exportStar(require("./collections-form-document"), exports);
|
|
42
|
+
__exportStar(require("./create-claim-request"), exports);
|
|
43
|
+
__exportStar(require("./create-claim-response"), exports);
|
|
40
44
|
__exportStar(require("./currency"), exports);
|
|
41
45
|
__exportStar(require("./dangerous-goods-details"), exports);
|
|
42
46
|
__exportStar(require("./date-range"), exports);
|
|
47
|
+
__exportStar(require("./detail-codes"), exports);
|
|
43
48
|
__exportStar(require("./dimensions"), exports);
|
|
44
49
|
__exportStar(require("./direct-fulfillment-item-identifiers"), exports);
|
|
45
50
|
__exportStar(require("./direct-purchase-request"), exports);
|
|
@@ -75,12 +80,14 @@ __exportStar(require("./get-tracking-response"), exports);
|
|
|
75
80
|
__exportStar(require("./get-tracking-result"), exports);
|
|
76
81
|
__exportStar(require("./get-unmanifested-shipments-request"), exports);
|
|
77
82
|
__exportStar(require("./get-unmanifested-shipments-response"), exports);
|
|
83
|
+
__exportStar(require("./goods-owner"), exports);
|
|
78
84
|
__exportStar(require("./ineligibility-reason"), exports);
|
|
79
85
|
__exportStar(require("./ineligibility-reason-code"), exports);
|
|
80
86
|
__exportStar(require("./ineligible-rate"), exports);
|
|
81
87
|
__exportStar(require("./input-type"), exports);
|
|
82
88
|
__exportStar(require("./invoice-details"), exports);
|
|
83
89
|
__exportStar(require("./item"), exports);
|
|
90
|
+
__exportStar(require("./label-attribute"), exports);
|
|
84
91
|
__exportStar(require("./link-carrier-account-request"), exports);
|
|
85
92
|
__exportStar(require("./link-carrier-account-response"), exports);
|
|
86
93
|
__exportStar(require("./linkable-account-type"), exports);
|
|
@@ -88,6 +95,8 @@ __exportStar(require("./linkable-carrier"), exports);
|
|
|
88
95
|
__exportStar(require("./liquid-volume"), exports);
|
|
89
96
|
__exportStar(require("./location"), exports);
|
|
90
97
|
__exportStar(require("./model-error"), exports);
|
|
98
|
+
__exportStar(require("./ndr-action"), exports);
|
|
99
|
+
__exportStar(require("./ndr-request-data"), exports);
|
|
91
100
|
__exportStar(require("./one-click-shipment-request"), exports);
|
|
92
101
|
__exportStar(require("./one-click-shipment-response"), exports);
|
|
93
102
|
__exportStar(require("./one-click-shipment-result"), exports);
|
|
@@ -107,18 +116,22 @@ __exportStar(require("./rate-item"), exports);
|
|
|
107
116
|
__exportStar(require("./rate-item-id"), exports);
|
|
108
117
|
__exportStar(require("./rate-item-type"), exports);
|
|
109
118
|
__exportStar(require("./requested-document-specification"), exports);
|
|
119
|
+
__exportStar(require("./requested-label-customization"), exports);
|
|
110
120
|
__exportStar(require("./requested-value-added-service"), exports);
|
|
111
121
|
__exportStar(require("./service"), exports);
|
|
112
122
|
__exportStar(require("./service-selection"), exports);
|
|
123
|
+
__exportStar(require("./settlement-type"), exports);
|
|
113
124
|
__exportStar(require("./shipment-type"), exports);
|
|
114
125
|
__exportStar(require("./shipper-instruction"), exports);
|
|
115
126
|
__exportStar(require("./status"), exports);
|
|
127
|
+
__exportStar(require("./submit-ndr-feedback-request"), exports);
|
|
116
128
|
__exportStar(require("./supported-document-detail"), exports);
|
|
117
129
|
__exportStar(require("./supported-document-specification"), exports);
|
|
118
130
|
__exportStar(require("./tax-detail"), exports);
|
|
119
131
|
__exportStar(require("./tax-type"), exports);
|
|
120
132
|
__exportStar(require("./time-of-day"), exports);
|
|
121
133
|
__exportStar(require("./time-window"), exports);
|
|
134
|
+
__exportStar(require("./tracking-detail-codes"), exports);
|
|
122
135
|
__exportStar(require("./tracking-summary"), exports);
|
|
123
136
|
__exportStar(require("./unlink-carrier-account-request"), exports);
|
|
124
137
|
__exportStar(require("./unlink-carrier-account-response"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amazon Shipping API
|
|
6
|
+
* The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
* Contact: swa-api-core@amazon.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.LabelAttribute = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Enumerates the attributes supported to be printed on a shipping label. The values for these attributes are retrieved from GetRates/OneClickShipment request
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
exports.LabelAttribute = {
|
|
23
|
+
PackageClientReferenceId: 'PACKAGE_CLIENT_REFERENCE_ID',
|
|
24
|
+
SellerDisplayName: 'SELLER_DISPLAY_NAME',
|
|
25
|
+
CollectOnDeliveryAmount: 'COLLECT_ON_DELIVERY_AMOUNT'
|
|
26
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amazon Shipping API
|
|
6
|
+
* The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
* Contact: swa-api-core@amazon.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.NdrAction = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* The type of NDR action shipper wants to take for a particular shipment.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
exports.NdrAction = {
|
|
23
|
+
Reschedule: 'RESCHEDULE',
|
|
24
|
+
Reattempt: 'REATTEMPT',
|
|
25
|
+
Rto: 'RTO'
|
|
26
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amazon Shipping API
|
|
6
|
+
* The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
* Contact: swa-api-core@amazon.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -47,5 +47,10 @@ exports.RateItemID = {
|
|
|
47
47
|
ResidentialSurcharge: 'RESIDENTIAL_SURCHARGE',
|
|
48
48
|
AdditionalSurcharge: 'ADDITIONAL_SURCHARGE',
|
|
49
49
|
Surcharge: 'SURCHARGE',
|
|
50
|
-
Rebate: 'REBATE'
|
|
50
|
+
Rebate: 'REBATE',
|
|
51
|
+
HighCubeSurcharge: 'HIGH_CUBE_SURCHARGE',
|
|
52
|
+
HighLengthSurcharge: 'HIGH_LENGTH_SURCHARGE',
|
|
53
|
+
HighWidthSurcharge: 'HIGH_WIDTH_SURCHARGE',
|
|
54
|
+
DemandSurcharge: 'DEMAND_SURCHARGE',
|
|
55
|
+
NonstandardFee: 'NONSTANDARD_FEE'
|
|
51
56
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amazon Shipping API
|
|
6
|
+
* The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
* Contact: swa-api-core@amazon.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amazon Shipping API
|
|
6
|
+
* The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
* Contact: swa-api-core@amazon.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SettlementType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Type of settlement the shipper wants to receive for a particular shipment.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
exports.SettlementType = {
|
|
23
|
+
Refund: 'REFUND',
|
|
24
|
+
CertificateOfFact: 'CERTIFICATE_OF_FACT'
|
|
25
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amazon Shipping API
|
|
6
|
+
* The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
* Contact: swa-api-core@amazon.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amazon Shipping API
|
|
6
|
+
* The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
* Contact: swa-api-core@amazon.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/cjs/client.js
CHANGED
|
@@ -81,6 +81,13 @@ exports.clientRateLimits = [
|
|
|
81
81
|
rate: 80,
|
|
82
82
|
burst: 100,
|
|
83
83
|
},
|
|
84
|
+
{
|
|
85
|
+
method: 'post',
|
|
86
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
87
|
+
urlRegex: new RegExp('^/shipping/v2/carrierAccounts/[^/]*$'),
|
|
88
|
+
rate: 5,
|
|
89
|
+
burst: 10,
|
|
90
|
+
},
|
|
84
91
|
{
|
|
85
92
|
method: 'put',
|
|
86
93
|
// eslint-disable-next-line prefer-regex-literals
|
|
@@ -123,6 +130,20 @@ exports.clientRateLimits = [
|
|
|
123
130
|
rate: 80,
|
|
124
131
|
burst: 100,
|
|
125
132
|
},
|
|
133
|
+
{
|
|
134
|
+
method: 'post',
|
|
135
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
136
|
+
urlRegex: new RegExp('^/shipping/v2/ndrFeedback$'),
|
|
137
|
+
rate: 80,
|
|
138
|
+
burst: 100,
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
method: 'post',
|
|
142
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
143
|
+
urlRegex: new RegExp('^/shipping/v2/claims$'),
|
|
144
|
+
rate: 80,
|
|
145
|
+
burst: 100,
|
|
146
|
+
},
|
|
126
147
|
];
|
|
127
148
|
class ShippingApiClient extends api_model_1.ShippingApi {
|
|
128
149
|
constructor(configuration) {
|