@sp-api-sdk/orders-api-v0 1.12.2 → 1.13.1
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/dist/cjs/src/api-model/api/orders-v0-api.js +45 -45
- package/dist/cjs/src/api-model/models/address.js +4 -9
- package/dist/cjs/src/api-model/models/index.js +1 -0
- package/dist/cjs/src/api-model/models/order-item.js +4 -9
- package/dist/cjs/src/api-model/models/order.js +30 -55
- package/dist/cjs/src/api-model/models/regulated-information-field.js +4 -9
- package/dist/cjs/src/api-model/models/regulated-order-verification-status.js +0 -13
- package/dist/cjs/src/api-model/models/shipment-status.js +5 -6
- package/dist/cjs/src/api-model/models/tax-collection.js +6 -16
- package/dist/cjs/src/api-model/models/update-verification-status-request-body.js +0 -10
- package/dist/cjs/src/api-model/models/verification-status.js +28 -0
- package/dist/cjs/src/client.js +19 -12
- package/dist/es/src/api-model/api/orders-v0-api.js +45 -45
- package/dist/es/src/api-model/models/address.js +4 -9
- package/dist/es/src/api-model/models/index.js +1 -0
- package/dist/es/src/api-model/models/order-item.js +4 -9
- package/dist/es/src/api-model/models/order.js +30 -55
- package/dist/es/src/api-model/models/regulated-information-field.js +4 -9
- package/dist/es/src/api-model/models/regulated-order-verification-status.js +1 -12
- package/dist/es/src/api-model/models/shipment-status.js +5 -6
- package/dist/es/src/api-model/models/tax-collection.js +6 -16
- package/dist/es/src/api-model/models/update-verification-status-request-body.js +1 -9
- package/dist/es/src/api-model/models/verification-status.js +25 -0
- package/dist/es/src/client.js +19 -12
- package/dist/types/src/api-model/api/orders-v0-api.d.ts +64 -64
- package/dist/types/src/api-model/base.d.ts +2 -2
- package/dist/types/src/api-model/common.d.ts +2 -2
- package/dist/types/src/api-model/models/address.d.ts +18 -21
- package/dist/types/src/api-model/models/automated-shipping-settings.d.ts +3 -3
- package/dist/types/src/api-model/models/buyer-customized-info-detail.d.ts +1 -1
- package/dist/types/src/api-model/models/buyer-info.d.ts +5 -5
- package/dist/types/src/api-model/models/buyer-requested-cancel.d.ts +3 -3
- package/dist/types/src/api-model/models/buyer-tax-info.d.ts +3 -3
- package/dist/types/src/api-model/models/buyer-tax-information.d.ts +4 -4
- package/dist/types/src/api-model/models/fulfillment-instruction.d.ts +1 -1
- package/dist/types/src/api-model/models/get-order-address-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-order-buyer-info-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-order-items-buyer-info-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-order-items-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-order-regulated-info-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-order-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-orders-response.d.ts +2 -2
- package/dist/types/src/api-model/models/index.d.ts +1 -0
- package/dist/types/src/api-model/models/item-buyer-info.d.ts +5 -5
- package/dist/types/src/api-model/models/marketplace-tax-info.d.ts +1 -1
- package/dist/types/src/api-model/models/model-error.d.ts +3 -3
- package/dist/types/src/api-model/models/money.d.ts +2 -2
- package/dist/types/src/api-model/models/order-address.d.ts +2 -2
- package/dist/types/src/api-model/models/order-buyer-info.d.ts +6 -6
- package/dist/types/src/api-model/models/order-item-buyer-info.d.ts +6 -6
- package/dist/types/src/api-model/models/order-item.d.ts +39 -42
- package/dist/types/src/api-model/models/order-items-buyer-info-list.d.ts +3 -3
- package/dist/types/src/api-model/models/order-items-list.d.ts +3 -3
- package/dist/types/src/api-model/models/order-regulated-info.d.ts +4 -4
- package/dist/types/src/api-model/models/order.d.ts +86 -95
- package/dist/types/src/api-model/models/orders-list.d.ts +4 -4
- package/dist/types/src/api-model/models/payment-execution-detail-item.d.ts +2 -2
- package/dist/types/src/api-model/models/points-granted-detail.d.ts +2 -2
- package/dist/types/src/api-model/models/product-info-detail.d.ts +1 -1
- package/dist/types/src/api-model/models/regulated-information-field.d.ts +9 -12
- package/dist/types/src/api-model/models/regulated-information.d.ts +1 -1
- package/dist/types/src/api-model/models/regulated-order-verification-status.d.ts +9 -19
- package/dist/types/src/api-model/models/rejection-reason.d.ts +2 -2
- package/dist/types/src/api-model/models/shipment-status.d.ts +6 -5
- package/dist/types/src/api-model/models/tax-classification.d.ts +2 -2
- package/dist/types/src/api-model/models/tax-collection.d.ts +10 -16
- package/dist/types/src/api-model/models/update-shipment-status-error-response.d.ts +1 -1
- package/dist/types/src/api-model/models/update-shipment-status-request.d.ts +3 -3
- package/dist/types/src/api-model/models/update-verification-status-error-response.d.ts +1 -1
- package/dist/types/src/api-model/models/update-verification-status-request-body.d.ts +6 -13
- package/dist/types/src/api-model/models/update-verification-status-request.d.ts +1 -1
- package/dist/types/src/api-model/models/verification-status.d.ts +24 -0
- package/package.json +5 -5
|
@@ -14,12 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.RegulatedInformationFieldFieldTypeEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var RegulatedInformationFieldFieldTypeEnum;
|
|
22
|
-
(function (RegulatedInformationFieldFieldTypeEnum) {
|
|
23
|
-
RegulatedInformationFieldFieldTypeEnum["Text"] = "Text";
|
|
24
|
-
RegulatedInformationFieldFieldTypeEnum["FileAttachment"] = "FileAttachment";
|
|
25
|
-
})(RegulatedInformationFieldFieldTypeEnum = exports.RegulatedInformationFieldFieldTypeEnum || (exports.RegulatedInformationFieldFieldTypeEnum = {}));
|
|
17
|
+
exports.RegulatedInformationFieldFieldTypeEnum = {
|
|
18
|
+
Text: 'Text',
|
|
19
|
+
FileAttachment: 'FileAttachment'
|
|
20
|
+
};
|
|
@@ -13,16 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.RegulatedOrderVerificationStatusStatusEnum = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* @export
|
|
19
|
-
* @enum {string}
|
|
20
|
-
*/
|
|
21
|
-
var RegulatedOrderVerificationStatusStatusEnum;
|
|
22
|
-
(function (RegulatedOrderVerificationStatusStatusEnum) {
|
|
23
|
-
RegulatedOrderVerificationStatusStatusEnum["Pending"] = "Pending";
|
|
24
|
-
RegulatedOrderVerificationStatusStatusEnum["Approved"] = "Approved";
|
|
25
|
-
RegulatedOrderVerificationStatusStatusEnum["Rejected"] = "Rejected";
|
|
26
|
-
RegulatedOrderVerificationStatusStatusEnum["Expired"] = "Expired";
|
|
27
|
-
RegulatedOrderVerificationStatusStatusEnum["Cancelled"] = "Cancelled";
|
|
28
|
-
})(RegulatedOrderVerificationStatusStatusEnum = exports.RegulatedOrderVerificationStatusStatusEnum || (exports.RegulatedOrderVerificationStatusStatusEnum = {}));
|
|
@@ -19,9 +19,8 @@ exports.ShipmentStatus = void 0;
|
|
|
19
19
|
* @export
|
|
20
20
|
* @enum {string}
|
|
21
21
|
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
})(ShipmentStatus = exports.ShipmentStatus || (exports.ShipmentStatus = {}));
|
|
22
|
+
exports.ShipmentStatus = {
|
|
23
|
+
ReadyForPickup: 'ReadyForPickup',
|
|
24
|
+
PickedUp: 'PickedUp',
|
|
25
|
+
RefusedPickup: 'RefusedPickup'
|
|
26
|
+
};
|
|
@@ -14,19 +14,9 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.TaxCollectionResponsiblePartyEnum = exports.TaxCollectionModelEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
TaxCollectionModelEnum["MarketplaceFacilitator"] = "MarketplaceFacilitator";
|
|
24
|
-
})(TaxCollectionModelEnum = exports.TaxCollectionModelEnum || (exports.TaxCollectionModelEnum = {}));
|
|
25
|
-
/**
|
|
26
|
-
* @export
|
|
27
|
-
* @enum {string}
|
|
28
|
-
*/
|
|
29
|
-
var TaxCollectionResponsiblePartyEnum;
|
|
30
|
-
(function (TaxCollectionResponsiblePartyEnum) {
|
|
31
|
-
TaxCollectionResponsiblePartyEnum["AmazonServicesInc"] = "Amazon Services, Inc.";
|
|
32
|
-
})(TaxCollectionResponsiblePartyEnum = exports.TaxCollectionResponsiblePartyEnum || (exports.TaxCollectionResponsiblePartyEnum = {}));
|
|
17
|
+
exports.TaxCollectionModelEnum = {
|
|
18
|
+
MarketplaceFacilitator: 'MarketplaceFacilitator'
|
|
19
|
+
};
|
|
20
|
+
exports.TaxCollectionResponsiblePartyEnum = {
|
|
21
|
+
AmazonServicesInc: 'Amazon Services, Inc.'
|
|
22
|
+
};
|
|
@@ -13,13 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UpdateVerificationStatusRequestBodyStatusEnum = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* @export
|
|
19
|
-
* @enum {string}
|
|
20
|
-
*/
|
|
21
|
-
var UpdateVerificationStatusRequestBodyStatusEnum;
|
|
22
|
-
(function (UpdateVerificationStatusRequestBodyStatusEnum) {
|
|
23
|
-
UpdateVerificationStatusRequestBodyStatusEnum["Approved"] = "Approved";
|
|
24
|
-
UpdateVerificationStatusRequestBodyStatusEnum["Rejected"] = "Rejected";
|
|
25
|
-
})(UpdateVerificationStatusRequestBodyStatusEnum = exports.UpdateVerificationStatusRequestBodyStatusEnum || (exports.UpdateVerificationStatusRequestBodyStatusEnum = {}));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Selling Partner API for Orders
|
|
6
|
+
* The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
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.VerificationStatus = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* The verification status of the order.
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
exports.VerificationStatus = {
|
|
23
|
+
Pending: 'Pending',
|
|
24
|
+
Approved: 'Approved',
|
|
25
|
+
Rejected: 'Rejected',
|
|
26
|
+
Expired: 'Expired',
|
|
27
|
+
Cancelled: 'Cancelled'
|
|
28
|
+
};
|
package/dist/cjs/src/client.js
CHANGED
|
@@ -8,57 +8,64 @@ exports.clientRateLimits = [
|
|
|
8
8
|
method: 'get',
|
|
9
9
|
// eslint-disable-next-line prefer-regex-literals
|
|
10
10
|
urlRegex: new RegExp('^/orders/v0/orders$'),
|
|
11
|
-
rate: 0.
|
|
11
|
+
rate: 0.0167,
|
|
12
12
|
burst: 20,
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
method: 'get',
|
|
16
16
|
// eslint-disable-next-line prefer-regex-literals
|
|
17
17
|
urlRegex: new RegExp('^/orders/v0/orders/[^/]*$'),
|
|
18
|
-
rate: 0.
|
|
18
|
+
rate: 0.0167,
|
|
19
19
|
burst: 20,
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
method: 'get',
|
|
23
23
|
// eslint-disable-next-line prefer-regex-literals
|
|
24
24
|
urlRegex: new RegExp('^/orders/v0/orders/[^/]*/buyerInfo$'),
|
|
25
|
-
rate: 0.
|
|
25
|
+
rate: 0.0167,
|
|
26
26
|
burst: 20,
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
method: 'get',
|
|
30
30
|
// eslint-disable-next-line prefer-regex-literals
|
|
31
31
|
urlRegex: new RegExp('^/orders/v0/orders/[^/]*/address$'),
|
|
32
|
-
rate: 0.
|
|
32
|
+
rate: 0.0167,
|
|
33
33
|
burst: 20,
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
method: 'get',
|
|
37
37
|
// eslint-disable-next-line prefer-regex-literals
|
|
38
38
|
urlRegex: new RegExp('^/orders/v0/orders/[^/]*/orderItems$'),
|
|
39
|
-
rate: 0.
|
|
40
|
-
burst:
|
|
39
|
+
rate: 0.5,
|
|
40
|
+
burst: 30,
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
method: 'get',
|
|
44
44
|
// eslint-disable-next-line prefer-regex-literals
|
|
45
45
|
urlRegex: new RegExp('^/orders/v0/orders/[^/]*/orderItems/buyerInfo$'),
|
|
46
|
-
rate: 0.
|
|
47
|
-
burst:
|
|
46
|
+
rate: 0.5,
|
|
47
|
+
burst: 30,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
method: 'post',
|
|
51
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
52
|
+
urlRegex: new RegExp('^/orders/v0/orders/[^/]*/shipment$'),
|
|
53
|
+
rate: 5,
|
|
54
|
+
burst: 15,
|
|
48
55
|
},
|
|
49
56
|
{
|
|
50
57
|
method: 'get',
|
|
51
58
|
// eslint-disable-next-line prefer-regex-literals
|
|
52
59
|
urlRegex: new RegExp('^/orders/v0/orders/[^/]*/regulatedInfo$'),
|
|
53
|
-
rate: 0.
|
|
54
|
-
burst:
|
|
60
|
+
rate: 0.5,
|
|
61
|
+
burst: 30,
|
|
55
62
|
},
|
|
56
63
|
{
|
|
57
64
|
method: 'patch',
|
|
58
65
|
// eslint-disable-next-line prefer-regex-literals
|
|
59
66
|
urlRegex: new RegExp('^/orders/v0/orders/[^/]*/regulatedInfo$'),
|
|
60
|
-
rate: 0.
|
|
61
|
-
burst:
|
|
67
|
+
rate: 0.5,
|
|
68
|
+
burst: 30,
|
|
62
69
|
},
|
|
63
70
|
];
|
|
64
71
|
class OrdersApiClient extends api_model_1.OrdersV0Api {
|