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