@sp-api-sdk/external-fulfillment-returns-api-2024-09-11 1.1.11 → 2.0.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.
Files changed (71) hide show
  1. package/README.md +4 -4
  2. package/dist/index.cjs +461 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.cts +707 -0
  5. package/dist/index.d.ts +707 -0
  6. package/dist/index.js +414 -0
  7. package/dist/index.js.map +1 -0
  8. package/package.json +23 -12
  9. package/dist/cjs/api-model/api/external-fulfillment-returns-api.js +0 -259
  10. package/dist/cjs/api-model/api.js +0 -30
  11. package/dist/cjs/api-model/base.js +0 -52
  12. package/dist/cjs/api-model/common.js +0 -123
  13. package/dist/cjs/api-model/configuration.js +0 -98
  14. package/dist/cjs/api-model/index.js +0 -32
  15. package/dist/cjs/api-model/models/error-list.js +0 -15
  16. package/dist/cjs/api-model/models/index.js +0 -28
  17. package/dist/cjs/api-model/models/invoice-information.js +0 -15
  18. package/dist/cjs/api-model/models/marketplace-channel-details.js +0 -15
  19. package/dist/cjs/api-model/models/marketplace-channel.js +0 -15
  20. package/dist/cjs/api-model/models/model-error.js +0 -15
  21. package/dist/cjs/api-model/models/otp-details.js +0 -15
  22. package/dist/cjs/api-model/models/replanning-details.js +0 -15
  23. package/dist/cjs/api-model/models/return-metadata.js +0 -15
  24. package/dist/cjs/api-model/models/return-shipping-info.js +0 -15
  25. package/dist/cjs/api-model/models/return.js +0 -46
  26. package/dist/cjs/api-model/models/returns-response.js +0 -15
  27. package/dist/cjs/api-model/models/tracking-info.js +0 -15
  28. package/dist/cjs/client.js +0 -13
  29. package/dist/cjs/index.js +0 -19
  30. package/dist/es/api-model/api/external-fulfillment-returns-api.js +0 -249
  31. package/dist/es/api-model/api.js +0 -14
  32. package/dist/es/api-model/base.js +0 -44
  33. package/dist/es/api-model/common.js +0 -110
  34. package/dist/es/api-model/configuration.js +0 -94
  35. package/dist/es/api-model/index.js +0 -16
  36. package/dist/es/api-model/models/error-list.js +0 -14
  37. package/dist/es/api-model/models/index.js +0 -12
  38. package/dist/es/api-model/models/invoice-information.js +0 -14
  39. package/dist/es/api-model/models/marketplace-channel-details.js +0 -14
  40. package/dist/es/api-model/models/marketplace-channel.js +0 -14
  41. package/dist/es/api-model/models/model-error.js +0 -14
  42. package/dist/es/api-model/models/otp-details.js +0 -14
  43. package/dist/es/api-model/models/replanning-details.js +0 -14
  44. package/dist/es/api-model/models/return-metadata.js +0 -14
  45. package/dist/es/api-model/models/return-shipping-info.js +0 -14
  46. package/dist/es/api-model/models/return.js +0 -43
  47. package/dist/es/api-model/models/returns-response.js +0 -14
  48. package/dist/es/api-model/models/tracking-info.js +0 -14
  49. package/dist/es/client.js +0 -9
  50. package/dist/es/index.js +0 -3
  51. package/dist/types/api-model/api/external-fulfillment-returns-api.d.ts +0 -195
  52. package/dist/types/api-model/api.d.ts +0 -12
  53. package/dist/types/api-model/base.d.ts +0 -42
  54. package/dist/types/api-model/common.d.ts +0 -34
  55. package/dist/types/api-model/configuration.d.ts +0 -98
  56. package/dist/types/api-model/index.d.ts +0 -14
  57. package/dist/types/api-model/models/error-list.d.ts +0 -20
  58. package/dist/types/api-model/models/index.d.ts +0 -12
  59. package/dist/types/api-model/models/invoice-information.d.ts +0 -20
  60. package/dist/types/api-model/models/marketplace-channel-details.d.ts +0 -42
  61. package/dist/types/api-model/models/marketplace-channel.d.ts +0 -24
  62. package/dist/types/api-model/models/model-error.d.ts +0 -28
  63. package/dist/types/api-model/models/otp-details.d.ts +0 -24
  64. package/dist/types/api-model/models/replanning-details.d.ts +0 -21
  65. package/dist/types/api-model/models/return-metadata.d.ts +0 -30
  66. package/dist/types/api-model/models/return-shipping-info.d.ts +0 -27
  67. package/dist/types/api-model/models/return.d.ts +0 -104
  68. package/dist/types/api-model/models/returns-response.d.ts +0 -25
  69. package/dist/types/api-model/models/tracking-info.d.ts +0 -24
  70. package/dist/types/client.d.ts +0 -6
  71. package/dist/types/index.d.ts +0 -3
@@ -0,0 +1,707 @@
1
+ import { ClientConfiguration, RateLimit } from '@sp-api-sdk/common';
2
+ import * as axios from 'axios';
3
+ import { AxiosInstance, RawAxiosRequestConfig, AxiosPromise } from 'axios';
4
+
5
+ /**
6
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
7
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\'s External Fulfillment returns management system.
8
+ *
9
+ * The version of the OpenAPI document: 2024-09-11
10
+ * Contact: marketplaceapitest@amazon.com
11
+ *
12
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
+ * https://openapi-generator.tech
14
+ * Do not edit the class manually.
15
+ */
16
+ interface AWSv4Configuration {
17
+ options?: {
18
+ region?: string;
19
+ service?: string;
20
+ };
21
+ credentials?: {
22
+ accessKeyId?: string;
23
+ secretAccessKey?: string;
24
+ sessionToken?: string;
25
+ };
26
+ }
27
+ interface ConfigurationParameters {
28
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
29
+ username?: string;
30
+ password?: string;
31
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
32
+ awsv4?: AWSv4Configuration;
33
+ basePath?: string;
34
+ serverIndex?: number;
35
+ baseOptions?: any;
36
+ formDataCtor?: new () => any;
37
+ }
38
+ declare class Configuration {
39
+ /**
40
+ * parameter for apiKey security
41
+ * @param name security name
42
+ */
43
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
44
+ /**
45
+ * parameter for basic security
46
+ */
47
+ username?: string;
48
+ /**
49
+ * parameter for basic security
50
+ */
51
+ password?: string;
52
+ /**
53
+ * parameter for oauth2 security
54
+ * @param name security name
55
+ * @param scopes oauth2 scope
56
+ */
57
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
58
+ /**
59
+ * parameter for aws4 signature security
60
+ * @param {Object} AWS4Signature - AWS4 Signature security
61
+ * @param {string} options.region - aws region
62
+ * @param {string} options.service - name of the service.
63
+ * @param {string} credentials.accessKeyId - aws access key id
64
+ * @param {string} credentials.secretAccessKey - aws access key
65
+ * @param {string} credentials.sessionToken - aws session token
66
+ * @memberof Configuration
67
+ */
68
+ awsv4?: AWSv4Configuration;
69
+ /**
70
+ * override base path
71
+ */
72
+ basePath?: string;
73
+ /**
74
+ * override server index
75
+ */
76
+ serverIndex?: number;
77
+ /**
78
+ * base options for axios calls
79
+ */
80
+ baseOptions?: any;
81
+ /**
82
+ * The FormData constructor that will be used to create multipart form data
83
+ * requests. You can inject this here so that execution environments that
84
+ * do not support the FormData class can still run the generated client.
85
+ *
86
+ * @type {new () => FormData}
87
+ */
88
+ formDataCtor?: new () => any;
89
+ constructor(param?: ConfigurationParameters);
90
+ /**
91
+ * Check if the given MIME is a JSON MIME.
92
+ * JSON MIME examples:
93
+ * application/json
94
+ * application/json; charset=UTF8
95
+ * APPLICATION/JSON
96
+ * application/vnd.company+json
97
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
98
+ * @return True if the given MIME is JSON, false otherwise.
99
+ */
100
+ isJsonMime(mime: string): boolean;
101
+ }
102
+
103
+ /**
104
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
105
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\'s External Fulfillment returns management system.
106
+ *
107
+ * The version of the OpenAPI document: 2024-09-11
108
+ * Contact: marketplaceapitest@amazon.com
109
+ *
110
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
111
+ * https://openapi-generator.tech
112
+ * Do not edit the class manually.
113
+ */
114
+
115
+ interface RequestArgs {
116
+ url: string;
117
+ options: RawAxiosRequestConfig;
118
+ }
119
+ declare class BaseAPI {
120
+ protected basePath: string;
121
+ protected axios: AxiosInstance;
122
+ protected configuration: Configuration | undefined;
123
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
124
+ }
125
+
126
+ /**
127
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
128
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\'s External Fulfillment returns management system.
129
+ *
130
+ * The version of the OpenAPI document: 2024-09-11
131
+ * Contact: marketplaceapitest@amazon.com
132
+ *
133
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
134
+ * https://openapi-generator.tech
135
+ * Do not edit the class manually.
136
+ */
137
+ /**
138
+ * An object containing a list of error responses returned when a request is unsuccessful.
139
+ */
140
+ interface ErrorList {
141
+ /**
142
+ * A list of error responses returned when a request is unsuccessful.
143
+ */
144
+ 'errors': Array<Error>;
145
+ }
146
+
147
+ /**
148
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
149
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\'s External Fulfillment returns management system.
150
+ *
151
+ * The version of the OpenAPI document: 2024-09-11
152
+ * Contact: marketplaceapitest@amazon.com
153
+ *
154
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
155
+ * https://openapi-generator.tech
156
+ * Do not edit the class manually.
157
+ */
158
+ /**
159
+ * Invoice-related information for the return created for Amazon SmartConnect.
160
+ */
161
+ interface InvoiceInformation {
162
+ /**
163
+ * The unique ID of the invoice that corresponds to the return.
164
+ */
165
+ 'id': string;
166
+ }
167
+
168
+ /**
169
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
170
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\'s External Fulfillment returns management system.
171
+ *
172
+ * The version of the OpenAPI document: 2024-09-11
173
+ * Contact: marketplaceapitest@amazon.com
174
+ *
175
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
176
+ * https://openapi-generator.tech
177
+ * Do not edit the class manually.
178
+ */
179
+ /**
180
+ * The marketplace and channel name.
181
+ */
182
+ interface MarketplaceChannel {
183
+ /**
184
+ * The name of the marketplace.
185
+ */
186
+ 'marketplaceName'?: string;
187
+ /**
188
+ * The name of the channel within the marketplace.
189
+ */
190
+ 'channelName'?: string;
191
+ }
192
+
193
+ /**
194
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
195
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\'s External Fulfillment returns management system.
196
+ *
197
+ * The version of the OpenAPI document: 2024-09-11
198
+ * Contact: marketplaceapitest@amazon.com
199
+ *
200
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
201
+ * https://openapi-generator.tech
202
+ * Do not edit the class manually.
203
+ */
204
+
205
+ /**
206
+ * Marketplace channel-specific attributes for the return. These attributes are not mandatory and each channel can provide them differently.
207
+ */
208
+ interface MarketplaceChannelDetails {
209
+ 'marketplaceChannel'?: MarketplaceChannel;
210
+ /**
211
+ * The ID of the merchant or seller to whom this return is created in the marketplace.
212
+ */
213
+ 'merchantId'?: string;
214
+ /**
215
+ * The marketplace-specific shipment ID.
216
+ */
217
+ 'shipmentId'?: string;
218
+ /**
219
+ * The marketplace-specific customer order ID.
220
+ */
221
+ 'customerOrderId'?: string;
222
+ /**
223
+ * The Amazon SmartConnect ID of the location to which this return is created.
224
+ */
225
+ 'returnLocationId'?: string;
226
+ /**
227
+ * The Amazon SmartConnect SKU of the channel.
228
+ */
229
+ 'channelSku'?: string;
230
+ /**
231
+ * The Amazon SmartConnect ID of the exchange order.
232
+ */
233
+ 'exchangeOrderId'?: string;
234
+ }
235
+
236
+ /**
237
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
238
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\'s External Fulfillment returns management system.
239
+ *
240
+ * The version of the OpenAPI document: 2024-09-11
241
+ * Contact: marketplaceapitest@amazon.com
242
+ *
243
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
244
+ * https://openapi-generator.tech
245
+ * Do not edit the class manually.
246
+ */
247
+ /**
248
+ * Error response returned when the request is unsuccessful.
249
+ */
250
+ interface ModelError {
251
+ /**
252
+ * An error code that identifies the type of error that occurred.
253
+ */
254
+ 'code': string;
255
+ /**
256
+ * A message that describes the error condition.
257
+ */
258
+ 'message': string;
259
+ /**
260
+ * Additional details that can help the caller understand or fix the issue.
261
+ */
262
+ 'details'?: string;
263
+ }
264
+
265
+ /**
266
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
267
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\'s External Fulfillment returns management system.
268
+ *
269
+ * The version of the OpenAPI document: 2024-09-11
270
+ * Contact: marketplaceapitest@amazon.com
271
+ *
272
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
273
+ * https://openapi-generator.tech
274
+ * Do not edit the class manually.
275
+ */
276
+ /**
277
+ * One-time password (OTP) details of the return item.
278
+ */
279
+ interface OtpDetails {
280
+ /**
281
+ * One-time password to validate the return delivered to the seller.
282
+ */
283
+ 'otp': string;
284
+ /**
285
+ * The UNIX timestamp of when the verification code expires.
286
+ */
287
+ 'validTill': number;
288
+ }
289
+
290
+ /**
291
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
292
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\'s External Fulfillment returns management system.
293
+ *
294
+ * The version of the OpenAPI document: 2024-09-11
295
+ * Contact: marketplaceapitest@amazon.com
296
+ *
297
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
298
+ * https://openapi-generator.tech
299
+ * Do not edit the class manually.
300
+ */
301
+ /**
302
+ * Information for tracking a return.
303
+ */
304
+ interface TrackingInfo {
305
+ /**
306
+ * The name of the third party courier service used to ship the return package.
307
+ */
308
+ 'carrierName': string;
309
+ /**
310
+ * The tracking ID of the return package.
311
+ */
312
+ 'trackingId': string;
313
+ }
314
+
315
+ /**
316
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
317
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\'s External Fulfillment returns management system.
318
+ *
319
+ * The version of the OpenAPI document: 2024-09-11
320
+ * Contact: marketplaceapitest@amazon.com
321
+ *
322
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
323
+ * https://openapi-generator.tech
324
+ * Do not edit the class manually.
325
+ */
326
+
327
+ /**
328
+ * Provides details about the replanned returns.
329
+ */
330
+ interface ReplanningDetails {
331
+ /**
332
+ * A list of all the previous tracking information for the return.
333
+ */
334
+ 'previousTrackingInfo'?: Array<TrackingInfo>;
335
+ }
336
+
337
+ /**
338
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
339
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\'s External Fulfillment returns management system.
340
+ *
341
+ * The version of the OpenAPI document: 2024-09-11
342
+ * Contact: marketplaceapitest@amazon.com
343
+ *
344
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
345
+ * https://openapi-generator.tech
346
+ * Do not edit the class manually.
347
+ */
348
+
349
+ /**
350
+ * Metadata about the return item.
351
+ */
352
+ interface ReturnMetadata {
353
+ /**
354
+ * The reason for the return.
355
+ */
356
+ 'returnReason': string;
357
+ /**
358
+ * The RMA ID of the return.
359
+ */
360
+ 'rmaId'?: string;
361
+ /**
362
+ * The SmartConnect ID of the fulfillment order for which the return was placed.
363
+ */
364
+ 'fulfillmentOrderId'?: string;
365
+ 'invoiceInformation'?: InvoiceInformation;
366
+ }
367
+
368
+ /**
369
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
370
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\'s External Fulfillment returns management system.
371
+ *
372
+ * The version of the OpenAPI document: 2024-09-11
373
+ * Contact: marketplaceapitest@amazon.com
374
+ *
375
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
376
+ * https://openapi-generator.tech
377
+ * Do not edit the class manually.
378
+ */
379
+
380
+ /**
381
+ * Information about the shipping of the return packages.
382
+ */
383
+ interface ReturnShippingInfo {
384
+ /**
385
+ * A date and time in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
386
+ */
387
+ 'deliveryDateTime'?: string;
388
+ /**
389
+ * A date and time in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
390
+ */
391
+ 'pickupDateTime'?: string;
392
+ 'forwardTrackingInfo'?: TrackingInfo;
393
+ 'reverseTrackingInfo'?: TrackingInfo;
394
+ }
395
+
396
+ /**
397
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
398
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\'s External Fulfillment returns management system.
399
+ *
400
+ * The version of the OpenAPI document: 2024-09-11
401
+ * Contact: marketplaceapitest@amazon.com
402
+ *
403
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
404
+ * https://openapi-generator.tech
405
+ * Do not edit the class manually.
406
+ */
407
+
408
+ /**
409
+ * Information about the return item.
410
+ */
411
+ interface Return {
412
+ /**
413
+ * The return item\'s ID.
414
+ */
415
+ 'id': string;
416
+ /**
417
+ * The SmartConnect identifier for where the return item was dropped for delivery.
418
+ */
419
+ 'returnLocationId'?: string;
420
+ /**
421
+ * The seller\'s identifier for the SKU.
422
+ */
423
+ 'merchantSku'?: string;
424
+ /**
425
+ * The type of return.
426
+ */
427
+ 'returnType': ReturnReturnTypeEnum;
428
+ /**
429
+ * The sub-type of return.
430
+ */
431
+ 'returnSubType'?: ReturnReturnSubTypeEnum;
432
+ /**
433
+ * The total number of units in the return.
434
+ */
435
+ 'numberOfUnits'?: number;
436
+ /**
437
+ * The current status of the return.
438
+ */
439
+ 'status': ReturnStatusEnum;
440
+ /**
441
+ * The ID of the location that fulfilled the order.
442
+ */
443
+ 'fulfillmentLocationId': string;
444
+ /**
445
+ * A date and time in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
446
+ */
447
+ 'creationDateTime'?: string;
448
+ /**
449
+ * A date and time in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
450
+ */
451
+ 'lastUpdatedDateTime': string;
452
+ 'returnMetadata': ReturnMetadata;
453
+ 'returnShippingInfo': ReturnShippingInfo;
454
+ 'marketplaceChannelDetails': MarketplaceChannelDetails;
455
+ 'otpDetails'?: OtpDetails;
456
+ /**
457
+ * The package delivery mode. This indicates whether the return was delivered to the seller with or without a one-time password (OTP).
458
+ */
459
+ 'packageDeliveryMode'?: ReturnPackageDeliveryModeEnum;
460
+ 'replanningDetails'?: ReplanningDetails;
461
+ }
462
+ declare const ReturnReturnTypeEnum: {
463
+ readonly Customer: "CUSTOMER";
464
+ readonly Reject: "REJECT";
465
+ };
466
+ type ReturnReturnTypeEnum = typeof ReturnReturnTypeEnum[keyof typeof ReturnReturnTypeEnum];
467
+ declare const ReturnReturnSubTypeEnum: {
468
+ readonly Normal: "NORMAL";
469
+ readonly Replacement: "REPLACEMENT";
470
+ readonly Exchange: "EXCHANGE";
471
+ };
472
+ type ReturnReturnSubTypeEnum = typeof ReturnReturnSubTypeEnum[keyof typeof ReturnReturnSubTypeEnum];
473
+ declare const ReturnStatusEnum: {
474
+ readonly Created: "CREATED";
475
+ readonly CarrierNotifiedToPickUpFromCustomer: "CARRIER_NOTIFIED_TO_PICK_UP_FROM_CUSTOMER";
476
+ readonly CarrierOutForPickUpFromCustomer: "CARRIER_OUT_FOR_PICK_UP_FROM_CUSTOMER";
477
+ readonly CustomerCancelledPickUp: "CUSTOMER_CANCELLED_PICK_UP";
478
+ readonly CustomerRescheduledPickUp: "CUSTOMER_RESCHEDULED_PICK_UP";
479
+ readonly PickedFromCustomer: "PICKED_FROM_CUSTOMER";
480
+ readonly InTransit: "IN_TRANSIT";
481
+ readonly OutForDelivery: "OUT_FOR_DELIVERY";
482
+ readonly Delivered: "DELIVERED";
483
+ readonly Replanned: "REPLANNED";
484
+ readonly CustomerDroppedOff: "CUSTOMER_DROPPED_OFF";
485
+ readonly PartiallyProcessed: "PARTIALLY_PROCESSED";
486
+ readonly Processed: "PROCESSED";
487
+ readonly Rejected: "REJECTED";
488
+ readonly Cancelled: "CANCELLED";
489
+ };
490
+ type ReturnStatusEnum = typeof ReturnStatusEnum[keyof typeof ReturnStatusEnum];
491
+ declare const ReturnPackageDeliveryModeEnum: {
492
+ readonly WithOtp: "WITH_OTP";
493
+ readonly WithoutOtp: "WITHOUT_OTP";
494
+ };
495
+ type ReturnPackageDeliveryModeEnum = typeof ReturnPackageDeliveryModeEnum[keyof typeof ReturnPackageDeliveryModeEnum];
496
+
497
+ /**
498
+ * The Selling Partner API for Amazon External Fulfillment Return Item Processing
499
+ * You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon\'s External Fulfillment returns management system.
500
+ *
501
+ * The version of the OpenAPI document: 2024-09-11
502
+ * Contact: marketplaceapitest@amazon.com
503
+ *
504
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
505
+ * https://openapi-generator.tech
506
+ * Do not edit the class manually.
507
+ */
508
+
509
+ /**
510
+ * The response to the `listReturns` operation.
511
+ */
512
+ interface ReturnsResponse {
513
+ /**
514
+ * A list of returns.
515
+ */
516
+ 'returns'?: Array<Return>;
517
+ /**
518
+ * A token that you use to retrieve the next page of results. The response includes `nextToken` when there are multiple pages of results. 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.
519
+ */
520
+ 'nextToken'?: string;
521
+ }
522
+
523
+ /**
524
+ * ExternalFulfillmentReturnsApi - axios parameter creator
525
+ */
526
+ declare const ExternalFulfillmentReturnsApiAxiosParamCreator: (configuration?: Configuration) => {
527
+ /**
528
+ * Retrieve the return item with the specified ID.
529
+ * @param {string} returnId The ID of the return item you want.
530
+ * @param {*} [options] Override http request option.
531
+ * @throws {RequiredError}
532
+ */
533
+ getReturn: (returnId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
534
+ /**
535
+ * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
536
+ * @param {string} [returnLocationId] The SmartConnect location ID of the location from which you want to retrieve return items.
537
+ * @param {string} [rmaId] The RMA ID of the return items you want to list.
538
+ * @param {ListReturnsStatusEnum} [status] The status of return items you want to list. You can retrieve all new return items with the &#x60;CREATED&#x60; status.
539
+ * @param {string} [reverseTrackingId] The reverse tracking ID of the return items you want to list.
540
+ * @param {string} [createdSince] Return items created after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
541
+ * @param {string} [createdUntil] Return items created before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
542
+ * @param {string} [lastUpdatedSince] Return items updated after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.
543
+ * @param {string} [lastUpdatedUntil] Return items whose most recent update is before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.
544
+ * @param {string} [lastUpdatedAfter] DEPRECATED. Use the &#x60;createdSince&#x60; parameter.
545
+ * @param {string} [lastUpdatedBefore] DEPRECATED. Use the &#x60;createdUntil&#x60; parameter.
546
+ * @param {number} [maxResults] The number of return items you want to include in the response. **Default:** 10 **Maximum:** 100
547
+ * @param {string} [nextToken] A token that you use to retrieve the next page of results. The response includes &#x60;nextToken&#x60; when there are multiple pages of results. 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 &#x60;nextToken&#x60; is null. Note that this operation can return empty pages.
548
+ * @param {*} [options] Override http request option.
549
+ * @throws {RequiredError}
550
+ */
551
+ listReturns: (returnLocationId?: string, rmaId?: string, status?: ListReturnsStatusEnum, reverseTrackingId?: string, createdSince?: string, createdUntil?: string, lastUpdatedSince?: string, lastUpdatedUntil?: string, lastUpdatedAfter?: string, lastUpdatedBefore?: string, maxResults?: number, nextToken?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
552
+ };
553
+ /**
554
+ * ExternalFulfillmentReturnsApi - functional programming interface
555
+ */
556
+ declare const ExternalFulfillmentReturnsApiFp: (configuration?: Configuration) => {
557
+ /**
558
+ * Retrieve the return item with the specified ID.
559
+ * @param {string} returnId The ID of the return item you want.
560
+ * @param {*} [options] Override http request option.
561
+ * @throws {RequiredError}
562
+ */
563
+ getReturn(returnId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Return>>;
564
+ /**
565
+ * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
566
+ * @param {string} [returnLocationId] The SmartConnect location ID of the location from which you want to retrieve return items.
567
+ * @param {string} [rmaId] The RMA ID of the return items you want to list.
568
+ * @param {ListReturnsStatusEnum} [status] The status of return items you want to list. You can retrieve all new return items with the &#x60;CREATED&#x60; status.
569
+ * @param {string} [reverseTrackingId] The reverse tracking ID of the return items you want to list.
570
+ * @param {string} [createdSince] Return items created after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
571
+ * @param {string} [createdUntil] Return items created before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
572
+ * @param {string} [lastUpdatedSince] Return items updated after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.
573
+ * @param {string} [lastUpdatedUntil] Return items whose most recent update is before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.
574
+ * @param {string} [lastUpdatedAfter] DEPRECATED. Use the &#x60;createdSince&#x60; parameter.
575
+ * @param {string} [lastUpdatedBefore] DEPRECATED. Use the &#x60;createdUntil&#x60; parameter.
576
+ * @param {number} [maxResults] The number of return items you want to include in the response. **Default:** 10 **Maximum:** 100
577
+ * @param {string} [nextToken] A token that you use to retrieve the next page of results. The response includes &#x60;nextToken&#x60; when there are multiple pages of results. 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 &#x60;nextToken&#x60; is null. Note that this operation can return empty pages.
578
+ * @param {*} [options] Override http request option.
579
+ * @throws {RequiredError}
580
+ */
581
+ listReturns(returnLocationId?: string, rmaId?: string, status?: ListReturnsStatusEnum, reverseTrackingId?: string, createdSince?: string, createdUntil?: string, lastUpdatedSince?: string, lastUpdatedUntil?: string, lastUpdatedAfter?: string, lastUpdatedBefore?: string, maxResults?: number, nextToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReturnsResponse>>;
582
+ };
583
+ /**
584
+ * ExternalFulfillmentReturnsApi - factory interface
585
+ */
586
+ declare const ExternalFulfillmentReturnsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
587
+ /**
588
+ * Retrieve the return item with the specified ID.
589
+ * @param {ExternalFulfillmentReturnsApiGetReturnRequest} requestParameters Request parameters.
590
+ * @param {*} [options] Override http request option.
591
+ * @throws {RequiredError}
592
+ */
593
+ getReturn(requestParameters: ExternalFulfillmentReturnsApiGetReturnRequest, options?: RawAxiosRequestConfig): AxiosPromise<Return>;
594
+ /**
595
+ * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
596
+ * @param {ExternalFulfillmentReturnsApiListReturnsRequest} requestParameters Request parameters.
597
+ * @param {*} [options] Override http request option.
598
+ * @throws {RequiredError}
599
+ */
600
+ listReturns(requestParameters?: ExternalFulfillmentReturnsApiListReturnsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReturnsResponse>;
601
+ };
602
+ /**
603
+ * Request parameters for getReturn operation in ExternalFulfillmentReturnsApi.
604
+ */
605
+ interface ExternalFulfillmentReturnsApiGetReturnRequest {
606
+ /**
607
+ * The ID of the return item you want.
608
+ */
609
+ readonly returnId: string;
610
+ }
611
+ /**
612
+ * Request parameters for listReturns operation in ExternalFulfillmentReturnsApi.
613
+ */
614
+ interface ExternalFulfillmentReturnsApiListReturnsRequest {
615
+ /**
616
+ * The SmartConnect location ID of the location from which you want to retrieve return items.
617
+ */
618
+ readonly returnLocationId?: string;
619
+ /**
620
+ * The RMA ID of the return items you want to list.
621
+ */
622
+ readonly rmaId?: string;
623
+ /**
624
+ * The status of return items you want to list. You can retrieve all new return items with the &#x60;CREATED&#x60; status.
625
+ */
626
+ readonly status?: ListReturnsStatusEnum;
627
+ /**
628
+ * The reverse tracking ID of the return items you want to list.
629
+ */
630
+ readonly reverseTrackingId?: string;
631
+ /**
632
+ * Return items created after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
633
+ */
634
+ readonly createdSince?: string;
635
+ /**
636
+ * Return items created before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
637
+ */
638
+ readonly createdUntil?: string;
639
+ /**
640
+ * Return items updated after the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.
641
+ */
642
+ readonly lastUpdatedSince?: string;
643
+ /**
644
+ * Return items whose most recent update is before the specified date are included in the response. In [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. If you supply this parameter, you must also supply &#x60;returnLocationId&#x60; and &#x60;status&#x60;.
645
+ */
646
+ readonly lastUpdatedUntil?: string;
647
+ /**
648
+ * DEPRECATED. Use the &#x60;createdSince&#x60; parameter.
649
+ */
650
+ readonly lastUpdatedAfter?: string;
651
+ /**
652
+ * DEPRECATED. Use the &#x60;createdUntil&#x60; parameter.
653
+ */
654
+ readonly lastUpdatedBefore?: string;
655
+ /**
656
+ * The number of return items you want to include in the response. **Default:** 10 **Maximum:** 100
657
+ */
658
+ readonly maxResults?: number;
659
+ /**
660
+ * A token that you use to retrieve the next page of results. The response includes &#x60;nextToken&#x60; when there are multiple pages of results. 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 &#x60;nextToken&#x60; is null. Note that this operation can return empty pages.
661
+ */
662
+ readonly nextToken?: string;
663
+ }
664
+ /**
665
+ * ExternalFulfillmentReturnsApi - object-oriented interface
666
+ */
667
+ declare class ExternalFulfillmentReturnsApi extends BaseAPI {
668
+ /**
669
+ * Retrieve the return item with the specified ID.
670
+ * @param {ExternalFulfillmentReturnsApiGetReturnRequest} requestParameters Request parameters.
671
+ * @param {*} [options] Override http request option.
672
+ * @throws {RequiredError}
673
+ */
674
+ getReturn(requestParameters: ExternalFulfillmentReturnsApiGetReturnRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Return, any, {}>>;
675
+ /**
676
+ * Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
677
+ * @param {ExternalFulfillmentReturnsApiListReturnsRequest} requestParameters Request parameters.
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ */
681
+ listReturns(requestParameters?: ExternalFulfillmentReturnsApiListReturnsRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<ReturnsResponse, any, {}>>;
682
+ }
683
+ declare const ListReturnsStatusEnum: {
684
+ readonly Created: "CREATED";
685
+ readonly CarrierNotifiedToPickUpFromCustomer: "CARRIER_NOTIFIED_TO_PICK_UP_FROM_CUSTOMER";
686
+ readonly CarrierOutForPickUpFromCustomer: "CARRIER_OUT_FOR_PICK_UP_FROM_CUSTOMER";
687
+ readonly CustomerCancelledPickUp: "CUSTOMER_CANCELLED_PICK_UP";
688
+ readonly CustomerRescheduledPickUp: "CUSTOMER_RESCHEDULED_PICK_UP";
689
+ readonly PickedFromCustomer: "PICKED_FROM_CUSTOMER";
690
+ readonly InTransit: "IN_TRANSIT";
691
+ readonly OutForDelivery: "OUT_FOR_DELIVERY";
692
+ readonly Delivered: "DELIVERED";
693
+ readonly Replanned: "REPLANNED";
694
+ readonly CustomerDroppedOff: "CUSTOMER_DROPPED_OFF";
695
+ readonly PartiallyProcessed: "PARTIALLY_PROCESSED";
696
+ readonly Processed: "PROCESSED";
697
+ readonly Rejected: "REJECTED";
698
+ readonly Cancelled: "CANCELLED";
699
+ };
700
+ type ListReturnsStatusEnum = typeof ListReturnsStatusEnum[keyof typeof ListReturnsStatusEnum];
701
+
702
+ declare const clientRateLimits: RateLimit[];
703
+ declare class ExternalFulfillmentReturnsApiClient extends ExternalFulfillmentReturnsApi {
704
+ constructor(configuration: ClientConfiguration);
705
+ }
706
+
707
+ export { type ErrorList, ExternalFulfillmentReturnsApi, ExternalFulfillmentReturnsApiAxiosParamCreator, ExternalFulfillmentReturnsApiClient, ExternalFulfillmentReturnsApiFactory, ExternalFulfillmentReturnsApiFp, type ExternalFulfillmentReturnsApiGetReturnRequest, type ExternalFulfillmentReturnsApiListReturnsRequest, type InvoiceInformation, ListReturnsStatusEnum, type MarketplaceChannel, type MarketplaceChannelDetails, type ModelError, type OtpDetails, type ReplanningDetails, type Return, type ReturnMetadata, ReturnPackageDeliveryModeEnum, ReturnReturnSubTypeEnum, ReturnReturnTypeEnum, type ReturnShippingInfo, ReturnStatusEnum, type ReturnsResponse, type TrackingInfo, clientRateLimits };