@sp-api-sdk/orders-api-v0 1.8.5
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/LICENSE +21 -0
- package/README.md +58 -0
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/src/api-model/api/orders-v0-api.js +513 -0
- package/dist/cjs/src/api-model/api.js +17 -0
- package/dist/cjs/src/api-model/base.js +62 -0
- package/dist/cjs/src/api-model/common.js +137 -0
- package/dist/cjs/src/api-model/configuration.js +42 -0
- package/dist/cjs/src/api-model/index.js +19 -0
- package/dist/cjs/src/api-model/models/address.js +25 -0
- package/dist/cjs/src/api-model/models/buyer-customized-info-detail.js +15 -0
- package/dist/cjs/src/api-model/models/buyer-info.js +15 -0
- package/dist/cjs/src/api-model/models/buyer-tax-info.js +15 -0
- package/dist/cjs/src/api-model/models/fulfillment-instruction.js +15 -0
- package/dist/cjs/src/api-model/models/get-order-address-response.js +15 -0
- package/dist/cjs/src/api-model/models/get-order-buyer-info-response.js +15 -0
- package/dist/cjs/src/api-model/models/get-order-items-buyer-info-response.js +15 -0
- package/dist/cjs/src/api-model/models/get-order-items-response.js +15 -0
- package/dist/cjs/src/api-model/models/get-order-response.js +15 -0
- package/dist/cjs/src/api-model/models/get-orders-response.js +15 -0
- package/dist/cjs/src/api-model/models/index.js +31 -0
- package/dist/cjs/src/api-model/models/item-buyer-info.js +15 -0
- package/dist/cjs/src/api-model/models/marketplace-tax-info.js +15 -0
- package/dist/cjs/src/api-model/models/model-error.js +15 -0
- package/dist/cjs/src/api-model/models/money.js +15 -0
- package/dist/cjs/src/api-model/models/order-address.js +15 -0
- package/dist/cjs/src/api-model/models/order-buyer-info.js +15 -0
- package/dist/cjs/src/api-model/models/order-item-buyer-info.js +15 -0
- package/dist/cjs/src/api-model/models/order-item.js +25 -0
- package/dist/cjs/src/api-model/models/order-items-buyer-info-list.js +15 -0
- package/dist/cjs/src/api-model/models/order-items-list.js +15 -0
- package/dist/cjs/src/api-model/models/order.js +62 -0
- package/dist/cjs/src/api-model/models/orders-list.js +15 -0
- package/dist/cjs/src/api-model/models/payment-execution-detail-item.js +15 -0
- package/dist/cjs/src/api-model/models/points-granted-detail.js +15 -0
- package/dist/cjs/src/api-model/models/product-info-detail.js +15 -0
- package/dist/cjs/src/api-model/models/tax-classification.js +15 -0
- package/dist/cjs/src/api-model/models/tax-collection.js +32 -0
- package/dist/cjs/src/client.js +65 -0
- package/dist/cjs/src/error.js +10 -0
- package/dist/es/index.js +3 -0
- package/dist/es/src/api-model/api/orders-v0-api.js +505 -0
- package/dist/es/src/api-model/api.js +14 -0
- package/dist/es/src/api-model/base.js +56 -0
- package/dist/es/src/api-model/common.js +125 -0
- package/dist/es/src/api-model/configuration.js +38 -0
- package/dist/es/src/api-model/index.js +16 -0
- package/dist/es/src/api-model/models/address.js +22 -0
- package/dist/es/src/api-model/models/buyer-customized-info-detail.js +14 -0
- package/dist/es/src/api-model/models/buyer-info.js +14 -0
- package/dist/es/src/api-model/models/buyer-tax-info.js +14 -0
- package/dist/es/src/api-model/models/fulfillment-instruction.js +14 -0
- package/dist/es/src/api-model/models/get-order-address-response.js +14 -0
- package/dist/es/src/api-model/models/get-order-buyer-info-response.js +14 -0
- package/dist/es/src/api-model/models/get-order-items-buyer-info-response.js +14 -0
- package/dist/es/src/api-model/models/get-order-items-response.js +14 -0
- package/dist/es/src/api-model/models/get-order-response.js +14 -0
- package/dist/es/src/api-model/models/get-orders-response.js +14 -0
- package/dist/es/src/api-model/models/index.js +28 -0
- package/dist/es/src/api-model/models/item-buyer-info.js +14 -0
- package/dist/es/src/api-model/models/marketplace-tax-info.js +14 -0
- package/dist/es/src/api-model/models/model-error.js +14 -0
- package/dist/es/src/api-model/models/money.js +14 -0
- package/dist/es/src/api-model/models/order-address.js +14 -0
- package/dist/es/src/api-model/models/order-buyer-info.js +14 -0
- package/dist/es/src/api-model/models/order-item-buyer-info.js +14 -0
- package/dist/es/src/api-model/models/order-item.js +22 -0
- package/dist/es/src/api-model/models/order-items-buyer-info-list.js +14 -0
- package/dist/es/src/api-model/models/order-items-list.js +14 -0
- package/dist/es/src/api-model/models/order.js +59 -0
- package/dist/es/src/api-model/models/orders-list.js +14 -0
- package/dist/es/src/api-model/models/payment-execution-detail-item.js +14 -0
- package/dist/es/src/api-model/models/points-granted-detail.js +14 -0
- package/dist/es/src/api-model/models/product-info-detail.js +14 -0
- package/dist/es/src/api-model/models/tax-classification.js +14 -0
- package/dist/es/src/api-model/models/tax-collection.js +29 -0
- package/dist/es/src/client.js +61 -0
- package/dist/es/src/error.js +6 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/src/api-model/api/orders-v0-api.d.ts +460 -0
- package/dist/types/src/api-model/api.d.ts +12 -0
- package/dist/types/src/api-model/base.d.ts +55 -0
- package/dist/types/src/api-model/common.d.ts +65 -0
- package/dist/types/src/api-model/configuration.d.ts +83 -0
- package/dist/types/src/api-model/index.d.ts +14 -0
- package/dist/types/src/api-model/models/address.d.ts +104 -0
- package/dist/types/src/api-model/models/buyer-customized-info-detail.d.ts +24 -0
- package/dist/types/src/api-model/models/buyer-info.d.ts +49 -0
- package/dist/types/src/api-model/models/buyer-tax-info.d.ts +37 -0
- package/dist/types/src/api-model/models/fulfillment-instruction.d.ts +24 -0
- package/dist/types/src/api-model/models/get-order-address-response.d.ts +31 -0
- package/dist/types/src/api-model/models/get-order-buyer-info-response.d.ts +31 -0
- package/dist/types/src/api-model/models/get-order-items-buyer-info-response.d.ts +31 -0
- package/dist/types/src/api-model/models/get-order-items-response.d.ts +31 -0
- package/dist/types/src/api-model/models/get-order-response.d.ts +31 -0
- package/dist/types/src/api-model/models/get-orders-response.d.ts +31 -0
- package/dist/types/src/api-model/models/index.d.ts +28 -0
- package/dist/types/src/api-model/models/item-buyer-info.d.ts +50 -0
- package/dist/types/src/api-model/models/marketplace-tax-info.d.ts +25 -0
- package/dist/types/src/api-model/models/model-error.d.ts +36 -0
- package/dist/types/src/api-model/models/money.d.ts +30 -0
- package/dist/types/src/api-model/models/order-address.d.ts +31 -0
- package/dist/types/src/api-model/models/order-buyer-info.d.ts +55 -0
- package/dist/types/src/api-model/models/order-item-buyer-info.d.ts +56 -0
- package/dist/types/src/api-model/models/order-item.d.ts +229 -0
- package/dist/types/src/api-model/models/order-items-buyer-info-list.d.ts +37 -0
- package/dist/types/src/api-model/models/order-items-list.d.ts +37 -0
- package/dist/types/src/api-model/models/order.d.ts +306 -0
- package/dist/types/src/api-model/models/orders-list.d.ts +43 -0
- package/dist/types/src/api-model/models/payment-execution-detail-item.d.ts +31 -0
- package/dist/types/src/api-model/models/points-granted-detail.d.ts +31 -0
- package/dist/types/src/api-model/models/product-info-detail.d.ts +24 -0
- package/dist/types/src/api-model/models/tax-classification.d.ts +30 -0
- package/dist/types/src/api-model/models/tax-collection.d.ts +44 -0
- package/dist/types/src/client.d.ts +13 -0
- package/dist/types/src/error.d.ts +3 -0
- package/package.json +53 -0
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./address"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./buyer-customized-info-detail"), exports);
|
|
6
|
+
(0, tslib_1.__exportStar)(require("./buyer-info"), exports);
|
|
7
|
+
(0, tslib_1.__exportStar)(require("./buyer-tax-info"), exports);
|
|
8
|
+
(0, tslib_1.__exportStar)(require("./fulfillment-instruction"), exports);
|
|
9
|
+
(0, tslib_1.__exportStar)(require("./get-order-address-response"), exports);
|
|
10
|
+
(0, tslib_1.__exportStar)(require("./get-order-buyer-info-response"), exports);
|
|
11
|
+
(0, tslib_1.__exportStar)(require("./get-order-items-buyer-info-response"), exports);
|
|
12
|
+
(0, tslib_1.__exportStar)(require("./get-order-items-response"), exports);
|
|
13
|
+
(0, tslib_1.__exportStar)(require("./get-order-response"), exports);
|
|
14
|
+
(0, tslib_1.__exportStar)(require("./get-orders-response"), exports);
|
|
15
|
+
(0, tslib_1.__exportStar)(require("./item-buyer-info"), exports);
|
|
16
|
+
(0, tslib_1.__exportStar)(require("./marketplace-tax-info"), exports);
|
|
17
|
+
(0, tslib_1.__exportStar)(require("./model-error"), exports);
|
|
18
|
+
(0, tslib_1.__exportStar)(require("./money"), exports);
|
|
19
|
+
(0, tslib_1.__exportStar)(require("./order"), exports);
|
|
20
|
+
(0, tslib_1.__exportStar)(require("./order-address"), exports);
|
|
21
|
+
(0, tslib_1.__exportStar)(require("./order-buyer-info"), exports);
|
|
22
|
+
(0, tslib_1.__exportStar)(require("./order-item"), exports);
|
|
23
|
+
(0, tslib_1.__exportStar)(require("./order-item-buyer-info"), exports);
|
|
24
|
+
(0, tslib_1.__exportStar)(require("./order-items-buyer-info-list"), exports);
|
|
25
|
+
(0, tslib_1.__exportStar)(require("./order-items-list"), exports);
|
|
26
|
+
(0, tslib_1.__exportStar)(require("./orders-list"), exports);
|
|
27
|
+
(0, tslib_1.__exportStar)(require("./payment-execution-detail-item"), exports);
|
|
28
|
+
(0, tslib_1.__exportStar)(require("./points-granted-detail"), exports);
|
|
29
|
+
(0, tslib_1.__exportStar)(require("./product-info-detail"), exports);
|
|
30
|
+
(0, tslib_1.__exportStar)(require("./tax-classification"), exports);
|
|
31
|
+
(0, tslib_1.__exportStar)(require("./tax-collection"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,25 @@
|
|
|
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.OrderItemDeemedResellerCategoryEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var OrderItemDeemedResellerCategoryEnum;
|
|
22
|
+
(function (OrderItemDeemedResellerCategoryEnum) {
|
|
23
|
+
OrderItemDeemedResellerCategoryEnum["Ioss"] = "IOSS";
|
|
24
|
+
OrderItemDeemedResellerCategoryEnum["Uoss"] = "UOSS";
|
|
25
|
+
})(OrderItemDeemedResellerCategoryEnum = exports.OrderItemDeemedResellerCategoryEnum || (exports.OrderItemDeemedResellerCategoryEnum = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,62 @@
|
|
|
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.OrderOrderTypeEnum = exports.OrderPaymentMethodEnum = exports.OrderFulfillmentChannelEnum = exports.OrderOrderStatusEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var OrderOrderStatusEnum;
|
|
22
|
+
(function (OrderOrderStatusEnum) {
|
|
23
|
+
OrderOrderStatusEnum["Pending"] = "Pending";
|
|
24
|
+
OrderOrderStatusEnum["Unshipped"] = "Unshipped";
|
|
25
|
+
OrderOrderStatusEnum["PartiallyShipped"] = "PartiallyShipped";
|
|
26
|
+
OrderOrderStatusEnum["Shipped"] = "Shipped";
|
|
27
|
+
OrderOrderStatusEnum["Canceled"] = "Canceled";
|
|
28
|
+
OrderOrderStatusEnum["Unfulfillable"] = "Unfulfillable";
|
|
29
|
+
OrderOrderStatusEnum["InvoiceUnconfirmed"] = "InvoiceUnconfirmed";
|
|
30
|
+
OrderOrderStatusEnum["PendingAvailability"] = "PendingAvailability";
|
|
31
|
+
})(OrderOrderStatusEnum = exports.OrderOrderStatusEnum || (exports.OrderOrderStatusEnum = {}));
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
* @enum {string}
|
|
35
|
+
*/
|
|
36
|
+
var OrderFulfillmentChannelEnum;
|
|
37
|
+
(function (OrderFulfillmentChannelEnum) {
|
|
38
|
+
OrderFulfillmentChannelEnum["Mfn"] = "MFN";
|
|
39
|
+
OrderFulfillmentChannelEnum["Afn"] = "AFN";
|
|
40
|
+
})(OrderFulfillmentChannelEnum = exports.OrderFulfillmentChannelEnum || (exports.OrderFulfillmentChannelEnum = {}));
|
|
41
|
+
/**
|
|
42
|
+
* @export
|
|
43
|
+
* @enum {string}
|
|
44
|
+
*/
|
|
45
|
+
var OrderPaymentMethodEnum;
|
|
46
|
+
(function (OrderPaymentMethodEnum) {
|
|
47
|
+
OrderPaymentMethodEnum["Cod"] = "COD";
|
|
48
|
+
OrderPaymentMethodEnum["Cvs"] = "CVS";
|
|
49
|
+
OrderPaymentMethodEnum["Other"] = "Other";
|
|
50
|
+
})(OrderPaymentMethodEnum = exports.OrderPaymentMethodEnum || (exports.OrderPaymentMethodEnum = {}));
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
* @enum {string}
|
|
54
|
+
*/
|
|
55
|
+
var OrderOrderTypeEnum;
|
|
56
|
+
(function (OrderOrderTypeEnum) {
|
|
57
|
+
OrderOrderTypeEnum["StandardOrder"] = "StandardOrder";
|
|
58
|
+
OrderOrderTypeEnum["LongLeadTimeOrder"] = "LongLeadTimeOrder";
|
|
59
|
+
OrderOrderTypeEnum["Preorder"] = "Preorder";
|
|
60
|
+
OrderOrderTypeEnum["BackOrder"] = "BackOrder";
|
|
61
|
+
OrderOrderTypeEnum["SourcingOnDemandOrder"] = "SourcingOnDemandOrder";
|
|
62
|
+
})(OrderOrderTypeEnum = exports.OrderOrderTypeEnum || (exports.OrderOrderTypeEnum = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,15 @@
|
|
|
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 });
|
|
@@ -0,0 +1,32 @@
|
|
|
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.TaxCollectionResponsiblePartyEnum = exports.TaxCollectionModelEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var TaxCollectionModelEnum;
|
|
22
|
+
(function (TaxCollectionModelEnum) {
|
|
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 = {}));
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrdersApiClient = exports.RATE_LIMITS = void 0;
|
|
4
|
+
/* eslint-disable prefer-regex-literals */
|
|
5
|
+
const common_1 = require("@sp-api-sdk/common");
|
|
6
|
+
const api_model_1 = require("./api-model");
|
|
7
|
+
const error_1 = require("./error");
|
|
8
|
+
exports.RATE_LIMITS = [
|
|
9
|
+
{
|
|
10
|
+
method: 'get',
|
|
11
|
+
urlRegex: new RegExp('^/orders/v0/orders$'),
|
|
12
|
+
rate: 0.0055,
|
|
13
|
+
burst: 20,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
method: 'get',
|
|
17
|
+
urlRegex: new RegExp('^/orders/v0/orders/[^/]*$'),
|
|
18
|
+
rate: 0.0055,
|
|
19
|
+
burst: 20,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
method: 'get',
|
|
23
|
+
urlRegex: new RegExp('^/orders/v0/orders/[^/]*/buyerInfo$'),
|
|
24
|
+
rate: 0.0055,
|
|
25
|
+
burst: 20,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
method: 'get',
|
|
29
|
+
urlRegex: new RegExp('^/orders/v0/orders/[^/]*/address$'),
|
|
30
|
+
rate: 0.0055,
|
|
31
|
+
burst: 20,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
method: 'get',
|
|
35
|
+
urlRegex: new RegExp('^/orders/v0/orders/[^/]*/orderItems$'),
|
|
36
|
+
rate: 0.0055,
|
|
37
|
+
burst: 20,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
method: 'get',
|
|
41
|
+
urlRegex: new RegExp('^/orders/v0/orders/[^/]*/orderItems/buyerInfo$'),
|
|
42
|
+
rate: 0.0055,
|
|
43
|
+
burst: 20,
|
|
44
|
+
},
|
|
45
|
+
];
|
|
46
|
+
class OrdersApiClient extends api_model_1.OrdersV0Api {
|
|
47
|
+
constructor(parameters) {
|
|
48
|
+
const region = common_1.awsRegionByCode[parameters.region] ?? parameters.region;
|
|
49
|
+
const { rateLimiting, ...clientParameters } = parameters;
|
|
50
|
+
const axiosParameters = { ...clientParameters, region };
|
|
51
|
+
if (rateLimiting?.retry) {
|
|
52
|
+
axiosParameters.rateLimits = exports.RATE_LIMITS;
|
|
53
|
+
axiosParameters.onRetry = rateLimiting.onRetry;
|
|
54
|
+
}
|
|
55
|
+
const axiosInstance = (0, common_1.createAxiosInstance)(axiosParameters);
|
|
56
|
+
const configuration = new api_model_1.Configuration();
|
|
57
|
+
const environment = parameters.sandbox ? 'sandbox' : 'production';
|
|
58
|
+
const endpoint = common_1.endpoints[environment][region];
|
|
59
|
+
if (!endpoint) {
|
|
60
|
+
throw new error_1.OrdersApiError(`Unknown region : ${region}`);
|
|
61
|
+
}
|
|
62
|
+
super(configuration, endpoint, axiosInstance);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.OrdersApiClient = OrdersApiClient;
|