@sp-api-sdk/amazon-warehousing-and-distribution-api-2024-05-09 5.1.0 → 5.2.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/index.js CHANGED
@@ -1,1912 +1,2262 @@
1
- // src/client.ts
2
1
  import { createAxiosInstance } from "@sp-api-sdk/common";
3
-
4
- // src/api-model/api/amazon-warehousing-and-distribution-api.ts
5
- import globalAxios2 from "axios";
6
-
7
- // src/api-model/base.ts
8
2
  import globalAxios from "axios";
9
- var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
3
+ //#region src/api-model/base.ts
4
+ const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
10
5
  var BaseAPI = class {
11
- constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
12
- this.basePath = basePath;
13
- this.axios = axios;
14
- if (configuration) {
15
- this.configuration = configuration;
16
- this.basePath = configuration.basePath ?? basePath;
17
- }
18
- }
19
- basePath;
20
- axios;
21
- configuration;
6
+ basePath;
7
+ axios;
8
+ configuration;
9
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
10
+ this.basePath = basePath;
11
+ this.axios = axios;
12
+ if (configuration) {
13
+ this.configuration = configuration;
14
+ this.basePath = configuration.basePath ?? basePath;
15
+ }
16
+ }
22
17
  };
23
18
  var RequiredError = class extends Error {
24
- constructor(field, msg) {
25
- super(msg);
26
- this.field = field;
27
- this.name = "RequiredError";
28
- }
29
- field;
19
+ field;
20
+ constructor(field, msg) {
21
+ super(msg);
22
+ this.field = field;
23
+ this.name = "RequiredError";
24
+ }
30
25
  };
31
- var operationServerMap = {};
32
-
33
- // src/api-model/common.ts
34
- var DUMMY_BASE_URL = "https://example.com";
35
- var assertParamExists = function(functionName, paramName, paramValue) {
36
- if (paramValue === null || paramValue === void 0) {
37
- throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
38
- }
26
+ const operationServerMap = {};
27
+ //#endregion
28
+ //#region src/api-model/common.ts
29
+ const DUMMY_BASE_URL = "https://example.com";
30
+ /**
31
+ *
32
+ * @throws {RequiredError}
33
+ */
34
+ const assertParamExists = function(functionName, paramName, paramValue) {
35
+ if (paramValue === null || paramValue === void 0) throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
39
36
  };
40
37
  function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
41
- if (parameter == null) return;
42
- if (typeof parameter === "object") {
43
- if (Array.isArray(parameter) || parameter instanceof Set) {
44
- parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
45
- } else {
46
- Object.keys(parameter).forEach(
47
- (currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
48
- );
49
- }
50
- } else {
51
- if (urlSearchParams.has(key)) {
52
- urlSearchParams.append(key, parameter);
53
- } else {
54
- urlSearchParams.set(key, parameter);
55
- }
56
- }
38
+ if (parameter == null) return;
39
+ if (typeof parameter === "object") if (Array.isArray(parameter) || parameter instanceof Set) parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
40
+ else Object.keys(parameter).forEach((currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`));
41
+ else if (urlSearchParams.has(key)) urlSearchParams.append(key, parameter);
42
+ else urlSearchParams.set(key, parameter);
57
43
  }
58
- var setSearchParams = function(url, ...objects) {
59
- const searchParams = new URLSearchParams(url.search);
60
- setFlattenedQueryParams(searchParams, objects);
61
- url.search = searchParams.toString();
44
+ const setSearchParams = function(url, ...objects) {
45
+ const searchParams = new URLSearchParams(url.search);
46
+ setFlattenedQueryParams(searchParams, objects);
47
+ url.search = searchParams.toString();
62
48
  };
63
- var replaceWithSerializableTypeIfNeeded = function(key, value) {
64
- if (value instanceof Set) {
65
- return Array.from(value);
66
- } else {
67
- return value;
68
- }
49
+ /**
50
+ * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
51
+ * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
52
+ * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
53
+ */
54
+ const replaceWithSerializableTypeIfNeeded = function(key, value) {
55
+ if (value instanceof Set) return Array.from(value);
56
+ else return value;
69
57
  };
70
- var serializeDataIfNeeded = function(value, requestOptions, configuration) {
71
- const nonString = typeof value !== "string";
72
- const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
73
- return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
58
+ const serializeDataIfNeeded = function(value, requestOptions, configuration) {
59
+ const nonString = typeof value !== "string";
60
+ return (nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString) ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
74
61
  };
75
- var toPathString = function(url) {
76
- return url.pathname + url.search + url.hash;
62
+ const toPathString = function(url) {
63
+ return url.pathname + url.search + url.hash;
77
64
  };
78
- var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
79
- return (axios = globalAxios3, basePath = BASE_PATH2) => {
80
- const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
81
- return axios.request(axiosRequestArgs);
82
- };
65
+ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, configuration) {
66
+ return (axios = globalAxios, basePath = BASE_PATH) => {
67
+ const axiosRequestArgs = {
68
+ ...axiosArgs.options,
69
+ url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url
70
+ };
71
+ return axios.request(axiosRequestArgs);
72
+ };
83
73
  };
84
-
85
- // src/api-model/api/amazon-warehousing-and-distribution-api.ts
86
- var AmazonWarehousingAndDistributionApiAxiosParamCreator = function(configuration) {
87
- return {
88
- /**
89
- * Cancels an AWD Inbound order and its associated shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
90
- * @param {string} orderId The ID of the inbound order you want to cancel.
91
- * @param {*} [options] Override http request option.
92
- * @throws {RequiredError}
93
- */
94
- cancelInbound: async (orderId, options = {}) => {
95
- assertParamExists("cancelInbound", "orderId", orderId);
96
- const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}/cancellation`.replace("{orderId}", encodeURIComponent(String(orderId)));
97
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
98
- let baseOptions;
99
- if (configuration) {
100
- baseOptions = configuration.baseOptions;
101
- }
102
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
103
- const localVarHeaderParameter = {};
104
- const localVarQueryParameter = {};
105
- localVarHeaderParameter["Accept"] = "application/json";
106
- setSearchParams(localVarUrlObj, localVarQueryParameter);
107
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
108
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
109
- return {
110
- url: toPathString(localVarUrlObj),
111
- options: localVarRequestOptions
112
- };
113
- },
114
- /**
115
- * Determines if the packages you specify are eligible for an AWD inbound order and contains error details for ineligible packages. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
116
- * @param {InboundPackages} body Represents the packages you want to inbound.
117
- * @param {*} [options] Override http request option.
118
- * @throws {RequiredError}
119
- */
120
- checkInboundEligibility: async (body, options = {}) => {
121
- assertParamExists("checkInboundEligibility", "body", body);
122
- const localVarPath = `/awd/2024-05-09/inboundEligibility`;
123
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
124
- let baseOptions;
125
- if (configuration) {
126
- baseOptions = configuration.baseOptions;
127
- }
128
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
129
- const localVarHeaderParameter = {};
130
- const localVarQueryParameter = {};
131
- localVarHeaderParameter["Content-Type"] = "application/json";
132
- localVarHeaderParameter["Accept"] = "application/json";
133
- setSearchParams(localVarUrlObj, localVarQueryParameter);
134
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
135
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
136
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
137
- return {
138
- url: toPathString(localVarUrlObj),
139
- options: localVarRequestOptions
140
- };
141
- },
142
- /**
143
- * Confirms an AWD inbound order in `DRAFT` status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
144
- * @param {string} orderId The ID of the inbound order that you want to confirm.
145
- * @param {*} [options] Override http request option.
146
- * @throws {RequiredError}
147
- */
148
- confirmInbound: async (orderId, options = {}) => {
149
- assertParamExists("confirmInbound", "orderId", orderId);
150
- const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}/confirmation`.replace("{orderId}", encodeURIComponent(String(orderId)));
151
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
152
- let baseOptions;
153
- if (configuration) {
154
- baseOptions = configuration.baseOptions;
155
- }
156
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
157
- const localVarHeaderParameter = {};
158
- const localVarQueryParameter = {};
159
- localVarHeaderParameter["Accept"] = "application/json";
160
- setSearchParams(localVarUrlObj, localVarQueryParameter);
161
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
162
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
163
- return {
164
- url: toPathString(localVarUrlObj),
165
- options: localVarRequestOptions
166
- };
167
- },
168
- /**
169
- * Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
170
- * @param {string} orderId ID for the outbound order you want to confirm.
171
- * @param {*} [options] Override http request option.
172
- * @throws {RequiredError}
173
- */
174
- confirmOutbound: async (orderId, options = {}) => {
175
- assertParamExists("confirmOutbound", "orderId", orderId);
176
- const localVarPath = `/awd/2024-05-09/outboundOrders/{orderId}/confirmation`.replace("{orderId}", encodeURIComponent(String(orderId)));
177
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
178
- let baseOptions;
179
- if (configuration) {
180
- baseOptions = configuration.baseOptions;
181
- }
182
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
183
- const localVarHeaderParameter = {};
184
- const localVarQueryParameter = {};
185
- localVarHeaderParameter["Accept"] = "application/json";
186
- setSearchParams(localVarUrlObj, localVarQueryParameter);
187
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
188
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
189
- return {
190
- url: toPathString(localVarUrlObj),
191
- options: localVarRequestOptions
192
- };
193
- },
194
- /**
195
- * Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
196
- * @param {string} orderId ID of the replenishment order to be confirmed.
197
- * @param {*} [options] Override http request option.
198
- * @throws {RequiredError}
199
- */
200
- confirmReplenishmentOrder: async (orderId, options = {}) => {
201
- assertParamExists("confirmReplenishmentOrder", "orderId", orderId);
202
- const localVarPath = `/awd/2024-05-09/replenishmentOrders/{orderId}/confirmation`.replace("{orderId}", encodeURIComponent(String(orderId)));
203
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
204
- let baseOptions;
205
- if (configuration) {
206
- baseOptions = configuration.baseOptions;
207
- }
208
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
209
- const localVarHeaderParameter = {};
210
- const localVarQueryParameter = {};
211
- localVarHeaderParameter["Accept"] = "application/json";
212
- setSearchParams(localVarUrlObj, localVarQueryParameter);
213
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
214
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
215
- return {
216
- url: toPathString(localVarUrlObj),
217
- options: localVarRequestOptions
218
- };
219
- },
220
- /**
221
- * Creates a draft AWD inbound order with a list of packages for inbound shipment. The operation creates one shipment per order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
222
- * @param {InboundOrderCreationData} body Payload for creating an inbound order.
223
- * @param {*} [options] Override http request option.
224
- * @throws {RequiredError}
225
- */
226
- createInbound: async (body, options = {}) => {
227
- assertParamExists("createInbound", "body", body);
228
- const localVarPath = `/awd/2024-05-09/inboundOrders`;
229
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
230
- let baseOptions;
231
- if (configuration) {
232
- baseOptions = configuration.baseOptions;
233
- }
234
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
235
- const localVarHeaderParameter = {};
236
- const localVarQueryParameter = {};
237
- localVarHeaderParameter["Content-Type"] = "application/json";
238
- localVarHeaderParameter["Accept"] = "application/json";
239
- setSearchParams(localVarUrlObj, localVarQueryParameter);
240
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
241
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
242
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
243
- return {
244
- url: toPathString(localVarUrlObj),
245
- options: localVarRequestOptions
246
- };
247
- },
248
- /**
249
- * Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
250
- * @param {OutboundOrderCreationData} body Payload for creating an outbound order.
251
- * @param {*} [options] Override http request option.
252
- * @throws {RequiredError}
253
- */
254
- createOutbound: async (body, options = {}) => {
255
- assertParamExists("createOutbound", "body", body);
256
- const localVarPath = `/awd/2024-05-09/outboundOrders`;
257
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
258
- let baseOptions;
259
- if (configuration) {
260
- baseOptions = configuration.baseOptions;
261
- }
262
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
263
- const localVarHeaderParameter = {};
264
- const localVarQueryParameter = {};
265
- localVarHeaderParameter["Content-Type"] = "application/json";
266
- localVarHeaderParameter["Accept"] = "application/json";
267
- setSearchParams(localVarUrlObj, localVarQueryParameter);
268
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
269
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
270
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
271
- return {
272
- url: toPathString(localVarUrlObj),
273
- options: localVarRequestOptions
274
- };
275
- },
276
- /**
277
- * Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
278
- * @param {ReplenishmentOrderCreationData} body Payload for creating a replenishment order.
279
- * @param {*} [options] Override http request option.
280
- * @throws {RequiredError}
281
- */
282
- createReplenishmentOrder: async (body, options = {}) => {
283
- assertParamExists("createReplenishmentOrder", "body", body);
284
- const localVarPath = `/awd/2024-05-09/replenishmentOrders`;
285
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
286
- let baseOptions;
287
- if (configuration) {
288
- baseOptions = configuration.baseOptions;
289
- }
290
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
291
- const localVarHeaderParameter = {};
292
- const localVarQueryParameter = {};
293
- localVarHeaderParameter["Content-Type"] = "application/json";
294
- localVarHeaderParameter["Accept"] = "application/json";
295
- setSearchParams(localVarUrlObj, localVarQueryParameter);
296
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
297
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
298
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
299
- return {
300
- url: toPathString(localVarUrlObj),
301
- options: localVarRequestOptions
302
- };
303
- },
304
- /**
305
- * Retrieves an AWD inbound order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
306
- * @param {string} orderId The ID of the inbound order that you want to retrieve.
307
- * @param {*} [options] Override http request option.
308
- * @throws {RequiredError}
309
- */
310
- getInbound: async (orderId, options = {}) => {
311
- assertParamExists("getInbound", "orderId", orderId);
312
- const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
313
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
314
- let baseOptions;
315
- if (configuration) {
316
- baseOptions = configuration.baseOptions;
317
- }
318
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
319
- const localVarHeaderParameter = {};
320
- const localVarQueryParameter = {};
321
- localVarHeaderParameter["Accept"] = "application/json";
322
- setSearchParams(localVarUrlObj, localVarQueryParameter);
323
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
324
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
325
- return {
326
- url: toPathString(localVarUrlObj),
327
- options: localVarRequestOptions
328
- };
329
- },
330
- /**
331
- * Retrieves an AWD inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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)
332
- * @param {string} shipmentId ID for the shipment. A shipment contains the cases being inbounded.
333
- * @param {GetInboundShipmentSkuQuantitiesEnum} [skuQuantities] If equal to `SHOW`, the response includes the shipment SKU quantity details. Defaults to `HIDE`, in which case the response does not contain SKU quantities
334
- * @param {*} [options] Override http request option.
335
- * @throws {RequiredError}
336
- */
337
- getInboundShipment: async (shipmentId, skuQuantities, options = {}) => {
338
- assertParamExists("getInboundShipment", "shipmentId", shipmentId);
339
- const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
340
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
341
- let baseOptions;
342
- if (configuration) {
343
- baseOptions = configuration.baseOptions;
344
- }
345
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
346
- const localVarHeaderParameter = {};
347
- const localVarQueryParameter = {};
348
- if (skuQuantities !== void 0) {
349
- localVarQueryParameter["skuQuantities"] = skuQuantities;
350
- }
351
- localVarHeaderParameter["Accept"] = "application/json";
352
- setSearchParams(localVarUrlObj, localVarQueryParameter);
353
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
354
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
355
- return {
356
- url: toPathString(localVarUrlObj),
357
- options: localVarRequestOptions
358
- };
359
- },
360
- /**
361
- * Retrieves the box labels for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the label URL is available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
362
- * @param {string} shipmentId ID for the shipment.
363
- * @param {GetInboundShipmentLabelsPageTypeEnum} [pageType] Page type for the generated labels. The default is `PLAIN_PAPER`.
364
- * @param {GetInboundShipmentLabelsFormatTypeEnum} [formatType] The format type of the output file that contains your labels. The default format type is `PDF`.
365
- * @param {*} [options] Override http request option.
366
- * @throws {RequiredError}
367
- */
368
- getInboundShipmentLabels: async (shipmentId, pageType, formatType, options = {}) => {
369
- assertParamExists("getInboundShipmentLabels", "shipmentId", shipmentId);
370
- const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}/labels`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
371
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
372
- let baseOptions;
373
- if (configuration) {
374
- baseOptions = configuration.baseOptions;
375
- }
376
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
377
- const localVarHeaderParameter = {};
378
- const localVarQueryParameter = {};
379
- if (pageType !== void 0) {
380
- localVarQueryParameter["pageType"] = pageType;
381
- }
382
- if (formatType !== void 0) {
383
- localVarQueryParameter["formatType"] = formatType;
384
- }
385
- localVarHeaderParameter["Accept"] = "application/json";
386
- setSearchParams(localVarUrlObj, localVarQueryParameter);
387
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
388
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
389
- return {
390
- url: toPathString(localVarUrlObj),
391
- options: localVarRequestOptions
392
- };
393
- },
394
- /**
395
- * Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
396
- * @param {string} shipmentId ID for the shipment.
397
- * @param {*} [options] Override http request option.
398
- * @throws {RequiredError}
399
- */
400
- getLabelPageTypes: async (shipmentId, options = {}) => {
401
- assertParamExists("getLabelPageTypes", "shipmentId", shipmentId);
402
- const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}/labelPageTypes`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
403
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
404
- let baseOptions;
405
- if (configuration) {
406
- baseOptions = configuration.baseOptions;
407
- }
408
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
409
- const localVarHeaderParameter = {};
410
- const localVarQueryParameter = {};
411
- localVarHeaderParameter["Accept"] = "application/json";
412
- setSearchParams(localVarUrlObj, localVarQueryParameter);
413
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
414
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
415
- return {
416
- url: toPathString(localVarUrlObj),
417
- options: localVarRequestOptions
418
- };
419
- },
420
- /**
421
- * Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
422
- * @param {string} orderId ID for the outbound order to be retrieved.
423
- * @param {*} [options] Override http request option.
424
- * @throws {RequiredError}
425
- */
426
- getOutbound: async (orderId, options = {}) => {
427
- assertParamExists("getOutbound", "orderId", orderId);
428
- const localVarPath = `/awd/2024-05-09/outboundOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
429
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
430
- let baseOptions;
431
- if (configuration) {
432
- baseOptions = configuration.baseOptions;
433
- }
434
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
435
- const localVarHeaderParameter = {};
436
- const localVarQueryParameter = {};
437
- localVarHeaderParameter["Accept"] = "application/json";
438
- setSearchParams(localVarUrlObj, localVarQueryParameter);
439
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
440
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
441
- return {
442
- url: toPathString(localVarUrlObj),
443
- options: localVarRequestOptions
444
- };
445
- },
446
- /**
447
- * Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
448
- * @param {string} orderId ID of the replenishment order to be retrieved.
449
- * @param {*} [options] Override http request option.
450
- * @throws {RequiredError}
451
- */
452
- getReplenishmentOrder: async (orderId, options = {}) => {
453
- assertParamExists("getReplenishmentOrder", "orderId", orderId);
454
- const localVarPath = `/awd/2024-05-09/replenishmentOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
455
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
456
- let baseOptions;
457
- if (configuration) {
458
- baseOptions = configuration.baseOptions;
459
- }
460
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
461
- const localVarHeaderParameter = {};
462
- const localVarQueryParameter = {};
463
- localVarHeaderParameter["Accept"] = "application/json";
464
- setSearchParams(localVarUrlObj, localVarQueryParameter);
465
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
466
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
467
- return {
468
- url: toPathString(localVarUrlObj),
469
- options: localVarRequestOptions
470
- };
471
- },
472
- /**
473
- * Retrieves a summary of all the inbound AWD shipments associated with a merchant, with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
474
- * @param {ListInboundShipmentsSortByEnum} [sortBy] Field to sort results by. By default, the response will be sorted by UPDATED_AT.
475
- * @param {ListInboundShipmentsSortOrderEnum} [sortOrder] Sort the response in ASCENDING or DESCENDING order. By default, the response will be sorted in DESCENDING order.
476
- * @param {ListInboundShipmentsShipmentStatusEnum} [shipmentStatus] Filter by inbound shipment status.
477
- * @param {string} [updatedAfter] List the inbound shipments that were updated after a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
478
- * @param {string} [updatedBefore] List the inbound shipments that were updated before a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
479
- * @param {number} [maxResults] Maximum number of results to return.
480
- * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
481
- * @param {*} [options] Override http request option.
482
- * @throws {RequiredError}
483
- */
484
- listInboundShipments: async (sortBy, sortOrder, shipmentStatus, updatedAfter, updatedBefore, maxResults, nextToken, options = {}) => {
485
- const localVarPath = `/awd/2024-05-09/inboundShipments`;
486
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
487
- let baseOptions;
488
- if (configuration) {
489
- baseOptions = configuration.baseOptions;
490
- }
491
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
492
- const localVarHeaderParameter = {};
493
- const localVarQueryParameter = {};
494
- if (sortBy !== void 0) {
495
- localVarQueryParameter["sortBy"] = sortBy;
496
- }
497
- if (sortOrder !== void 0) {
498
- localVarQueryParameter["sortOrder"] = sortOrder;
499
- }
500
- if (shipmentStatus !== void 0) {
501
- localVarQueryParameter["shipmentStatus"] = shipmentStatus;
502
- }
503
- if (updatedAfter !== void 0) {
504
- localVarQueryParameter["updatedAfter"] = updatedAfter instanceof Date ? updatedAfter.toISOString() : updatedAfter;
505
- }
506
- if (updatedBefore !== void 0) {
507
- localVarQueryParameter["updatedBefore"] = updatedBefore instanceof Date ? updatedBefore.toISOString() : updatedBefore;
508
- }
509
- if (maxResults !== void 0) {
510
- localVarQueryParameter["maxResults"] = maxResults;
511
- }
512
- if (nextToken !== void 0) {
513
- localVarQueryParameter["nextToken"] = nextToken;
514
- }
515
- localVarHeaderParameter["Accept"] = "application/json";
516
- setSearchParams(localVarUrlObj, localVarQueryParameter);
517
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
518
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
519
- return {
520
- url: toPathString(localVarUrlObj),
521
- options: localVarRequestOptions
522
- };
523
- },
524
- /**
525
- * Lists AWD inventory associated with a merchant with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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).
526
- * @param {string} [sku] Filter by seller or merchant SKU for the item.
527
- * @param {ListInventorySortOrderEnum} [sortOrder] Sort the response in `ASCENDING` or `DESCENDING` order.
528
- * @param {ListInventoryDetailsEnum} [details] Set to `SHOW` to return summaries with additional inventory details. Defaults to `HIDE,` which returns only inventory summary totals.
529
- * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
530
- * @param {number} [maxResults] Maximum number of results to return.
531
- * @param {*} [options] Override http request option.
532
- * @throws {RequiredError}
533
- */
534
- listInventory: async (sku, sortOrder, details, nextToken, maxResults, options = {}) => {
535
- const localVarPath = `/awd/2024-05-09/inventory`;
536
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
537
- let baseOptions;
538
- if (configuration) {
539
- baseOptions = configuration.baseOptions;
540
- }
541
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
542
- const localVarHeaderParameter = {};
543
- const localVarQueryParameter = {};
544
- if (sku !== void 0) {
545
- localVarQueryParameter["sku"] = sku;
546
- }
547
- if (sortOrder !== void 0) {
548
- localVarQueryParameter["sortOrder"] = sortOrder;
549
- }
550
- if (details !== void 0) {
551
- localVarQueryParameter["details"] = details;
552
- }
553
- if (nextToken !== void 0) {
554
- localVarQueryParameter["nextToken"] = nextToken;
555
- }
556
- if (maxResults !== void 0) {
557
- localVarQueryParameter["maxResults"] = maxResults;
558
- }
559
- localVarHeaderParameter["Accept"] = "application/json";
560
- setSearchParams(localVarUrlObj, localVarQueryParameter);
561
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
562
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
563
- return {
564
- url: toPathString(localVarUrlObj),
565
- options: localVarRequestOptions
566
- };
567
- },
568
- /**
569
- * Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
570
- * @param {string} [updatedAfter] Get the outbound orders updated after a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
571
- * @param {string} [updatedBefore] Get the outbound orders updated before a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
572
- * @param {ListOutboundsSortOrderEnum} [sortOrder] Sort the response in `ASCENDING` or `DESCENDING` order.
573
- * @param {number} [maxResults] Maximum number of results to return.
574
- * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
575
- * @param {*} [options] Override http request option.
576
- * @throws {RequiredError}
577
- */
578
- listOutbounds: async (updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options = {}) => {
579
- const localVarPath = `/awd/2024-05-09/outboundOrders`;
580
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
581
- let baseOptions;
582
- if (configuration) {
583
- baseOptions = configuration.baseOptions;
584
- }
585
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
586
- const localVarHeaderParameter = {};
587
- const localVarQueryParameter = {};
588
- if (updatedAfter !== void 0) {
589
- localVarQueryParameter["updatedAfter"] = updatedAfter instanceof Date ? updatedAfter.toISOString() : updatedAfter;
590
- }
591
- if (updatedBefore !== void 0) {
592
- localVarQueryParameter["updatedBefore"] = updatedBefore instanceof Date ? updatedBefore.toISOString() : updatedBefore;
593
- }
594
- if (sortOrder !== void 0) {
595
- localVarQueryParameter["sortOrder"] = sortOrder;
596
- }
597
- if (maxResults !== void 0) {
598
- localVarQueryParameter["maxResults"] = maxResults;
599
- }
600
- if (nextToken !== void 0) {
601
- localVarQueryParameter["nextToken"] = nextToken;
602
- }
603
- localVarHeaderParameter["Accept"] = "application/json";
604
- setSearchParams(localVarUrlObj, localVarQueryParameter);
605
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
606
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
607
- return {
608
- url: toPathString(localVarUrlObj),
609
- options: localVarRequestOptions
610
- };
611
- },
612
- /**
613
- * Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
614
- * @param {string} [updatedAfter] Get the replenishment orders updated after certain time (Inclusive) Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
615
- * @param {string} [updatedBefore] Get the replenishment orders updated before certain time (Inclusive) Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
616
- * @param {ListReplenishmentOrdersSortOrderEnum} [sortOrder] Sort the response in ASCENDING or DESCENDING order. The default sort order is DESCENDING.
617
- * @param {number} [maxResults] Maximum results to be returned in a single response.
618
- * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
619
- * @param {*} [options] Override http request option.
620
- * @throws {RequiredError}
621
- */
622
- listReplenishmentOrders: async (updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options = {}) => {
623
- const localVarPath = `/awd/2024-05-09/replenishmentOrders`;
624
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
625
- let baseOptions;
626
- if (configuration) {
627
- baseOptions = configuration.baseOptions;
628
- }
629
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
630
- const localVarHeaderParameter = {};
631
- const localVarQueryParameter = {};
632
- if (updatedAfter !== void 0) {
633
- localVarQueryParameter["updatedAfter"] = updatedAfter instanceof Date ? updatedAfter.toISOString() : updatedAfter;
634
- }
635
- if (updatedBefore !== void 0) {
636
- localVarQueryParameter["updatedBefore"] = updatedBefore instanceof Date ? updatedBefore.toISOString() : updatedBefore;
637
- }
638
- if (sortOrder !== void 0) {
639
- localVarQueryParameter["sortOrder"] = sortOrder;
640
- }
641
- if (maxResults !== void 0) {
642
- localVarQueryParameter["maxResults"] = maxResults;
643
- }
644
- if (nextToken !== void 0) {
645
- localVarQueryParameter["nextToken"] = nextToken;
646
- }
647
- localVarHeaderParameter["Accept"] = "application/json";
648
- setSearchParams(localVarUrlObj, localVarQueryParameter);
649
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
650
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
651
- return {
652
- url: toPathString(localVarUrlObj),
653
- options: localVarRequestOptions
654
- };
655
- },
656
- /**
657
- * Updates an AWD inbound order that is in `DRAFT` status and not yet confirmed. Use this operation to update the `packagesToInbound`, `originAddress` and `preferences` attributes. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
658
- * @param {string} orderId The ID of the inbound order that you want to update.
659
- * @param {InboundOrder} body Represents an AWD inbound order.
660
- * @param {*} [options] Override http request option.
661
- * @throws {RequiredError}
662
- */
663
- updateInbound: async (orderId, body, options = {}) => {
664
- assertParamExists("updateInbound", "orderId", orderId);
665
- assertParamExists("updateInbound", "body", body);
666
- const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
667
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
668
- let baseOptions;
669
- if (configuration) {
670
- baseOptions = configuration.baseOptions;
671
- }
672
- const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
673
- const localVarHeaderParameter = {};
674
- const localVarQueryParameter = {};
675
- localVarHeaderParameter["Content-Type"] = "application/json";
676
- localVarHeaderParameter["Accept"] = "application/json";
677
- setSearchParams(localVarUrlObj, localVarQueryParameter);
678
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
679
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
680
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
681
- return {
682
- url: toPathString(localVarUrlObj),
683
- options: localVarRequestOptions
684
- };
685
- },
686
- /**
687
- * Updates transport details for an AWD shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
688
- * @param {string} shipmentId The shipment ID.
689
- * @param {TransportationDetails} body Transportation details for the shipment.
690
- * @param {*} [options] Override http request option.
691
- * @throws {RequiredError}
692
- */
693
- updateInboundShipmentTransportDetails: async (shipmentId, body, options = {}) => {
694
- assertParamExists("updateInboundShipmentTransportDetails", "shipmentId", shipmentId);
695
- assertParamExists("updateInboundShipmentTransportDetails", "body", body);
696
- const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}/transport`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
697
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
698
- let baseOptions;
699
- if (configuration) {
700
- baseOptions = configuration.baseOptions;
701
- }
702
- const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
703
- const localVarHeaderParameter = {};
704
- const localVarQueryParameter = {};
705
- localVarHeaderParameter["Content-Type"] = "application/json";
706
- localVarHeaderParameter["Accept"] = "application/json";
707
- setSearchParams(localVarUrlObj, localVarQueryParameter);
708
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
709
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
710
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
711
- return {
712
- url: toPathString(localVarUrlObj),
713
- options: localVarRequestOptions
714
- };
715
- },
716
- /**
717
- * Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
718
- * @param {string} orderId ID for the outbound order to be updated.
719
- * @param {OutboundOrder} body Represents an AWD outbound order.
720
- * @param {*} [options] Override http request option.
721
- * @throws {RequiredError}
722
- */
723
- updateOutbound: async (orderId, body, options = {}) => {
724
- assertParamExists("updateOutbound", "orderId", orderId);
725
- assertParamExists("updateOutbound", "body", body);
726
- const localVarPath = `/awd/2024-05-09/outboundOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
727
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
728
- let baseOptions;
729
- if (configuration) {
730
- baseOptions = configuration.baseOptions;
731
- }
732
- const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
733
- const localVarHeaderParameter = {};
734
- const localVarQueryParameter = {};
735
- localVarHeaderParameter["Content-Type"] = "application/json";
736
- localVarHeaderParameter["Accept"] = "application/json";
737
- setSearchParams(localVarUrlObj, localVarQueryParameter);
738
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
739
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
740
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
741
- return {
742
- url: toPathString(localVarUrlObj),
743
- options: localVarRequestOptions
744
- };
745
- }
746
- };
74
+ //#endregion
75
+ //#region src/api-model/api/amazon-warehousing-and-distribution-api.ts
76
+ /**
77
+ * AmazonWarehousingAndDistributionApi - axios parameter creator
78
+ */
79
+ const AmazonWarehousingAndDistributionApiAxiosParamCreator = function(configuration) {
80
+ return {
81
+ /**
82
+ * Cancels an AWD Inbound order and its associated shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
83
+ * @param {string} orderId The ID of the inbound order you want to cancel.
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ cancelInbound: async (orderId, options = {}) => {
88
+ assertParamExists("cancelInbound", "orderId", orderId);
89
+ const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}/cancellation`.replace("{orderId}", encodeURIComponent(String(orderId)));
90
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
91
+ let baseOptions;
92
+ if (configuration) baseOptions = configuration.baseOptions;
93
+ const localVarRequestOptions = {
94
+ method: "POST",
95
+ ...baseOptions,
96
+ ...options
97
+ };
98
+ const localVarHeaderParameter = {};
99
+ const localVarQueryParameter = {};
100
+ localVarHeaderParameter["Accept"] = "application/json";
101
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
102
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
103
+ localVarRequestOptions.headers = {
104
+ ...localVarHeaderParameter,
105
+ ...headersFromBaseOptions,
106
+ ...options.headers
107
+ };
108
+ return {
109
+ url: toPathString(localVarUrlObj),
110
+ options: localVarRequestOptions
111
+ };
112
+ },
113
+ /**
114
+ * Determines if the packages you specify are eligible for an AWD inbound order and contains error details for ineligible packages. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
115
+ * @param {InboundPackages} body Represents the packages you want to inbound.
116
+ * @param {*} [options] Override http request option.
117
+ * @throws {RequiredError}
118
+ */
119
+ checkInboundEligibility: async (body, options = {}) => {
120
+ assertParamExists("checkInboundEligibility", "body", body);
121
+ const localVarUrlObj = new URL(`/awd/2024-05-09/inboundEligibility`, DUMMY_BASE_URL);
122
+ let baseOptions;
123
+ if (configuration) baseOptions = configuration.baseOptions;
124
+ const localVarRequestOptions = {
125
+ method: "POST",
126
+ ...baseOptions,
127
+ ...options
128
+ };
129
+ const localVarHeaderParameter = {};
130
+ const localVarQueryParameter = {};
131
+ localVarHeaderParameter["Content-Type"] = "application/json";
132
+ localVarHeaderParameter["Accept"] = "application/json";
133
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
134
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
135
+ localVarRequestOptions.headers = {
136
+ ...localVarHeaderParameter,
137
+ ...headersFromBaseOptions,
138
+ ...options.headers
139
+ };
140
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
141
+ return {
142
+ url: toPathString(localVarUrlObj),
143
+ options: localVarRequestOptions
144
+ };
145
+ },
146
+ /**
147
+ * Confirms an AWD inbound order in `DRAFT` status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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
+ * @param {string} orderId The ID of the inbound order that you want to confirm.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ confirmInbound: async (orderId, options = {}) => {
153
+ assertParamExists("confirmInbound", "orderId", orderId);
154
+ const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}/confirmation`.replace("{orderId}", encodeURIComponent(String(orderId)));
155
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
156
+ let baseOptions;
157
+ if (configuration) baseOptions = configuration.baseOptions;
158
+ const localVarRequestOptions = {
159
+ method: "POST",
160
+ ...baseOptions,
161
+ ...options
162
+ };
163
+ const localVarHeaderParameter = {};
164
+ const localVarQueryParameter = {};
165
+ localVarHeaderParameter["Accept"] = "application/json";
166
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
167
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
168
+ localVarRequestOptions.headers = {
169
+ ...localVarHeaderParameter,
170
+ ...headersFromBaseOptions,
171
+ ...options.headers
172
+ };
173
+ return {
174
+ url: toPathString(localVarUrlObj),
175
+ options: localVarRequestOptions
176
+ };
177
+ },
178
+ /**
179
+ * Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
180
+ * @param {string} orderId ID for the outbound order you want to confirm.
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ confirmOutbound: async (orderId, options = {}) => {
185
+ assertParamExists("confirmOutbound", "orderId", orderId);
186
+ const localVarPath = `/awd/2024-05-09/outboundOrders/{orderId}/confirmation`.replace("{orderId}", encodeURIComponent(String(orderId)));
187
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
188
+ let baseOptions;
189
+ if (configuration) baseOptions = configuration.baseOptions;
190
+ const localVarRequestOptions = {
191
+ method: "POST",
192
+ ...baseOptions,
193
+ ...options
194
+ };
195
+ const localVarHeaderParameter = {};
196
+ const localVarQueryParameter = {};
197
+ localVarHeaderParameter["Accept"] = "application/json";
198
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
199
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
200
+ localVarRequestOptions.headers = {
201
+ ...localVarHeaderParameter,
202
+ ...headersFromBaseOptions,
203
+ ...options.headers
204
+ };
205
+ return {
206
+ url: toPathString(localVarUrlObj),
207
+ options: localVarRequestOptions
208
+ };
209
+ },
210
+ /**
211
+ * Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
212
+ * @param {string} orderId ID of the replenishment order to be confirmed.
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ confirmReplenishmentOrder: async (orderId, options = {}) => {
217
+ assertParamExists("confirmReplenishmentOrder", "orderId", orderId);
218
+ const localVarPath = `/awd/2024-05-09/replenishmentOrders/{orderId}/confirmation`.replace("{orderId}", encodeURIComponent(String(orderId)));
219
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
220
+ let baseOptions;
221
+ if (configuration) baseOptions = configuration.baseOptions;
222
+ const localVarRequestOptions = {
223
+ method: "POST",
224
+ ...baseOptions,
225
+ ...options
226
+ };
227
+ const localVarHeaderParameter = {};
228
+ const localVarQueryParameter = {};
229
+ localVarHeaderParameter["Accept"] = "application/json";
230
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
231
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
232
+ localVarRequestOptions.headers = {
233
+ ...localVarHeaderParameter,
234
+ ...headersFromBaseOptions,
235
+ ...options.headers
236
+ };
237
+ return {
238
+ url: toPathString(localVarUrlObj),
239
+ options: localVarRequestOptions
240
+ };
241
+ },
242
+ /**
243
+ * Creates a draft AWD inbound order with a list of packages for inbound shipment. The operation creates one shipment per order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
244
+ * @param {InboundOrderCreationData} body Payload for creating an inbound order.
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ createInbound: async (body, options = {}) => {
249
+ assertParamExists("createInbound", "body", body);
250
+ const localVarUrlObj = new URL(`/awd/2024-05-09/inboundOrders`, DUMMY_BASE_URL);
251
+ let baseOptions;
252
+ if (configuration) baseOptions = configuration.baseOptions;
253
+ const localVarRequestOptions = {
254
+ method: "POST",
255
+ ...baseOptions,
256
+ ...options
257
+ };
258
+ const localVarHeaderParameter = {};
259
+ const localVarQueryParameter = {};
260
+ localVarHeaderParameter["Content-Type"] = "application/json";
261
+ localVarHeaderParameter["Accept"] = "application/json";
262
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
263
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
264
+ localVarRequestOptions.headers = {
265
+ ...localVarHeaderParameter,
266
+ ...headersFromBaseOptions,
267
+ ...options.headers
268
+ };
269
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
270
+ return {
271
+ url: toPathString(localVarUrlObj),
272
+ options: localVarRequestOptions
273
+ };
274
+ },
275
+ /**
276
+ * Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
277
+ * @param {OutboundOrderCreationData} body Payload for creating an outbound order.
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ createOutbound: async (body, options = {}) => {
282
+ assertParamExists("createOutbound", "body", body);
283
+ const localVarUrlObj = new URL(`/awd/2024-05-09/outboundOrders`, DUMMY_BASE_URL);
284
+ let baseOptions;
285
+ if (configuration) baseOptions = configuration.baseOptions;
286
+ const localVarRequestOptions = {
287
+ method: "POST",
288
+ ...baseOptions,
289
+ ...options
290
+ };
291
+ const localVarHeaderParameter = {};
292
+ const localVarQueryParameter = {};
293
+ localVarHeaderParameter["Content-Type"] = "application/json";
294
+ localVarHeaderParameter["Accept"] = "application/json";
295
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
296
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
297
+ localVarRequestOptions.headers = {
298
+ ...localVarHeaderParameter,
299
+ ...headersFromBaseOptions,
300
+ ...options.headers
301
+ };
302
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
303
+ return {
304
+ url: toPathString(localVarUrlObj),
305
+ options: localVarRequestOptions
306
+ };
307
+ },
308
+ /**
309
+ * Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
310
+ * @param {ReplenishmentOrderCreationData} body Payload for creating a replenishment order.
311
+ * @param {*} [options] Override http request option.
312
+ * @throws {RequiredError}
313
+ */
314
+ createReplenishmentOrder: async (body, options = {}) => {
315
+ assertParamExists("createReplenishmentOrder", "body", body);
316
+ const localVarUrlObj = new URL(`/awd/2024-05-09/replenishmentOrders`, DUMMY_BASE_URL);
317
+ let baseOptions;
318
+ if (configuration) baseOptions = configuration.baseOptions;
319
+ const localVarRequestOptions = {
320
+ method: "POST",
321
+ ...baseOptions,
322
+ ...options
323
+ };
324
+ const localVarHeaderParameter = {};
325
+ const localVarQueryParameter = {};
326
+ localVarHeaderParameter["Content-Type"] = "application/json";
327
+ localVarHeaderParameter["Accept"] = "application/json";
328
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
329
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
330
+ localVarRequestOptions.headers = {
331
+ ...localVarHeaderParameter,
332
+ ...headersFromBaseOptions,
333
+ ...options.headers
334
+ };
335
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
336
+ return {
337
+ url: toPathString(localVarUrlObj),
338
+ options: localVarRequestOptions
339
+ };
340
+ },
341
+ /**
342
+ * Retrieves an AWD inbound order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
343
+ * @param {string} orderId The ID of the inbound order that you want to retrieve.
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ getInbound: async (orderId, options = {}) => {
348
+ assertParamExists("getInbound", "orderId", orderId);
349
+ const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
350
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
351
+ let baseOptions;
352
+ if (configuration) baseOptions = configuration.baseOptions;
353
+ const localVarRequestOptions = {
354
+ method: "GET",
355
+ ...baseOptions,
356
+ ...options
357
+ };
358
+ const localVarHeaderParameter = {};
359
+ const localVarQueryParameter = {};
360
+ localVarHeaderParameter["Accept"] = "application/json";
361
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
362
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
363
+ localVarRequestOptions.headers = {
364
+ ...localVarHeaderParameter,
365
+ ...headersFromBaseOptions,
366
+ ...options.headers
367
+ };
368
+ return {
369
+ url: toPathString(localVarUrlObj),
370
+ options: localVarRequestOptions
371
+ };
372
+ },
373
+ /**
374
+ * Retrieves an AWD inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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)
375
+ * @param {string} shipmentId ID for the shipment. A shipment contains the cases being inbounded.
376
+ * @param {GetInboundShipmentSkuQuantitiesEnum} [skuQuantities] If equal to `SHOW`, the response includes the shipment SKU quantity details. Defaults to `HIDE`, in which case the response does not contain SKU quantities
377
+ * @param {*} [options] Override http request option.
378
+ * @throws {RequiredError}
379
+ */
380
+ getInboundShipment: async (shipmentId, skuQuantities, options = {}) => {
381
+ assertParamExists("getInboundShipment", "shipmentId", shipmentId);
382
+ const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
383
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
384
+ let baseOptions;
385
+ if (configuration) baseOptions = configuration.baseOptions;
386
+ const localVarRequestOptions = {
387
+ method: "GET",
388
+ ...baseOptions,
389
+ ...options
390
+ };
391
+ const localVarHeaderParameter = {};
392
+ const localVarQueryParameter = {};
393
+ if (skuQuantities !== void 0) localVarQueryParameter["skuQuantities"] = skuQuantities;
394
+ localVarHeaderParameter["Accept"] = "application/json";
395
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
396
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
397
+ localVarRequestOptions.headers = {
398
+ ...localVarHeaderParameter,
399
+ ...headersFromBaseOptions,
400
+ ...options.headers
401
+ };
402
+ return {
403
+ url: toPathString(localVarUrlObj),
404
+ options: localVarRequestOptions
405
+ };
406
+ },
407
+ /**
408
+ * Retrieves the box labels for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the label URL is available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
409
+ * @param {string} shipmentId ID for the shipment.
410
+ * @param {GetInboundShipmentLabelsPageTypeEnum} [pageType] Page type for the generated labels. The default is `PLAIN_PAPER`.
411
+ * @param {GetInboundShipmentLabelsFormatTypeEnum} [formatType] The format type of the output file that contains your labels. The default format type is `PDF`.
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ */
415
+ getInboundShipmentLabels: async (shipmentId, pageType, formatType, options = {}) => {
416
+ assertParamExists("getInboundShipmentLabels", "shipmentId", shipmentId);
417
+ const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}/labels`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
418
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
419
+ let baseOptions;
420
+ if (configuration) baseOptions = configuration.baseOptions;
421
+ const localVarRequestOptions = {
422
+ method: "GET",
423
+ ...baseOptions,
424
+ ...options
425
+ };
426
+ const localVarHeaderParameter = {};
427
+ const localVarQueryParameter = {};
428
+ if (pageType !== void 0) localVarQueryParameter["pageType"] = pageType;
429
+ if (formatType !== void 0) localVarQueryParameter["formatType"] = formatType;
430
+ localVarHeaderParameter["Accept"] = "application/json";
431
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
432
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
433
+ localVarRequestOptions.headers = {
434
+ ...localVarHeaderParameter,
435
+ ...headersFromBaseOptions,
436
+ ...options.headers
437
+ };
438
+ return {
439
+ url: toPathString(localVarUrlObj),
440
+ options: localVarRequestOptions
441
+ };
442
+ },
443
+ /**
444
+ * Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
445
+ * @param {string} shipmentId ID for the shipment.
446
+ * @param {*} [options] Override http request option.
447
+ * @throws {RequiredError}
448
+ */
449
+ getLabelPageTypes: async (shipmentId, options = {}) => {
450
+ assertParamExists("getLabelPageTypes", "shipmentId", shipmentId);
451
+ const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}/labelPageTypes`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
452
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
453
+ let baseOptions;
454
+ if (configuration) baseOptions = configuration.baseOptions;
455
+ const localVarRequestOptions = {
456
+ method: "GET",
457
+ ...baseOptions,
458
+ ...options
459
+ };
460
+ const localVarHeaderParameter = {};
461
+ const localVarQueryParameter = {};
462
+ localVarHeaderParameter["Accept"] = "application/json";
463
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
464
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
465
+ localVarRequestOptions.headers = {
466
+ ...localVarHeaderParameter,
467
+ ...headersFromBaseOptions,
468
+ ...options.headers
469
+ };
470
+ return {
471
+ url: toPathString(localVarUrlObj),
472
+ options: localVarRequestOptions
473
+ };
474
+ },
475
+ /**
476
+ * Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
477
+ * @param {string} orderId ID for the outbound order to be retrieved.
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ getOutbound: async (orderId, options = {}) => {
482
+ assertParamExists("getOutbound", "orderId", orderId);
483
+ const localVarPath = `/awd/2024-05-09/outboundOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
484
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
485
+ let baseOptions;
486
+ if (configuration) baseOptions = configuration.baseOptions;
487
+ const localVarRequestOptions = {
488
+ method: "GET",
489
+ ...baseOptions,
490
+ ...options
491
+ };
492
+ const localVarHeaderParameter = {};
493
+ const localVarQueryParameter = {};
494
+ localVarHeaderParameter["Accept"] = "application/json";
495
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
496
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
497
+ localVarRequestOptions.headers = {
498
+ ...localVarHeaderParameter,
499
+ ...headersFromBaseOptions,
500
+ ...options.headers
501
+ };
502
+ return {
503
+ url: toPathString(localVarUrlObj),
504
+ options: localVarRequestOptions
505
+ };
506
+ },
507
+ /**
508
+ * Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
509
+ * @param {string} orderId ID of the replenishment order to be retrieved.
510
+ * @param {*} [options] Override http request option.
511
+ * @throws {RequiredError}
512
+ */
513
+ getReplenishmentOrder: async (orderId, options = {}) => {
514
+ assertParamExists("getReplenishmentOrder", "orderId", orderId);
515
+ const localVarPath = `/awd/2024-05-09/replenishmentOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
516
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
517
+ let baseOptions;
518
+ if (configuration) baseOptions = configuration.baseOptions;
519
+ const localVarRequestOptions = {
520
+ method: "GET",
521
+ ...baseOptions,
522
+ ...options
523
+ };
524
+ const localVarHeaderParameter = {};
525
+ const localVarQueryParameter = {};
526
+ localVarHeaderParameter["Accept"] = "application/json";
527
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
528
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
529
+ localVarRequestOptions.headers = {
530
+ ...localVarHeaderParameter,
531
+ ...headersFromBaseOptions,
532
+ ...options.headers
533
+ };
534
+ return {
535
+ url: toPathString(localVarUrlObj),
536
+ options: localVarRequestOptions
537
+ };
538
+ },
539
+ /**
540
+ * Retrieves a summary of all the inbound AWD shipments associated with a merchant, with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
541
+ * @param {ListInboundShipmentsSortByEnum} [sortBy] Field to sort results by. By default, the response will be sorted by UPDATED_AT.
542
+ * @param {ListInboundShipmentsSortOrderEnum} [sortOrder] Sort the response in ASCENDING or DESCENDING order. By default, the response will be sorted in DESCENDING order.
543
+ * @param {ListInboundShipmentsShipmentStatusEnum} [shipmentStatus] Filter by inbound shipment status.
544
+ * @param {string} [updatedAfter] List the inbound shipments that were updated after a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
545
+ * @param {string} [updatedBefore] List the inbound shipments that were updated before a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
546
+ * @param {number} [maxResults] Maximum number of results to return.
547
+ * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
548
+ * @param {*} [options] Override http request option.
549
+ * @throws {RequiredError}
550
+ */
551
+ listInboundShipments: async (sortBy, sortOrder, shipmentStatus, updatedAfter, updatedBefore, maxResults, nextToken, options = {}) => {
552
+ const localVarUrlObj = new URL(`/awd/2024-05-09/inboundShipments`, DUMMY_BASE_URL);
553
+ let baseOptions;
554
+ if (configuration) baseOptions = configuration.baseOptions;
555
+ const localVarRequestOptions = {
556
+ method: "GET",
557
+ ...baseOptions,
558
+ ...options
559
+ };
560
+ const localVarHeaderParameter = {};
561
+ const localVarQueryParameter = {};
562
+ if (sortBy !== void 0) localVarQueryParameter["sortBy"] = sortBy;
563
+ if (sortOrder !== void 0) localVarQueryParameter["sortOrder"] = sortOrder;
564
+ if (shipmentStatus !== void 0) localVarQueryParameter["shipmentStatus"] = shipmentStatus;
565
+ if (updatedAfter !== void 0) localVarQueryParameter["updatedAfter"] = updatedAfter instanceof Date ? updatedAfter.toISOString() : updatedAfter;
566
+ if (updatedBefore !== void 0) localVarQueryParameter["updatedBefore"] = updatedBefore instanceof Date ? updatedBefore.toISOString() : updatedBefore;
567
+ if (maxResults !== void 0) localVarQueryParameter["maxResults"] = maxResults;
568
+ if (nextToken !== void 0) localVarQueryParameter["nextToken"] = nextToken;
569
+ localVarHeaderParameter["Accept"] = "application/json";
570
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
571
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
572
+ localVarRequestOptions.headers = {
573
+ ...localVarHeaderParameter,
574
+ ...headersFromBaseOptions,
575
+ ...options.headers
576
+ };
577
+ return {
578
+ url: toPathString(localVarUrlObj),
579
+ options: localVarRequestOptions
580
+ };
581
+ },
582
+ /**
583
+ * Lists AWD inventory associated with a merchant with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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).
584
+ * @param {string} [sku] Filter by seller or merchant SKU for the item.
585
+ * @param {ListInventorySortOrderEnum} [sortOrder] Sort the response in `ASCENDING` or `DESCENDING` order.
586
+ * @param {ListInventoryDetailsEnum} [details] Set to `SHOW` to return summaries with additional inventory details. Defaults to `HIDE,` which returns only inventory summary totals.
587
+ * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
588
+ * @param {number} [maxResults] Maximum number of results to return.
589
+ * @param {*} [options] Override http request option.
590
+ * @throws {RequiredError}
591
+ */
592
+ listInventory: async (sku, sortOrder, details, nextToken, maxResults, options = {}) => {
593
+ const localVarUrlObj = new URL(`/awd/2024-05-09/inventory`, DUMMY_BASE_URL);
594
+ let baseOptions;
595
+ if (configuration) baseOptions = configuration.baseOptions;
596
+ const localVarRequestOptions = {
597
+ method: "GET",
598
+ ...baseOptions,
599
+ ...options
600
+ };
601
+ const localVarHeaderParameter = {};
602
+ const localVarQueryParameter = {};
603
+ if (sku !== void 0) localVarQueryParameter["sku"] = sku;
604
+ if (sortOrder !== void 0) localVarQueryParameter["sortOrder"] = sortOrder;
605
+ if (details !== void 0) localVarQueryParameter["details"] = details;
606
+ if (nextToken !== void 0) localVarQueryParameter["nextToken"] = nextToken;
607
+ if (maxResults !== void 0) localVarQueryParameter["maxResults"] = maxResults;
608
+ localVarHeaderParameter["Accept"] = "application/json";
609
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
610
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
611
+ localVarRequestOptions.headers = {
612
+ ...localVarHeaderParameter,
613
+ ...headersFromBaseOptions,
614
+ ...options.headers
615
+ };
616
+ return {
617
+ url: toPathString(localVarUrlObj),
618
+ options: localVarRequestOptions
619
+ };
620
+ },
621
+ /**
622
+ * Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
623
+ * @param {string} [updatedAfter] Get the outbound orders updated after a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
624
+ * @param {string} [updatedBefore] Get the outbound orders updated before a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
625
+ * @param {ListOutboundsSortOrderEnum} [sortOrder] Sort the response in `ASCENDING` or `DESCENDING` order.
626
+ * @param {number} [maxResults] Maximum number of results to return.
627
+ * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
628
+ * @param {*} [options] Override http request option.
629
+ * @throws {RequiredError}
630
+ */
631
+ listOutbounds: async (updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options = {}) => {
632
+ const localVarUrlObj = new URL(`/awd/2024-05-09/outboundOrders`, DUMMY_BASE_URL);
633
+ let baseOptions;
634
+ if (configuration) baseOptions = configuration.baseOptions;
635
+ const localVarRequestOptions = {
636
+ method: "GET",
637
+ ...baseOptions,
638
+ ...options
639
+ };
640
+ const localVarHeaderParameter = {};
641
+ const localVarQueryParameter = {};
642
+ if (updatedAfter !== void 0) localVarQueryParameter["updatedAfter"] = updatedAfter instanceof Date ? updatedAfter.toISOString() : updatedAfter;
643
+ if (updatedBefore !== void 0) localVarQueryParameter["updatedBefore"] = updatedBefore instanceof Date ? updatedBefore.toISOString() : updatedBefore;
644
+ if (sortOrder !== void 0) localVarQueryParameter["sortOrder"] = sortOrder;
645
+ if (maxResults !== void 0) localVarQueryParameter["maxResults"] = maxResults;
646
+ if (nextToken !== void 0) localVarQueryParameter["nextToken"] = nextToken;
647
+ localVarHeaderParameter["Accept"] = "application/json";
648
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
649
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
650
+ localVarRequestOptions.headers = {
651
+ ...localVarHeaderParameter,
652
+ ...headersFromBaseOptions,
653
+ ...options.headers
654
+ };
655
+ return {
656
+ url: toPathString(localVarUrlObj),
657
+ options: localVarRequestOptions
658
+ };
659
+ },
660
+ /**
661
+ * Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
662
+ * @param {string} [updatedAfter] Get the replenishment orders updated after certain time (Inclusive) Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
663
+ * @param {string} [updatedBefore] Get the replenishment orders updated before certain time (Inclusive) Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
664
+ * @param {ListReplenishmentOrdersSortOrderEnum} [sortOrder] Sort the response in ASCENDING or DESCENDING order. The default sort order is DESCENDING.
665
+ * @param {number} [maxResults] Maximum results to be returned in a single response.
666
+ * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ */
670
+ listReplenishmentOrders: async (updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options = {}) => {
671
+ const localVarUrlObj = new URL(`/awd/2024-05-09/replenishmentOrders`, DUMMY_BASE_URL);
672
+ let baseOptions;
673
+ if (configuration) baseOptions = configuration.baseOptions;
674
+ const localVarRequestOptions = {
675
+ method: "GET",
676
+ ...baseOptions,
677
+ ...options
678
+ };
679
+ const localVarHeaderParameter = {};
680
+ const localVarQueryParameter = {};
681
+ if (updatedAfter !== void 0) localVarQueryParameter["updatedAfter"] = updatedAfter instanceof Date ? updatedAfter.toISOString() : updatedAfter;
682
+ if (updatedBefore !== void 0) localVarQueryParameter["updatedBefore"] = updatedBefore instanceof Date ? updatedBefore.toISOString() : updatedBefore;
683
+ if (sortOrder !== void 0) localVarQueryParameter["sortOrder"] = sortOrder;
684
+ if (maxResults !== void 0) localVarQueryParameter["maxResults"] = maxResults;
685
+ if (nextToken !== void 0) localVarQueryParameter["nextToken"] = nextToken;
686
+ localVarHeaderParameter["Accept"] = "application/json";
687
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
688
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
689
+ localVarRequestOptions.headers = {
690
+ ...localVarHeaderParameter,
691
+ ...headersFromBaseOptions,
692
+ ...options.headers
693
+ };
694
+ return {
695
+ url: toPathString(localVarUrlObj),
696
+ options: localVarRequestOptions
697
+ };
698
+ },
699
+ /**
700
+ * Updates an AWD inbound order that is in `DRAFT` status and not yet confirmed. Use this operation to update the `packagesToInbound`, `originAddress` and `preferences` attributes. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
701
+ * @param {string} orderId The ID of the inbound order that you want to update.
702
+ * @param {InboundOrder} body Represents an AWD inbound order.
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ */
706
+ updateInbound: async (orderId, body, options = {}) => {
707
+ assertParamExists("updateInbound", "orderId", orderId);
708
+ assertParamExists("updateInbound", "body", body);
709
+ const localVarPath = `/awd/2024-05-09/inboundOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
710
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
711
+ let baseOptions;
712
+ if (configuration) baseOptions = configuration.baseOptions;
713
+ const localVarRequestOptions = {
714
+ method: "PUT",
715
+ ...baseOptions,
716
+ ...options
717
+ };
718
+ const localVarHeaderParameter = {};
719
+ const localVarQueryParameter = {};
720
+ localVarHeaderParameter["Content-Type"] = "application/json";
721
+ localVarHeaderParameter["Accept"] = "application/json";
722
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
723
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
724
+ localVarRequestOptions.headers = {
725
+ ...localVarHeaderParameter,
726
+ ...headersFromBaseOptions,
727
+ ...options.headers
728
+ };
729
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
730
+ return {
731
+ url: toPathString(localVarUrlObj),
732
+ options: localVarRequestOptions
733
+ };
734
+ },
735
+ /**
736
+ * Updates transport details for an AWD shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
737
+ * @param {string} shipmentId The shipment ID.
738
+ * @param {TransportationDetails} body Transportation details for the shipment.
739
+ * @param {*} [options] Override http request option.
740
+ * @throws {RequiredError}
741
+ */
742
+ updateInboundShipmentTransportDetails: async (shipmentId, body, options = {}) => {
743
+ assertParamExists("updateInboundShipmentTransportDetails", "shipmentId", shipmentId);
744
+ assertParamExists("updateInboundShipmentTransportDetails", "body", body);
745
+ const localVarPath = `/awd/2024-05-09/inboundShipments/{shipmentId}/transport`.replace("{shipmentId}", encodeURIComponent(String(shipmentId)));
746
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
747
+ let baseOptions;
748
+ if (configuration) baseOptions = configuration.baseOptions;
749
+ const localVarRequestOptions = {
750
+ method: "PUT",
751
+ ...baseOptions,
752
+ ...options
753
+ };
754
+ const localVarHeaderParameter = {};
755
+ const localVarQueryParameter = {};
756
+ localVarHeaderParameter["Content-Type"] = "application/json";
757
+ localVarHeaderParameter["Accept"] = "application/json";
758
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
759
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
760
+ localVarRequestOptions.headers = {
761
+ ...localVarHeaderParameter,
762
+ ...headersFromBaseOptions,
763
+ ...options.headers
764
+ };
765
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
766
+ return {
767
+ url: toPathString(localVarUrlObj),
768
+ options: localVarRequestOptions
769
+ };
770
+ },
771
+ /**
772
+ * Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
773
+ * @param {string} orderId ID for the outbound order to be updated.
774
+ * @param {OutboundOrder} body Represents an AWD outbound order.
775
+ * @param {*} [options] Override http request option.
776
+ * @throws {RequiredError}
777
+ */
778
+ updateOutbound: async (orderId, body, options = {}) => {
779
+ assertParamExists("updateOutbound", "orderId", orderId);
780
+ assertParamExists("updateOutbound", "body", body);
781
+ const localVarPath = `/awd/2024-05-09/outboundOrders/{orderId}`.replace("{orderId}", encodeURIComponent(String(orderId)));
782
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
783
+ let baseOptions;
784
+ if (configuration) baseOptions = configuration.baseOptions;
785
+ const localVarRequestOptions = {
786
+ method: "PUT",
787
+ ...baseOptions,
788
+ ...options
789
+ };
790
+ const localVarHeaderParameter = {};
791
+ const localVarQueryParameter = {};
792
+ localVarHeaderParameter["Content-Type"] = "application/json";
793
+ localVarHeaderParameter["Accept"] = "application/json";
794
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
795
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
796
+ localVarRequestOptions.headers = {
797
+ ...localVarHeaderParameter,
798
+ ...headersFromBaseOptions,
799
+ ...options.headers
800
+ };
801
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
802
+ return {
803
+ url: toPathString(localVarUrlObj),
804
+ options: localVarRequestOptions
805
+ };
806
+ }
807
+ };
747
808
  };
748
- var AmazonWarehousingAndDistributionApiFp = function(configuration) {
749
- const localVarAxiosParamCreator = AmazonWarehousingAndDistributionApiAxiosParamCreator(configuration);
750
- return {
751
- /**
752
- * Cancels an AWD Inbound order and its associated shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
753
- * @param {string} orderId The ID of the inbound order you want to cancel.
754
- * @param {*} [options] Override http request option.
755
- * @throws {RequiredError}
756
- */
757
- async cancelInbound(orderId, options) {
758
- const localVarAxiosArgs = await localVarAxiosParamCreator.cancelInbound(orderId, options);
759
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
760
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.cancelInbound"]?.[localVarOperationServerIndex]?.url;
761
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
762
- },
763
- /**
764
- * Determines if the packages you specify are eligible for an AWD inbound order and contains error details for ineligible packages. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
765
- * @param {InboundPackages} body Represents the packages you want to inbound.
766
- * @param {*} [options] Override http request option.
767
- * @throws {RequiredError}
768
- */
769
- async checkInboundEligibility(body, options) {
770
- const localVarAxiosArgs = await localVarAxiosParamCreator.checkInboundEligibility(body, options);
771
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
772
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.checkInboundEligibility"]?.[localVarOperationServerIndex]?.url;
773
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
774
- },
775
- /**
776
- * Confirms an AWD inbound order in `DRAFT` status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
777
- * @param {string} orderId The ID of the inbound order that you want to confirm.
778
- * @param {*} [options] Override http request option.
779
- * @throws {RequiredError}
780
- */
781
- async confirmInbound(orderId, options) {
782
- const localVarAxiosArgs = await localVarAxiosParamCreator.confirmInbound(orderId, options);
783
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
784
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.confirmInbound"]?.[localVarOperationServerIndex]?.url;
785
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
786
- },
787
- /**
788
- * Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
789
- * @param {string} orderId ID for the outbound order you want to confirm.
790
- * @param {*} [options] Override http request option.
791
- * @throws {RequiredError}
792
- */
793
- async confirmOutbound(orderId, options) {
794
- const localVarAxiosArgs = await localVarAxiosParamCreator.confirmOutbound(orderId, options);
795
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
796
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.confirmOutbound"]?.[localVarOperationServerIndex]?.url;
797
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
798
- },
799
- /**
800
- * Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
801
- * @param {string} orderId ID of the replenishment order to be confirmed.
802
- * @param {*} [options] Override http request option.
803
- * @throws {RequiredError}
804
- */
805
- async confirmReplenishmentOrder(orderId, options) {
806
- const localVarAxiosArgs = await localVarAxiosParamCreator.confirmReplenishmentOrder(orderId, options);
807
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
808
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.confirmReplenishmentOrder"]?.[localVarOperationServerIndex]?.url;
809
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
810
- },
811
- /**
812
- * Creates a draft AWD inbound order with a list of packages for inbound shipment. The operation creates one shipment per order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
813
- * @param {InboundOrderCreationData} body Payload for creating an inbound order.
814
- * @param {*} [options] Override http request option.
815
- * @throws {RequiredError}
816
- */
817
- async createInbound(body, options) {
818
- const localVarAxiosArgs = await localVarAxiosParamCreator.createInbound(body, options);
819
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
820
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.createInbound"]?.[localVarOperationServerIndex]?.url;
821
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
822
- },
823
- /**
824
- * Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
825
- * @param {OutboundOrderCreationData} body Payload for creating an outbound order.
826
- * @param {*} [options] Override http request option.
827
- * @throws {RequiredError}
828
- */
829
- async createOutbound(body, options) {
830
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOutbound(body, options);
831
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
832
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.createOutbound"]?.[localVarOperationServerIndex]?.url;
833
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
834
- },
835
- /**
836
- * Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
837
- * @param {ReplenishmentOrderCreationData} body Payload for creating a replenishment order.
838
- * @param {*} [options] Override http request option.
839
- * @throws {RequiredError}
840
- */
841
- async createReplenishmentOrder(body, options) {
842
- const localVarAxiosArgs = await localVarAxiosParamCreator.createReplenishmentOrder(body, options);
843
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
844
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.createReplenishmentOrder"]?.[localVarOperationServerIndex]?.url;
845
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
846
- },
847
- /**
848
- * Retrieves an AWD inbound order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
849
- * @param {string} orderId The ID of the inbound order that you want to retrieve.
850
- * @param {*} [options] Override http request option.
851
- * @throws {RequiredError}
852
- */
853
- async getInbound(orderId, options) {
854
- const localVarAxiosArgs = await localVarAxiosParamCreator.getInbound(orderId, options);
855
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
856
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getInbound"]?.[localVarOperationServerIndex]?.url;
857
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
858
- },
859
- /**
860
- * Retrieves an AWD inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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)
861
- * @param {string} shipmentId ID for the shipment. A shipment contains the cases being inbounded.
862
- * @param {GetInboundShipmentSkuQuantitiesEnum} [skuQuantities] If equal to `SHOW`, the response includes the shipment SKU quantity details. Defaults to `HIDE`, in which case the response does not contain SKU quantities
863
- * @param {*} [options] Override http request option.
864
- * @throws {RequiredError}
865
- */
866
- async getInboundShipment(shipmentId, skuQuantities, options) {
867
- const localVarAxiosArgs = await localVarAxiosParamCreator.getInboundShipment(shipmentId, skuQuantities, options);
868
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
869
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getInboundShipment"]?.[localVarOperationServerIndex]?.url;
870
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
871
- },
872
- /**
873
- * Retrieves the box labels for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the label URL is available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
874
- * @param {string} shipmentId ID for the shipment.
875
- * @param {GetInboundShipmentLabelsPageTypeEnum} [pageType] Page type for the generated labels. The default is `PLAIN_PAPER`.
876
- * @param {GetInboundShipmentLabelsFormatTypeEnum} [formatType] The format type of the output file that contains your labels. The default format type is `PDF`.
877
- * @param {*} [options] Override http request option.
878
- * @throws {RequiredError}
879
- */
880
- async getInboundShipmentLabels(shipmentId, pageType, formatType, options) {
881
- const localVarAxiosArgs = await localVarAxiosParamCreator.getInboundShipmentLabels(shipmentId, pageType, formatType, options);
882
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
883
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getInboundShipmentLabels"]?.[localVarOperationServerIndex]?.url;
884
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
885
- },
886
- /**
887
- * Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
888
- * @param {string} shipmentId ID for the shipment.
889
- * @param {*} [options] Override http request option.
890
- * @throws {RequiredError}
891
- */
892
- async getLabelPageTypes(shipmentId, options) {
893
- const localVarAxiosArgs = await localVarAxiosParamCreator.getLabelPageTypes(shipmentId, options);
894
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
895
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getLabelPageTypes"]?.[localVarOperationServerIndex]?.url;
896
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
897
- },
898
- /**
899
- * Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
900
- * @param {string} orderId ID for the outbound order to be retrieved.
901
- * @param {*} [options] Override http request option.
902
- * @throws {RequiredError}
903
- */
904
- async getOutbound(orderId, options) {
905
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOutbound(orderId, options);
906
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
907
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getOutbound"]?.[localVarOperationServerIndex]?.url;
908
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
909
- },
910
- /**
911
- * Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
912
- * @param {string} orderId ID of the replenishment order to be retrieved.
913
- * @param {*} [options] Override http request option.
914
- * @throws {RequiredError}
915
- */
916
- async getReplenishmentOrder(orderId, options) {
917
- const localVarAxiosArgs = await localVarAxiosParamCreator.getReplenishmentOrder(orderId, options);
918
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
919
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getReplenishmentOrder"]?.[localVarOperationServerIndex]?.url;
920
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
921
- },
922
- /**
923
- * Retrieves a summary of all the inbound AWD shipments associated with a merchant, with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
924
- * @param {ListInboundShipmentsSortByEnum} [sortBy] Field to sort results by. By default, the response will be sorted by UPDATED_AT.
925
- * @param {ListInboundShipmentsSortOrderEnum} [sortOrder] Sort the response in ASCENDING or DESCENDING order. By default, the response will be sorted in DESCENDING order.
926
- * @param {ListInboundShipmentsShipmentStatusEnum} [shipmentStatus] Filter by inbound shipment status.
927
- * @param {string} [updatedAfter] List the inbound shipments that were updated after a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
928
- * @param {string} [updatedBefore] List the inbound shipments that were updated before a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
929
- * @param {number} [maxResults] Maximum number of results to return.
930
- * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
931
- * @param {*} [options] Override http request option.
932
- * @throws {RequiredError}
933
- */
934
- async listInboundShipments(sortBy, sortOrder, shipmentStatus, updatedAfter, updatedBefore, maxResults, nextToken, options) {
935
- const localVarAxiosArgs = await localVarAxiosParamCreator.listInboundShipments(sortBy, sortOrder, shipmentStatus, updatedAfter, updatedBefore, maxResults, nextToken, options);
936
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
937
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.listInboundShipments"]?.[localVarOperationServerIndex]?.url;
938
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
939
- },
940
- /**
941
- * Lists AWD inventory associated with a merchant with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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).
942
- * @param {string} [sku] Filter by seller or merchant SKU for the item.
943
- * @param {ListInventorySortOrderEnum} [sortOrder] Sort the response in `ASCENDING` or `DESCENDING` order.
944
- * @param {ListInventoryDetailsEnum} [details] Set to `SHOW` to return summaries with additional inventory details. Defaults to `HIDE,` which returns only inventory summary totals.
945
- * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
946
- * @param {number} [maxResults] Maximum number of results to return.
947
- * @param {*} [options] Override http request option.
948
- * @throws {RequiredError}
949
- */
950
- async listInventory(sku, sortOrder, details, nextToken, maxResults, options) {
951
- const localVarAxiosArgs = await localVarAxiosParamCreator.listInventory(sku, sortOrder, details, nextToken, maxResults, options);
952
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
953
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.listInventory"]?.[localVarOperationServerIndex]?.url;
954
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
955
- },
956
- /**
957
- * Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
958
- * @param {string} [updatedAfter] Get the outbound orders updated after a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
959
- * @param {string} [updatedBefore] Get the outbound orders updated before a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
960
- * @param {ListOutboundsSortOrderEnum} [sortOrder] Sort the response in `ASCENDING` or `DESCENDING` order.
961
- * @param {number} [maxResults] Maximum number of results to return.
962
- * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
963
- * @param {*} [options] Override http request option.
964
- * @throws {RequiredError}
965
- */
966
- async listOutbounds(updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options) {
967
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOutbounds(updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options);
968
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
969
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.listOutbounds"]?.[localVarOperationServerIndex]?.url;
970
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
971
- },
972
- /**
973
- * Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
974
- * @param {string} [updatedAfter] Get the replenishment orders updated after certain time (Inclusive) Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
975
- * @param {string} [updatedBefore] Get the replenishment orders updated before certain time (Inclusive) Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
976
- * @param {ListReplenishmentOrdersSortOrderEnum} [sortOrder] Sort the response in ASCENDING or DESCENDING order. The default sort order is DESCENDING.
977
- * @param {number} [maxResults] Maximum results to be returned in a single response.
978
- * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
979
- * @param {*} [options] Override http request option.
980
- * @throws {RequiredError}
981
- */
982
- async listReplenishmentOrders(updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options) {
983
- const localVarAxiosArgs = await localVarAxiosParamCreator.listReplenishmentOrders(updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options);
984
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
985
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.listReplenishmentOrders"]?.[localVarOperationServerIndex]?.url;
986
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
987
- },
988
- /**
989
- * Updates an AWD inbound order that is in `DRAFT` status and not yet confirmed. Use this operation to update the `packagesToInbound`, `originAddress` and `preferences` attributes. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
990
- * @param {string} orderId The ID of the inbound order that you want to update.
991
- * @param {InboundOrder} body Represents an AWD inbound order.
992
- * @param {*} [options] Override http request option.
993
- * @throws {RequiredError}
994
- */
995
- async updateInbound(orderId, body, options) {
996
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateInbound(orderId, body, options);
997
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
998
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.updateInbound"]?.[localVarOperationServerIndex]?.url;
999
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1000
- },
1001
- /**
1002
- * Updates transport details for an AWD shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1003
- * @param {string} shipmentId The shipment ID.
1004
- * @param {TransportationDetails} body Transportation details for the shipment.
1005
- * @param {*} [options] Override http request option.
1006
- * @throws {RequiredError}
1007
- */
1008
- async updateInboundShipmentTransportDetails(shipmentId, body, options) {
1009
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateInboundShipmentTransportDetails(shipmentId, body, options);
1010
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1011
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.updateInboundShipmentTransportDetails"]?.[localVarOperationServerIndex]?.url;
1012
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1013
- },
1014
- /**
1015
- * Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1016
- * @param {string} orderId ID for the outbound order to be updated.
1017
- * @param {OutboundOrder} body Represents an AWD outbound order.
1018
- * @param {*} [options] Override http request option.
1019
- * @throws {RequiredError}
1020
- */
1021
- async updateOutbound(orderId, body, options) {
1022
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateOutbound(orderId, body, options);
1023
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1024
- const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.updateOutbound"]?.[localVarOperationServerIndex]?.url;
1025
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1026
- }
1027
- };
809
+ /**
810
+ * AmazonWarehousingAndDistributionApi - functional programming interface
811
+ */
812
+ const AmazonWarehousingAndDistributionApiFp = function(configuration) {
813
+ const localVarAxiosParamCreator = AmazonWarehousingAndDistributionApiAxiosParamCreator(configuration);
814
+ return {
815
+ /**
816
+ * Cancels an AWD Inbound order and its associated shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
817
+ * @param {string} orderId The ID of the inbound order you want to cancel.
818
+ * @param {*} [options] Override http request option.
819
+ * @throws {RequiredError}
820
+ */
821
+ async cancelInbound(orderId, options) {
822
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelInbound(orderId, options);
823
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
824
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.cancelInbound"]?.[localVarOperationServerIndex]?.url;
825
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
826
+ },
827
+ /**
828
+ * Determines if the packages you specify are eligible for an AWD inbound order and contains error details for ineligible packages. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
829
+ * @param {InboundPackages} body Represents the packages you want to inbound.
830
+ * @param {*} [options] Override http request option.
831
+ * @throws {RequiredError}
832
+ */
833
+ async checkInboundEligibility(body, options) {
834
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkInboundEligibility(body, options);
835
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
836
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.checkInboundEligibility"]?.[localVarOperationServerIndex]?.url;
837
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
838
+ },
839
+ /**
840
+ * Confirms an AWD inbound order in `DRAFT` status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
841
+ * @param {string} orderId The ID of the inbound order that you want to confirm.
842
+ * @param {*} [options] Override http request option.
843
+ * @throws {RequiredError}
844
+ */
845
+ async confirmInbound(orderId, options) {
846
+ const localVarAxiosArgs = await localVarAxiosParamCreator.confirmInbound(orderId, options);
847
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
848
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.confirmInbound"]?.[localVarOperationServerIndex]?.url;
849
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
850
+ },
851
+ /**
852
+ * Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
853
+ * @param {string} orderId ID for the outbound order you want to confirm.
854
+ * @param {*} [options] Override http request option.
855
+ * @throws {RequiredError}
856
+ */
857
+ async confirmOutbound(orderId, options) {
858
+ const localVarAxiosArgs = await localVarAxiosParamCreator.confirmOutbound(orderId, options);
859
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
860
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.confirmOutbound"]?.[localVarOperationServerIndex]?.url;
861
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
862
+ },
863
+ /**
864
+ * Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
865
+ * @param {string} orderId ID of the replenishment order to be confirmed.
866
+ * @param {*} [options] Override http request option.
867
+ * @throws {RequiredError}
868
+ */
869
+ async confirmReplenishmentOrder(orderId, options) {
870
+ const localVarAxiosArgs = await localVarAxiosParamCreator.confirmReplenishmentOrder(orderId, options);
871
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
872
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.confirmReplenishmentOrder"]?.[localVarOperationServerIndex]?.url;
873
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
874
+ },
875
+ /**
876
+ * Creates a draft AWD inbound order with a list of packages for inbound shipment. The operation creates one shipment per order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
877
+ * @param {InboundOrderCreationData} body Payload for creating an inbound order.
878
+ * @param {*} [options] Override http request option.
879
+ * @throws {RequiredError}
880
+ */
881
+ async createInbound(body, options) {
882
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createInbound(body, options);
883
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
884
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.createInbound"]?.[localVarOperationServerIndex]?.url;
885
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
886
+ },
887
+ /**
888
+ * Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
889
+ * @param {OutboundOrderCreationData} body Payload for creating an outbound order.
890
+ * @param {*} [options] Override http request option.
891
+ * @throws {RequiredError}
892
+ */
893
+ async createOutbound(body, options) {
894
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOutbound(body, options);
895
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
896
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.createOutbound"]?.[localVarOperationServerIndex]?.url;
897
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
898
+ },
899
+ /**
900
+ * Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
901
+ * @param {ReplenishmentOrderCreationData} body Payload for creating a replenishment order.
902
+ * @param {*} [options] Override http request option.
903
+ * @throws {RequiredError}
904
+ */
905
+ async createReplenishmentOrder(body, options) {
906
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createReplenishmentOrder(body, options);
907
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
908
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.createReplenishmentOrder"]?.[localVarOperationServerIndex]?.url;
909
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
910
+ },
911
+ /**
912
+ * Retrieves an AWD inbound order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
913
+ * @param {string} orderId The ID of the inbound order that you want to retrieve.
914
+ * @param {*} [options] Override http request option.
915
+ * @throws {RequiredError}
916
+ */
917
+ async getInbound(orderId, options) {
918
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInbound(orderId, options);
919
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
920
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getInbound"]?.[localVarOperationServerIndex]?.url;
921
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
922
+ },
923
+ /**
924
+ * Retrieves an AWD inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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)
925
+ * @param {string} shipmentId ID for the shipment. A shipment contains the cases being inbounded.
926
+ * @param {GetInboundShipmentSkuQuantitiesEnum} [skuQuantities] If equal to `SHOW`, the response includes the shipment SKU quantity details. Defaults to `HIDE`, in which case the response does not contain SKU quantities
927
+ * @param {*} [options] Override http request option.
928
+ * @throws {RequiredError}
929
+ */
930
+ async getInboundShipment(shipmentId, skuQuantities, options) {
931
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInboundShipment(shipmentId, skuQuantities, options);
932
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
933
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getInboundShipment"]?.[localVarOperationServerIndex]?.url;
934
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
935
+ },
936
+ /**
937
+ * Retrieves the box labels for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the label URL is available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
938
+ * @param {string} shipmentId ID for the shipment.
939
+ * @param {GetInboundShipmentLabelsPageTypeEnum} [pageType] Page type for the generated labels. The default is `PLAIN_PAPER`.
940
+ * @param {GetInboundShipmentLabelsFormatTypeEnum} [formatType] The format type of the output file that contains your labels. The default format type is `PDF`.
941
+ * @param {*} [options] Override http request option.
942
+ * @throws {RequiredError}
943
+ */
944
+ async getInboundShipmentLabels(shipmentId, pageType, formatType, options) {
945
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInboundShipmentLabels(shipmentId, pageType, formatType, options);
946
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
947
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getInboundShipmentLabels"]?.[localVarOperationServerIndex]?.url;
948
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
949
+ },
950
+ /**
951
+ * Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
952
+ * @param {string} shipmentId ID for the shipment.
953
+ * @param {*} [options] Override http request option.
954
+ * @throws {RequiredError}
955
+ */
956
+ async getLabelPageTypes(shipmentId, options) {
957
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLabelPageTypes(shipmentId, options);
958
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
959
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getLabelPageTypes"]?.[localVarOperationServerIndex]?.url;
960
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
961
+ },
962
+ /**
963
+ * Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
964
+ * @param {string} orderId ID for the outbound order to be retrieved.
965
+ * @param {*} [options] Override http request option.
966
+ * @throws {RequiredError}
967
+ */
968
+ async getOutbound(orderId, options) {
969
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOutbound(orderId, options);
970
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
971
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getOutbound"]?.[localVarOperationServerIndex]?.url;
972
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
973
+ },
974
+ /**
975
+ * Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
976
+ * @param {string} orderId ID of the replenishment order to be retrieved.
977
+ * @param {*} [options] Override http request option.
978
+ * @throws {RequiredError}
979
+ */
980
+ async getReplenishmentOrder(orderId, options) {
981
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReplenishmentOrder(orderId, options);
982
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
983
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.getReplenishmentOrder"]?.[localVarOperationServerIndex]?.url;
984
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
985
+ },
986
+ /**
987
+ * Retrieves a summary of all the inbound AWD shipments associated with a merchant, with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
988
+ * @param {ListInboundShipmentsSortByEnum} [sortBy] Field to sort results by. By default, the response will be sorted by UPDATED_AT.
989
+ * @param {ListInboundShipmentsSortOrderEnum} [sortOrder] Sort the response in ASCENDING or DESCENDING order. By default, the response will be sorted in DESCENDING order.
990
+ * @param {ListInboundShipmentsShipmentStatusEnum} [shipmentStatus] Filter by inbound shipment status.
991
+ * @param {string} [updatedAfter] List the inbound shipments that were updated after a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
992
+ * @param {string} [updatedBefore] List the inbound shipments that were updated before a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
993
+ * @param {number} [maxResults] Maximum number of results to return.
994
+ * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
995
+ * @param {*} [options] Override http request option.
996
+ * @throws {RequiredError}
997
+ */
998
+ async listInboundShipments(sortBy, sortOrder, shipmentStatus, updatedAfter, updatedBefore, maxResults, nextToken, options) {
999
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInboundShipments(sortBy, sortOrder, shipmentStatus, updatedAfter, updatedBefore, maxResults, nextToken, options);
1000
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1001
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.listInboundShipments"]?.[localVarOperationServerIndex]?.url;
1002
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1003
+ },
1004
+ /**
1005
+ * Lists AWD inventory associated with a merchant with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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).
1006
+ * @param {string} [sku] Filter by seller or merchant SKU for the item.
1007
+ * @param {ListInventorySortOrderEnum} [sortOrder] Sort the response in `ASCENDING` or `DESCENDING` order.
1008
+ * @param {ListInventoryDetailsEnum} [details] Set to `SHOW` to return summaries with additional inventory details. Defaults to `HIDE,` which returns only inventory summary totals.
1009
+ * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
1010
+ * @param {number} [maxResults] Maximum number of results to return.
1011
+ * @param {*} [options] Override http request option.
1012
+ * @throws {RequiredError}
1013
+ */
1014
+ async listInventory(sku, sortOrder, details, nextToken, maxResults, options) {
1015
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInventory(sku, sortOrder, details, nextToken, maxResults, options);
1016
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1017
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.listInventory"]?.[localVarOperationServerIndex]?.url;
1018
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1019
+ },
1020
+ /**
1021
+ * Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1022
+ * @param {string} [updatedAfter] Get the outbound orders updated after a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
1023
+ * @param {string} [updatedBefore] Get the outbound orders updated before a certain time (inclusive). The date must be in <a href=\'https://developer-docs.amazon.com/sp-api/docs/iso-8601\'>ISO 8601</a> format.
1024
+ * @param {ListOutboundsSortOrderEnum} [sortOrder] Sort the response in `ASCENDING` or `DESCENDING` order.
1025
+ * @param {number} [maxResults] Maximum number of results to return.
1026
+ * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
1027
+ * @param {*} [options] Override http request option.
1028
+ * @throws {RequiredError}
1029
+ */
1030
+ async listOutbounds(updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options) {
1031
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOutbounds(updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options);
1032
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1033
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.listOutbounds"]?.[localVarOperationServerIndex]?.url;
1034
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1035
+ },
1036
+ /**
1037
+ * Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
1038
+ * @param {string} [updatedAfter] Get the replenishment orders updated after certain time (Inclusive) Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
1039
+ * @param {string} [updatedBefore] Get the replenishment orders updated before certain time (Inclusive) Date should be in ISO 8601 format as defined by date-time in - https://www.rfc-editor.org/rfc/rfc3339.
1040
+ * @param {ListReplenishmentOrdersSortOrderEnum} [sortOrder] Sort the response in ASCENDING or DESCENDING order. The default sort order is DESCENDING.
1041
+ * @param {number} [maxResults] Maximum results to be returned in a single response.
1042
+ * @param {string} [nextToken] A token that is used to retrieve the next page of results. The response includes `nextToken` when the number of results exceeds the specified `maxResults` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
1043
+ * @param {*} [options] Override http request option.
1044
+ * @throws {RequiredError}
1045
+ */
1046
+ async listReplenishmentOrders(updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options) {
1047
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listReplenishmentOrders(updatedAfter, updatedBefore, sortOrder, maxResults, nextToken, options);
1048
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1049
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.listReplenishmentOrders"]?.[localVarOperationServerIndex]?.url;
1050
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1051
+ },
1052
+ /**
1053
+ * Updates an AWD inbound order that is in `DRAFT` status and not yet confirmed. Use this operation to update the `packagesToInbound`, `originAddress` and `preferences` attributes. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1054
+ * @param {string} orderId The ID of the inbound order that you want to update.
1055
+ * @param {InboundOrder} body Represents an AWD inbound order.
1056
+ * @param {*} [options] Override http request option.
1057
+ * @throws {RequiredError}
1058
+ */
1059
+ async updateInbound(orderId, body, options) {
1060
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateInbound(orderId, body, options);
1061
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1062
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.updateInbound"]?.[localVarOperationServerIndex]?.url;
1063
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1064
+ },
1065
+ /**
1066
+ * Updates transport details for an AWD shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1067
+ * @param {string} shipmentId The shipment ID.
1068
+ * @param {TransportationDetails} body Transportation details for the shipment.
1069
+ * @param {*} [options] Override http request option.
1070
+ * @throws {RequiredError}
1071
+ */
1072
+ async updateInboundShipmentTransportDetails(shipmentId, body, options) {
1073
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateInboundShipmentTransportDetails(shipmentId, body, options);
1074
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1075
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.updateInboundShipmentTransportDetails"]?.[localVarOperationServerIndex]?.url;
1076
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1077
+ },
1078
+ /**
1079
+ * Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1080
+ * @param {string} orderId ID for the outbound order to be updated.
1081
+ * @param {OutboundOrder} body Represents an AWD outbound order.
1082
+ * @param {*} [options] Override http request option.
1083
+ * @throws {RequiredError}
1084
+ */
1085
+ async updateOutbound(orderId, body, options) {
1086
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateOutbound(orderId, body, options);
1087
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1088
+ const localVarOperationServerBasePath = operationServerMap["AmazonWarehousingAndDistributionApi.updateOutbound"]?.[localVarOperationServerIndex]?.url;
1089
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1090
+ }
1091
+ };
1028
1092
  };
1029
- var AmazonWarehousingAndDistributionApiFactory = function(configuration, basePath, axios) {
1030
- const localVarFp = AmazonWarehousingAndDistributionApiFp(configuration);
1031
- return {
1032
- /**
1033
- * Cancels an AWD Inbound order and its associated shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1034
- * @param {AmazonWarehousingAndDistributionApiCancelInboundRequest} requestParameters Request parameters.
1035
- * @param {*} [options] Override http request option.
1036
- * @throws {RequiredError}
1037
- */
1038
- cancelInbound(requestParameters, options) {
1039
- return localVarFp.cancelInbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
1040
- },
1041
- /**
1042
- * Determines if the packages you specify are eligible for an AWD inbound order and contains error details for ineligible packages. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1043
- * @param {AmazonWarehousingAndDistributionApiCheckInboundEligibilityRequest} requestParameters Request parameters.
1044
- * @param {*} [options] Override http request option.
1045
- * @throws {RequiredError}
1046
- */
1047
- checkInboundEligibility(requestParameters, options) {
1048
- return localVarFp.checkInboundEligibility(requestParameters.body, options).then((request) => request(axios, basePath));
1049
- },
1050
- /**
1051
- * Confirms an AWD inbound order in `DRAFT` status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1052
- * @param {AmazonWarehousingAndDistributionApiConfirmInboundRequest} requestParameters Request parameters.
1053
- * @param {*} [options] Override http request option.
1054
- * @throws {RequiredError}
1055
- */
1056
- confirmInbound(requestParameters, options) {
1057
- return localVarFp.confirmInbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
1058
- },
1059
- /**
1060
- * Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1061
- * @param {AmazonWarehousingAndDistributionApiConfirmOutboundRequest} requestParameters Request parameters.
1062
- * @param {*} [options] Override http request option.
1063
- * @throws {RequiredError}
1064
- */
1065
- confirmOutbound(requestParameters, options) {
1066
- return localVarFp.confirmOutbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
1067
- },
1068
- /**
1069
- * Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
1070
- * @param {AmazonWarehousingAndDistributionApiConfirmReplenishmentOrderRequest} requestParameters Request parameters.
1071
- * @param {*} [options] Override http request option.
1072
- * @throws {RequiredError}
1073
- */
1074
- confirmReplenishmentOrder(requestParameters, options) {
1075
- return localVarFp.confirmReplenishmentOrder(requestParameters.orderId, options).then((request) => request(axios, basePath));
1076
- },
1077
- /**
1078
- * Creates a draft AWD inbound order with a list of packages for inbound shipment. The operation creates one shipment per order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1079
- * @param {AmazonWarehousingAndDistributionApiCreateInboundRequest} requestParameters Request parameters.
1080
- * @param {*} [options] Override http request option.
1081
- * @throws {RequiredError}
1082
- */
1083
- createInbound(requestParameters, options) {
1084
- return localVarFp.createInbound(requestParameters.body, options).then((request) => request(axios, basePath));
1085
- },
1086
- /**
1087
- * Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1088
- * @param {AmazonWarehousingAndDistributionApiCreateOutboundRequest} requestParameters Request parameters.
1089
- * @param {*} [options] Override http request option.
1090
- * @throws {RequiredError}
1091
- */
1092
- createOutbound(requestParameters, options) {
1093
- return localVarFp.createOutbound(requestParameters.body, options).then((request) => request(axios, basePath));
1094
- },
1095
- /**
1096
- * Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
1097
- * @param {AmazonWarehousingAndDistributionApiCreateReplenishmentOrderRequest} requestParameters Request parameters.
1098
- * @param {*} [options] Override http request option.
1099
- * @throws {RequiredError}
1100
- */
1101
- createReplenishmentOrder(requestParameters, options) {
1102
- return localVarFp.createReplenishmentOrder(requestParameters.body, options).then((request) => request(axios, basePath));
1103
- },
1104
- /**
1105
- * Retrieves an AWD inbound order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1106
- * @param {AmazonWarehousingAndDistributionApiGetInboundRequest} requestParameters Request parameters.
1107
- * @param {*} [options] Override http request option.
1108
- * @throws {RequiredError}
1109
- */
1110
- getInbound(requestParameters, options) {
1111
- return localVarFp.getInbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
1112
- },
1113
- /**
1114
- * Retrieves an AWD inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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)
1115
- * @param {AmazonWarehousingAndDistributionApiGetInboundShipmentRequest} requestParameters Request parameters.
1116
- * @param {*} [options] Override http request option.
1117
- * @throws {RequiredError}
1118
- */
1119
- getInboundShipment(requestParameters, options) {
1120
- return localVarFp.getInboundShipment(requestParameters.shipmentId, requestParameters.skuQuantities, options).then((request) => request(axios, basePath));
1121
- },
1122
- /**
1123
- * Retrieves the box labels for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the label URL is available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1124
- * @param {AmazonWarehousingAndDistributionApiGetInboundShipmentLabelsRequest} requestParameters Request parameters.
1125
- * @param {*} [options] Override http request option.
1126
- * @throws {RequiredError}
1127
- */
1128
- getInboundShipmentLabels(requestParameters, options) {
1129
- return localVarFp.getInboundShipmentLabels(requestParameters.shipmentId, requestParameters.pageType, requestParameters.formatType, options).then((request) => request(axios, basePath));
1130
- },
1131
- /**
1132
- * Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1133
- * @param {AmazonWarehousingAndDistributionApiGetLabelPageTypesRequest} requestParameters Request parameters.
1134
- * @param {*} [options] Override http request option.
1135
- * @throws {RequiredError}
1136
- */
1137
- getLabelPageTypes(requestParameters, options) {
1138
- return localVarFp.getLabelPageTypes(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
1139
- },
1140
- /**
1141
- * Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1142
- * @param {AmazonWarehousingAndDistributionApiGetOutboundRequest} requestParameters Request parameters.
1143
- * @param {*} [options] Override http request option.
1144
- * @throws {RequiredError}
1145
- */
1146
- getOutbound(requestParameters, options) {
1147
- return localVarFp.getOutbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
1148
- },
1149
- /**
1150
- * Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
1151
- * @param {AmazonWarehousingAndDistributionApiGetReplenishmentOrderRequest} requestParameters Request parameters.
1152
- * @param {*} [options] Override http request option.
1153
- * @throws {RequiredError}
1154
- */
1155
- getReplenishmentOrder(requestParameters, options) {
1156
- return localVarFp.getReplenishmentOrder(requestParameters.orderId, options).then((request) => request(axios, basePath));
1157
- },
1158
- /**
1159
- * Retrieves a summary of all the inbound AWD shipments associated with a merchant, with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1160
- * @param {AmazonWarehousingAndDistributionApiListInboundShipmentsRequest} requestParameters Request parameters.
1161
- * @param {*} [options] Override http request option.
1162
- * @throws {RequiredError}
1163
- */
1164
- listInboundShipments(requestParameters = {}, options) {
1165
- return localVarFp.listInboundShipments(requestParameters.sortBy, requestParameters.sortOrder, requestParameters.shipmentStatus, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(axios, basePath));
1166
- },
1167
- /**
1168
- * Lists AWD inventory associated with a merchant with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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).
1169
- * @param {AmazonWarehousingAndDistributionApiListInventoryRequest} requestParameters Request parameters.
1170
- * @param {*} [options] Override http request option.
1171
- * @throws {RequiredError}
1172
- */
1173
- listInventory(requestParameters = {}, options) {
1174
- return localVarFp.listInventory(requestParameters.sku, requestParameters.sortOrder, requestParameters.details, requestParameters.nextToken, requestParameters.maxResults, options).then((request) => request(axios, basePath));
1175
- },
1176
- /**
1177
- * Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1178
- * @param {AmazonWarehousingAndDistributionApiListOutboundsRequest} requestParameters Request parameters.
1179
- * @param {*} [options] Override http request option.
1180
- * @throws {RequiredError}
1181
- */
1182
- listOutbounds(requestParameters = {}, options) {
1183
- return localVarFp.listOutbounds(requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.sortOrder, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(axios, basePath));
1184
- },
1185
- /**
1186
- * Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
1187
- * @param {AmazonWarehousingAndDistributionApiListReplenishmentOrdersRequest} requestParameters Request parameters.
1188
- * @param {*} [options] Override http request option.
1189
- * @throws {RequiredError}
1190
- */
1191
- listReplenishmentOrders(requestParameters = {}, options) {
1192
- return localVarFp.listReplenishmentOrders(requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.sortOrder, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(axios, basePath));
1193
- },
1194
- /**
1195
- * Updates an AWD inbound order that is in `DRAFT` status and not yet confirmed. Use this operation to update the `packagesToInbound`, `originAddress` and `preferences` attributes. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1196
- * @param {AmazonWarehousingAndDistributionApiUpdateInboundRequest} requestParameters Request parameters.
1197
- * @param {*} [options] Override http request option.
1198
- * @throws {RequiredError}
1199
- */
1200
- updateInbound(requestParameters, options) {
1201
- return localVarFp.updateInbound(requestParameters.orderId, requestParameters.body, options).then((request) => request(axios, basePath));
1202
- },
1203
- /**
1204
- * Updates transport details for an AWD shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1205
- * @param {AmazonWarehousingAndDistributionApiUpdateInboundShipmentTransportDetailsRequest} requestParameters Request parameters.
1206
- * @param {*} [options] Override http request option.
1207
- * @throws {RequiredError}
1208
- */
1209
- updateInboundShipmentTransportDetails(requestParameters, options) {
1210
- return localVarFp.updateInboundShipmentTransportDetails(requestParameters.shipmentId, requestParameters.body, options).then((request) => request(axios, basePath));
1211
- },
1212
- /**
1213
- * Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1214
- * @param {AmazonWarehousingAndDistributionApiUpdateOutboundRequest} requestParameters Request parameters.
1215
- * @param {*} [options] Override http request option.
1216
- * @throws {RequiredError}
1217
- */
1218
- updateOutbound(requestParameters, options) {
1219
- return localVarFp.updateOutbound(requestParameters.orderId, requestParameters.body, options).then((request) => request(axios, basePath));
1220
- }
1221
- };
1093
+ /**
1094
+ * AmazonWarehousingAndDistributionApi - factory interface
1095
+ */
1096
+ const AmazonWarehousingAndDistributionApiFactory = function(configuration, basePath, axios) {
1097
+ const localVarFp = AmazonWarehousingAndDistributionApiFp(configuration);
1098
+ return {
1099
+ /**
1100
+ * Cancels an AWD Inbound order and its associated shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1101
+ * @param {AmazonWarehousingAndDistributionApiCancelInboundRequest} requestParameters Request parameters.
1102
+ * @param {*} [options] Override http request option.
1103
+ * @throws {RequiredError}
1104
+ */
1105
+ cancelInbound(requestParameters, options) {
1106
+ return localVarFp.cancelInbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
1107
+ },
1108
+ /**
1109
+ * Determines if the packages you specify are eligible for an AWD inbound order and contains error details for ineligible packages. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1110
+ * @param {AmazonWarehousingAndDistributionApiCheckInboundEligibilityRequest} requestParameters Request parameters.
1111
+ * @param {*} [options] Override http request option.
1112
+ * @throws {RequiredError}
1113
+ */
1114
+ checkInboundEligibility(requestParameters, options) {
1115
+ return localVarFp.checkInboundEligibility(requestParameters.body, options).then((request) => request(axios, basePath));
1116
+ },
1117
+ /**
1118
+ * Confirms an AWD inbound order in `DRAFT` status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1119
+ * @param {AmazonWarehousingAndDistributionApiConfirmInboundRequest} requestParameters Request parameters.
1120
+ * @param {*} [options] Override http request option.
1121
+ * @throws {RequiredError}
1122
+ */
1123
+ confirmInbound(requestParameters, options) {
1124
+ return localVarFp.confirmInbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
1125
+ },
1126
+ /**
1127
+ * Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1128
+ * @param {AmazonWarehousingAndDistributionApiConfirmOutboundRequest} requestParameters Request parameters.
1129
+ * @param {*} [options] Override http request option.
1130
+ * @throws {RequiredError}
1131
+ */
1132
+ confirmOutbound(requestParameters, options) {
1133
+ return localVarFp.confirmOutbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
1134
+ },
1135
+ /**
1136
+ * Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
1137
+ * @param {AmazonWarehousingAndDistributionApiConfirmReplenishmentOrderRequest} requestParameters Request parameters.
1138
+ * @param {*} [options] Override http request option.
1139
+ * @throws {RequiredError}
1140
+ */
1141
+ confirmReplenishmentOrder(requestParameters, options) {
1142
+ return localVarFp.confirmReplenishmentOrder(requestParameters.orderId, options).then((request) => request(axios, basePath));
1143
+ },
1144
+ /**
1145
+ * Creates a draft AWD inbound order with a list of packages for inbound shipment. The operation creates one shipment per order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1146
+ * @param {AmazonWarehousingAndDistributionApiCreateInboundRequest} requestParameters Request parameters.
1147
+ * @param {*} [options] Override http request option.
1148
+ * @throws {RequiredError}
1149
+ */
1150
+ createInbound(requestParameters, options) {
1151
+ return localVarFp.createInbound(requestParameters.body, options).then((request) => request(axios, basePath));
1152
+ },
1153
+ /**
1154
+ * Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1155
+ * @param {AmazonWarehousingAndDistributionApiCreateOutboundRequest} requestParameters Request parameters.
1156
+ * @param {*} [options] Override http request option.
1157
+ * @throws {RequiredError}
1158
+ */
1159
+ createOutbound(requestParameters, options) {
1160
+ return localVarFp.createOutbound(requestParameters.body, options).then((request) => request(axios, basePath));
1161
+ },
1162
+ /**
1163
+ * Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
1164
+ * @param {AmazonWarehousingAndDistributionApiCreateReplenishmentOrderRequest} requestParameters Request parameters.
1165
+ * @param {*} [options] Override http request option.
1166
+ * @throws {RequiredError}
1167
+ */
1168
+ createReplenishmentOrder(requestParameters, options) {
1169
+ return localVarFp.createReplenishmentOrder(requestParameters.body, options).then((request) => request(axios, basePath));
1170
+ },
1171
+ /**
1172
+ * Retrieves an AWD inbound order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1173
+ * @param {AmazonWarehousingAndDistributionApiGetInboundRequest} requestParameters Request parameters.
1174
+ * @param {*} [options] Override http request option.
1175
+ * @throws {RequiredError}
1176
+ */
1177
+ getInbound(requestParameters, options) {
1178
+ return localVarFp.getInbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
1179
+ },
1180
+ /**
1181
+ * Retrieves an AWD inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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)
1182
+ * @param {AmazonWarehousingAndDistributionApiGetInboundShipmentRequest} requestParameters Request parameters.
1183
+ * @param {*} [options] Override http request option.
1184
+ * @throws {RequiredError}
1185
+ */
1186
+ getInboundShipment(requestParameters, options) {
1187
+ return localVarFp.getInboundShipment(requestParameters.shipmentId, requestParameters.skuQuantities, options).then((request) => request(axios, basePath));
1188
+ },
1189
+ /**
1190
+ * Retrieves the box labels for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the label URL is available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1191
+ * @param {AmazonWarehousingAndDistributionApiGetInboundShipmentLabelsRequest} requestParameters Request parameters.
1192
+ * @param {*} [options] Override http request option.
1193
+ * @throws {RequiredError}
1194
+ */
1195
+ getInboundShipmentLabels(requestParameters, options) {
1196
+ return localVarFp.getInboundShipmentLabels(requestParameters.shipmentId, requestParameters.pageType, requestParameters.formatType, options).then((request) => request(axios, basePath));
1197
+ },
1198
+ /**
1199
+ * Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1200
+ * @param {AmazonWarehousingAndDistributionApiGetLabelPageTypesRequest} requestParameters Request parameters.
1201
+ * @param {*} [options] Override http request option.
1202
+ * @throws {RequiredError}
1203
+ */
1204
+ getLabelPageTypes(requestParameters, options) {
1205
+ return localVarFp.getLabelPageTypes(requestParameters.shipmentId, options).then((request) => request(axios, basePath));
1206
+ },
1207
+ /**
1208
+ * Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1209
+ * @param {AmazonWarehousingAndDistributionApiGetOutboundRequest} requestParameters Request parameters.
1210
+ * @param {*} [options] Override http request option.
1211
+ * @throws {RequiredError}
1212
+ */
1213
+ getOutbound(requestParameters, options) {
1214
+ return localVarFp.getOutbound(requestParameters.orderId, options).then((request) => request(axios, basePath));
1215
+ },
1216
+ /**
1217
+ * Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
1218
+ * @param {AmazonWarehousingAndDistributionApiGetReplenishmentOrderRequest} requestParameters Request parameters.
1219
+ * @param {*} [options] Override http request option.
1220
+ * @throws {RequiredError}
1221
+ */
1222
+ getReplenishmentOrder(requestParameters, options) {
1223
+ return localVarFp.getReplenishmentOrder(requestParameters.orderId, options).then((request) => request(axios, basePath));
1224
+ },
1225
+ /**
1226
+ * Retrieves a summary of all the inbound AWD shipments associated with a merchant, with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1227
+ * @param {AmazonWarehousingAndDistributionApiListInboundShipmentsRequest} requestParameters Request parameters.
1228
+ * @param {*} [options] Override http request option.
1229
+ * @throws {RequiredError}
1230
+ */
1231
+ listInboundShipments(requestParameters = {}, options) {
1232
+ return localVarFp.listInboundShipments(requestParameters.sortBy, requestParameters.sortOrder, requestParameters.shipmentStatus, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(axios, basePath));
1233
+ },
1234
+ /**
1235
+ * Lists AWD inventory associated with a merchant with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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).
1236
+ * @param {AmazonWarehousingAndDistributionApiListInventoryRequest} requestParameters Request parameters.
1237
+ * @param {*} [options] Override http request option.
1238
+ * @throws {RequiredError}
1239
+ */
1240
+ listInventory(requestParameters = {}, options) {
1241
+ return localVarFp.listInventory(requestParameters.sku, requestParameters.sortOrder, requestParameters.details, requestParameters.nextToken, requestParameters.maxResults, options).then((request) => request(axios, basePath));
1242
+ },
1243
+ /**
1244
+ * Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1245
+ * @param {AmazonWarehousingAndDistributionApiListOutboundsRequest} requestParameters Request parameters.
1246
+ * @param {*} [options] Override http request option.
1247
+ * @throws {RequiredError}
1248
+ */
1249
+ listOutbounds(requestParameters = {}, options) {
1250
+ return localVarFp.listOutbounds(requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.sortOrder, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(axios, basePath));
1251
+ },
1252
+ /**
1253
+ * Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
1254
+ * @param {AmazonWarehousingAndDistributionApiListReplenishmentOrdersRequest} requestParameters Request parameters.
1255
+ * @param {*} [options] Override http request option.
1256
+ * @throws {RequiredError}
1257
+ */
1258
+ listReplenishmentOrders(requestParameters = {}, options) {
1259
+ return localVarFp.listReplenishmentOrders(requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.sortOrder, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(axios, basePath));
1260
+ },
1261
+ /**
1262
+ * Updates an AWD inbound order that is in `DRAFT` status and not yet confirmed. Use this operation to update the `packagesToInbound`, `originAddress` and `preferences` attributes. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1263
+ * @param {AmazonWarehousingAndDistributionApiUpdateInboundRequest} requestParameters Request parameters.
1264
+ * @param {*} [options] Override http request option.
1265
+ * @throws {RequiredError}
1266
+ */
1267
+ updateInbound(requestParameters, options) {
1268
+ return localVarFp.updateInbound(requestParameters.orderId, requestParameters.body, options).then((request) => request(axios, basePath));
1269
+ },
1270
+ /**
1271
+ * Updates transport details for an AWD shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1272
+ * @param {AmazonWarehousingAndDistributionApiUpdateInboundShipmentTransportDetailsRequest} requestParameters Request parameters.
1273
+ * @param {*} [options] Override http request option.
1274
+ * @throws {RequiredError}
1275
+ */
1276
+ updateInboundShipmentTransportDetails(requestParameters, options) {
1277
+ return localVarFp.updateInboundShipmentTransportDetails(requestParameters.shipmentId, requestParameters.body, options).then((request) => request(axios, basePath));
1278
+ },
1279
+ /**
1280
+ * Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1281
+ * @param {AmazonWarehousingAndDistributionApiUpdateOutboundRequest} requestParameters Request parameters.
1282
+ * @param {*} [options] Override http request option.
1283
+ * @throws {RequiredError}
1284
+ */
1285
+ updateOutbound(requestParameters, options) {
1286
+ return localVarFp.updateOutbound(requestParameters.orderId, requestParameters.body, options).then((request) => request(axios, basePath));
1287
+ }
1288
+ };
1222
1289
  };
1290
+ /**
1291
+ * AmazonWarehousingAndDistributionApi - object-oriented interface
1292
+ */
1223
1293
  var AmazonWarehousingAndDistributionApi = class extends BaseAPI {
1224
- /**
1225
- * Cancels an AWD Inbound order and its associated shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1226
- * @param {AmazonWarehousingAndDistributionApiCancelInboundRequest} requestParameters Request parameters.
1227
- * @param {*} [options] Override http request option.
1228
- * @throws {RequiredError}
1229
- */
1230
- cancelInbound(requestParameters, options) {
1231
- return AmazonWarehousingAndDistributionApiFp(this.configuration).cancelInbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1232
- }
1233
- /**
1234
- * Determines if the packages you specify are eligible for an AWD inbound order and contains error details for ineligible packages. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1235
- * @param {AmazonWarehousingAndDistributionApiCheckInboundEligibilityRequest} requestParameters Request parameters.
1236
- * @param {*} [options] Override http request option.
1237
- * @throws {RequiredError}
1238
- */
1239
- checkInboundEligibility(requestParameters, options) {
1240
- return AmazonWarehousingAndDistributionApiFp(this.configuration).checkInboundEligibility(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1241
- }
1242
- /**
1243
- * Confirms an AWD inbound order in `DRAFT` status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1244
- * @param {AmazonWarehousingAndDistributionApiConfirmInboundRequest} requestParameters Request parameters.
1245
- * @param {*} [options] Override http request option.
1246
- * @throws {RequiredError}
1247
- */
1248
- confirmInbound(requestParameters, options) {
1249
- return AmazonWarehousingAndDistributionApiFp(this.configuration).confirmInbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1250
- }
1251
- /**
1252
- * Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1253
- * @param {AmazonWarehousingAndDistributionApiConfirmOutboundRequest} requestParameters Request parameters.
1254
- * @param {*} [options] Override http request option.
1255
- * @throws {RequiredError}
1256
- */
1257
- confirmOutbound(requestParameters, options) {
1258
- return AmazonWarehousingAndDistributionApiFp(this.configuration).confirmOutbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1259
- }
1260
- /**
1261
- * Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
1262
- * @param {AmazonWarehousingAndDistributionApiConfirmReplenishmentOrderRequest} requestParameters Request parameters.
1263
- * @param {*} [options] Override http request option.
1264
- * @throws {RequiredError}
1265
- */
1266
- confirmReplenishmentOrder(requestParameters, options) {
1267
- return AmazonWarehousingAndDistributionApiFp(this.configuration).confirmReplenishmentOrder(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1268
- }
1269
- /**
1270
- * Creates a draft AWD inbound order with a list of packages for inbound shipment. The operation creates one shipment per order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1271
- * @param {AmazonWarehousingAndDistributionApiCreateInboundRequest} requestParameters Request parameters.
1272
- * @param {*} [options] Override http request option.
1273
- * @throws {RequiredError}
1274
- */
1275
- createInbound(requestParameters, options) {
1276
- return AmazonWarehousingAndDistributionApiFp(this.configuration).createInbound(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1277
- }
1278
- /**
1279
- * Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1280
- * @param {AmazonWarehousingAndDistributionApiCreateOutboundRequest} requestParameters Request parameters.
1281
- * @param {*} [options] Override http request option.
1282
- * @throws {RequiredError}
1283
- */
1284
- createOutbound(requestParameters, options) {
1285
- return AmazonWarehousingAndDistributionApiFp(this.configuration).createOutbound(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1286
- }
1287
- /**
1288
- * Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
1289
- * @param {AmazonWarehousingAndDistributionApiCreateReplenishmentOrderRequest} requestParameters Request parameters.
1290
- * @param {*} [options] Override http request option.
1291
- * @throws {RequiredError}
1292
- */
1293
- createReplenishmentOrder(requestParameters, options) {
1294
- return AmazonWarehousingAndDistributionApiFp(this.configuration).createReplenishmentOrder(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1295
- }
1296
- /**
1297
- * Retrieves an AWD inbound order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1298
- * @param {AmazonWarehousingAndDistributionApiGetInboundRequest} requestParameters Request parameters.
1299
- * @param {*} [options] Override http request option.
1300
- * @throws {RequiredError}
1301
- */
1302
- getInbound(requestParameters, options) {
1303
- return AmazonWarehousingAndDistributionApiFp(this.configuration).getInbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1304
- }
1305
- /**
1306
- * Retrieves an AWD inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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)
1307
- * @param {AmazonWarehousingAndDistributionApiGetInboundShipmentRequest} requestParameters Request parameters.
1308
- * @param {*} [options] Override http request option.
1309
- * @throws {RequiredError}
1310
- */
1311
- getInboundShipment(requestParameters, options) {
1312
- return AmazonWarehousingAndDistributionApiFp(this.configuration).getInboundShipment(requestParameters.shipmentId, requestParameters.skuQuantities, options).then((request) => request(this.axios, this.basePath));
1313
- }
1314
- /**
1315
- * Retrieves the box labels for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the label URL is available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1316
- * @param {AmazonWarehousingAndDistributionApiGetInboundShipmentLabelsRequest} requestParameters Request parameters.
1317
- * @param {*} [options] Override http request option.
1318
- * @throws {RequiredError}
1319
- */
1320
- getInboundShipmentLabels(requestParameters, options) {
1321
- return AmazonWarehousingAndDistributionApiFp(this.configuration).getInboundShipmentLabels(requestParameters.shipmentId, requestParameters.pageType, requestParameters.formatType, options).then((request) => request(this.axios, this.basePath));
1322
- }
1323
- /**
1324
- * Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1325
- * @param {AmazonWarehousingAndDistributionApiGetLabelPageTypesRequest} requestParameters Request parameters.
1326
- * @param {*} [options] Override http request option.
1327
- * @throws {RequiredError}
1328
- */
1329
- getLabelPageTypes(requestParameters, options) {
1330
- return AmazonWarehousingAndDistributionApiFp(this.configuration).getLabelPageTypes(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
1331
- }
1332
- /**
1333
- * Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1334
- * @param {AmazonWarehousingAndDistributionApiGetOutboundRequest} requestParameters Request parameters.
1335
- * @param {*} [options] Override http request option.
1336
- * @throws {RequiredError}
1337
- */
1338
- getOutbound(requestParameters, options) {
1339
- return AmazonWarehousingAndDistributionApiFp(this.configuration).getOutbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1340
- }
1341
- /**
1342
- * Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
1343
- * @param {AmazonWarehousingAndDistributionApiGetReplenishmentOrderRequest} requestParameters Request parameters.
1344
- * @param {*} [options] Override http request option.
1345
- * @throws {RequiredError}
1346
- */
1347
- getReplenishmentOrder(requestParameters, options) {
1348
- return AmazonWarehousingAndDistributionApiFp(this.configuration).getReplenishmentOrder(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1349
- }
1350
- /**
1351
- * Retrieves a summary of all the inbound AWD shipments associated with a merchant, with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1352
- * @param {AmazonWarehousingAndDistributionApiListInboundShipmentsRequest} requestParameters Request parameters.
1353
- * @param {*} [options] Override http request option.
1354
- * @throws {RequiredError}
1355
- */
1356
- listInboundShipments(requestParameters = {}, options) {
1357
- return AmazonWarehousingAndDistributionApiFp(this.configuration).listInboundShipments(requestParameters.sortBy, requestParameters.sortOrder, requestParameters.shipmentStatus, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
1358
- }
1359
- /**
1360
- * Lists AWD inventory associated with a merchant with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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).
1361
- * @param {AmazonWarehousingAndDistributionApiListInventoryRequest} requestParameters Request parameters.
1362
- * @param {*} [options] Override http request option.
1363
- * @throws {RequiredError}
1364
- */
1365
- listInventory(requestParameters = {}, options) {
1366
- return AmazonWarehousingAndDistributionApiFp(this.configuration).listInventory(requestParameters.sku, requestParameters.sortOrder, requestParameters.details, requestParameters.nextToken, requestParameters.maxResults, options).then((request) => request(this.axios, this.basePath));
1367
- }
1368
- /**
1369
- * Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1370
- * @param {AmazonWarehousingAndDistributionApiListOutboundsRequest} requestParameters Request parameters.
1371
- * @param {*} [options] Override http request option.
1372
- * @throws {RequiredError}
1373
- */
1374
- listOutbounds(requestParameters = {}, options) {
1375
- return AmazonWarehousingAndDistributionApiFp(this.configuration).listOutbounds(requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.sortOrder, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
1376
- }
1377
- /**
1378
- * Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
1379
- * @param {AmazonWarehousingAndDistributionApiListReplenishmentOrdersRequest} requestParameters Request parameters.
1380
- * @param {*} [options] Override http request option.
1381
- * @throws {RequiredError}
1382
- */
1383
- listReplenishmentOrders(requestParameters = {}, options) {
1384
- return AmazonWarehousingAndDistributionApiFp(this.configuration).listReplenishmentOrders(requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.sortOrder, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
1385
- }
1386
- /**
1387
- * Updates an AWD inbound order that is in `DRAFT` status and not yet confirmed. Use this operation to update the `packagesToInbound`, `originAddress` and `preferences` attributes. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1388
- * @param {AmazonWarehousingAndDistributionApiUpdateInboundRequest} requestParameters Request parameters.
1389
- * @param {*} [options] Override http request option.
1390
- * @throws {RequiredError}
1391
- */
1392
- updateInbound(requestParameters, options) {
1393
- return AmazonWarehousingAndDistributionApiFp(this.configuration).updateInbound(requestParameters.orderId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1394
- }
1395
- /**
1396
- * Updates transport details for an AWD shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1397
- * @param {AmazonWarehousingAndDistributionApiUpdateInboundShipmentTransportDetailsRequest} requestParameters Request parameters.
1398
- * @param {*} [options] Override http request option.
1399
- * @throws {RequiredError}
1400
- */
1401
- updateInboundShipmentTransportDetails(requestParameters, options) {
1402
- return AmazonWarehousingAndDistributionApiFp(this.configuration).updateInboundShipmentTransportDetails(requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1403
- }
1404
- /**
1405
- * Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1406
- * @param {AmazonWarehousingAndDistributionApiUpdateOutboundRequest} requestParameters Request parameters.
1407
- * @param {*} [options] Override http request option.
1408
- * @throws {RequiredError}
1409
- */
1410
- updateOutbound(requestParameters, options) {
1411
- return AmazonWarehousingAndDistributionApiFp(this.configuration).updateOutbound(requestParameters.orderId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1412
- }
1413
- };
1414
- var GetInboundShipmentSkuQuantitiesEnum = {
1415
- Show: "SHOW",
1416
- Hide: "HIDE"
1294
+ /**
1295
+ * Cancels an AWD Inbound order and its associated shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1296
+ * @param {AmazonWarehousingAndDistributionApiCancelInboundRequest} requestParameters Request parameters.
1297
+ * @param {*} [options] Override http request option.
1298
+ * @throws {RequiredError}
1299
+ */
1300
+ cancelInbound(requestParameters, options) {
1301
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).cancelInbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1302
+ }
1303
+ /**
1304
+ * Determines if the packages you specify are eligible for an AWD inbound order and contains error details for ineligible packages. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1305
+ * @param {AmazonWarehousingAndDistributionApiCheckInboundEligibilityRequest} requestParameters Request parameters.
1306
+ * @param {*} [options] Override http request option.
1307
+ * @throws {RequiredError}
1308
+ */
1309
+ checkInboundEligibility(requestParameters, options) {
1310
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).checkInboundEligibility(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1311
+ }
1312
+ /**
1313
+ * Confirms an AWD inbound order in `DRAFT` status. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1314
+ * @param {AmazonWarehousingAndDistributionApiConfirmInboundRequest} requestParameters Request parameters.
1315
+ * @param {*} [options] Override http request option.
1316
+ * @throws {RequiredError}
1317
+ */
1318
+ confirmInbound(requestParameters, options) {
1319
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).confirmInbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1320
+ }
1321
+ /**
1322
+ * Confirms an AWD outbound order for a set of shipments that contain items that must be outbound to a destination node. You can confirm the order only if it\'s in an`ELIGIBLE` state. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1323
+ * @param {AmazonWarehousingAndDistributionApiConfirmOutboundRequest} requestParameters Request parameters.
1324
+ * @param {*} [options] Override http request option.
1325
+ * @throws {RequiredError}
1326
+ */
1327
+ confirmOutbound(requestParameters, options) {
1328
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).confirmOutbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1329
+ }
1330
+ /**
1331
+ * Confirms an AWD replenishment order in ELIGIBLE state with a set of shipments containing items that are needed to be replenished to an FBA node. Order can only be confirmed in ELIGIBLE state.
1332
+ * @param {AmazonWarehousingAndDistributionApiConfirmReplenishmentOrderRequest} requestParameters Request parameters.
1333
+ * @param {*} [options] Override http request option.
1334
+ * @throws {RequiredError}
1335
+ */
1336
+ confirmReplenishmentOrder(requestParameters, options) {
1337
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).confirmReplenishmentOrder(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1338
+ }
1339
+ /**
1340
+ * Creates a draft AWD inbound order with a list of packages for inbound shipment. The operation creates one shipment per order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1341
+ * @param {AmazonWarehousingAndDistributionApiCreateInboundRequest} requestParameters Request parameters.
1342
+ * @param {*} [options] Override http request option.
1343
+ * @throws {RequiredError}
1344
+ */
1345
+ createInbound(requestParameters, options) {
1346
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).createInbound(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1347
+ }
1348
+ /**
1349
+ * Creates a draft AWD outbound order with the specified products. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1350
+ * @param {AmazonWarehousingAndDistributionApiCreateOutboundRequest} requestParameters Request parameters.
1351
+ * @param {*} [options] Override http request option.
1352
+ * @throws {RequiredError}
1353
+ */
1354
+ createOutbound(requestParameters, options) {
1355
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).createOutbound(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1356
+ }
1357
+ /**
1358
+ * Creates an AWD replenishment order with given products to replenish. The API will return the order ID of the newly created order and also start an async validation check on the products to e. The order status will transition to ELIGIBLE/INELIGIBLE status from VALIDATING post validation check
1359
+ * @param {AmazonWarehousingAndDistributionApiCreateReplenishmentOrderRequest} requestParameters Request parameters.
1360
+ * @param {*} [options] Override http request option.
1361
+ * @throws {RequiredError}
1362
+ */
1363
+ createReplenishmentOrder(requestParameters, options) {
1364
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).createReplenishmentOrder(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1365
+ }
1366
+ /**
1367
+ * Retrieves an AWD inbound order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1368
+ * @param {AmazonWarehousingAndDistributionApiGetInboundRequest} requestParameters Request parameters.
1369
+ * @param {*} [options] Override http request option.
1370
+ * @throws {RequiredError}
1371
+ */
1372
+ getInbound(requestParameters, options) {
1373
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).getInbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1374
+ }
1375
+ /**
1376
+ * Retrieves an AWD inbound shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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)
1377
+ * @param {AmazonWarehousingAndDistributionApiGetInboundShipmentRequest} requestParameters Request parameters.
1378
+ * @param {*} [options] Override http request option.
1379
+ * @throws {RequiredError}
1380
+ */
1381
+ getInboundShipment(requestParameters, options) {
1382
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).getInboundShipment(requestParameters.shipmentId, requestParameters.skuQuantities, options).then((request) => request(this.axios, this.basePath));
1383
+ }
1384
+ /**
1385
+ * Retrieves the box labels for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the label URL is available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1386
+ * @param {AmazonWarehousingAndDistributionApiGetInboundShipmentLabelsRequest} requestParameters Request parameters.
1387
+ * @param {*} [options] Override http request option.
1388
+ * @throws {RequiredError}
1389
+ */
1390
+ getInboundShipmentLabels(requestParameters, options) {
1391
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).getInboundShipmentLabels(requestParameters.shipmentId, requestParameters.pageType, requestParameters.formatType, options).then((request) => request(this.axios, this.basePath));
1392
+ }
1393
+ /**
1394
+ * Retrieves the available label page types for a shipment ID that you specify. This is an asynchronous operation. If the label status is `GENERATED`, then the pageTypes are available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 2 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1395
+ * @param {AmazonWarehousingAndDistributionApiGetLabelPageTypesRequest} requestParameters Request parameters.
1396
+ * @param {*} [options] Override http request option.
1397
+ * @throws {RequiredError}
1398
+ */
1399
+ getLabelPageTypes(requestParameters, options) {
1400
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).getLabelPageTypes(requestParameters.shipmentId, options).then((request) => request(this.axios, this.basePath));
1401
+ }
1402
+ /**
1403
+ * Retrieves an AWD outbound order with a set of shipments that contain items that are outbound into a destination channel. If the order is not eligible, the validation errors field is included in the order response. The API returns the order ID for the newly created order and starts an async validation check on the outbound products. After the validation check, the order status transitions from `VALIDATING` to `ELIGIBLE/INELIGIBLE`. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1404
+ * @param {AmazonWarehousingAndDistributionApiGetOutboundRequest} requestParameters Request parameters.
1405
+ * @param {*} [options] Override http request option.
1406
+ * @throws {RequiredError}
1407
+ */
1408
+ getOutbound(requestParameters, options) {
1409
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).getOutbound(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1410
+ }
1411
+ /**
1412
+ * Retrieves an AWD Replenishment order with a set of shipments containing items that is/was planned to be replenished into an FBA node.
1413
+ * @param {AmazonWarehousingAndDistributionApiGetReplenishmentOrderRequest} requestParameters Request parameters.
1414
+ * @param {*} [options] Override http request option.
1415
+ * @throws {RequiredError}
1416
+ */
1417
+ getReplenishmentOrder(requestParameters, options) {
1418
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).getReplenishmentOrder(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
1419
+ }
1420
+ /**
1421
+ * Retrieves a summary of all the inbound AWD shipments associated with a merchant, with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1422
+ * @param {AmazonWarehousingAndDistributionApiListInboundShipmentsRequest} requestParameters Request parameters.
1423
+ * @param {*} [options] Override http request option.
1424
+ * @throws {RequiredError}
1425
+ */
1426
+ listInboundShipments(requestParameters = {}, options) {
1427
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).listInboundShipments(requestParameters.sortBy, requestParameters.sortOrder, requestParameters.shipmentStatus, requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
1428
+ }
1429
+ /**
1430
+ * Lists AWD inventory associated with a merchant with the ability to apply optional filters. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 2 | 2 | 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 than those shown here. For more information, refer to [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).
1431
+ * @param {AmazonWarehousingAndDistributionApiListInventoryRequest} requestParameters Request parameters.
1432
+ * @param {*} [options] Override http request option.
1433
+ * @throws {RequiredError}
1434
+ */
1435
+ listInventory(requestParameters = {}, options) {
1436
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).listInventory(requestParameters.sku, requestParameters.sortOrder, requestParameters.details, requestParameters.nextToken, requestParameters.maxResults, options).then((request) => request(this.axios, this.basePath));
1437
+ }
1438
+ /**
1439
+ * Retrieves all outbound AWD orders (with optional filters) that pertain to a merchant. By default, orders are sorted by the `updatedAt` attribute in descending order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1440
+ * @param {AmazonWarehousingAndDistributionApiListOutboundsRequest} requestParameters Request parameters.
1441
+ * @param {*} [options] Override http request option.
1442
+ * @throws {RequiredError}
1443
+ */
1444
+ listOutbounds(requestParameters = {}, options) {
1445
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).listOutbounds(requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.sortOrder, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
1446
+ }
1447
+ /**
1448
+ * Retrieves all the AWD replenishment orders pertaining to a merchant with optional filters. API by default will sort orders by updatedAt attribute in descending order.
1449
+ * @param {AmazonWarehousingAndDistributionApiListReplenishmentOrdersRequest} requestParameters Request parameters.
1450
+ * @param {*} [options] Override http request option.
1451
+ * @throws {RequiredError}
1452
+ */
1453
+ listReplenishmentOrders(requestParameters = {}, options) {
1454
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).listReplenishmentOrders(requestParameters.updatedAfter, requestParameters.updatedBefore, requestParameters.sortOrder, requestParameters.maxResults, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
1455
+ }
1456
+ /**
1457
+ * Updates an AWD inbound order that is in `DRAFT` status and not yet confirmed. Use this operation to update the `packagesToInbound`, `originAddress` and `preferences` attributes. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [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).
1458
+ * @param {AmazonWarehousingAndDistributionApiUpdateInboundRequest} requestParameters Request parameters.
1459
+ * @param {*} [options] Override http request option.
1460
+ * @throws {RequiredError}
1461
+ */
1462
+ updateInbound(requestParameters, options) {
1463
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).updateInbound(requestParameters.orderId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1464
+ }
1465
+ /**
1466
+ * Updates transport details for an AWD shipment. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1467
+ * @param {AmazonWarehousingAndDistributionApiUpdateInboundShipmentTransportDetailsRequest} requestParameters Request parameters.
1468
+ * @param {*} [options] Override http request option.
1469
+ * @throws {RequiredError}
1470
+ */
1471
+ updateInboundShipmentTransportDetails(requestParameters, options) {
1472
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).updateInboundShipmentTransportDetails(requestParameters.shipmentId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1473
+ }
1474
+ /**
1475
+ * Updates an AWD outbound order that is in `DRAFT`, `ELIGIBLE`, or `INELIGIBLE` status. This API allows updates on `productsToOutbound` and `orderPreferences` attributes only. Any updates will restart the outbound order validation. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | 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 than those shown here. For more information, refer to [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).
1476
+ * @param {AmazonWarehousingAndDistributionApiUpdateOutboundRequest} requestParameters Request parameters.
1477
+ * @param {*} [options] Override http request option.
1478
+ * @throws {RequiredError}
1479
+ */
1480
+ updateOutbound(requestParameters, options) {
1481
+ return AmazonWarehousingAndDistributionApiFp(this.configuration).updateOutbound(requestParameters.orderId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1482
+ }
1417
1483
  };
1418
- var GetInboundShipmentLabelsPageTypeEnum = {
1419
- PlainPaper: "PLAIN_PAPER"
1484
+ const GetInboundShipmentSkuQuantitiesEnum = {
1485
+ Show: "SHOW",
1486
+ Hide: "HIDE"
1420
1487
  };
1421
- var GetInboundShipmentLabelsFormatTypeEnum = {
1422
- Pdf: "PDF"
1488
+ const GetInboundShipmentLabelsPageTypeEnum = { PlainPaper: "PLAIN_PAPER" };
1489
+ const GetInboundShipmentLabelsFormatTypeEnum = { Pdf: "PDF" };
1490
+ const ListInboundShipmentsSortByEnum = {
1491
+ UpdatedAt: "UPDATED_AT",
1492
+ CreatedAt: "CREATED_AT"
1423
1493
  };
1424
- var ListInboundShipmentsSortByEnum = {
1425
- UpdatedAt: "UPDATED_AT",
1426
- CreatedAt: "CREATED_AT"
1494
+ const ListInboundShipmentsSortOrderEnum = {
1495
+ Ascending: "ASCENDING",
1496
+ Descending: "DESCENDING"
1427
1497
  };
1428
- var ListInboundShipmentsSortOrderEnum = {
1429
- Ascending: "ASCENDING",
1430
- Descending: "DESCENDING"
1498
+ const ListInboundShipmentsShipmentStatusEnum = {
1499
+ Created: "CREATED",
1500
+ Shipped: "SHIPPED",
1501
+ InTransit: "IN_TRANSIT",
1502
+ Receiving: "RECEIVING",
1503
+ Delivered: "DELIVERED",
1504
+ Closed: "CLOSED",
1505
+ Cancelled: "CANCELLED"
1431
1506
  };
1432
- var ListInboundShipmentsShipmentStatusEnum = {
1433
- Created: "CREATED",
1434
- Shipped: "SHIPPED",
1435
- InTransit: "IN_TRANSIT",
1436
- Receiving: "RECEIVING",
1437
- Delivered: "DELIVERED",
1438
- Closed: "CLOSED",
1439
- Cancelled: "CANCELLED"
1507
+ const ListInventorySortOrderEnum = {
1508
+ Ascending: "ASCENDING",
1509
+ Descending: "DESCENDING"
1440
1510
  };
1441
- var ListInventorySortOrderEnum = {
1442
- Ascending: "ASCENDING",
1443
- Descending: "DESCENDING"
1511
+ const ListInventoryDetailsEnum = {
1512
+ Show: "SHOW",
1513
+ Hide: "HIDE"
1444
1514
  };
1445
- var ListInventoryDetailsEnum = {
1446
- Show: "SHOW",
1447
- Hide: "HIDE"
1515
+ const ListOutboundsSortOrderEnum = {
1516
+ Ascending: "ASCENDING",
1517
+ Descending: "DESCENDING"
1448
1518
  };
1449
- var ListOutboundsSortOrderEnum = {
1450
- Ascending: "ASCENDING",
1451
- Descending: "DESCENDING"
1519
+ const ListReplenishmentOrdersSortOrderEnum = {
1520
+ Ascending: "ASCENDING",
1521
+ Descending: "DESCENDING"
1452
1522
  };
1453
- var ListReplenishmentOrdersSortOrderEnum = {
1454
- Ascending: "ASCENDING",
1455
- Descending: "DESCENDING"
1456
- };
1457
-
1458
- // src/api-model/configuration.ts
1523
+ //#endregion
1524
+ //#region src/api-model/configuration.ts
1459
1525
  var Configuration = class {
1460
- /**
1461
- * parameter for apiKey security
1462
- * @param name security name
1463
- */
1464
- apiKey;
1465
- /**
1466
- * parameter for basic security
1467
- */
1468
- username;
1469
- /**
1470
- * parameter for basic security
1471
- */
1472
- password;
1473
- /**
1474
- * parameter for oauth2 security
1475
- * @param name security name
1476
- * @param scopes oauth2 scope
1477
- */
1478
- accessToken;
1479
- /**
1480
- * parameter for aws4 signature security
1481
- * @param {Object} AWS4Signature - AWS4 Signature security
1482
- * @param {string} options.region - aws region
1483
- * @param {string} options.service - name of the service.
1484
- * @param {string} credentials.accessKeyId - aws access key id
1485
- * @param {string} credentials.secretAccessKey - aws access key
1486
- * @param {string} credentials.sessionToken - aws session token
1487
- * @memberof Configuration
1488
- */
1489
- awsv4;
1490
- /**
1491
- * override base path
1492
- */
1493
- basePath;
1494
- /**
1495
- * override server index
1496
- */
1497
- serverIndex;
1498
- /**
1499
- * base options for axios calls
1500
- */
1501
- baseOptions;
1502
- /**
1503
- * The FormData constructor that will be used to create multipart form data
1504
- * requests. You can inject this here so that execution environments that
1505
- * do not support the FormData class can still run the generated client.
1506
- *
1507
- * @type {new () => FormData}
1508
- */
1509
- formDataCtor;
1510
- constructor(param = {}) {
1511
- this.apiKey = param.apiKey;
1512
- this.username = param.username;
1513
- this.password = param.password;
1514
- this.accessToken = param.accessToken;
1515
- this.awsv4 = param.awsv4;
1516
- this.basePath = param.basePath;
1517
- this.serverIndex = param.serverIndex;
1518
- this.baseOptions = {
1519
- ...param.baseOptions,
1520
- headers: {
1521
- ...param.baseOptions?.headers
1522
- }
1523
- };
1524
- this.formDataCtor = param.formDataCtor;
1525
- }
1526
- /**
1527
- * Check if the given MIME is a JSON MIME.
1528
- * JSON MIME examples:
1529
- * application/json
1530
- * application/json; charset=UTF8
1531
- * APPLICATION/JSON
1532
- * application/vnd.company+json
1533
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
1534
- * @return True if the given MIME is JSON, false otherwise.
1535
- */
1536
- isJsonMime(mime) {
1537
- const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
1538
- return mime !== null && jsonMime.test(mime);
1539
- }
1526
+ /**
1527
+ * parameter for apiKey security
1528
+ * @param name security name
1529
+ */
1530
+ apiKey;
1531
+ /**
1532
+ * parameter for basic security
1533
+ */
1534
+ username;
1535
+ /**
1536
+ * parameter for basic security
1537
+ */
1538
+ password;
1539
+ /**
1540
+ * parameter for oauth2 security
1541
+ * @param name security name
1542
+ * @param scopes oauth2 scope
1543
+ */
1544
+ accessToken;
1545
+ /**
1546
+ * parameter for aws4 signature security
1547
+ * @param {Object} AWS4Signature - AWS4 Signature security
1548
+ * @param {string} options.region - aws region
1549
+ * @param {string} options.service - name of the service.
1550
+ * @param {string} credentials.accessKeyId - aws access key id
1551
+ * @param {string} credentials.secretAccessKey - aws access key
1552
+ * @param {string} credentials.sessionToken - aws session token
1553
+ * @memberof Configuration
1554
+ */
1555
+ awsv4;
1556
+ /**
1557
+ * override base path
1558
+ */
1559
+ basePath;
1560
+ /**
1561
+ * override server index
1562
+ */
1563
+ serverIndex;
1564
+ /**
1565
+ * base options for axios calls
1566
+ */
1567
+ baseOptions;
1568
+ /**
1569
+ * The FormData constructor that will be used to create multipart form data
1570
+ * requests. You can inject this here so that execution environments that
1571
+ * do not support the FormData class can still run the generated client.
1572
+ *
1573
+ * @type {new () => FormData}
1574
+ */
1575
+ formDataCtor;
1576
+ constructor(param = {}) {
1577
+ this.apiKey = param.apiKey;
1578
+ this.username = param.username;
1579
+ this.password = param.password;
1580
+ this.accessToken = param.accessToken;
1581
+ this.awsv4 = param.awsv4;
1582
+ this.basePath = param.basePath;
1583
+ this.serverIndex = param.serverIndex;
1584
+ this.baseOptions = {
1585
+ ...param.baseOptions,
1586
+ headers: { ...param.baseOptions?.headers }
1587
+ };
1588
+ this.formDataCtor = param.formDataCtor;
1589
+ }
1590
+ /**
1591
+ * Check if the given MIME is a JSON MIME.
1592
+ * JSON MIME examples:
1593
+ * application/json
1594
+ * application/json; charset=UTF8
1595
+ * APPLICATION/JSON
1596
+ * application/vnd.company+json
1597
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
1598
+ * @return True if the given MIME is JSON, false otherwise.
1599
+ */
1600
+ isJsonMime(mime) {
1601
+ return mime !== null && /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i.test(mime);
1602
+ }
1540
1603
  };
1541
-
1542
- // src/api-model/models/carrier-code-type.ts
1543
- var CarrierCodeType = {
1544
- Scac: "SCAC"
1604
+ //#endregion
1605
+ //#region src/api-model/models/carrier-code-type.ts
1606
+ /**
1607
+ * The Selling Partner API for Amazon Warehousing and Distribution
1608
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1609
+ *
1610
+ * The version of the OpenAPI document: 2024-05-09
1611
+ *
1612
+ *
1613
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1614
+ * https://openapi-generator.tech
1615
+ * Do not edit the class manually.
1616
+ */
1617
+ /**
1618
+ * Denotes the type for the carrier.
1619
+ */
1620
+ const CarrierCodeType = { Scac: "SCAC" };
1621
+ //#endregion
1622
+ //#region src/api-model/models/confirmation-mode.ts
1623
+ /**
1624
+ * The Selling Partner API for Amazon Warehousing and Distribution
1625
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1626
+ *
1627
+ * The version of the OpenAPI document: 2024-05-09
1628
+ *
1629
+ *
1630
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1631
+ * https://openapi-generator.tech
1632
+ * Do not edit the class manually.
1633
+ */
1634
+ /**
1635
+ * Confirmation Modes supported for Replenishment order creation. By default, the confirmation mode will be set to MANUAL.
1636
+ */
1637
+ const ConfirmationMode = {
1638
+ Auto: "AUTO",
1639
+ Manual: "MANUAL"
1545
1640
  };
1546
-
1547
- // src/api-model/models/confirmation-mode.ts
1548
- var ConfirmationMode = {
1549
- Auto: "AUTO",
1550
- Manual: "MANUAL"
1641
+ //#endregion
1642
+ //#region src/api-model/models/dimension-unit-of-measurement.ts
1643
+ /**
1644
+ * The Selling Partner API for Amazon Warehousing and Distribution
1645
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1646
+ *
1647
+ * The version of the OpenAPI document: 2024-05-09
1648
+ *
1649
+ *
1650
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1651
+ * https://openapi-generator.tech
1652
+ * Do not edit the class manually.
1653
+ */
1654
+ /**
1655
+ * Unit of measurement for package dimensions.
1656
+ */
1657
+ const DimensionUnitOfMeasurement = {
1658
+ Inches: "INCHES",
1659
+ Centimeters: "CENTIMETERS"
1551
1660
  };
1552
-
1553
- // src/api-model/models/dimension-unit-of-measurement.ts
1554
- var DimensionUnitOfMeasurement = {
1555
- Inches: "INCHES",
1556
- Centimeters: "CENTIMETERS"
1661
+ //#endregion
1662
+ //#region src/api-model/models/distribution-package-type.ts
1663
+ /**
1664
+ * The Selling Partner API for Amazon Warehousing and Distribution
1665
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1666
+ *
1667
+ * The version of the OpenAPI document: 2024-05-09
1668
+ *
1669
+ *
1670
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1671
+ * https://openapi-generator.tech
1672
+ * Do not edit the class manually.
1673
+ */
1674
+ /**
1675
+ * Type of distribution packages.
1676
+ */
1677
+ const DistributionPackageType = {
1678
+ Case: "CASE",
1679
+ Pallet: "PALLET"
1557
1680
  };
1558
-
1559
- // src/api-model/models/distribution-package-type.ts
1560
- var DistributionPackageType = {
1561
- Case: "CASE",
1562
- Pallet: "PALLET"
1681
+ //#endregion
1682
+ //#region src/api-model/models/format-type.ts
1683
+ /**
1684
+ * The Selling Partner API for Amazon Warehousing and Distribution
1685
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1686
+ *
1687
+ * The version of the OpenAPI document: 2024-05-09
1688
+ *
1689
+ *
1690
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1691
+ * https://openapi-generator.tech
1692
+ * Do not edit the class manually.
1693
+ */
1694
+ /**
1695
+ * The label format type extension.
1696
+ */
1697
+ const FormatType = { Pdf: "PDF" };
1698
+ //#endregion
1699
+ //#region src/api-model/models/inbound-eligibility-status.ts
1700
+ /**
1701
+ * The Selling Partner API for Amazon Warehousing and Distribution
1702
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1703
+ *
1704
+ * The version of the OpenAPI document: 2024-05-09
1705
+ *
1706
+ *
1707
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1708
+ * https://openapi-generator.tech
1709
+ * Do not edit the class manually.
1710
+ */
1711
+ /**
1712
+ * Enum denoting the package inbound eligibility.
1713
+ */
1714
+ const InboundEligibilityStatus = {
1715
+ Eligible: "ELIGIBLE",
1716
+ Ineligible: "INELIGIBLE"
1563
1717
  };
1564
-
1565
- // src/api-model/models/format-type.ts
1566
- var FormatType = {
1567
- Pdf: "PDF"
1718
+ //#endregion
1719
+ //#region src/api-model/models/inbound-shipment-status.ts
1720
+ /**
1721
+ * The Selling Partner API for Amazon Warehousing and Distribution
1722
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1723
+ *
1724
+ * The version of the OpenAPI document: 2024-05-09
1725
+ *
1726
+ *
1727
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1728
+ * https://openapi-generator.tech
1729
+ * Do not edit the class manually.
1730
+ */
1731
+ /**
1732
+ * Possible shipment statuses used by shipments.
1733
+ */
1734
+ const InboundShipmentStatus = {
1735
+ Created: "CREATED",
1736
+ Shipped: "SHIPPED",
1737
+ InTransit: "IN_TRANSIT",
1738
+ Receiving: "RECEIVING",
1739
+ Delivered: "DELIVERED",
1740
+ Closed: "CLOSED",
1741
+ Cancelled: "CANCELLED"
1568
1742
  };
1569
-
1570
- // src/api-model/models/inbound-eligibility-status.ts
1571
- var InboundEligibilityStatus = {
1572
- Eligible: "ELIGIBLE",
1573
- Ineligible: "INELIGIBLE"
1574
- };
1575
-
1576
- // src/api-model/models/inbound-shipment-status.ts
1577
- var InboundShipmentStatus = {
1578
- Created: "CREATED",
1579
- Shipped: "SHIPPED",
1580
- InTransit: "IN_TRANSIT",
1581
- Receiving: "RECEIVING",
1582
- Delivered: "DELIVERED",
1583
- Closed: "CLOSED",
1584
- Cancelled: "CANCELLED"
1585
- };
1586
-
1587
- // src/api-model/models/inbound-status.ts
1588
- var InboundStatus = {
1589
- Draft: "DRAFT",
1590
- Validating: "VALIDATING",
1591
- Confirmed: "CONFIRMED",
1592
- Closed: "CLOSED",
1593
- Expired: "EXPIRED",
1594
- Cancelled: "CANCELLED"
1595
- };
1596
-
1597
- // src/api-model/models/inventory-details-visibility.ts
1598
- var InventoryDetailsVisibility = {
1599
- Show: "SHOW",
1600
- Hide: "HIDE"
1743
+ //#endregion
1744
+ //#region src/api-model/models/inbound-status.ts
1745
+ /**
1746
+ * The Selling Partner API for Amazon Warehousing and Distribution
1747
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1748
+ *
1749
+ * The version of the OpenAPI document: 2024-05-09
1750
+ *
1751
+ *
1752
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1753
+ * https://openapi-generator.tech
1754
+ * Do not edit the class manually.
1755
+ */
1756
+ /**
1757
+ * The supported statuses for an inbound order.
1758
+ */
1759
+ const InboundStatus = {
1760
+ Draft: "DRAFT",
1761
+ Validating: "VALIDATING",
1762
+ Confirmed: "CONFIRMED",
1763
+ Closed: "CLOSED",
1764
+ Expired: "EXPIRED",
1765
+ Cancelled: "CANCELLED"
1601
1766
  };
1602
-
1603
- // src/api-model/models/inventory-unit-of-measurement.ts
1604
- var InventoryUnitOfMeasurement = {
1605
- ProductUnits: "PRODUCT_UNITS",
1606
- Cases: "CASES",
1607
- Pallets: "PALLETS"
1767
+ //#endregion
1768
+ //#region src/api-model/models/inventory-details-visibility.ts
1769
+ /**
1770
+ * The Selling Partner API for Amazon Warehousing and Distribution
1771
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1772
+ *
1773
+ * The version of the OpenAPI document: 2024-05-09
1774
+ *
1775
+ *
1776
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1777
+ * https://openapi-generator.tech
1778
+ * Do not edit the class manually.
1779
+ */
1780
+ /**
1781
+ * Enum to specify if returned summaries should include additional summarized inventory details and quantities.
1782
+ */
1783
+ const InventoryDetailsVisibility = {
1784
+ Show: "SHOW",
1785
+ Hide: "HIDE"
1608
1786
  };
1609
-
1610
- // src/api-model/models/label-owner.ts
1611
- var LabelOwner = {
1612
- Amazon: "AMAZON",
1613
- Self: "SELF"
1787
+ //#endregion
1788
+ //#region src/api-model/models/inventory-unit-of-measurement.ts
1789
+ /**
1790
+ * The Selling Partner API for Amazon Warehousing and Distribution
1791
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1792
+ *
1793
+ * The version of the OpenAPI document: 2024-05-09
1794
+ *
1795
+ *
1796
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1797
+ * https://openapi-generator.tech
1798
+ * Do not edit the class manually.
1799
+ */
1800
+ /**
1801
+ * Unit of measurement for the inventory.
1802
+ */
1803
+ const InventoryUnitOfMeasurement = {
1804
+ ProductUnits: "PRODUCT_UNITS",
1805
+ Cases: "CASES",
1806
+ Pallets: "PALLETS"
1614
1807
  };
1615
-
1616
- // src/api-model/models/label-status.ts
1617
- var LabelStatus = {
1618
- Generating: "GENERATING",
1619
- Generated: "GENERATED",
1620
- GenerationFailed: "GENERATION_FAILED",
1621
- NotReady: "NOT_READY"
1808
+ //#endregion
1809
+ //#region src/api-model/models/label-owner.ts
1810
+ /**
1811
+ * The Selling Partner API for Amazon Warehousing and Distribution
1812
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1813
+ *
1814
+ * The version of the OpenAPI document: 2024-05-09
1815
+ *
1816
+ *
1817
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1818
+ * https://openapi-generator.tech
1819
+ * Do not edit the class manually.
1820
+ */
1821
+ /**
1822
+ * The entity that labels the products. `AMAZON` is not an accepted value in the US marketplace.
1823
+ */
1824
+ const LabelOwner = {
1825
+ Amazon: "AMAZON",
1826
+ Self: "SELF"
1622
1827
  };
1623
-
1624
- // src/api-model/models/order-preference.ts
1625
- var OrderPreference = {
1626
- PartialOrder: "PARTIAL_ORDER"
1828
+ //#endregion
1829
+ //#region src/api-model/models/label-status.ts
1830
+ /**
1831
+ * The Selling Partner API for Amazon Warehousing and Distribution
1832
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1833
+ *
1834
+ * The version of the OpenAPI document: 2024-05-09
1835
+ *
1836
+ *
1837
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1838
+ * https://openapi-generator.tech
1839
+ * Do not edit the class manually.
1840
+ */
1841
+ /**
1842
+ * The status of your label.
1843
+ */
1844
+ const LabelStatus = {
1845
+ Generating: "GENERATING",
1846
+ Generated: "GENERATED",
1847
+ GenerationFailed: "GENERATION_FAILED",
1848
+ NotReady: "NOT_READY"
1627
1849
  };
1628
-
1629
- // src/api-model/models/order-preference-value.ts
1630
- var OrderPreferenceValue = {
1631
- Set: "SET",
1632
- Unset: "UNSET"
1850
+ //#endregion
1851
+ //#region src/api-model/models/order-preference.ts
1852
+ /**
1853
+ * The Selling Partner API for Amazon Warehousing and Distribution
1854
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1855
+ *
1856
+ * The version of the OpenAPI document: 2024-05-09
1857
+ *
1858
+ *
1859
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1860
+ * https://openapi-generator.tech
1861
+ * Do not edit the class manually.
1862
+ */
1863
+ /**
1864
+ * Supported preferences for the distribution order.
1865
+ */
1866
+ const OrderPreference = { PartialOrder: "PARTIAL_ORDER" };
1867
+ //#endregion
1868
+ //#region src/api-model/models/order-preference-value.ts
1869
+ /**
1870
+ * The Selling Partner API for Amazon Warehousing and Distribution
1871
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1872
+ *
1873
+ * The version of the OpenAPI document: 2024-05-09
1874
+ *
1875
+ *
1876
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1877
+ * https://openapi-generator.tech
1878
+ * Do not edit the class manually.
1879
+ */
1880
+ /**
1881
+ * Value for the order preference.
1882
+ */
1883
+ const OrderPreferenceValue = {
1884
+ Set: "SET",
1885
+ Unset: "UNSET"
1633
1886
  };
1634
-
1635
- // src/api-model/models/outbound-shipment-status.ts
1636
- var OutboundShipmentStatus = {
1637
- Created: "CREATED",
1638
- InTransit: "IN_TRANSIT",
1639
- Delivered: "DELIVERED",
1640
- Receiving: "RECEIVING",
1641
- Received: "RECEIVED",
1642
- Closed: "CLOSED",
1643
- Cancelled: "CANCELLED",
1644
- Failed: "FAILED"
1887
+ //#endregion
1888
+ //#region src/api-model/models/outbound-shipment-status.ts
1889
+ /**
1890
+ * The Selling Partner API for Amazon Warehousing and Distribution
1891
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1892
+ *
1893
+ * The version of the OpenAPI document: 2024-05-09
1894
+ *
1895
+ *
1896
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1897
+ * https://openapi-generator.tech
1898
+ * Do not edit the class manually.
1899
+ */
1900
+ /**
1901
+ * Possible shipment statuses for outbound shipments.
1902
+ */
1903
+ const OutboundShipmentStatus = {
1904
+ Created: "CREATED",
1905
+ InTransit: "IN_TRANSIT",
1906
+ Delivered: "DELIVERED",
1907
+ Receiving: "RECEIVING",
1908
+ Received: "RECEIVED",
1909
+ Closed: "CLOSED",
1910
+ Cancelled: "CANCELLED",
1911
+ Failed: "FAILED"
1645
1912
  };
1646
-
1647
- // src/api-model/models/outbound-status.ts
1648
- var OutboundStatus = {
1649
- Confirmed: "CONFIRMED",
1650
- Draft: "DRAFT",
1651
- Eligible: "ELIGIBLE",
1652
- Executing: "EXECUTING",
1653
- Failure: "FAILURE",
1654
- Ineligible: "INELIGIBLE",
1655
- InventoryOutbound: "INVENTORY_OUTBOUND",
1656
- Success: "SUCCESS",
1657
- Validating: "VALIDATING"
1913
+ //#endregion
1914
+ //#region src/api-model/models/outbound-status.ts
1915
+ /**
1916
+ * The Selling Partner API for Amazon Warehousing and Distribution
1917
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1918
+ *
1919
+ * The version of the OpenAPI document: 2024-05-09
1920
+ *
1921
+ *
1922
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1923
+ * https://openapi-generator.tech
1924
+ * Do not edit the class manually.
1925
+ */
1926
+ /**
1927
+ * Statuses supported for an outbound order.
1928
+ */
1929
+ const OutboundStatus = {
1930
+ Confirmed: "CONFIRMED",
1931
+ Draft: "DRAFT",
1932
+ Eligible: "ELIGIBLE",
1933
+ Executing: "EXECUTING",
1934
+ Failure: "FAILURE",
1935
+ Ineligible: "INELIGIBLE",
1936
+ InventoryOutbound: "INVENTORY_OUTBOUND",
1937
+ Success: "SUCCESS",
1938
+ Validating: "VALIDATING"
1658
1939
  };
1659
-
1660
- // src/api-model/models/page-type.ts
1661
- var PageType = {
1662
- PlainPaper: "PLAIN_PAPER",
1663
- LetterPcpFulfillmentlabel: "LETTER_PCP_FULFILLMENTLABEL",
1664
- Letter2Horizontal: "LETTER_2_HORIZONTAL",
1665
- Letter2: "LETTER_2",
1666
- ThermalNoCarrierRotation: "THERMAL_NO_CARRIER_ROTATION",
1667
- Thermal: "THERMAL",
1668
- A4Paper: "A4_PAPER",
1669
- A42Horizontal: "A4_2_HORIZONTAL",
1670
- ThermalSquare10Cm: "THERMAL_SQUARE_10CM"
1940
+ //#endregion
1941
+ //#region src/api-model/models/page-type.ts
1942
+ /**
1943
+ * The Selling Partner API for Amazon Warehousing and Distribution
1944
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1945
+ *
1946
+ * The version of the OpenAPI document: 2024-05-09
1947
+ *
1948
+ *
1949
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1950
+ * https://openapi-generator.tech
1951
+ * Do not edit the class manually.
1952
+ */
1953
+ /**
1954
+ * Label page type.
1955
+ */
1956
+ const PageType = {
1957
+ PlainPaper: "PLAIN_PAPER",
1958
+ LetterPcpFulfillmentlabel: "LETTER_PCP_FULFILLMENTLABEL",
1959
+ Letter2Horizontal: "LETTER_2_HORIZONTAL",
1960
+ Letter2: "LETTER_2",
1961
+ ThermalNoCarrierRotation: "THERMAL_NO_CARRIER_ROTATION",
1962
+ Thermal: "THERMAL",
1963
+ A4Paper: "A4_PAPER",
1964
+ A42Horizontal: "A4_2_HORIZONTAL",
1965
+ ThermalSquare10Cm: "THERMAL_SQUARE_10CM"
1671
1966
  };
1672
-
1673
- // src/api-model/models/prep-category.ts
1674
- var PrepCategory = {
1675
- Adult: "ADULT",
1676
- Baby: "BABY",
1677
- FcProvided: "FC_PROVIDED",
1678
- Fragile: "FRAGILE",
1679
- Granular: "GRANULAR",
1680
- Hanger: "HANGER",
1681
- Liquid: "LIQUID",
1682
- Perforated: "PERFORATED",
1683
- Set: "SET",
1684
- Sharp: "SHARP",
1685
- Small: "SMALL",
1686
- Textile: "TEXTILE",
1687
- NoPrep: "NO_PREP",
1688
- Unknown: "UNKNOWN"
1967
+ //#endregion
1968
+ //#region src/api-model/models/prep-category.ts
1969
+ /**
1970
+ * The Selling Partner API for Amazon Warehousing and Distribution
1971
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1972
+ *
1973
+ * The version of the OpenAPI document: 2024-05-09
1974
+ *
1975
+ *
1976
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1977
+ * https://openapi-generator.tech
1978
+ * Do not edit the class manually.
1979
+ */
1980
+ /**
1981
+ * The preparation category for shipping an item to Amazon\'s fulfillment network.
1982
+ */
1983
+ const PrepCategory = {
1984
+ Adult: "ADULT",
1985
+ Baby: "BABY",
1986
+ FcProvided: "FC_PROVIDED",
1987
+ Fragile: "FRAGILE",
1988
+ Granular: "GRANULAR",
1989
+ Hanger: "HANGER",
1990
+ Liquid: "LIQUID",
1991
+ Perforated: "PERFORATED",
1992
+ Set: "SET",
1993
+ Sharp: "SHARP",
1994
+ Small: "SMALL",
1995
+ Textile: "TEXTILE",
1996
+ NoPrep: "NO_PREP",
1997
+ Unknown: "UNKNOWN"
1689
1998
  };
1690
-
1691
- // src/api-model/models/prep-owner.ts
1692
- var PrepOwner = {
1693
- Amazon: "AMAZON",
1694
- Self: "SELF"
1999
+ //#endregion
2000
+ //#region src/api-model/models/prep-owner.ts
2001
+ /**
2002
+ * The Selling Partner API for Amazon Warehousing and Distribution
2003
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
2004
+ *
2005
+ * The version of the OpenAPI document: 2024-05-09
2006
+ *
2007
+ *
2008
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2009
+ * https://openapi-generator.tech
2010
+ * Do not edit the class manually.
2011
+ */
2012
+ /**
2013
+ * The owner of the preparations, if special preparations are required. `AMAZON` is not an accepted value in the US marketplace.
2014
+ */
2015
+ const PrepOwner = {
2016
+ Amazon: "AMAZON",
2017
+ Self: "SELF"
1695
2018
  };
1696
-
1697
- // src/api-model/models/replenishment-order-status.ts
1698
- var ReplenishmentOrderStatus = {
1699
- Confirmed: "CONFIRMED",
1700
- Created: "CREATED",
1701
- Eligible: "ELIGIBLE",
1702
- Executing: "EXECUTING",
1703
- Failure: "FAILURE",
1704
- Ineligible: "INELIGIBLE",
1705
- InventoryOutbound: "INVENTORY_OUTBOUND",
1706
- Success: "SUCCESS",
1707
- Validating: "VALIDATING"
2019
+ //#endregion
2020
+ //#region src/api-model/models/replenishment-order-status.ts
2021
+ /**
2022
+ * The Selling Partner API for Amazon Warehousing and Distribution
2023
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
2024
+ *
2025
+ * The version of the OpenAPI document: 2024-05-09
2026
+ *
2027
+ *
2028
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2029
+ * https://openapi-generator.tech
2030
+ * Do not edit the class manually.
2031
+ */
2032
+ /**
2033
+ * Statuses supported for an replenishment order.
2034
+ */
2035
+ const ReplenishmentOrderStatus = {
2036
+ Confirmed: "CONFIRMED",
2037
+ Created: "CREATED",
2038
+ Eligible: "ELIGIBLE",
2039
+ Executing: "EXECUTING",
2040
+ Failure: "FAILURE",
2041
+ Ineligible: "INELIGIBLE",
2042
+ InventoryOutbound: "INVENTORY_OUTBOUND",
2043
+ Success: "SUCCESS",
2044
+ Validating: "VALIDATING"
1708
2045
  };
1709
-
1710
- // src/api-model/models/shipment-sortable-field.ts
1711
- var ShipmentSortableField = {
1712
- UpdatedAt: "UPDATED_AT",
1713
- CreatedAt: "CREATED_AT"
2046
+ //#endregion
2047
+ //#region src/api-model/models/shipment-sortable-field.ts
2048
+ /**
2049
+ * The Selling Partner API for Amazon Warehousing and Distribution
2050
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
2051
+ *
2052
+ * The version of the OpenAPI document: 2024-05-09
2053
+ *
2054
+ *
2055
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2056
+ * https://openapi-generator.tech
2057
+ * Do not edit the class manually.
2058
+ */
2059
+ /**
2060
+ * Denotes the field name on which the shipments are to be sorted.
2061
+ */
2062
+ const ShipmentSortableField = {
2063
+ UpdatedAt: "UPDATED_AT",
2064
+ CreatedAt: "CREATED_AT"
1714
2065
  };
1715
-
1716
- // src/api-model/models/sku-quantities-visibility.ts
1717
- var SkuQuantitiesVisibility = {
1718
- Show: "SHOW",
1719
- Hide: "HIDE"
2066
+ //#endregion
2067
+ //#region src/api-model/models/sku-quantities-visibility.ts
2068
+ /**
2069
+ * The Selling Partner API for Amazon Warehousing and Distribution
2070
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
2071
+ *
2072
+ * The version of the OpenAPI document: 2024-05-09
2073
+ *
2074
+ *
2075
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2076
+ * https://openapi-generator.tech
2077
+ * Do not edit the class manually.
2078
+ */
2079
+ /**
2080
+ * Enum to specify if returned shipment should include SKU quantity details
2081
+ */
2082
+ const SkuQuantitiesVisibility = {
2083
+ Show: "SHOW",
2084
+ Hide: "HIDE"
1720
2085
  };
1721
-
1722
- // src/api-model/models/sort-order.ts
1723
- var SortOrder = {
1724
- Ascending: "ASCENDING",
1725
- Descending: "DESCENDING"
2086
+ //#endregion
2087
+ //#region src/api-model/models/sort-order.ts
2088
+ /**
2089
+ * The Selling Partner API for Amazon Warehousing and Distribution
2090
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
2091
+ *
2092
+ * The version of the OpenAPI document: 2024-05-09
2093
+ *
2094
+ *
2095
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2096
+ * https://openapi-generator.tech
2097
+ * Do not edit the class manually.
2098
+ */
2099
+ /**
2100
+ * Sort order for a collection of items. For example, order or shipment.
2101
+ */
2102
+ const SortOrder = {
2103
+ Ascending: "ASCENDING",
2104
+ Descending: "DESCENDING"
1726
2105
  };
1727
-
1728
- // src/api-model/models/volume-unit-of-measurement.ts
1729
- var VolumeUnitOfMeasurement = {
1730
- CuIn: "CU_IN",
1731
- Cbm: "CBM",
1732
- Cc: "CC"
2106
+ //#endregion
2107
+ //#region src/api-model/models/volume-unit-of-measurement.ts
2108
+ /**
2109
+ * The Selling Partner API for Amazon Warehousing and Distribution
2110
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
2111
+ *
2112
+ * The version of the OpenAPI document: 2024-05-09
2113
+ *
2114
+ *
2115
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2116
+ * https://openapi-generator.tech
2117
+ * Do not edit the class manually.
2118
+ */
2119
+ /**
2120
+ * Unit of measurement for the package volume.
2121
+ */
2122
+ const VolumeUnitOfMeasurement = {
2123
+ CuIn: "CU_IN",
2124
+ Cbm: "CBM",
2125
+ Cc: "CC"
1733
2126
  };
1734
-
1735
- // src/api-model/models/weight-unit-of-measurement.ts
1736
- var WeightUnitOfMeasurement = {
1737
- Pounds: "POUNDS",
1738
- Kilograms: "KILOGRAMS"
2127
+ //#endregion
2128
+ //#region src/api-model/models/weight-unit-of-measurement.ts
2129
+ /**
2130
+ * The Selling Partner API for Amazon Warehousing and Distribution
2131
+ * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
2132
+ *
2133
+ * The version of the OpenAPI document: 2024-05-09
2134
+ *
2135
+ *
2136
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2137
+ * https://openapi-generator.tech
2138
+ * Do not edit the class manually.
2139
+ */
2140
+ /**
2141
+ * Unit of measurement for the package weight.
2142
+ */
2143
+ const WeightUnitOfMeasurement = {
2144
+ Pounds: "POUNDS",
2145
+ Kilograms: "KILOGRAMS"
1739
2146
  };
1740
-
1741
- // src/client.ts
1742
- var clientRateLimits = [
1743
- {
1744
- method: "post",
1745
- // eslint-disable-next-line prefer-regex-literals
1746
- urlRegex: new RegExp("^/awd/2024-05-09/inboundOrders$"),
1747
- rate: 1,
1748
- burst: 1
1749
- },
1750
- {
1751
- method: "get",
1752
- // eslint-disable-next-line prefer-regex-literals
1753
- urlRegex: new RegExp("^/awd/2024-05-09/inboundOrders/[^/]*$"),
1754
- rate: 2,
1755
- burst: 2
1756
- },
1757
- {
1758
- method: "put",
1759
- // eslint-disable-next-line prefer-regex-literals
1760
- urlRegex: new RegExp("^/awd/2024-05-09/inboundOrders/[^/]*$"),
1761
- rate: 1,
1762
- burst: 1
1763
- },
1764
- {
1765
- method: "post",
1766
- // eslint-disable-next-line prefer-regex-literals
1767
- urlRegex: new RegExp("^/awd/2024-05-09/inboundOrders/[^/]*/cancellation$"),
1768
- rate: 1,
1769
- burst: 1
1770
- },
1771
- {
1772
- method: "post",
1773
- // eslint-disable-next-line prefer-regex-literals
1774
- urlRegex: new RegExp("^/awd/2024-05-09/inboundOrders/[^/]*/confirmation$"),
1775
- rate: 1,
1776
- burst: 1
1777
- },
1778
- {
1779
- method: "get",
1780
- // eslint-disable-next-line prefer-regex-literals
1781
- urlRegex: new RegExp("^/awd/2024-05-09/inboundShipments/[^/]*$"),
1782
- rate: 2,
1783
- burst: 2
1784
- },
1785
- {
1786
- method: "get",
1787
- // eslint-disable-next-line prefer-regex-literals
1788
- urlRegex: new RegExp("^/awd/2024-05-09/inboundShipments/[^/]*/labels$"),
1789
- rate: 1,
1790
- burst: 2
1791
- },
1792
- {
1793
- method: "get",
1794
- // eslint-disable-next-line prefer-regex-literals
1795
- urlRegex: new RegExp("^/awd/2024-05-09/inboundShipments/[^/]*/labelPageTypes$"),
1796
- rate: 1,
1797
- burst: 2
1798
- },
1799
- {
1800
- method: "put",
1801
- // eslint-disable-next-line prefer-regex-literals
1802
- urlRegex: new RegExp("^/awd/2024-05-09/inboundShipments/[^/]*/transport$"),
1803
- rate: 1,
1804
- burst: 1
1805
- },
1806
- {
1807
- method: "post",
1808
- // eslint-disable-next-line prefer-regex-literals
1809
- urlRegex: new RegExp("^/awd/2024-05-09/inboundEligibility$"),
1810
- rate: 1,
1811
- burst: 1
1812
- },
1813
- {
1814
- method: "get",
1815
- // eslint-disable-next-line prefer-regex-literals
1816
- urlRegex: new RegExp("^/awd/2024-05-09/inboundShipments$"),
1817
- rate: 1,
1818
- burst: 1
1819
- },
1820
- {
1821
- method: "get",
1822
- // eslint-disable-next-line prefer-regex-literals
1823
- urlRegex: new RegExp("^/awd/2024-05-09/inventory$"),
1824
- rate: 2,
1825
- burst: 2
1826
- },
1827
- {
1828
- method: "get",
1829
- // eslint-disable-next-line prefer-regex-literals
1830
- urlRegex: new RegExp("^/awd/2024-05-09/outboundOrders$"),
1831
- rate: 1,
1832
- burst: 1
1833
- },
1834
- {
1835
- method: "post",
1836
- // eslint-disable-next-line prefer-regex-literals
1837
- urlRegex: new RegExp("^/awd/2024-05-09/outboundOrders$"),
1838
- rate: 1,
1839
- burst: 1
1840
- },
1841
- {
1842
- method: "get",
1843
- // eslint-disable-next-line prefer-regex-literals
1844
- urlRegex: new RegExp("^/awd/2024-05-09/outboundOrders/[^/]*$"),
1845
- rate: 1,
1846
- burst: 1
1847
- },
1848
- {
1849
- method: "put",
1850
- // eslint-disable-next-line prefer-regex-literals
1851
- urlRegex: new RegExp("^/awd/2024-05-09/outboundOrders/[^/]*$"),
1852
- rate: 1,
1853
- burst: 1
1854
- },
1855
- {
1856
- method: "post",
1857
- // eslint-disable-next-line prefer-regex-literals
1858
- urlRegex: new RegExp("^/awd/2024-05-09/outboundOrders/[^/]*/confirmation$"),
1859
- rate: 1,
1860
- burst: 1
1861
- }
2147
+ //#endregion
2148
+ //#region src/client.ts
2149
+ const clientRateLimits = [
2150
+ {
2151
+ method: "post",
2152
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundOrders$/v,
2153
+ rate: 1,
2154
+ burst: 1
2155
+ },
2156
+ {
2157
+ method: "get",
2158
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundOrders\/[^\/]*$/v,
2159
+ rate: 2,
2160
+ burst: 2
2161
+ },
2162
+ {
2163
+ method: "put",
2164
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundOrders\/[^\/]*$/v,
2165
+ rate: 1,
2166
+ burst: 1
2167
+ },
2168
+ {
2169
+ method: "post",
2170
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundOrders\/[^\/]*\/cancellation$/v,
2171
+ rate: 1,
2172
+ burst: 1
2173
+ },
2174
+ {
2175
+ method: "post",
2176
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundOrders\/[^\/]*\/confirmation$/v,
2177
+ rate: 1,
2178
+ burst: 1
2179
+ },
2180
+ {
2181
+ method: "get",
2182
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundShipments\/[^\/]*$/v,
2183
+ rate: 2,
2184
+ burst: 2
2185
+ },
2186
+ {
2187
+ method: "get",
2188
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundShipments\/[^\/]*\/labels$/v,
2189
+ rate: 1,
2190
+ burst: 2
2191
+ },
2192
+ {
2193
+ method: "get",
2194
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundShipments\/[^\/]*\/labelPageTypes$/v,
2195
+ rate: 1,
2196
+ burst: 2
2197
+ },
2198
+ {
2199
+ method: "put",
2200
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundShipments\/[^\/]*\/transport$/v,
2201
+ rate: 1,
2202
+ burst: 1
2203
+ },
2204
+ {
2205
+ method: "post",
2206
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundEligibility$/v,
2207
+ rate: 1,
2208
+ burst: 1
2209
+ },
2210
+ {
2211
+ method: "get",
2212
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inboundShipments$/v,
2213
+ rate: 1,
2214
+ burst: 1
2215
+ },
2216
+ {
2217
+ method: "get",
2218
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/inventory$/v,
2219
+ rate: 2,
2220
+ burst: 2
2221
+ },
2222
+ {
2223
+ method: "get",
2224
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/outboundOrders$/v,
2225
+ rate: 1,
2226
+ burst: 1
2227
+ },
2228
+ {
2229
+ method: "post",
2230
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/outboundOrders$/v,
2231
+ rate: 1,
2232
+ burst: 1
2233
+ },
2234
+ {
2235
+ method: "get",
2236
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/outboundOrders\/[^\/]*$/v,
2237
+ rate: 1,
2238
+ burst: 1
2239
+ },
2240
+ {
2241
+ method: "put",
2242
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/outboundOrders\/[^\/]*$/v,
2243
+ rate: 1,
2244
+ burst: 1
2245
+ },
2246
+ {
2247
+ method: "post",
2248
+ urlRegex: /^\/awd\/2024\u{2D}05\u{2D}09\/outboundOrders\/[^\/]*\/confirmation$/v,
2249
+ rate: 1,
2250
+ burst: 1
2251
+ }
1862
2252
  ];
1863
2253
  var AmazonWarehousingAndDistributionApiClient = class extends AmazonWarehousingAndDistributionApi {
1864
- constructor(configuration) {
1865
- const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
1866
- super(new Configuration(), endpoint, axios);
1867
- }
1868
- };
1869
- export {
1870
- AmazonWarehousingAndDistributionApi,
1871
- AmazonWarehousingAndDistributionApiAxiosParamCreator,
1872
- AmazonWarehousingAndDistributionApiClient,
1873
- AmazonWarehousingAndDistributionApiFactory,
1874
- AmazonWarehousingAndDistributionApiFp,
1875
- CarrierCodeType,
1876
- ConfirmationMode,
1877
- DimensionUnitOfMeasurement,
1878
- DistributionPackageType,
1879
- FormatType,
1880
- GetInboundShipmentLabelsFormatTypeEnum,
1881
- GetInboundShipmentLabelsPageTypeEnum,
1882
- GetInboundShipmentSkuQuantitiesEnum,
1883
- InboundEligibilityStatus,
1884
- InboundShipmentStatus,
1885
- InboundStatus,
1886
- InventoryDetailsVisibility,
1887
- InventoryUnitOfMeasurement,
1888
- LabelOwner,
1889
- LabelStatus,
1890
- ListInboundShipmentsShipmentStatusEnum,
1891
- ListInboundShipmentsSortByEnum,
1892
- ListInboundShipmentsSortOrderEnum,
1893
- ListInventoryDetailsEnum,
1894
- ListInventorySortOrderEnum,
1895
- ListOutboundsSortOrderEnum,
1896
- ListReplenishmentOrdersSortOrderEnum,
1897
- OrderPreference,
1898
- OrderPreferenceValue,
1899
- OutboundShipmentStatus,
1900
- OutboundStatus,
1901
- PageType,
1902
- PrepCategory,
1903
- PrepOwner,
1904
- ReplenishmentOrderStatus,
1905
- ShipmentSortableField,
1906
- SkuQuantitiesVisibility,
1907
- SortOrder,
1908
- VolumeUnitOfMeasurement,
1909
- WeightUnitOfMeasurement,
1910
- clientRateLimits
2254
+ constructor(configuration) {
2255
+ const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
2256
+ super(new Configuration(), endpoint, axios);
2257
+ }
1911
2258
  };
2259
+ //#endregion
2260
+ export { AmazonWarehousingAndDistributionApi, AmazonWarehousingAndDistributionApiAxiosParamCreator, AmazonWarehousingAndDistributionApiClient, AmazonWarehousingAndDistributionApiFactory, AmazonWarehousingAndDistributionApiFp, CarrierCodeType, ConfirmationMode, DimensionUnitOfMeasurement, DistributionPackageType, FormatType, GetInboundShipmentLabelsFormatTypeEnum, GetInboundShipmentLabelsPageTypeEnum, GetInboundShipmentSkuQuantitiesEnum, InboundEligibilityStatus, InboundShipmentStatus, InboundStatus, InventoryDetailsVisibility, InventoryUnitOfMeasurement, LabelOwner, LabelStatus, ListInboundShipmentsShipmentStatusEnum, ListInboundShipmentsSortByEnum, ListInboundShipmentsSortOrderEnum, ListInventoryDetailsEnum, ListInventorySortOrderEnum, ListOutboundsSortOrderEnum, ListReplenishmentOrdersSortOrderEnum, OrderPreference, OrderPreferenceValue, OutboundShipmentStatus, OutboundStatus, PageType, PrepCategory, PrepOwner, ReplenishmentOrderStatus, ShipmentSortableField, SkuQuantitiesVisibility, SortOrder, VolumeUnitOfMeasurement, WeightUnitOfMeasurement, clientRateLimits };
2261
+
1912
2262
  //# sourceMappingURL=index.js.map