@sp-api-sdk/vendor-orders-api-v1 1.6.15

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.
Files changed (117) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -0
  3. package/dist/cjs/index.js +6 -0
  4. package/dist/cjs/src/api-model/api/vendor-orders-api.js +438 -0
  5. package/dist/cjs/src/api-model/api.js +17 -0
  6. package/dist/cjs/src/api-model/base.js +62 -0
  7. package/dist/cjs/src/api-model/common.js +137 -0
  8. package/dist/cjs/src/api-model/configuration.js +42 -0
  9. package/dist/cjs/src/api-model/index.js +19 -0
  10. package/dist/cjs/src/api-model/models/acknowledgement-status-details.js +15 -0
  11. package/dist/cjs/src/api-model/models/address.js +15 -0
  12. package/dist/cjs/src/api-model/models/get-purchase-order-response.js +15 -0
  13. package/dist/cjs/src/api-model/models/get-purchase-orders-response.js +15 -0
  14. package/dist/cjs/src/api-model/models/get-purchase-orders-status-response.js +15 -0
  15. package/dist/cjs/src/api-model/models/import-details.js +47 -0
  16. package/dist/cjs/src/api-model/models/index.js +31 -0
  17. package/dist/cjs/src/api-model/models/item-quantity.js +25 -0
  18. package/dist/cjs/src/api-model/models/model-error.js +15 -0
  19. package/dist/cjs/src/api-model/models/money.js +15 -0
  20. package/dist/cjs/src/api-model/models/order-acknowledgement-item.js +15 -0
  21. package/dist/cjs/src/api-model/models/order-acknowledgement.js +15 -0
  22. package/dist/cjs/src/api-model/models/order-details.js +38 -0
  23. package/dist/cjs/src/api-model/models/order-item-acknowledgement.js +36 -0
  24. package/dist/cjs/src/api-model/models/order-item-status-acknowledgement-status.js +27 -0
  25. package/dist/cjs/src/api-model/models/order-item-status-ordered-quantity.js +15 -0
  26. package/dist/cjs/src/api-model/models/order-item-status.js +15 -0
  27. package/dist/cjs/src/api-model/models/order-item.js +15 -0
  28. package/dist/cjs/src/api-model/models/order-list-status.js +15 -0
  29. package/dist/cjs/src/api-model/models/order-list.js +15 -0
  30. package/dist/cjs/src/api-model/models/order-status.js +25 -0
  31. package/dist/cjs/src/api-model/models/order.js +26 -0
  32. package/dist/cjs/src/api-model/models/ordered-quantity-details.js +15 -0
  33. package/dist/cjs/src/api-model/models/pagination.js +15 -0
  34. package/dist/cjs/src/api-model/models/party-identification.js +15 -0
  35. package/dist/cjs/src/api-model/models/submit-acknowledgement-request.js +15 -0
  36. package/dist/cjs/src/api-model/models/submit-acknowledgement-response.js +15 -0
  37. package/dist/cjs/src/api-model/models/tax-registration-details.js +25 -0
  38. package/dist/cjs/src/api-model/models/transaction-id.js +15 -0
  39. package/dist/cjs/src/client.js +53 -0
  40. package/dist/cjs/src/error.js +10 -0
  41. package/dist/es/index.js +3 -0
  42. package/dist/es/src/api-model/api/vendor-orders-api.js +430 -0
  43. package/dist/es/src/api-model/api.js +14 -0
  44. package/dist/es/src/api-model/base.js +56 -0
  45. package/dist/es/src/api-model/common.js +125 -0
  46. package/dist/es/src/api-model/configuration.js +38 -0
  47. package/dist/es/src/api-model/index.js +16 -0
  48. package/dist/es/src/api-model/models/acknowledgement-status-details.js +14 -0
  49. package/dist/es/src/api-model/models/address.js +14 -0
  50. package/dist/es/src/api-model/models/get-purchase-order-response.js +14 -0
  51. package/dist/es/src/api-model/models/get-purchase-orders-response.js +14 -0
  52. package/dist/es/src/api-model/models/get-purchase-orders-status-response.js +14 -0
  53. package/dist/es/src/api-model/models/import-details.js +44 -0
  54. package/dist/es/src/api-model/models/index.js +28 -0
  55. package/dist/es/src/api-model/models/item-quantity.js +22 -0
  56. package/dist/es/src/api-model/models/model-error.js +14 -0
  57. package/dist/es/src/api-model/models/money.js +14 -0
  58. package/dist/es/src/api-model/models/order-acknowledgement-item.js +14 -0
  59. package/dist/es/src/api-model/models/order-acknowledgement.js +14 -0
  60. package/dist/es/src/api-model/models/order-details.js +35 -0
  61. package/dist/es/src/api-model/models/order-item-acknowledgement.js +33 -0
  62. package/dist/es/src/api-model/models/order-item-status-acknowledgement-status.js +24 -0
  63. package/dist/es/src/api-model/models/order-item-status-ordered-quantity.js +14 -0
  64. package/dist/es/src/api-model/models/order-item-status.js +14 -0
  65. package/dist/es/src/api-model/models/order-item.js +14 -0
  66. package/dist/es/src/api-model/models/order-list-status.js +14 -0
  67. package/dist/es/src/api-model/models/order-list.js +14 -0
  68. package/dist/es/src/api-model/models/order-status.js +22 -0
  69. package/dist/es/src/api-model/models/order.js +23 -0
  70. package/dist/es/src/api-model/models/ordered-quantity-details.js +14 -0
  71. package/dist/es/src/api-model/models/pagination.js +14 -0
  72. package/dist/es/src/api-model/models/party-identification.js +14 -0
  73. package/dist/es/src/api-model/models/submit-acknowledgement-request.js +14 -0
  74. package/dist/es/src/api-model/models/submit-acknowledgement-response.js +14 -0
  75. package/dist/es/src/api-model/models/tax-registration-details.js +22 -0
  76. package/dist/es/src/api-model/models/transaction-id.js +14 -0
  77. package/dist/es/src/client.js +49 -0
  78. package/dist/es/src/error.js +6 -0
  79. package/dist/types/index.d.ts +3 -0
  80. package/dist/types/src/api-model/api/vendor-orders-api.d.ts +411 -0
  81. package/dist/types/src/api-model/api.d.ts +12 -0
  82. package/dist/types/src/api-model/base.d.ts +55 -0
  83. package/dist/types/src/api-model/common.d.ts +65 -0
  84. package/dist/types/src/api-model/configuration.d.ts +83 -0
  85. package/dist/types/src/api-model/index.d.ts +14 -0
  86. package/dist/types/src/api-model/models/acknowledgement-status-details.d.ts +37 -0
  87. package/dist/types/src/api-model/models/address.d.ts +84 -0
  88. package/dist/types/src/api-model/models/get-purchase-order-response.d.ts +31 -0
  89. package/dist/types/src/api-model/models/get-purchase-orders-response.d.ts +31 -0
  90. package/dist/types/src/api-model/models/get-purchase-orders-status-response.d.ts +31 -0
  91. package/dist/types/src/api-model/models/import-details.d.ts +77 -0
  92. package/dist/types/src/api-model/models/index.d.ts +28 -0
  93. package/dist/types/src/api-model/models/item-quantity.d.ts +44 -0
  94. package/dist/types/src/api-model/models/model-error.d.ts +36 -0
  95. package/dist/types/src/api-model/models/money.d.ts +30 -0
  96. package/dist/types/src/api-model/models/order-acknowledgement-item.d.ts +69 -0
  97. package/dist/types/src/api-model/models/order-acknowledgement.d.ts +44 -0
  98. package/dist/types/src/api-model/models/order-details.d.ts +125 -0
  99. package/dist/types/src/api-model/models/order-item-acknowledgement.d.ts +67 -0
  100. package/dist/types/src/api-model/models/order-item-status-acknowledgement-status.d.ts +54 -0
  101. package/dist/types/src/api-model/models/order-item-status-ordered-quantity.d.ts +32 -0
  102. package/dist/types/src/api-model/models/order-item-status.d.ts +63 -0
  103. package/dist/types/src/api-model/models/order-item.d.ts +62 -0
  104. package/dist/types/src/api-model/models/order-list-status.d.ts +32 -0
  105. package/dist/types/src/api-model/models/order-list.d.ts +32 -0
  106. package/dist/types/src/api-model/models/order-status.d.ts +70 -0
  107. package/dist/types/src/api-model/models/order.d.ts +46 -0
  108. package/dist/types/src/api-model/models/ordered-quantity-details.d.ts +37 -0
  109. package/dist/types/src/api-model/models/pagination.d.ts +24 -0
  110. package/dist/types/src/api-model/models/party-identification.d.ts +38 -0
  111. package/dist/types/src/api-model/models/submit-acknowledgement-request.d.ts +25 -0
  112. package/dist/types/src/api-model/models/submit-acknowledgement-response.d.ts +31 -0
  113. package/dist/types/src/api-model/models/tax-registration-details.d.ts +38 -0
  114. package/dist/types/src/api-model/models/transaction-id.d.ts +24 -0
  115. package/dist/types/src/client.d.ts +13 -0
  116. package/dist/types/src/error.d.ts +3 -0
  117. package/package.json +53 -0
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Selling Partner API for Retail Procurement Orders
6
+ * The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
7
+ *
8
+ * The version of the OpenAPI document: v1
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,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VendorOrdersApiClient = 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('^/vendor/orders/v1/purchaseOrders$'),
12
+ rate: 10,
13
+ burst: 10,
14
+ },
15
+ {
16
+ method: 'get',
17
+ urlRegex: new RegExp('^/vendor/orders/v1/purchaseOrders/[^/]*$'),
18
+ rate: 10,
19
+ burst: 10,
20
+ },
21
+ {
22
+ method: 'post',
23
+ urlRegex: new RegExp('^/vendor/orders/v1/acknowledgements$'),
24
+ rate: 10,
25
+ burst: 10,
26
+ },
27
+ {
28
+ method: 'get',
29
+ urlRegex: new RegExp('^/vendor/orders/v1/purchaseOrdersStatus$'),
30
+ rate: 10,
31
+ burst: 10,
32
+ },
33
+ ];
34
+ class VendorOrdersApiClient extends api_model_1.VendorOrdersApi {
35
+ constructor(parameters) {
36
+ const region = common_1.awsRegionByCode[parameters.region] ?? parameters.region;
37
+ const { rateLimiting, ...clientParameters } = parameters;
38
+ const axiosParameters = { ...clientParameters, region };
39
+ if (rateLimiting?.retry) {
40
+ axiosParameters.rateLimits = exports.RATE_LIMITS;
41
+ axiosParameters.onRetry = rateLimiting.onRetry;
42
+ }
43
+ const axiosInstance = (0, common_1.createAxiosInstance)(axiosParameters);
44
+ const configuration = new api_model_1.Configuration();
45
+ const environment = parameters.sandbox ? 'sandbox' : 'production';
46
+ const endpoint = common_1.endpoints[environment][region];
47
+ if (!endpoint) {
48
+ throw new error_1.VendorOrdersApiError(`Unknown region : ${region}`);
49
+ }
50
+ super(configuration, endpoint, axiosInstance);
51
+ }
52
+ }
53
+ exports.VendorOrdersApiClient = VendorOrdersApiClient;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VendorOrdersApiError = void 0;
4
+ class VendorOrdersApiError extends Error {
5
+ constructor(message) {
6
+ super(message);
7
+ this.name = 'VendorOrdersApiError';
8
+ }
9
+ }
10
+ exports.VendorOrdersApiError = VendorOrdersApiError;
@@ -0,0 +1,3 @@
1
+ export * from './src/client';
2
+ export * from './src/error';
3
+ export * from './src/api-model/models';
@@ -0,0 +1,430 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Selling Partner API for Retail Procurement Orders
5
+ * The Selling Partner API for Retail Procurement Orders provides programmatic access to vendor orders data.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import globalAxios from 'axios';
15
+ // Some imports not used depending on template conditions
16
+ // @ts-ignore
17
+ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
18
+ // @ts-ignore
19
+ import { BASE_PATH, BaseAPI } from '../base';
20
+ /**
21
+ * VendorOrdersApi - axios parameter creator
22
+ * @export
23
+ */
24
+ export const VendorOrdersApiAxiosParamCreator = function (configuration) {
25
+ return {
26
+ /**
27
+ * Returns a purchase order based on the purchaseOrderNumber value that you specify. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
28
+ * @param {string} purchaseOrderNumber The purchase order identifier for the order that you want. Formatting Notes: 8-character alpha-numeric code.
29
+ * @param {*} [options] Override http request option.
30
+ * @throws {RequiredError}
31
+ */
32
+ getPurchaseOrder: async (purchaseOrderNumber, options = {}) => {
33
+ // verify required parameter 'purchaseOrderNumber' is not null or undefined
34
+ assertParamExists('getPurchaseOrder', 'purchaseOrderNumber', purchaseOrderNumber);
35
+ const localVarPath = `/vendor/orders/v1/purchaseOrders/{purchaseOrderNumber}`
36
+ .replace(`{${"purchaseOrderNumber"}}`, encodeURIComponent(String(purchaseOrderNumber)));
37
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39
+ let baseOptions;
40
+ if (configuration) {
41
+ baseOptions = configuration.baseOptions;
42
+ }
43
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
44
+ const localVarHeaderParameter = {};
45
+ const localVarQueryParameter = {};
46
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
47
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
49
+ return {
50
+ url: toPathString(localVarUrlObj),
51
+ options: localVarRequestOptions,
52
+ };
53
+ },
54
+ /**
55
+ * Returns a list of purchase orders created or changed during the time frame that you specify. You define the time frame using the createdAfter, createdBefore, changedAfter and changedBefore parameters. The date range to search must not be more than 7 days. You can choose to get only the purchase order numbers by setting includeDetails to false. You can then use the getPurchaseOrder operation to receive details for a specific purchase order. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
56
+ * @param {number} [limit] The limit to the number of records returned. Default value is 100 records.
57
+ * @param {string} [createdAfter] Purchase orders that became available after this time will be included in the result. Must be in ISO-8601 date/time format.
58
+ * @param {string} [createdBefore] Purchase orders that became available before this time will be included in the result. Must be in ISO-8601 date/time format.
59
+ * @param {'ASC' | 'DESC'} [sortOrder] Sort in ascending or descending order by purchase order creation date.
60
+ * @param {string} [nextToken] Used for pagination when there is more purchase orders than the specified result size limit. The token value is returned in the previous API call
61
+ * @param {boolean} [includeDetails] When true, returns purchase orders with complete details. Otherwise, only purchase order numbers are returned. Default value is true.
62
+ * @param {string} [changedAfter] Purchase orders that changed after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
63
+ * @param {string} [changedBefore] Purchase orders that changed before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
64
+ * @param {'Cancelled'} [poItemState] Current state of the purchase order item. If this value is Cancelled, this API will return purchase orders which have one or more items cancelled by Amazon with updated item quantity as zero.
65
+ * @param {boolean} [isPOChanged] When true, returns purchase orders which were modified after the order was placed. Vendors are required to pull the changed purchase order and fulfill the updated purchase order and not the original one. Default value is false.
66
+ * @param {'New' | 'Acknowledged' | 'Closed'} [purchaseOrderState] Filters purchase orders based on the purchase order state.
67
+ * @param {string} [orderingVendorCode] Filters purchase orders based on the specified ordering vendor code. This value should be same as \'sellingParty.partyId\' in the purchase order. If not included in the filter, all purchase orders for all of the vendor codes that exist in the vendor group used to authorize the API client application are returned.
68
+ * @param {*} [options] Override http request option.
69
+ * @throws {RequiredError}
70
+ */
71
+ getPurchaseOrders: async (limit, createdAfter, createdBefore, sortOrder, nextToken, includeDetails, changedAfter, changedBefore, poItemState, isPOChanged, purchaseOrderState, orderingVendorCode, options = {}) => {
72
+ const localVarPath = `/vendor/orders/v1/purchaseOrders`;
73
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
74
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
75
+ let baseOptions;
76
+ if (configuration) {
77
+ baseOptions = configuration.baseOptions;
78
+ }
79
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
80
+ const localVarHeaderParameter = {};
81
+ const localVarQueryParameter = {};
82
+ if (limit !== undefined) {
83
+ localVarQueryParameter['limit'] = limit;
84
+ }
85
+ if (createdAfter !== undefined) {
86
+ localVarQueryParameter['createdAfter'] = (createdAfter instanceof Date) ?
87
+ createdAfter.toISOString() :
88
+ createdAfter;
89
+ }
90
+ if (createdBefore !== undefined) {
91
+ localVarQueryParameter['createdBefore'] = (createdBefore instanceof Date) ?
92
+ createdBefore.toISOString() :
93
+ createdBefore;
94
+ }
95
+ if (sortOrder !== undefined) {
96
+ localVarQueryParameter['sortOrder'] = sortOrder;
97
+ }
98
+ if (nextToken !== undefined) {
99
+ localVarQueryParameter['nextToken'] = nextToken;
100
+ }
101
+ if (includeDetails !== undefined) {
102
+ localVarQueryParameter['includeDetails'] = includeDetails;
103
+ }
104
+ if (changedAfter !== undefined) {
105
+ localVarQueryParameter['changedAfter'] = (changedAfter instanceof Date) ?
106
+ changedAfter.toISOString() :
107
+ changedAfter;
108
+ }
109
+ if (changedBefore !== undefined) {
110
+ localVarQueryParameter['changedBefore'] = (changedBefore instanceof Date) ?
111
+ changedBefore.toISOString() :
112
+ changedBefore;
113
+ }
114
+ if (poItemState !== undefined) {
115
+ localVarQueryParameter['poItemState'] = poItemState;
116
+ }
117
+ if (isPOChanged !== undefined) {
118
+ localVarQueryParameter['isPOChanged'] = isPOChanged;
119
+ }
120
+ if (purchaseOrderState !== undefined) {
121
+ localVarQueryParameter['purchaseOrderState'] = purchaseOrderState;
122
+ }
123
+ if (orderingVendorCode !== undefined) {
124
+ localVarQueryParameter['orderingVendorCode'] = orderingVendorCode;
125
+ }
126
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
128
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
129
+ return {
130
+ url: toPathString(localVarUrlObj),
131
+ options: localVarRequestOptions,
132
+ };
133
+ },
134
+ /**
135
+ * Returns purchase order statuses based on the filters that you specify. Date range to search must not be more than 7 days. You can return a list of purchase order statuses using the available filters, or a single purchase order status by providing the purchase order number. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
136
+ * @param {number} [limit] The limit to the number of records returned. Default value is 100 records.
137
+ * @param {'ASC' | 'DESC'} [sortOrder] Sort in ascending or descending order by purchase order creation date.
138
+ * @param {string} [nextToken] Used for pagination when there are more purchase orders than the specified result size limit.
139
+ * @param {string} [createdAfter] Purchase orders that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
140
+ * @param {string} [createdBefore] Purchase orders that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
141
+ * @param {string} [updatedAfter] Purchase orders for which the last purchase order update happened after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
142
+ * @param {string} [updatedBefore] Purchase orders for which the last purchase order update happened before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
143
+ * @param {string} [purchaseOrderNumber] Provides purchase order status for the specified purchase order number.
144
+ * @param {'OPEN' | 'CLOSED'} [purchaseOrderStatus] Filters purchase orders based on the specified purchase order status. If not included in filter, this will return purchase orders for all statuses.
145
+ * @param {'ACCEPTED' | 'PARTIALLY_ACCEPTED' | 'REJECTED' | 'UNCONFIRMED'} [itemConfirmationStatus] Filters purchase orders based on the specified purchase order item status. If not included in filter, purchase orders for all statuses are included.
146
+ * @param {string} [orderingVendorCode] Filters purchase orders based on the specified ordering vendor code. This value should be same as \'sellingParty.partyId\' in the purchase order. If not included in filter, all purchase orders for all the vendor codes that exist in the vendor group used to authorize API client application are returned.
147
+ * @param {string} [shipToPartyId] Filters purchase orders for a specific buyer\'s Fulfillment Center/warehouse by providing ship to location id here. This value should be same as \'shipToParty.partyId\' in the purchase order. If not included in filter, this will return purchase orders for all the buyer\'s warehouses used for vendor group purchase orders.
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ */
151
+ getPurchaseOrdersStatus: async (limit, sortOrder, nextToken, createdAfter, createdBefore, updatedAfter, updatedBefore, purchaseOrderNumber, purchaseOrderStatus, itemConfirmationStatus, orderingVendorCode, shipToPartyId, options = {}) => {
152
+ const localVarPath = `/vendor/orders/v1/purchaseOrdersStatus`;
153
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
155
+ let baseOptions;
156
+ if (configuration) {
157
+ baseOptions = configuration.baseOptions;
158
+ }
159
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
160
+ const localVarHeaderParameter = {};
161
+ const localVarQueryParameter = {};
162
+ if (limit !== undefined) {
163
+ localVarQueryParameter['limit'] = limit;
164
+ }
165
+ if (sortOrder !== undefined) {
166
+ localVarQueryParameter['sortOrder'] = sortOrder;
167
+ }
168
+ if (nextToken !== undefined) {
169
+ localVarQueryParameter['nextToken'] = nextToken;
170
+ }
171
+ if (createdAfter !== undefined) {
172
+ localVarQueryParameter['createdAfter'] = (createdAfter instanceof Date) ?
173
+ createdAfter.toISOString() :
174
+ createdAfter;
175
+ }
176
+ if (createdBefore !== undefined) {
177
+ localVarQueryParameter['createdBefore'] = (createdBefore instanceof Date) ?
178
+ createdBefore.toISOString() :
179
+ createdBefore;
180
+ }
181
+ if (updatedAfter !== undefined) {
182
+ localVarQueryParameter['updatedAfter'] = (updatedAfter instanceof Date) ?
183
+ updatedAfter.toISOString() :
184
+ updatedAfter;
185
+ }
186
+ if (updatedBefore !== undefined) {
187
+ localVarQueryParameter['updatedBefore'] = (updatedBefore instanceof Date) ?
188
+ updatedBefore.toISOString() :
189
+ updatedBefore;
190
+ }
191
+ if (purchaseOrderNumber !== undefined) {
192
+ localVarQueryParameter['purchaseOrderNumber'] = purchaseOrderNumber;
193
+ }
194
+ if (purchaseOrderStatus !== undefined) {
195
+ localVarQueryParameter['purchaseOrderStatus'] = purchaseOrderStatus;
196
+ }
197
+ if (itemConfirmationStatus !== undefined) {
198
+ localVarQueryParameter['itemConfirmationStatus'] = itemConfirmationStatus;
199
+ }
200
+ if (orderingVendorCode !== undefined) {
201
+ localVarQueryParameter['orderingVendorCode'] = orderingVendorCode;
202
+ }
203
+ if (shipToPartyId !== undefined) {
204
+ localVarQueryParameter['shipToPartyId'] = shipToPartyId;
205
+ }
206
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
207
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
208
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
209
+ return {
210
+ url: toPathString(localVarUrlObj),
211
+ options: localVarRequestOptions,
212
+ };
213
+ },
214
+ /**
215
+ * Submits acknowledgements for one or more purchase orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
216
+ * @param {SubmitAcknowledgementRequest} body
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ submitAcknowledgement: async (body, options = {}) => {
221
+ // verify required parameter 'body' is not null or undefined
222
+ assertParamExists('submitAcknowledgement', 'body', body);
223
+ const localVarPath = `/vendor/orders/v1/acknowledgements`;
224
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
225
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
226
+ let baseOptions;
227
+ if (configuration) {
228
+ baseOptions = configuration.baseOptions;
229
+ }
230
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
231
+ const localVarHeaderParameter = {};
232
+ const localVarQueryParameter = {};
233
+ localVarHeaderParameter['Content-Type'] = 'application/json';
234
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
235
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
237
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
238
+ return {
239
+ url: toPathString(localVarUrlObj),
240
+ options: localVarRequestOptions,
241
+ };
242
+ },
243
+ };
244
+ };
245
+ /**
246
+ * VendorOrdersApi - functional programming interface
247
+ * @export
248
+ */
249
+ export const VendorOrdersApiFp = function (configuration) {
250
+ const localVarAxiosParamCreator = VendorOrdersApiAxiosParamCreator(configuration);
251
+ return {
252
+ /**
253
+ * Returns a purchase order based on the purchaseOrderNumber value that you specify. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
254
+ * @param {string} purchaseOrderNumber The purchase order identifier for the order that you want. Formatting Notes: 8-character alpha-numeric code.
255
+ * @param {*} [options] Override http request option.
256
+ * @throws {RequiredError}
257
+ */
258
+ async getPurchaseOrder(purchaseOrderNumber, options) {
259
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPurchaseOrder(purchaseOrderNumber, options);
260
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
261
+ },
262
+ /**
263
+ * Returns a list of purchase orders created or changed during the time frame that you specify. You define the time frame using the createdAfter, createdBefore, changedAfter and changedBefore parameters. The date range to search must not be more than 7 days. You can choose to get only the purchase order numbers by setting includeDetails to false. You can then use the getPurchaseOrder operation to receive details for a specific purchase order. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
264
+ * @param {number} [limit] The limit to the number of records returned. Default value is 100 records.
265
+ * @param {string} [createdAfter] Purchase orders that became available after this time will be included in the result. Must be in ISO-8601 date/time format.
266
+ * @param {string} [createdBefore] Purchase orders that became available before this time will be included in the result. Must be in ISO-8601 date/time format.
267
+ * @param {'ASC' | 'DESC'} [sortOrder] Sort in ascending or descending order by purchase order creation date.
268
+ * @param {string} [nextToken] Used for pagination when there is more purchase orders than the specified result size limit. The token value is returned in the previous API call
269
+ * @param {boolean} [includeDetails] When true, returns purchase orders with complete details. Otherwise, only purchase order numbers are returned. Default value is true.
270
+ * @param {string} [changedAfter] Purchase orders that changed after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
271
+ * @param {string} [changedBefore] Purchase orders that changed before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
272
+ * @param {'Cancelled'} [poItemState] Current state of the purchase order item. If this value is Cancelled, this API will return purchase orders which have one or more items cancelled by Amazon with updated item quantity as zero.
273
+ * @param {boolean} [isPOChanged] When true, returns purchase orders which were modified after the order was placed. Vendors are required to pull the changed purchase order and fulfill the updated purchase order and not the original one. Default value is false.
274
+ * @param {'New' | 'Acknowledged' | 'Closed'} [purchaseOrderState] Filters purchase orders based on the purchase order state.
275
+ * @param {string} [orderingVendorCode] Filters purchase orders based on the specified ordering vendor code. This value should be same as \'sellingParty.partyId\' in the purchase order. If not included in the filter, all purchase orders for all of the vendor codes that exist in the vendor group used to authorize the API client application are returned.
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ async getPurchaseOrders(limit, createdAfter, createdBefore, sortOrder, nextToken, includeDetails, changedAfter, changedBefore, poItemState, isPOChanged, purchaseOrderState, orderingVendorCode, options) {
280
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPurchaseOrders(limit, createdAfter, createdBefore, sortOrder, nextToken, includeDetails, changedAfter, changedBefore, poItemState, isPOChanged, purchaseOrderState, orderingVendorCode, options);
281
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
282
+ },
283
+ /**
284
+ * Returns purchase order statuses based on the filters that you specify. Date range to search must not be more than 7 days. You can return a list of purchase order statuses using the available filters, or a single purchase order status by providing the purchase order number. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
285
+ * @param {number} [limit] The limit to the number of records returned. Default value is 100 records.
286
+ * @param {'ASC' | 'DESC'} [sortOrder] Sort in ascending or descending order by purchase order creation date.
287
+ * @param {string} [nextToken] Used for pagination when there are more purchase orders than the specified result size limit.
288
+ * @param {string} [createdAfter] Purchase orders that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
289
+ * @param {string} [createdBefore] Purchase orders that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
290
+ * @param {string} [updatedAfter] Purchase orders for which the last purchase order update happened after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
291
+ * @param {string} [updatedBefore] Purchase orders for which the last purchase order update happened before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
292
+ * @param {string} [purchaseOrderNumber] Provides purchase order status for the specified purchase order number.
293
+ * @param {'OPEN' | 'CLOSED'} [purchaseOrderStatus] Filters purchase orders based on the specified purchase order status. If not included in filter, this will return purchase orders for all statuses.
294
+ * @param {'ACCEPTED' | 'PARTIALLY_ACCEPTED' | 'REJECTED' | 'UNCONFIRMED'} [itemConfirmationStatus] Filters purchase orders based on the specified purchase order item status. If not included in filter, purchase orders for all statuses are included.
295
+ * @param {string} [orderingVendorCode] Filters purchase orders based on the specified ordering vendor code. This value should be same as \'sellingParty.partyId\' in the purchase order. If not included in filter, all purchase orders for all the vendor codes that exist in the vendor group used to authorize API client application are returned.
296
+ * @param {string} [shipToPartyId] Filters purchase orders for a specific buyer\'s Fulfillment Center/warehouse by providing ship to location id here. This value should be same as \'shipToParty.partyId\' in the purchase order. If not included in filter, this will return purchase orders for all the buyer\'s warehouses used for vendor group purchase orders.
297
+ * @param {*} [options] Override http request option.
298
+ * @throws {RequiredError}
299
+ */
300
+ async getPurchaseOrdersStatus(limit, sortOrder, nextToken, createdAfter, createdBefore, updatedAfter, updatedBefore, purchaseOrderNumber, purchaseOrderStatus, itemConfirmationStatus, orderingVendorCode, shipToPartyId, options) {
301
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPurchaseOrdersStatus(limit, sortOrder, nextToken, createdAfter, createdBefore, updatedAfter, updatedBefore, purchaseOrderNumber, purchaseOrderStatus, itemConfirmationStatus, orderingVendorCode, shipToPartyId, options);
302
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
303
+ },
304
+ /**
305
+ * Submits acknowledgements for one or more purchase orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
306
+ * @param {SubmitAcknowledgementRequest} body
307
+ * @param {*} [options] Override http request option.
308
+ * @throws {RequiredError}
309
+ */
310
+ async submitAcknowledgement(body, options) {
311
+ const localVarAxiosArgs = await localVarAxiosParamCreator.submitAcknowledgement(body, options);
312
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
313
+ },
314
+ };
315
+ };
316
+ /**
317
+ * VendorOrdersApi - factory interface
318
+ * @export
319
+ */
320
+ export const VendorOrdersApiFactory = function (configuration, basePath, axios) {
321
+ const localVarFp = VendorOrdersApiFp(configuration);
322
+ return {
323
+ /**
324
+ * Returns a purchase order based on the purchaseOrderNumber value that you specify. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
325
+ * @param {string} purchaseOrderNumber The purchase order identifier for the order that you want. Formatting Notes: 8-character alpha-numeric code.
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ */
329
+ getPurchaseOrder(purchaseOrderNumber, options) {
330
+ return localVarFp.getPurchaseOrder(purchaseOrderNumber, options).then((request) => request(axios, basePath));
331
+ },
332
+ /**
333
+ * Returns a list of purchase orders created or changed during the time frame that you specify. You define the time frame using the createdAfter, createdBefore, changedAfter and changedBefore parameters. The date range to search must not be more than 7 days. You can choose to get only the purchase order numbers by setting includeDetails to false. You can then use the getPurchaseOrder operation to receive details for a specific purchase order. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
334
+ * @param {number} [limit] The limit to the number of records returned. Default value is 100 records.
335
+ * @param {string} [createdAfter] Purchase orders that became available after this time will be included in the result. Must be in ISO-8601 date/time format.
336
+ * @param {string} [createdBefore] Purchase orders that became available before this time will be included in the result. Must be in ISO-8601 date/time format.
337
+ * @param {'ASC' | 'DESC'} [sortOrder] Sort in ascending or descending order by purchase order creation date.
338
+ * @param {string} [nextToken] Used for pagination when there is more purchase orders than the specified result size limit. The token value is returned in the previous API call
339
+ * @param {boolean} [includeDetails] When true, returns purchase orders with complete details. Otherwise, only purchase order numbers are returned. Default value is true.
340
+ * @param {string} [changedAfter] Purchase orders that changed after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
341
+ * @param {string} [changedBefore] Purchase orders that changed before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
342
+ * @param {'Cancelled'} [poItemState] Current state of the purchase order item. If this value is Cancelled, this API will return purchase orders which have one or more items cancelled by Amazon with updated item quantity as zero.
343
+ * @param {boolean} [isPOChanged] When true, returns purchase orders which were modified after the order was placed. Vendors are required to pull the changed purchase order and fulfill the updated purchase order and not the original one. Default value is false.
344
+ * @param {'New' | 'Acknowledged' | 'Closed'} [purchaseOrderState] Filters purchase orders based on the purchase order state.
345
+ * @param {string} [orderingVendorCode] Filters purchase orders based on the specified ordering vendor code. This value should be same as \'sellingParty.partyId\' in the purchase order. If not included in the filter, all purchase orders for all of the vendor codes that exist in the vendor group used to authorize the API client application are returned.
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ */
349
+ getPurchaseOrders(limit, createdAfter, createdBefore, sortOrder, nextToken, includeDetails, changedAfter, changedBefore, poItemState, isPOChanged, purchaseOrderState, orderingVendorCode, options) {
350
+ return localVarFp.getPurchaseOrders(limit, createdAfter, createdBefore, sortOrder, nextToken, includeDetails, changedAfter, changedBefore, poItemState, isPOChanged, purchaseOrderState, orderingVendorCode, options).then((request) => request(axios, basePath));
351
+ },
352
+ /**
353
+ * Returns purchase order statuses based on the filters that you specify. Date range to search must not be more than 7 days. You can return a list of purchase order statuses using the available filters, or a single purchase order status by providing the purchase order number. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
354
+ * @param {number} [limit] The limit to the number of records returned. Default value is 100 records.
355
+ * @param {'ASC' | 'DESC'} [sortOrder] Sort in ascending or descending order by purchase order creation date.
356
+ * @param {string} [nextToken] Used for pagination when there are more purchase orders than the specified result size limit.
357
+ * @param {string} [createdAfter] Purchase orders that became available after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
358
+ * @param {string} [createdBefore] Purchase orders that became available before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
359
+ * @param {string} [updatedAfter] Purchase orders for which the last purchase order update happened after this timestamp will be included in the result. Must be in ISO-8601 date/time format.
360
+ * @param {string} [updatedBefore] Purchase orders for which the last purchase order update happened before this timestamp will be included in the result. Must be in ISO-8601 date/time format.
361
+ * @param {string} [purchaseOrderNumber] Provides purchase order status for the specified purchase order number.
362
+ * @param {'OPEN' | 'CLOSED'} [purchaseOrderStatus] Filters purchase orders based on the specified purchase order status. If not included in filter, this will return purchase orders for all statuses.
363
+ * @param {'ACCEPTED' | 'PARTIALLY_ACCEPTED' | 'REJECTED' | 'UNCONFIRMED'} [itemConfirmationStatus] Filters purchase orders based on the specified purchase order item status. If not included in filter, purchase orders for all statuses are included.
364
+ * @param {string} [orderingVendorCode] Filters purchase orders based on the specified ordering vendor code. This value should be same as \'sellingParty.partyId\' in the purchase order. If not included in filter, all purchase orders for all the vendor codes that exist in the vendor group used to authorize API client application are returned.
365
+ * @param {string} [shipToPartyId] Filters purchase orders for a specific buyer\'s Fulfillment Center/warehouse by providing ship to location id here. This value should be same as \'shipToParty.partyId\' in the purchase order. If not included in filter, this will return purchase orders for all the buyer\'s warehouses used for vendor group purchase orders.
366
+ * @param {*} [options] Override http request option.
367
+ * @throws {RequiredError}
368
+ */
369
+ getPurchaseOrdersStatus(limit, sortOrder, nextToken, createdAfter, createdBefore, updatedAfter, updatedBefore, purchaseOrderNumber, purchaseOrderStatus, itemConfirmationStatus, orderingVendorCode, shipToPartyId, options) {
370
+ return localVarFp.getPurchaseOrdersStatus(limit, sortOrder, nextToken, createdAfter, createdBefore, updatedAfter, updatedBefore, purchaseOrderNumber, purchaseOrderStatus, itemConfirmationStatus, orderingVendorCode, shipToPartyId, options).then((request) => request(axios, basePath));
371
+ },
372
+ /**
373
+ * Submits acknowledgements for one or more purchase orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
374
+ * @param {SubmitAcknowledgementRequest} body
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ submitAcknowledgement(body, options) {
379
+ return localVarFp.submitAcknowledgement(body, options).then((request) => request(axios, basePath));
380
+ },
381
+ };
382
+ };
383
+ /**
384
+ * VendorOrdersApi - object-oriented interface
385
+ * @export
386
+ * @class VendorOrdersApi
387
+ * @extends {BaseAPI}
388
+ */
389
+ export class VendorOrdersApi extends BaseAPI {
390
+ /**
391
+ * Returns a purchase order based on the purchaseOrderNumber value that you specify. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
392
+ * @param {VendorOrdersApiGetPurchaseOrderRequest} requestParameters Request parameters.
393
+ * @param {*} [options] Override http request option.
394
+ * @throws {RequiredError}
395
+ * @memberof VendorOrdersApi
396
+ */
397
+ getPurchaseOrder(requestParameters, options) {
398
+ return VendorOrdersApiFp(this.configuration).getPurchaseOrder(requestParameters.purchaseOrderNumber, options).then((request) => request(this.axios, this.basePath));
399
+ }
400
+ /**
401
+ * Returns a list of purchase orders created or changed during the time frame that you specify. You define the time frame using the createdAfter, createdBefore, changedAfter and changedBefore parameters. The date range to search must not be more than 7 days. You can choose to get only the purchase order numbers by setting includeDetails to false. You can then use the getPurchaseOrder operation to receive details for a specific purchase order. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
402
+ * @param {VendorOrdersApiGetPurchaseOrdersRequest} requestParameters Request parameters.
403
+ * @param {*} [options] Override http request option.
404
+ * @throws {RequiredError}
405
+ * @memberof VendorOrdersApi
406
+ */
407
+ getPurchaseOrders(requestParameters = {}, options) {
408
+ return VendorOrdersApiFp(this.configuration).getPurchaseOrders(requestParameters.limit, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.includeDetails, requestParameters.changedAfter, requestParameters.changedBefore, requestParameters.poItemState, requestParameters.isPOChanged, requestParameters.purchaseOrderState, requestParameters.orderingVendorCode, options).then((request) => request(this.axios, this.basePath));
409
+ }
410
+ /**
411
+ * Returns purchase order statuses based on the filters that you specify. Date range to search must not be more than 7 days. You can return a list of purchase order statuses using the available filters, or a single purchase order status by providing the purchase order number. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
412
+ * @param {VendorOrdersApiGetPurchaseOrdersStatusRequest} requestParameters Request parameters.
413
+ * @param {*} [options] Override http request option.
414
+ * @throws {RequiredError}
415
+ * @memberof VendorOrdersApi
416
+ */
417
+ getPurchaseOrdersStatus(requestParameters = {}, options) {
418
+ return VendorOrdersApiFp(this.configuration).getPurchaseOrdersStatus(requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.purchaseOrderNumber, requestParameters.purchaseOrderStatus, requestParameters.itemConfirmationStatus, requestParameters.orderingVendorCode, requestParameters.shipToPartyId, options).then((request) => request(this.axios, this.basePath));
419
+ }
420
+ /**
421
+ * Submits acknowledgements for one or more purchase orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |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.
422
+ * @param {VendorOrdersApiSubmitAcknowledgementRequest} requestParameters Request parameters.
423
+ * @param {*} [options] Override http request option.
424
+ * @throws {RequiredError}
425
+ * @memberof VendorOrdersApi
426
+ */
427
+ submitAcknowledgement(requestParameters, options) {
428
+ return VendorOrdersApiFp(this.configuration).submitAcknowledgement(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
429
+ }
430
+ }