@sp-api-sdk/orders-api-v0 1.18.7 → 1.19.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/dist/cjs/src/api-model/api/orders-v0-api.js +221 -6
- package/dist/cjs/src/api-model/base.js +5 -1
- package/dist/cjs/src/api-model/configuration.js +49 -0
- package/dist/cjs/src/api-model/models/approval-support-data-element.js +15 -0
- package/dist/cjs/src/api-model/models/confirm-shipment-error-response.js +15 -0
- package/dist/cjs/src/api-model/models/confirm-shipment-order-item.js +15 -0
- package/dist/cjs/src/api-model/models/confirm-shipment-request.js +19 -0
- package/dist/cjs/src/api-model/models/get-order-approvals-response.js +15 -0
- package/dist/cjs/src/api-model/models/index.js +18 -0
- package/dist/cjs/src/api-model/models/item-approval-action-changes.js +15 -0
- package/dist/cjs/src/api-model/models/item-approval-action.js +21 -0
- package/dist/cjs/src/api-model/models/item-approval-context.js +15 -0
- package/dist/cjs/src/api-model/models/item-approval-status.js +29 -0
- package/dist/cjs/src/api-model/models/item-approval-type.js +24 -0
- package/dist/cjs/src/api-model/models/item-approval.js +25 -0
- package/dist/cjs/src/api-model/models/item-identifier.js +21 -0
- package/dist/cjs/src/api-model/models/order-approvals-response.js +15 -0
- package/dist/cjs/src/api-model/models/order-item-approval-request.js +15 -0
- package/dist/cjs/src/api-model/models/order-item-approvals.js +15 -0
- package/dist/cjs/src/api-model/models/package-detail.js +15 -0
- package/dist/cjs/src/api-model/models/update-items-approvals-error-response.js +15 -0
- package/dist/cjs/src/api-model/models/update-order-approvals-request.js +15 -0
- package/dist/cjs/src/client.js +21 -0
- package/dist/es/src/api-model/api/orders-v0-api.js +221 -6
- package/dist/es/src/api-model/base.js +5 -1
- package/dist/es/src/api-model/configuration.js +49 -0
- package/dist/es/src/api-model/models/approval-support-data-element.js +14 -0
- package/dist/es/src/api-model/models/confirm-shipment-error-response.js +14 -0
- package/dist/es/src/api-model/models/confirm-shipment-order-item.js +14 -0
- package/dist/es/src/api-model/models/confirm-shipment-request.js +16 -0
- package/dist/es/src/api-model/models/get-order-approvals-response.js +14 -0
- package/dist/es/src/api-model/models/index.js +18 -0
- package/dist/es/src/api-model/models/item-approval-action-changes.js +14 -0
- package/dist/es/src/api-model/models/item-approval-action.js +18 -0
- package/dist/es/src/api-model/models/item-approval-context.js +14 -0
- package/dist/es/src/api-model/models/item-approval-status.js +26 -0
- package/dist/es/src/api-model/models/item-approval-type.js +21 -0
- package/dist/es/src/api-model/models/item-approval.js +22 -0
- package/dist/es/src/api-model/models/item-identifier.js +18 -0
- package/dist/es/src/api-model/models/order-approvals-response.js +14 -0
- package/dist/es/src/api-model/models/order-item-approval-request.js +14 -0
- package/dist/es/src/api-model/models/order-item-approvals.js +14 -0
- package/dist/es/src/api-model/models/package-detail.js +14 -0
- package/dist/es/src/api-model/models/update-items-approvals-error-response.js +14 -0
- package/dist/es/src/api-model/models/update-order-approvals-request.js +14 -0
- package/dist/es/src/client.js +21 -0
- package/dist/types/src/api-model/api/orders-v0-api.d.ts +197 -3
- package/dist/types/src/api-model/models/approval-support-data-element.d.ts +30 -0
- package/dist/types/src/api-model/models/confirm-shipment-error-response.d.ts +24 -0
- package/dist/types/src/api-model/models/confirm-shipment-order-item.d.ts +36 -0
- package/dist/types/src/api-model/models/confirm-shipment-request.d.ts +41 -0
- package/dist/types/src/api-model/models/get-order-approvals-response.d.ts +31 -0
- package/dist/types/src/api-model/models/index.d.ts +18 -0
- package/dist/types/src/api-model/models/item-approval-action-changes.d.ts +38 -0
- package/dist/types/src/api-model/models/item-approval-action.d.ts +43 -0
- package/dist/types/src/api-model/models/item-approval-context.d.ts +39 -0
- package/dist/types/src/api-model/models/item-approval-status.d.ts +25 -0
- package/dist/types/src/api-model/models/item-approval-type.d.ts +20 -0
- package/dist/types/src/api-model/models/item-approval.d.ts +72 -0
- package/dist/types/src/api-model/models/item-identifier.d.ts +36 -0
- package/dist/types/src/api-model/models/order-approvals-response.d.ts +31 -0
- package/dist/types/src/api-model/models/order-item-approval-request.d.ts +31 -0
- package/dist/types/src/api-model/models/order-item-approvals.d.ts +45 -0
- package/dist/types/src/api-model/models/order-item.d.ts +13 -0
- package/dist/types/src/api-model/models/order.d.ts +14 -0
- package/dist/types/src/api-model/models/package-detail.d.ts +67 -0
- package/dist/types/src/api-model/models/update-items-approvals-error-response.d.ts +24 -0
- package/dist/types/src/api-model/models/update-order-approvals-request.d.ts +31 -0
- package/package.json +3 -3
|
@@ -27,6 +27,39 @@ const base_1 = require("../base");
|
|
|
27
27
|
*/
|
|
28
28
|
const OrdersV0ApiAxiosParamCreator = function (configuration) {
|
|
29
29
|
return {
|
|
30
|
+
/**
|
|
31
|
+
* Updates the shipment confirmation status for a specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | 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 see higher rate and burst values then 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).
|
|
32
|
+
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
33
|
+
* @param {ConfirmShipmentRequest} payload Request body of confirmShipment.
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
confirmShipment: async (orderId, payload, options = {}) => {
|
|
38
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
39
|
+
(0, common_1.assertParamExists)('confirmShipment', 'orderId', orderId);
|
|
40
|
+
// verify required parameter 'payload' is not null or undefined
|
|
41
|
+
(0, common_1.assertParamExists)('confirmShipment', 'payload', payload);
|
|
42
|
+
const localVarPath = `/orders/v0/orders/{orderId}/shipmentConfirmation`
|
|
43
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
44
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
46
|
+
let baseOptions;
|
|
47
|
+
if (configuration) {
|
|
48
|
+
baseOptions = configuration.baseOptions;
|
|
49
|
+
}
|
|
50
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
51
|
+
const localVarHeaderParameter = {};
|
|
52
|
+
const localVarQueryParameter = {};
|
|
53
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
54
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
55
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
57
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
58
|
+
return {
|
|
59
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
60
|
+
options: localVarRequestOptions,
|
|
61
|
+
};
|
|
62
|
+
},
|
|
30
63
|
/**
|
|
31
64
|
* Returns the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 20 | 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 see higher rate and burst values then 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).
|
|
32
65
|
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
@@ -143,6 +176,46 @@ const OrdersV0ApiAxiosParamCreator = function (configuration) {
|
|
|
143
176
|
options: localVarRequestOptions,
|
|
144
177
|
};
|
|
145
178
|
},
|
|
179
|
+
/**
|
|
180
|
+
* Returns detailed order items approvals information for the order specified. If NextToken is provided, it\'s used to retrieve the next page of order items approvals. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.5 | 30 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
181
|
+
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628.
|
|
182
|
+
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
183
|
+
* @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return approvals for items which approval type is contained in the specified approval types.
|
|
184
|
+
* @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return approvals that contain items which approval status is contained in the specified approval status.
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
getOrderItemsApprovals: async (orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options = {}) => {
|
|
189
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
190
|
+
(0, common_1.assertParamExists)('getOrderItemsApprovals', 'orderId', orderId);
|
|
191
|
+
const localVarPath = `/orders/v0/orders/{orderId}/approvals`
|
|
192
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
193
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
194
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
195
|
+
let baseOptions;
|
|
196
|
+
if (configuration) {
|
|
197
|
+
baseOptions = configuration.baseOptions;
|
|
198
|
+
}
|
|
199
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
200
|
+
const localVarHeaderParameter = {};
|
|
201
|
+
const localVarQueryParameter = {};
|
|
202
|
+
if (nextToken !== undefined) {
|
|
203
|
+
localVarQueryParameter['NextToken'] = nextToken;
|
|
204
|
+
}
|
|
205
|
+
if (itemApprovalTypes) {
|
|
206
|
+
localVarQueryParameter['ItemApprovalTypes'] = itemApprovalTypes.join(base_1.COLLECTION_FORMATS.csv);
|
|
207
|
+
}
|
|
208
|
+
if (itemApprovalStatus) {
|
|
209
|
+
localVarQueryParameter['ItemApprovalStatus'] = itemApprovalStatus.join(base_1.COLLECTION_FORMATS.csv);
|
|
210
|
+
}
|
|
211
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
212
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
213
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
214
|
+
return {
|
|
215
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
216
|
+
options: localVarRequestOptions,
|
|
217
|
+
};
|
|
218
|
+
},
|
|
146
219
|
/**
|
|
147
220
|
* Returns buyer information for the order items in the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.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 see higher rate and burst values then 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).
|
|
148
221
|
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
@@ -223,10 +296,12 @@ const OrdersV0ApiAxiosParamCreator = function (configuration) {
|
|
|
223
296
|
* @param {string} [actualFulfillmentSupplySourceId] Denotes the recommended sourceId where the order should be fulfilled from.
|
|
224
297
|
* @param {boolean} [isISPU] When true, this order is marked to be picked up from a store rather than delivered.
|
|
225
298
|
* @param {string} [storeChainStoreId] The store chain store identifier. Linked to a specific store in a store chain.
|
|
299
|
+
* @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return orders that contain items which approval type is contained in the specified approval types.
|
|
300
|
+
* @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return orders that contain items which approval status is contained in the specified approval status.
|
|
226
301
|
* @param {*} [options] Override http request option.
|
|
227
302
|
* @throws {RequiredError}
|
|
228
303
|
*/
|
|
229
|
-
getOrders: async (marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options = {}) => {
|
|
304
|
+
getOrders: async (marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, itemApprovalTypes, itemApprovalStatus, options = {}) => {
|
|
230
305
|
// verify required parameter 'marketplaceIds' is not null or undefined
|
|
231
306
|
(0, common_1.assertParamExists)('getOrders', 'marketplaceIds', marketplaceIds);
|
|
232
307
|
const localVarPath = `/orders/v0/orders`;
|
|
@@ -293,9 +368,48 @@ const OrdersV0ApiAxiosParamCreator = function (configuration) {
|
|
|
293
368
|
if (storeChainStoreId !== undefined) {
|
|
294
369
|
localVarQueryParameter['StoreChainStoreId'] = storeChainStoreId;
|
|
295
370
|
}
|
|
371
|
+
if (itemApprovalTypes) {
|
|
372
|
+
localVarQueryParameter['ItemApprovalTypes'] = itemApprovalTypes.join(base_1.COLLECTION_FORMATS.csv);
|
|
373
|
+
}
|
|
374
|
+
if (itemApprovalStatus) {
|
|
375
|
+
localVarQueryParameter['ItemApprovalStatus'] = itemApprovalStatus.join(base_1.COLLECTION_FORMATS.csv);
|
|
376
|
+
}
|
|
377
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
378
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
379
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
380
|
+
return {
|
|
381
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
382
|
+
options: localVarRequestOptions,
|
|
383
|
+
};
|
|
384
|
+
},
|
|
385
|
+
/**
|
|
386
|
+
* Update the order items approvals for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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 see higher rate and burst values then 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).
|
|
387
|
+
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
388
|
+
* @param {UpdateOrderApprovalsRequest} payload The request body for the updateOrderItemsApprovals operation.
|
|
389
|
+
* @param {*} [options] Override http request option.
|
|
390
|
+
* @throws {RequiredError}
|
|
391
|
+
*/
|
|
392
|
+
updateOrderItemsApprovals: async (orderId, payload, options = {}) => {
|
|
393
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
394
|
+
(0, common_1.assertParamExists)('updateOrderItemsApprovals', 'orderId', orderId);
|
|
395
|
+
// verify required parameter 'payload' is not null or undefined
|
|
396
|
+
(0, common_1.assertParamExists)('updateOrderItemsApprovals', 'payload', payload);
|
|
397
|
+
const localVarPath = `/orders/v0/orders/{orderId}/approvals`
|
|
398
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
399
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
400
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
401
|
+
let baseOptions;
|
|
402
|
+
if (configuration) {
|
|
403
|
+
baseOptions = configuration.baseOptions;
|
|
404
|
+
}
|
|
405
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
406
|
+
const localVarHeaderParameter = {};
|
|
407
|
+
const localVarQueryParameter = {};
|
|
408
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
296
409
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
297
410
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
411
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
412
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(payload, localVarRequestOptions, configuration);
|
|
299
413
|
return {
|
|
300
414
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
301
415
|
options: localVarRequestOptions,
|
|
@@ -377,6 +491,17 @@ exports.OrdersV0ApiAxiosParamCreator = OrdersV0ApiAxiosParamCreator;
|
|
|
377
491
|
const OrdersV0ApiFp = function (configuration) {
|
|
378
492
|
const localVarAxiosParamCreator = (0, exports.OrdersV0ApiAxiosParamCreator)(configuration);
|
|
379
493
|
return {
|
|
494
|
+
/**
|
|
495
|
+
* Updates the shipment confirmation status for a specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | 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 see higher rate and burst values then 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).
|
|
496
|
+
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
497
|
+
* @param {ConfirmShipmentRequest} payload Request body of confirmShipment.
|
|
498
|
+
* @param {*} [options] Override http request option.
|
|
499
|
+
* @throws {RequiredError}
|
|
500
|
+
*/
|
|
501
|
+
async confirmShipment(orderId, payload, options) {
|
|
502
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.confirmShipment(orderId, payload, options);
|
|
503
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
504
|
+
},
|
|
380
505
|
/**
|
|
381
506
|
* Returns the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 20 | 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 see higher rate and burst values then 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).
|
|
382
507
|
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
@@ -418,6 +543,19 @@ const OrdersV0ApiFp = function (configuration) {
|
|
|
418
543
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderItems(orderId, nextToken, options);
|
|
419
544
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
420
545
|
},
|
|
546
|
+
/**
|
|
547
|
+
* Returns detailed order items approvals information for the order specified. If NextToken is provided, it\'s used to retrieve the next page of order items approvals. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.5 | 30 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
548
|
+
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628.
|
|
549
|
+
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
550
|
+
* @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return approvals for items which approval type is contained in the specified approval types.
|
|
551
|
+
* @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return approvals that contain items which approval status is contained in the specified approval status.
|
|
552
|
+
* @param {*} [options] Override http request option.
|
|
553
|
+
* @throws {RequiredError}
|
|
554
|
+
*/
|
|
555
|
+
async getOrderItemsApprovals(orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options) {
|
|
556
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderItemsApprovals(orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options);
|
|
557
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
558
|
+
},
|
|
421
559
|
/**
|
|
422
560
|
* Returns buyer information for the order items in the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.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 see higher rate and burst values then 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).
|
|
423
561
|
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
@@ -459,11 +597,24 @@ const OrdersV0ApiFp = function (configuration) {
|
|
|
459
597
|
* @param {string} [actualFulfillmentSupplySourceId] Denotes the recommended sourceId where the order should be fulfilled from.
|
|
460
598
|
* @param {boolean} [isISPU] When true, this order is marked to be picked up from a store rather than delivered.
|
|
461
599
|
* @param {string} [storeChainStoreId] The store chain store identifier. Linked to a specific store in a store chain.
|
|
600
|
+
* @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return orders that contain items which approval type is contained in the specified approval types.
|
|
601
|
+
* @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return orders that contain items which approval status is contained in the specified approval status.
|
|
462
602
|
* @param {*} [options] Override http request option.
|
|
463
603
|
* @throws {RequiredError}
|
|
464
604
|
*/
|
|
465
|
-
async getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options) {
|
|
466
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options);
|
|
605
|
+
async getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, itemApprovalTypes, itemApprovalStatus, options) {
|
|
606
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, itemApprovalTypes, itemApprovalStatus, options);
|
|
607
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
608
|
+
},
|
|
609
|
+
/**
|
|
610
|
+
* Update the order items approvals for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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 see higher rate and burst values then 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).
|
|
611
|
+
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
612
|
+
* @param {UpdateOrderApprovalsRequest} payload The request body for the updateOrderItemsApprovals operation.
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
*/
|
|
616
|
+
async updateOrderItemsApprovals(orderId, payload, options) {
|
|
617
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrderItemsApprovals(orderId, payload, options);
|
|
467
618
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
468
619
|
},
|
|
469
620
|
/**
|
|
@@ -498,6 +649,16 @@ exports.OrdersV0ApiFp = OrdersV0ApiFp;
|
|
|
498
649
|
const OrdersV0ApiFactory = function (configuration, basePath, axios) {
|
|
499
650
|
const localVarFp = (0, exports.OrdersV0ApiFp)(configuration);
|
|
500
651
|
return {
|
|
652
|
+
/**
|
|
653
|
+
* Updates the shipment confirmation status for a specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | 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 see higher rate and burst values then 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).
|
|
654
|
+
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
655
|
+
* @param {ConfirmShipmentRequest} payload Request body of confirmShipment.
|
|
656
|
+
* @param {*} [options] Override http request option.
|
|
657
|
+
* @throws {RequiredError}
|
|
658
|
+
*/
|
|
659
|
+
confirmShipment(orderId, payload, options) {
|
|
660
|
+
return localVarFp.confirmShipment(orderId, payload, options).then((request) => request(axios, basePath));
|
|
661
|
+
},
|
|
501
662
|
/**
|
|
502
663
|
* Returns the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 20 | 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 see higher rate and burst values then 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).
|
|
503
664
|
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
@@ -535,6 +696,18 @@ const OrdersV0ApiFactory = function (configuration, basePath, axios) {
|
|
|
535
696
|
getOrderItems(orderId, nextToken, options) {
|
|
536
697
|
return localVarFp.getOrderItems(orderId, nextToken, options).then((request) => request(axios, basePath));
|
|
537
698
|
},
|
|
699
|
+
/**
|
|
700
|
+
* Returns detailed order items approvals information for the order specified. If NextToken is provided, it\'s used to retrieve the next page of order items approvals. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.5 | 30 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
701
|
+
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format, e.g. 933-1671587-0818628.
|
|
702
|
+
* @param {string} [nextToken] A string token returned in the response of your previous request.
|
|
703
|
+
* @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return approvals for items which approval type is contained in the specified approval types.
|
|
704
|
+
* @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return approvals that contain items which approval status is contained in the specified approval status.
|
|
705
|
+
* @param {*} [options] Override http request option.
|
|
706
|
+
* @throws {RequiredError}
|
|
707
|
+
*/
|
|
708
|
+
getOrderItemsApprovals(orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options) {
|
|
709
|
+
return localVarFp.getOrderItemsApprovals(orderId, nextToken, itemApprovalTypes, itemApprovalStatus, options).then((request) => request(axios, basePath));
|
|
710
|
+
},
|
|
538
711
|
/**
|
|
539
712
|
* Returns buyer information for the order items in the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.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 see higher rate and burst values then 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).
|
|
540
713
|
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
@@ -574,11 +747,23 @@ const OrdersV0ApiFactory = function (configuration, basePath, axios) {
|
|
|
574
747
|
* @param {string} [actualFulfillmentSupplySourceId] Denotes the recommended sourceId where the order should be fulfilled from.
|
|
575
748
|
* @param {boolean} [isISPU] When true, this order is marked to be picked up from a store rather than delivered.
|
|
576
749
|
* @param {string} [storeChainStoreId] The store chain store identifier. Linked to a specific store in a store chain.
|
|
750
|
+
* @param {Array<ItemApprovalType>} [itemApprovalTypes] When set, only return orders that contain items which approval type is contained in the specified approval types.
|
|
751
|
+
* @param {Array<ItemApprovalStatus>} [itemApprovalStatus] When set, only return orders that contain items which approval status is contained in the specified approval status.
|
|
577
752
|
* @param {*} [options] Override http request option.
|
|
578
753
|
* @throws {RequiredError}
|
|
579
754
|
*/
|
|
580
|
-
getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options) {
|
|
581
|
-
return localVarFp.getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, options).then((request) => request(axios, basePath));
|
|
755
|
+
getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, itemApprovalTypes, itemApprovalStatus, options) {
|
|
756
|
+
return localVarFp.getOrders(marketplaceIds, createdAfter, createdBefore, lastUpdatedAfter, lastUpdatedBefore, orderStatuses, fulfillmentChannels, paymentMethods, buyerEmail, sellerOrderId, maxResultsPerPage, easyShipShipmentStatuses, electronicInvoiceStatuses, nextToken, amazonOrderIds, actualFulfillmentSupplySourceId, isISPU, storeChainStoreId, itemApprovalTypes, itemApprovalStatus, options).then((request) => request(axios, basePath));
|
|
757
|
+
},
|
|
758
|
+
/**
|
|
759
|
+
* Update the order items approvals for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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 see higher rate and burst values then 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).
|
|
760
|
+
* @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
|
|
761
|
+
* @param {UpdateOrderApprovalsRequest} payload The request body for the updateOrderItemsApprovals operation.
|
|
762
|
+
* @param {*} [options] Override http request option.
|
|
763
|
+
* @throws {RequiredError}
|
|
764
|
+
*/
|
|
765
|
+
updateOrderItemsApprovals(orderId, payload, options) {
|
|
766
|
+
return localVarFp.updateOrderItemsApprovals(orderId, payload, options).then((request) => request(axios, basePath));
|
|
582
767
|
},
|
|
583
768
|
/**
|
|
584
769
|
* Update the shipment status for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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 see higher rate and burst values then 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).
|
|
@@ -610,6 +795,16 @@ exports.OrdersV0ApiFactory = OrdersV0ApiFactory;
|
|
|
610
795
|
* @extends {BaseAPI}
|
|
611
796
|
*/
|
|
612
797
|
class OrdersV0Api extends base_1.BaseAPI {
|
|
798
|
+
/**
|
|
799
|
+
* Updates the shipment confirmation status for a specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 10 | 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 see higher rate and burst values then 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).
|
|
800
|
+
* @param {OrdersV0ApiConfirmShipmentRequest} requestParameters Request parameters.
|
|
801
|
+
* @param {*} [options] Override http request option.
|
|
802
|
+
* @throws {RequiredError}
|
|
803
|
+
* @memberof OrdersV0Api
|
|
804
|
+
*/
|
|
805
|
+
confirmShipment(requestParameters, options) {
|
|
806
|
+
return (0, exports.OrdersV0ApiFp)(this.configuration).confirmShipment(requestParameters.orderId, requestParameters.payload, options).then((request) => request(this.axios, this.basePath));
|
|
807
|
+
}
|
|
613
808
|
/**
|
|
614
809
|
* Returns the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 20 | 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 see higher rate and burst values then 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).
|
|
615
810
|
* @param {OrdersV0ApiGetOrderRequest} requestParameters Request parameters.
|
|
@@ -650,6 +845,16 @@ class OrdersV0Api extends base_1.BaseAPI {
|
|
|
650
845
|
getOrderItems(requestParameters, options) {
|
|
651
846
|
return (0, exports.OrdersV0ApiFp)(this.configuration).getOrderItems(requestParameters.orderId, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
652
847
|
}
|
|
848
|
+
/**
|
|
849
|
+
* Returns detailed order items approvals information for the order specified. If NextToken is provided, it\'s used to retrieve the next page of order items approvals. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 0.5 | 30 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
850
|
+
* @param {OrdersV0ApiGetOrderItemsApprovalsRequest} requestParameters Request parameters.
|
|
851
|
+
* @param {*} [options] Override http request option.
|
|
852
|
+
* @throws {RequiredError}
|
|
853
|
+
* @memberof OrdersV0Api
|
|
854
|
+
*/
|
|
855
|
+
getOrderItemsApprovals(requestParameters, options) {
|
|
856
|
+
return (0, exports.OrdersV0ApiFp)(this.configuration).getOrderItemsApprovals(requestParameters.orderId, requestParameters.nextToken, requestParameters.itemApprovalTypes, requestParameters.itemApprovalStatus, options).then((request) => request(this.axios, this.basePath));
|
|
857
|
+
}
|
|
653
858
|
/**
|
|
654
859
|
* Returns buyer information for the order items in the order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.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 see higher rate and burst values then 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).
|
|
655
860
|
* @param {OrdersV0ApiGetOrderItemsBuyerInfoRequest} requestParameters Request parameters.
|
|
@@ -678,7 +883,17 @@ class OrdersV0Api extends base_1.BaseAPI {
|
|
|
678
883
|
* @memberof OrdersV0Api
|
|
679
884
|
*/
|
|
680
885
|
getOrders(requestParameters, options) {
|
|
681
|
-
return (0, exports.OrdersV0ApiFp)(this.configuration).getOrders(requestParameters.marketplaceIds, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.orderStatuses, requestParameters.fulfillmentChannels, requestParameters.paymentMethods, requestParameters.buyerEmail, requestParameters.sellerOrderId, requestParameters.maxResultsPerPage, requestParameters.easyShipShipmentStatuses, requestParameters.electronicInvoiceStatuses, requestParameters.nextToken, requestParameters.amazonOrderIds, requestParameters.actualFulfillmentSupplySourceId, requestParameters.isISPU, requestParameters.storeChainStoreId, options).then((request) => request(this.axios, this.basePath));
|
|
886
|
+
return (0, exports.OrdersV0ApiFp)(this.configuration).getOrders(requestParameters.marketplaceIds, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.lastUpdatedAfter, requestParameters.lastUpdatedBefore, requestParameters.orderStatuses, requestParameters.fulfillmentChannels, requestParameters.paymentMethods, requestParameters.buyerEmail, requestParameters.sellerOrderId, requestParameters.maxResultsPerPage, requestParameters.easyShipShipmentStatuses, requestParameters.electronicInvoiceStatuses, requestParameters.nextToken, requestParameters.amazonOrderIds, requestParameters.actualFulfillmentSupplySourceId, requestParameters.isISPU, requestParameters.storeChainStoreId, requestParameters.itemApprovalTypes, requestParameters.itemApprovalStatus, options).then((request) => request(this.axios, this.basePath));
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* Update the order items approvals for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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 see higher rate and burst values then 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).
|
|
890
|
+
* @param {OrdersV0ApiUpdateOrderItemsApprovalsRequest} requestParameters Request parameters.
|
|
891
|
+
* @param {*} [options] Override http request option.
|
|
892
|
+
* @throws {RequiredError}
|
|
893
|
+
* @memberof OrdersV0Api
|
|
894
|
+
*/
|
|
895
|
+
updateOrderItemsApprovals(requestParameters, options) {
|
|
896
|
+
return (0, exports.OrdersV0ApiFp)(this.configuration).updateOrderItemsApprovals(requestParameters.orderId, requestParameters.payload, options).then((request) => request(this.axios, this.basePath));
|
|
682
897
|
}
|
|
683
898
|
/**
|
|
684
899
|
* Update the shipment status for an order that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | 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 see higher rate and burst values then 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).
|
|
@@ -35,6 +35,9 @@ exports.COLLECTION_FORMATS = {
|
|
|
35
35
|
* @class BaseAPI
|
|
36
36
|
*/
|
|
37
37
|
class BaseAPI {
|
|
38
|
+
basePath;
|
|
39
|
+
axios;
|
|
40
|
+
configuration;
|
|
38
41
|
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
39
42
|
this.basePath = basePath;
|
|
40
43
|
this.axios = axios;
|
|
@@ -53,10 +56,11 @@ exports.BaseAPI = BaseAPI;
|
|
|
53
56
|
* @extends {Error}
|
|
54
57
|
*/
|
|
55
58
|
class RequiredError extends Error {
|
|
59
|
+
field;
|
|
60
|
+
name = "RequiredError";
|
|
56
61
|
constructor(field, msg) {
|
|
57
62
|
super(msg);
|
|
58
63
|
this.field = field;
|
|
59
|
-
this.name = "RequiredError";
|
|
60
64
|
}
|
|
61
65
|
}
|
|
62
66
|
exports.RequiredError = RequiredError;
|
|
@@ -15,6 +15,55 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.Configuration = void 0;
|
|
17
17
|
class Configuration {
|
|
18
|
+
/**
|
|
19
|
+
* parameter for apiKey security
|
|
20
|
+
* @param name security name
|
|
21
|
+
* @memberof Configuration
|
|
22
|
+
*/
|
|
23
|
+
apiKey;
|
|
24
|
+
/**
|
|
25
|
+
* parameter for basic security
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Configuration
|
|
29
|
+
*/
|
|
30
|
+
username;
|
|
31
|
+
/**
|
|
32
|
+
* parameter for basic security
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Configuration
|
|
36
|
+
*/
|
|
37
|
+
password;
|
|
38
|
+
/**
|
|
39
|
+
* parameter for oauth2 security
|
|
40
|
+
* @param name security name
|
|
41
|
+
* @param scopes oauth2 scope
|
|
42
|
+
* @memberof Configuration
|
|
43
|
+
*/
|
|
44
|
+
accessToken;
|
|
45
|
+
/**
|
|
46
|
+
* override base path
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof Configuration
|
|
50
|
+
*/
|
|
51
|
+
basePath;
|
|
52
|
+
/**
|
|
53
|
+
* base options for axios calls
|
|
54
|
+
*
|
|
55
|
+
* @type {any}
|
|
56
|
+
* @memberof Configuration
|
|
57
|
+
*/
|
|
58
|
+
baseOptions;
|
|
59
|
+
/**
|
|
60
|
+
* The FormData constructor that will be used to create multipart form data
|
|
61
|
+
* requests. You can inject this here so that execution environments that
|
|
62
|
+
* do not support the FormData class can still run the generated client.
|
|
63
|
+
*
|
|
64
|
+
* @type {new () => FormData}
|
|
65
|
+
*/
|
|
66
|
+
formDataCtor;
|
|
18
67
|
constructor(param = {}) {
|
|
19
68
|
this.apiKey = param.apiKey;
|
|
20
69
|
this.username = param.username;
|
|
@@ -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,19 @@
|
|
|
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.ConfirmShipmentRequestCodCollectionMethodEnum = void 0;
|
|
17
|
+
exports.ConfirmShipmentRequestCodCollectionMethodEnum = {
|
|
18
|
+
DirectPayment: 'DirectPayment'
|
|
19
|
+
};
|
|
@@ -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 });
|
|
@@ -2,36 +2,52 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./address"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./approval-support-data-element"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./automated-shipping-settings"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./buyer-customized-info-detail"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./buyer-info"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./buyer-requested-cancel"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./buyer-tax-info"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./buyer-tax-information"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./confirm-shipment-error-response"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./confirm-shipment-order-item"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./confirm-shipment-request"), exports);
|
|
11
15
|
tslib_1.__exportStar(require("./easy-ship-shipment-status"), exports);
|
|
12
16
|
tslib_1.__exportStar(require("./electronic-invoice-status"), exports);
|
|
13
17
|
tslib_1.__exportStar(require("./fulfillment-instruction"), exports);
|
|
14
18
|
tslib_1.__exportStar(require("./get-order-address-response"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./get-order-approvals-response"), exports);
|
|
15
20
|
tslib_1.__exportStar(require("./get-order-buyer-info-response"), exports);
|
|
16
21
|
tslib_1.__exportStar(require("./get-order-items-buyer-info-response"), exports);
|
|
17
22
|
tslib_1.__exportStar(require("./get-order-items-response"), exports);
|
|
18
23
|
tslib_1.__exportStar(require("./get-order-regulated-info-response"), exports);
|
|
19
24
|
tslib_1.__exportStar(require("./get-order-response"), exports);
|
|
20
25
|
tslib_1.__exportStar(require("./get-orders-response"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./item-approval"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./item-approval-action"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./item-approval-action-changes"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./item-approval-context"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./item-approval-status"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./item-approval-type"), exports);
|
|
21
32
|
tslib_1.__exportStar(require("./item-buyer-info"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./item-identifier"), exports);
|
|
22
34
|
tslib_1.__exportStar(require("./marketplace-tax-info"), exports);
|
|
23
35
|
tslib_1.__exportStar(require("./model-error"), exports);
|
|
24
36
|
tslib_1.__exportStar(require("./money"), exports);
|
|
25
37
|
tslib_1.__exportStar(require("./order"), exports);
|
|
26
38
|
tslib_1.__exportStar(require("./order-address"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./order-approvals-response"), exports);
|
|
27
40
|
tslib_1.__exportStar(require("./order-buyer-info"), exports);
|
|
28
41
|
tslib_1.__exportStar(require("./order-item"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./order-item-approval-request"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./order-item-approvals"), exports);
|
|
29
44
|
tslib_1.__exportStar(require("./order-item-buyer-info"), exports);
|
|
30
45
|
tslib_1.__exportStar(require("./order-items-buyer-info-list"), exports);
|
|
31
46
|
tslib_1.__exportStar(require("./order-items-inner"), exports);
|
|
32
47
|
tslib_1.__exportStar(require("./order-items-list"), exports);
|
|
33
48
|
tslib_1.__exportStar(require("./order-regulated-info"), exports);
|
|
34
49
|
tslib_1.__exportStar(require("./orders-list"), exports);
|
|
50
|
+
tslib_1.__exportStar(require("./package-detail"), exports);
|
|
35
51
|
tslib_1.__exportStar(require("./payment-execution-detail-item"), exports);
|
|
36
52
|
tslib_1.__exportStar(require("./points-granted-detail"), exports);
|
|
37
53
|
tslib_1.__exportStar(require("./product-info-detail"), exports);
|
|
@@ -42,6 +58,8 @@ tslib_1.__exportStar(require("./rejection-reason"), exports);
|
|
|
42
58
|
tslib_1.__exportStar(require("./shipment-status"), exports);
|
|
43
59
|
tslib_1.__exportStar(require("./tax-classification"), exports);
|
|
44
60
|
tslib_1.__exportStar(require("./tax-collection"), exports);
|
|
61
|
+
tslib_1.__exportStar(require("./update-items-approvals-error-response"), exports);
|
|
62
|
+
tslib_1.__exportStar(require("./update-order-approvals-request"), exports);
|
|
45
63
|
tslib_1.__exportStar(require("./update-shipment-status-error-response"), exports);
|
|
46
64
|
tslib_1.__exportStar(require("./update-shipment-status-request"), exports);
|
|
47
65
|
tslib_1.__exportStar(require("./update-verification-status-error-response"), 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,21 @@
|
|
|
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.ItemApprovalActionActionTypeEnum = void 0;
|
|
17
|
+
exports.ItemApprovalActionActionTypeEnum = {
|
|
18
|
+
Approve: 'APPROVE',
|
|
19
|
+
Decline: 'DECLINE',
|
|
20
|
+
ApproveWithChanges: 'APPROVE_WITH_CHANGES'
|
|
21
|
+
};
|