@sp-api-sdk/external-fulfillment-returns-api-2024-09-11 1.1.12 → 2.1.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/README.md +7 -8
- package/dist/index.cjs +423 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +638 -0
- package/dist/index.d.ts +638 -0
- package/dist/index.js +389 -0
- package/dist/index.js.map +1 -0
- package/package.json +26 -12
- package/dist/cjs/api-model/api/external-fulfillment-returns-api.js +0 -259
- package/dist/cjs/api-model/api.js +0 -30
- package/dist/cjs/api-model/base.js +0 -52
- package/dist/cjs/api-model/common.js +0 -123
- package/dist/cjs/api-model/configuration.js +0 -98
- package/dist/cjs/api-model/index.js +0 -32
- package/dist/cjs/api-model/models/error-list.js +0 -15
- package/dist/cjs/api-model/models/index.js +0 -28
- package/dist/cjs/api-model/models/invoice-information.js +0 -15
- package/dist/cjs/api-model/models/marketplace-channel-details.js +0 -15
- package/dist/cjs/api-model/models/marketplace-channel.js +0 -15
- package/dist/cjs/api-model/models/model-error.js +0 -15
- package/dist/cjs/api-model/models/otp-details.js +0 -15
- package/dist/cjs/api-model/models/replanning-details.js +0 -15
- package/dist/cjs/api-model/models/return-metadata.js +0 -15
- package/dist/cjs/api-model/models/return-shipping-info.js +0 -15
- package/dist/cjs/api-model/models/return.js +0 -46
- package/dist/cjs/api-model/models/returns-response.js +0 -15
- package/dist/cjs/api-model/models/tracking-info.js +0 -15
- package/dist/cjs/client.js +0 -13
- package/dist/cjs/index.js +0 -19
- package/dist/es/api-model/api/external-fulfillment-returns-api.js +0 -249
- package/dist/es/api-model/api.js +0 -14
- package/dist/es/api-model/base.js +0 -44
- package/dist/es/api-model/common.js +0 -110
- package/dist/es/api-model/configuration.js +0 -94
- package/dist/es/api-model/index.js +0 -16
- package/dist/es/api-model/models/error-list.js +0 -14
- package/dist/es/api-model/models/index.js +0 -12
- package/dist/es/api-model/models/invoice-information.js +0 -14
- package/dist/es/api-model/models/marketplace-channel-details.js +0 -14
- package/dist/es/api-model/models/marketplace-channel.js +0 -14
- package/dist/es/api-model/models/model-error.js +0 -14
- package/dist/es/api-model/models/otp-details.js +0 -14
- package/dist/es/api-model/models/replanning-details.js +0 -14
- package/dist/es/api-model/models/return-metadata.js +0 -14
- package/dist/es/api-model/models/return-shipping-info.js +0 -14
- package/dist/es/api-model/models/return.js +0 -43
- package/dist/es/api-model/models/returns-response.js +0 -14
- package/dist/es/api-model/models/tracking-info.js +0 -14
- package/dist/es/client.js +0 -9
- package/dist/es/index.js +0 -3
- package/dist/types/api-model/api/external-fulfillment-returns-api.d.ts +0 -195
- package/dist/types/api-model/api.d.ts +0 -12
- package/dist/types/api-model/base.d.ts +0 -42
- package/dist/types/api-model/common.d.ts +0 -34
- package/dist/types/api-model/configuration.d.ts +0 -98
- package/dist/types/api-model/index.d.ts +0 -14
- package/dist/types/api-model/models/error-list.d.ts +0 -20
- package/dist/types/api-model/models/index.d.ts +0 -12
- package/dist/types/api-model/models/invoice-information.d.ts +0 -20
- package/dist/types/api-model/models/marketplace-channel-details.d.ts +0 -42
- package/dist/types/api-model/models/marketplace-channel.d.ts +0 -24
- package/dist/types/api-model/models/model-error.d.ts +0 -28
- package/dist/types/api-model/models/otp-details.d.ts +0 -24
- package/dist/types/api-model/models/replanning-details.d.ts +0 -21
- package/dist/types/api-model/models/return-metadata.d.ts +0 -30
- package/dist/types/api-model/models/return-shipping-info.d.ts +0 -27
- package/dist/types/api-model/models/return.d.ts +0 -104
- package/dist/types/api-model/models/returns-response.d.ts +0 -25
- package/dist/types/api-model/models/tracking-info.d.ts +0 -24
- package/dist/types/client.d.ts +0 -6
- package/dist/types/index.d.ts +0 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,638 @@
|
|
|
1
|
+
import { ClientConfiguration, RateLimit } from "@sp-api-sdk/common";
|
|
2
|
+
import { AxiosInstance, AxiosPromise, RawAxiosRequestConfig } from "axios";
|
|
3
|
+
//#region src/api-model/configuration.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
9
|
+
* Contact: marketplaceapitest@amazon.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
interface AWSv4Configuration {
|
|
16
|
+
options?: {
|
|
17
|
+
region?: string;
|
|
18
|
+
service?: string;
|
|
19
|
+
};
|
|
20
|
+
credentials?: {
|
|
21
|
+
accessKeyId?: string;
|
|
22
|
+
secretAccessKey?: string;
|
|
23
|
+
sessionToken?: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
interface ConfigurationParameters {
|
|
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;
|
|
36
|
+
}
|
|
37
|
+
declare class Configuration {
|
|
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;
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/api-model/base.d.ts
|
|
103
|
+
interface RequestArgs {
|
|
104
|
+
url: string;
|
|
105
|
+
options: RawAxiosRequestConfig;
|
|
106
|
+
}
|
|
107
|
+
declare class BaseAPI {
|
|
108
|
+
protected basePath: string;
|
|
109
|
+
protected axios: AxiosInstance;
|
|
110
|
+
protected configuration: Configuration | undefined;
|
|
111
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
112
|
+
}
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/api-model/models/error-list.d.ts
|
|
115
|
+
/**
|
|
116
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
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.
|
|
118
|
+
*
|
|
119
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
120
|
+
* Contact: marketplaceapitest@amazon.com
|
|
121
|
+
*
|
|
122
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
123
|
+
* https://openapi-generator.tech
|
|
124
|
+
* Do not edit the class manually.
|
|
125
|
+
*/
|
|
126
|
+
/**
|
|
127
|
+
* An object containing a list of error responses returned when a request is unsuccessful.
|
|
128
|
+
*/
|
|
129
|
+
interface ErrorList {
|
|
130
|
+
/**
|
|
131
|
+
* A list of error responses returned when a request is unsuccessful.
|
|
132
|
+
*/
|
|
133
|
+
'errors': Array<Error>;
|
|
134
|
+
}
|
|
135
|
+
//#endregion
|
|
136
|
+
//#region src/api-model/models/invoice-information.d.ts
|
|
137
|
+
/**
|
|
138
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
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.
|
|
140
|
+
*
|
|
141
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
142
|
+
* Contact: marketplaceapitest@amazon.com
|
|
143
|
+
*
|
|
144
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
145
|
+
* https://openapi-generator.tech
|
|
146
|
+
* Do not edit the class manually.
|
|
147
|
+
*/
|
|
148
|
+
/**
|
|
149
|
+
* Invoice-related information for the return created for Amazon SmartConnect.
|
|
150
|
+
*/
|
|
151
|
+
interface InvoiceInformation {
|
|
152
|
+
/**
|
|
153
|
+
* The unique ID of the invoice that corresponds to the return.
|
|
154
|
+
*/
|
|
155
|
+
'id': string;
|
|
156
|
+
}
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/api-model/models/marketplace-channel.d.ts
|
|
159
|
+
/**
|
|
160
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
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.
|
|
162
|
+
*
|
|
163
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
164
|
+
* Contact: marketplaceapitest@amazon.com
|
|
165
|
+
*
|
|
166
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
167
|
+
* https://openapi-generator.tech
|
|
168
|
+
* Do not edit the class manually.
|
|
169
|
+
*/
|
|
170
|
+
/**
|
|
171
|
+
* The marketplace and channel name.
|
|
172
|
+
*/
|
|
173
|
+
interface MarketplaceChannel {
|
|
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;
|
|
182
|
+
}
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/api-model/models/marketplace-channel-details.d.ts
|
|
185
|
+
/**
|
|
186
|
+
* Marketplace channel-specific attributes for the return. These attributes are not mandatory and each channel can provide them differently.
|
|
187
|
+
*/
|
|
188
|
+
interface MarketplaceChannelDetails {
|
|
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;
|
|
214
|
+
}
|
|
215
|
+
//#endregion
|
|
216
|
+
//#region src/api-model/models/model-error.d.ts
|
|
217
|
+
/**
|
|
218
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
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.
|
|
220
|
+
*
|
|
221
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
222
|
+
* Contact: marketplaceapitest@amazon.com
|
|
223
|
+
*
|
|
224
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
225
|
+
* https://openapi-generator.tech
|
|
226
|
+
* Do not edit the class manually.
|
|
227
|
+
*/
|
|
228
|
+
/**
|
|
229
|
+
* Error response returned when the request is unsuccessful.
|
|
230
|
+
*/
|
|
231
|
+
interface ModelError {
|
|
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;
|
|
244
|
+
}
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region src/api-model/models/otp-details.d.ts
|
|
247
|
+
/**
|
|
248
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
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.
|
|
250
|
+
*
|
|
251
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
252
|
+
* Contact: marketplaceapitest@amazon.com
|
|
253
|
+
*
|
|
254
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
255
|
+
* https://openapi-generator.tech
|
|
256
|
+
* Do not edit the class manually.
|
|
257
|
+
*/
|
|
258
|
+
/**
|
|
259
|
+
* One-time password (OTP) details of the return item.
|
|
260
|
+
*/
|
|
261
|
+
interface OtpDetails {
|
|
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;
|
|
270
|
+
}
|
|
271
|
+
//#endregion
|
|
272
|
+
//#region src/api-model/models/tracking-info.d.ts
|
|
273
|
+
/**
|
|
274
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
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.
|
|
276
|
+
*
|
|
277
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
278
|
+
* Contact: marketplaceapitest@amazon.com
|
|
279
|
+
*
|
|
280
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
281
|
+
* https://openapi-generator.tech
|
|
282
|
+
* Do not edit the class manually.
|
|
283
|
+
*/
|
|
284
|
+
/**
|
|
285
|
+
* Information for tracking a return.
|
|
286
|
+
*/
|
|
287
|
+
interface TrackingInfo {
|
|
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;
|
|
296
|
+
}
|
|
297
|
+
//#endregion
|
|
298
|
+
//#region src/api-model/models/replanning-details.d.ts
|
|
299
|
+
/**
|
|
300
|
+
* Provides details about the replanned returns.
|
|
301
|
+
*/
|
|
302
|
+
interface ReplanningDetails {
|
|
303
|
+
/**
|
|
304
|
+
* A list of all the previous tracking information for the return.
|
|
305
|
+
*/
|
|
306
|
+
'previousTrackingInfo'?: Array<TrackingInfo>;
|
|
307
|
+
}
|
|
308
|
+
//#endregion
|
|
309
|
+
//#region src/api-model/models/return-metadata.d.ts
|
|
310
|
+
/**
|
|
311
|
+
* Metadata about the return item.
|
|
312
|
+
*/
|
|
313
|
+
interface ReturnMetadata {
|
|
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;
|
|
327
|
+
}
|
|
328
|
+
//#endregion
|
|
329
|
+
//#region src/api-model/models/return-shipping-info.d.ts
|
|
330
|
+
/**
|
|
331
|
+
* Information about the shipping of the return packages.
|
|
332
|
+
*/
|
|
333
|
+
interface ReturnShippingInfo {
|
|
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;
|
|
344
|
+
}
|
|
345
|
+
//#endregion
|
|
346
|
+
//#region src/api-model/models/return.d.ts
|
|
347
|
+
/**
|
|
348
|
+
* Information about the return item.
|
|
349
|
+
*/
|
|
350
|
+
interface Return {
|
|
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;
|
|
400
|
+
}
|
|
401
|
+
declare const ReturnReturnTypeEnum: {
|
|
402
|
+
readonly Customer: "CUSTOMER";
|
|
403
|
+
readonly Reject: "REJECT";
|
|
404
|
+
};
|
|
405
|
+
type ReturnReturnTypeEnum = typeof ReturnReturnTypeEnum[keyof typeof ReturnReturnTypeEnum];
|
|
406
|
+
declare const ReturnReturnSubTypeEnum: {
|
|
407
|
+
readonly Normal: "NORMAL";
|
|
408
|
+
readonly Replacement: "REPLACEMENT";
|
|
409
|
+
readonly Exchange: "EXCHANGE";
|
|
410
|
+
};
|
|
411
|
+
type ReturnReturnSubTypeEnum = typeof ReturnReturnSubTypeEnum[keyof typeof ReturnReturnSubTypeEnum];
|
|
412
|
+
declare const ReturnStatusEnum: {
|
|
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";
|
|
428
|
+
};
|
|
429
|
+
type ReturnStatusEnum = typeof ReturnStatusEnum[keyof typeof ReturnStatusEnum];
|
|
430
|
+
declare const ReturnPackageDeliveryModeEnum: {
|
|
431
|
+
readonly WithOtp: "WITH_OTP";
|
|
432
|
+
readonly WithoutOtp: "WITHOUT_OTP";
|
|
433
|
+
};
|
|
434
|
+
type ReturnPackageDeliveryModeEnum = typeof ReturnPackageDeliveryModeEnum[keyof typeof ReturnPackageDeliveryModeEnum];
|
|
435
|
+
//#endregion
|
|
436
|
+
//#region src/api-model/models/returns-response.d.ts
|
|
437
|
+
/**
|
|
438
|
+
* The response to the `listReturns` operation.
|
|
439
|
+
*/
|
|
440
|
+
interface ReturnsResponse {
|
|
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;
|
|
449
|
+
}
|
|
450
|
+
//#endregion
|
|
451
|
+
//#region src/api-model/api/external-fulfillment-returns-api.d.ts
|
|
452
|
+
/**
|
|
453
|
+
* ExternalFulfillmentReturnsApi - axios parameter creator
|
|
454
|
+
*/
|
|
455
|
+
declare const ExternalFulfillmentReturnsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
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>;
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* ExternalFulfillmentReturnsApi - functional programming interface
|
|
484
|
+
*/
|
|
485
|
+
declare const ExternalFulfillmentReturnsApiFp: (configuration?: Configuration) => {
|
|
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>>;
|
|
511
|
+
};
|
|
512
|
+
/**
|
|
513
|
+
* ExternalFulfillmentReturnsApi - factory interface
|
|
514
|
+
*/
|
|
515
|
+
declare const ExternalFulfillmentReturnsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
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>;
|
|
530
|
+
};
|
|
531
|
+
/**
|
|
532
|
+
* Request parameters for getReturn operation in ExternalFulfillmentReturnsApi.
|
|
533
|
+
*/
|
|
534
|
+
interface ExternalFulfillmentReturnsApiGetReturnRequest {
|
|
535
|
+
/**
|
|
536
|
+
* The ID of the return item you want.
|
|
537
|
+
*/
|
|
538
|
+
readonly returnId: string;
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* Request parameters for listReturns operation in ExternalFulfillmentReturnsApi.
|
|
542
|
+
*/
|
|
543
|
+
interface ExternalFulfillmentReturnsApiListReturnsRequest {
|
|
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;
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* ExternalFulfillmentReturnsApi - object-oriented interface
|
|
595
|
+
*/
|
|
596
|
+
declare class ExternalFulfillmentReturnsApi extends BaseAPI {
|
|
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, {}>>;
|
|
611
|
+
}
|
|
612
|
+
declare const ListReturnsStatusEnum: {
|
|
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";
|
|
628
|
+
};
|
|
629
|
+
type ListReturnsStatusEnum = typeof ListReturnsStatusEnum[keyof typeof ListReturnsStatusEnum];
|
|
630
|
+
//#endregion
|
|
631
|
+
//#region src/client.d.ts
|
|
632
|
+
declare const clientRateLimits: RateLimit[];
|
|
633
|
+
declare class ExternalFulfillmentReturnsApiClient extends ExternalFulfillmentReturnsApi {
|
|
634
|
+
constructor(configuration: ClientConfiguration);
|
|
635
|
+
}
|
|
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
|