@sp-api-sdk/external-fulfillment-returns-api-2024-09-11 1.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/LICENSE +21 -0
- package/README.md +99 -0
- package/dist/cjs/api-model/api/external-fulfillment-returns-api.js +257 -0
- package/dist/cjs/api-model/api.js +30 -0
- package/dist/cjs/api-model/base.js +52 -0
- package/dist/cjs/api-model/common.js +108 -0
- package/dist/cjs/api-model/configuration.js +87 -0
- package/dist/cjs/api-model/index.js +32 -0
- package/dist/cjs/api-model/models/error-list.js +15 -0
- package/dist/cjs/api-model/models/index.js +28 -0
- package/dist/cjs/api-model/models/invoice-information.js +15 -0
- package/dist/cjs/api-model/models/marketplace-channel-details.js +15 -0
- package/dist/cjs/api-model/models/marketplace-channel.js +15 -0
- package/dist/cjs/api-model/models/model-error.js +15 -0
- package/dist/cjs/api-model/models/otp-details.js +15 -0
- package/dist/cjs/api-model/models/replanning-details.js +15 -0
- package/dist/cjs/api-model/models/return-metadata.js +15 -0
- package/dist/cjs/api-model/models/return-shipping-info.js +15 -0
- package/dist/cjs/api-model/models/return.js +46 -0
- package/dist/cjs/api-model/models/returns-response.js +15 -0
- package/dist/cjs/api-model/models/tracking-info.js +15 -0
- package/dist/cjs/client.js +13 -0
- package/dist/cjs/index.js +19 -0
- package/dist/es/api-model/api/external-fulfillment-returns-api.js +247 -0
- package/dist/es/api-model/api.js +14 -0
- package/dist/es/api-model/base.js +44 -0
- package/dist/es/api-model/common.js +96 -0
- package/dist/es/api-model/configuration.js +83 -0
- package/dist/es/api-model/index.js +16 -0
- package/dist/es/api-model/models/error-list.js +14 -0
- package/dist/es/api-model/models/index.js +12 -0
- package/dist/es/api-model/models/invoice-information.js +14 -0
- package/dist/es/api-model/models/marketplace-channel-details.js +14 -0
- package/dist/es/api-model/models/marketplace-channel.js +14 -0
- package/dist/es/api-model/models/model-error.js +14 -0
- package/dist/es/api-model/models/otp-details.js +14 -0
- package/dist/es/api-model/models/replanning-details.js +14 -0
- package/dist/es/api-model/models/return-metadata.js +14 -0
- package/dist/es/api-model/models/return-shipping-info.js +14 -0
- package/dist/es/api-model/models/return.js +43 -0
- package/dist/es/api-model/models/returns-response.js +14 -0
- package/dist/es/api-model/models/tracking-info.js +14 -0
- package/dist/es/client.js +9 -0
- package/dist/es/index.js +3 -0
- package/dist/types/api-model/api/external-fulfillment-returns-api.d.ts +195 -0
- package/dist/types/api-model/api.d.ts +12 -0
- package/dist/types/api-model/base.d.ts +42 -0
- package/dist/types/api-model/common.d.ts +28 -0
- package/dist/types/api-model/configuration.d.ts +74 -0
- package/dist/types/api-model/index.d.ts +14 -0
- package/dist/types/api-model/models/error-list.d.ts +20 -0
- package/dist/types/api-model/models/index.d.ts +12 -0
- package/dist/types/api-model/models/invoice-information.d.ts +20 -0
- package/dist/types/api-model/models/marketplace-channel-details.d.ts +42 -0
- package/dist/types/api-model/models/marketplace-channel.d.ts +24 -0
- package/dist/types/api-model/models/model-error.d.ts +28 -0
- package/dist/types/api-model/models/otp-details.d.ts +24 -0
- package/dist/types/api-model/models/replanning-details.d.ts +21 -0
- package/dist/types/api-model/models/return-metadata.d.ts +30 -0
- package/dist/types/api-model/models/return-shipping-info.d.ts +27 -0
- package/dist/types/api-model/models/return.d.ts +104 -0
- package/dist/types/api-model/models/returns-response.d.ts +25 -0
- package/dist/types/api-model/models/tracking-info.d.ts +24 -0
- package/dist/types/client.d.ts +6 -0
- package/dist/types/index.d.ts +3 -0
- package/package.json +44 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
8
|
+
* Contact: marketplaceapitest@amazon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { RequiredError } from "./base";
|
|
15
|
+
export const DUMMY_BASE_URL = 'https://example.com';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @throws {RequiredError}
|
|
19
|
+
*/
|
|
20
|
+
export const assertParamExists = function (functionName, paramName, paramValue) {
|
|
21
|
+
if (paramValue === null || paramValue === undefined) {
|
|
22
|
+
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
26
|
+
if (configuration && configuration.apiKey) {
|
|
27
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
28
|
+
? await configuration.apiKey(keyParamName)
|
|
29
|
+
: await configuration.apiKey;
|
|
30
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export const setBasicAuthToObject = function (object, configuration) {
|
|
34
|
+
if (configuration && (configuration.username || configuration.password)) {
|
|
35
|
+
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export const setBearerAuthToObject = async function (object, configuration) {
|
|
39
|
+
if (configuration && configuration.accessToken) {
|
|
40
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
41
|
+
? await configuration.accessToken()
|
|
42
|
+
: await configuration.accessToken;
|
|
43
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
47
|
+
if (configuration && configuration.accessToken) {
|
|
48
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
49
|
+
? await configuration.accessToken(name, scopes)
|
|
50
|
+
: await configuration.accessToken;
|
|
51
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
55
|
+
if (parameter == null)
|
|
56
|
+
return;
|
|
57
|
+
if (typeof parameter === "object") {
|
|
58
|
+
if (Array.isArray(parameter)) {
|
|
59
|
+
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
if (urlSearchParams.has(key)) {
|
|
67
|
+
urlSearchParams.append(key, parameter);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
urlSearchParams.set(key, parameter);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export const setSearchParams = function (url, ...objects) {
|
|
75
|
+
const searchParams = new URLSearchParams(url.search);
|
|
76
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
77
|
+
url.search = searchParams.toString();
|
|
78
|
+
};
|
|
79
|
+
export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
80
|
+
const nonString = typeof value !== 'string';
|
|
81
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
82
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
83
|
+
: nonString;
|
|
84
|
+
return needsSerialization
|
|
85
|
+
? JSON.stringify(value !== undefined ? value : {})
|
|
86
|
+
: (value || "");
|
|
87
|
+
};
|
|
88
|
+
export const toPathString = function (url) {
|
|
89
|
+
return url.pathname + url.search + url.hash;
|
|
90
|
+
};
|
|
91
|
+
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
92
|
+
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
93
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
94
|
+
return axios.request(axiosRequestArgs);
|
|
95
|
+
};
|
|
96
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
8
|
+
* Contact: marketplaceapitest@amazon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export class Configuration {
|
|
15
|
+
/**
|
|
16
|
+
* parameter for apiKey security
|
|
17
|
+
* @param name security name
|
|
18
|
+
*/
|
|
19
|
+
apiKey;
|
|
20
|
+
/**
|
|
21
|
+
* parameter for basic security
|
|
22
|
+
*/
|
|
23
|
+
username;
|
|
24
|
+
/**
|
|
25
|
+
* parameter for basic security
|
|
26
|
+
*/
|
|
27
|
+
password;
|
|
28
|
+
/**
|
|
29
|
+
* parameter for oauth2 security
|
|
30
|
+
* @param name security name
|
|
31
|
+
* @param scopes oauth2 scope
|
|
32
|
+
*/
|
|
33
|
+
accessToken;
|
|
34
|
+
/**
|
|
35
|
+
* override base path
|
|
36
|
+
*/
|
|
37
|
+
basePath;
|
|
38
|
+
/**
|
|
39
|
+
* override server index
|
|
40
|
+
*/
|
|
41
|
+
serverIndex;
|
|
42
|
+
/**
|
|
43
|
+
* base options for axios calls
|
|
44
|
+
*/
|
|
45
|
+
baseOptions;
|
|
46
|
+
/**
|
|
47
|
+
* The FormData constructor that will be used to create multipart form data
|
|
48
|
+
* requests. You can inject this here so that execution environments that
|
|
49
|
+
* do not support the FormData class can still run the generated client.
|
|
50
|
+
*
|
|
51
|
+
* @type {new () => FormData}
|
|
52
|
+
*/
|
|
53
|
+
formDataCtor;
|
|
54
|
+
constructor(param = {}) {
|
|
55
|
+
this.apiKey = param.apiKey;
|
|
56
|
+
this.username = param.username;
|
|
57
|
+
this.password = param.password;
|
|
58
|
+
this.accessToken = param.accessToken;
|
|
59
|
+
this.basePath = param.basePath;
|
|
60
|
+
this.serverIndex = param.serverIndex;
|
|
61
|
+
this.baseOptions = {
|
|
62
|
+
...param.baseOptions,
|
|
63
|
+
headers: {
|
|
64
|
+
...param.baseOptions?.headers,
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
this.formDataCtor = param.formDataCtor;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Check if the given MIME is a JSON MIME.
|
|
71
|
+
* JSON MIME examples:
|
|
72
|
+
* application/json
|
|
73
|
+
* application/json; charset=UTF8
|
|
74
|
+
* APPLICATION/JSON
|
|
75
|
+
* application/vnd.company+json
|
|
76
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
77
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
78
|
+
*/
|
|
79
|
+
isJsonMime(mime) {
|
|
80
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
81
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
8
|
+
* Contact: marketplaceapitest@amazon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export * from "./api";
|
|
15
|
+
export * from "./configuration";
|
|
16
|
+
export * from "./models";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
8
|
+
* Contact: marketplaceapitest@amazon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './error-list';
|
|
2
|
+
export * from './invoice-information';
|
|
3
|
+
export * from './marketplace-channel';
|
|
4
|
+
export * from './marketplace-channel-details';
|
|
5
|
+
export * from './model-error';
|
|
6
|
+
export * from './otp-details';
|
|
7
|
+
export * from './replanning-details';
|
|
8
|
+
export * from './return';
|
|
9
|
+
export * from './return-metadata';
|
|
10
|
+
export * from './return-shipping-info';
|
|
11
|
+
export * from './returns-response';
|
|
12
|
+
export * from './tracking-info';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
8
|
+
* Contact: marketplaceapitest@amazon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
8
|
+
* Contact: marketplaceapitest@amazon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
8
|
+
* Contact: marketplaceapitest@amazon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
8
|
+
* Contact: marketplaceapitest@amazon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
8
|
+
* Contact: marketplaceapitest@amazon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
8
|
+
* Contact: marketplaceapitest@amazon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
8
|
+
* Contact: marketplaceapitest@amazon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
8
|
+
* Contact: marketplaceapitest@amazon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
8
|
+
* Contact: marketplaceapitest@amazon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export const ReturnReturnTypeEnum = {
|
|
15
|
+
Customer: 'CUSTOMER',
|
|
16
|
+
Reject: 'REJECT'
|
|
17
|
+
};
|
|
18
|
+
export const ReturnReturnSubTypeEnum = {
|
|
19
|
+
Normal: 'NORMAL',
|
|
20
|
+
Replacement: 'REPLACEMENT',
|
|
21
|
+
Exchange: 'EXCHANGE'
|
|
22
|
+
};
|
|
23
|
+
export const ReturnStatusEnum = {
|
|
24
|
+
Created: 'CREATED',
|
|
25
|
+
CarrierNotifiedToPickUpFromCustomer: 'CARRIER_NOTIFIED_TO_PICK_UP_FROM_CUSTOMER',
|
|
26
|
+
CarrierOutForPickUpFromCustomer: 'CARRIER_OUT_FOR_PICK_UP_FROM_CUSTOMER',
|
|
27
|
+
CustomerCancelledPickUp: 'CUSTOMER_CANCELLED_PICK_UP',
|
|
28
|
+
CustomerRescheduledPickUp: 'CUSTOMER_RESCHEDULED_PICK_UP',
|
|
29
|
+
PickedFromCustomer: 'PICKED_FROM_CUSTOMER',
|
|
30
|
+
InTransit: 'IN_TRANSIT',
|
|
31
|
+
OutForDelivery: 'OUT_FOR_DELIVERY',
|
|
32
|
+
Delivered: 'DELIVERED',
|
|
33
|
+
Replanned: 'REPLANNED',
|
|
34
|
+
CustomerDroppedOff: 'CUSTOMER_DROPPED_OFF',
|
|
35
|
+
PartiallyProcessed: 'PARTIALLY_PROCESSED',
|
|
36
|
+
Processed: 'PROCESSED',
|
|
37
|
+
Rejected: 'REJECTED',
|
|
38
|
+
Cancelled: 'CANCELLED'
|
|
39
|
+
};
|
|
40
|
+
export const ReturnPackageDeliveryModeEnum = {
|
|
41
|
+
WithOtp: 'WITH_OTP',
|
|
42
|
+
WithoutOtp: 'WITHOUT_OTP'
|
|
43
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
8
|
+
* Contact: marketplaceapitest@amazon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
8
|
+
* Contact: marketplaceapitest@amazon.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createAxiosInstance } from '@sp-api-sdk/common';
|
|
2
|
+
import { Configuration, ExternalFulfillmentReturnsApi } from './api-model';
|
|
3
|
+
export const clientRateLimits = [];
|
|
4
|
+
export class ExternalFulfillmentReturnsApiClient extends ExternalFulfillmentReturnsApi {
|
|
5
|
+
constructor(configuration) {
|
|
6
|
+
const { axios, endpoint } = createAxiosInstance(configuration, clientRateLimits);
|
|
7
|
+
super(new Configuration(), endpoint, axios);
|
|
8
|
+
}
|
|
9
|
+
}
|
package/dist/es/index.js
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
6
|
+
* Contact: marketplaceapitest@amazon.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import globalAxios from 'axios';
|
|
15
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
16
|
+
import type { Return } from '../models';
|
|
17
|
+
import type { ReturnsResponse } from '../models';
|
|
18
|
+
/**
|
|
19
|
+
* ExternalFulfillmentReturnsApi - axios parameter creator
|
|
20
|
+
*/
|
|
21
|
+
export declare const ExternalFulfillmentReturnsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve the return item with the specified ID.
|
|
24
|
+
* @param {string} returnId The ID of the return item you want.
|
|
25
|
+
* @param {*} [options] Override http request option.
|
|
26
|
+
* @throws {RequiredError}
|
|
27
|
+
*/
|
|
28
|
+
getReturn: (returnId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
+
/**
|
|
30
|
+
* Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
|
|
31
|
+
* @param {string} [returnLocationId] The SmartConnect location ID of the location from which you want to retrieve return items.
|
|
32
|
+
* @param {string} [rmaId] The RMA ID of the return items you want to list.
|
|
33
|
+
* @param {ListReturnsStatusEnum} [status] The status of return items you want to list. You can retrieve all new return items with the `CREATED` status.
|
|
34
|
+
* @param {string} [reverseTrackingId] The reverse tracking ID of the return items you want to list.
|
|
35
|
+
* @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.
|
|
36
|
+
* @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.
|
|
37
|
+
* @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`.
|
|
38
|
+
* @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`.
|
|
39
|
+
* @param {string} [lastUpdatedAfter] DEPRECATED. Use the `createdSince` parameter.
|
|
40
|
+
* @param {string} [lastUpdatedBefore] DEPRECATED. Use the `createdUntil` parameter.
|
|
41
|
+
* @param {number} [maxResults] The number of return items you want to include in the response. **Default:** 10 **Maximum:** 100
|
|
42
|
+
* @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.
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
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>;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* ExternalFulfillmentReturnsApi - functional programming interface
|
|
50
|
+
*/
|
|
51
|
+
export declare const ExternalFulfillmentReturnsApiFp: (configuration?: Configuration) => {
|
|
52
|
+
/**
|
|
53
|
+
* Retrieve the return item with the specified ID.
|
|
54
|
+
* @param {string} returnId The ID of the return item you want.
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
getReturn(returnId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Return>>;
|
|
59
|
+
/**
|
|
60
|
+
* Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
|
|
61
|
+
* @param {string} [returnLocationId] The SmartConnect location ID of the location from which you want to retrieve return items.
|
|
62
|
+
* @param {string} [rmaId] The RMA ID of the return items you want to list.
|
|
63
|
+
* @param {ListReturnsStatusEnum} [status] The status of return items you want to list. You can retrieve all new return items with the `CREATED` status.
|
|
64
|
+
* @param {string} [reverseTrackingId] The reverse tracking ID of the return items you want to list.
|
|
65
|
+
* @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.
|
|
66
|
+
* @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.
|
|
67
|
+
* @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`.
|
|
68
|
+
* @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`.
|
|
69
|
+
* @param {string} [lastUpdatedAfter] DEPRECATED. Use the `createdSince` parameter.
|
|
70
|
+
* @param {string} [lastUpdatedBefore] DEPRECATED. Use the `createdUntil` parameter.
|
|
71
|
+
* @param {number} [maxResults] The number of return items you want to include in the response. **Default:** 10 **Maximum:** 100
|
|
72
|
+
* @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.
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
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>>;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* ExternalFulfillmentReturnsApi - factory interface
|
|
80
|
+
*/
|
|
81
|
+
export declare const ExternalFulfillmentReturnsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
82
|
+
/**
|
|
83
|
+
* Retrieve the return item with the specified ID.
|
|
84
|
+
* @param {ExternalFulfillmentReturnsApiGetReturnRequest} requestParameters Request parameters.
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
*/
|
|
88
|
+
getReturn(requestParameters: ExternalFulfillmentReturnsApiGetReturnRequest, options?: RawAxiosRequestConfig): AxiosPromise<Return>;
|
|
89
|
+
/**
|
|
90
|
+
* Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
|
|
91
|
+
* @param {ExternalFulfillmentReturnsApiListReturnsRequest} requestParameters Request parameters.
|
|
92
|
+
* @param {*} [options] Override http request option.
|
|
93
|
+
* @throws {RequiredError}
|
|
94
|
+
*/
|
|
95
|
+
listReturns(requestParameters?: ExternalFulfillmentReturnsApiListReturnsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReturnsResponse>;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Request parameters for getReturn operation in ExternalFulfillmentReturnsApi.
|
|
99
|
+
*/
|
|
100
|
+
export interface ExternalFulfillmentReturnsApiGetReturnRequest {
|
|
101
|
+
/**
|
|
102
|
+
* The ID of the return item you want.
|
|
103
|
+
*/
|
|
104
|
+
readonly returnId: string;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Request parameters for listReturns operation in ExternalFulfillmentReturnsApi.
|
|
108
|
+
*/
|
|
109
|
+
export interface ExternalFulfillmentReturnsApiListReturnsRequest {
|
|
110
|
+
/**
|
|
111
|
+
* The SmartConnect location ID of the location from which you want to retrieve return items.
|
|
112
|
+
*/
|
|
113
|
+
readonly returnLocationId?: string;
|
|
114
|
+
/**
|
|
115
|
+
* The RMA ID of the return items you want to list.
|
|
116
|
+
*/
|
|
117
|
+
readonly rmaId?: string;
|
|
118
|
+
/**
|
|
119
|
+
* The status of return items you want to list. You can retrieve all new return items with the `CREATED` status.
|
|
120
|
+
*/
|
|
121
|
+
readonly status?: ListReturnsStatusEnum;
|
|
122
|
+
/**
|
|
123
|
+
* The reverse tracking ID of the return items you want to list.
|
|
124
|
+
*/
|
|
125
|
+
readonly reverseTrackingId?: string;
|
|
126
|
+
/**
|
|
127
|
+
* 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.
|
|
128
|
+
*/
|
|
129
|
+
readonly createdSince?: string;
|
|
130
|
+
/**
|
|
131
|
+
* 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.
|
|
132
|
+
*/
|
|
133
|
+
readonly createdUntil?: string;
|
|
134
|
+
/**
|
|
135
|
+
* 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`.
|
|
136
|
+
*/
|
|
137
|
+
readonly lastUpdatedSince?: string;
|
|
138
|
+
/**
|
|
139
|
+
* 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`.
|
|
140
|
+
*/
|
|
141
|
+
readonly lastUpdatedUntil?: string;
|
|
142
|
+
/**
|
|
143
|
+
* DEPRECATED. Use the `createdSince` parameter.
|
|
144
|
+
*/
|
|
145
|
+
readonly lastUpdatedAfter?: string;
|
|
146
|
+
/**
|
|
147
|
+
* DEPRECATED. Use the `createdUntil` parameter.
|
|
148
|
+
*/
|
|
149
|
+
readonly lastUpdatedBefore?: string;
|
|
150
|
+
/**
|
|
151
|
+
* The number of return items you want to include in the response. **Default:** 10 **Maximum:** 100
|
|
152
|
+
*/
|
|
153
|
+
readonly maxResults?: number;
|
|
154
|
+
/**
|
|
155
|
+
* 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.
|
|
156
|
+
*/
|
|
157
|
+
readonly nextToken?: string;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* ExternalFulfillmentReturnsApi - object-oriented interface
|
|
161
|
+
*/
|
|
162
|
+
export declare class ExternalFulfillmentReturnsApi extends BaseAPI {
|
|
163
|
+
/**
|
|
164
|
+
* Retrieve the return item with the specified ID.
|
|
165
|
+
* @param {ExternalFulfillmentReturnsApiGetReturnRequest} requestParameters Request parameters.
|
|
166
|
+
* @param {*} [options] Override http request option.
|
|
167
|
+
* @throws {RequiredError}
|
|
168
|
+
*/
|
|
169
|
+
getReturn(requestParameters: ExternalFulfillmentReturnsApiGetReturnRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<Return, any, {}>>;
|
|
170
|
+
/**
|
|
171
|
+
* Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
|
|
172
|
+
* @param {ExternalFulfillmentReturnsApiListReturnsRequest} requestParameters Request parameters.
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
*/
|
|
176
|
+
listReturns(requestParameters?: ExternalFulfillmentReturnsApiListReturnsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<ReturnsResponse, any, {}>>;
|
|
177
|
+
}
|
|
178
|
+
export declare const ListReturnsStatusEnum: {
|
|
179
|
+
readonly Created: "CREATED";
|
|
180
|
+
readonly CarrierNotifiedToPickUpFromCustomer: "CARRIER_NOTIFIED_TO_PICK_UP_FROM_CUSTOMER";
|
|
181
|
+
readonly CarrierOutForPickUpFromCustomer: "CARRIER_OUT_FOR_PICK_UP_FROM_CUSTOMER";
|
|
182
|
+
readonly CustomerCancelledPickUp: "CUSTOMER_CANCELLED_PICK_UP";
|
|
183
|
+
readonly CustomerRescheduledPickUp: "CUSTOMER_RESCHEDULED_PICK_UP";
|
|
184
|
+
readonly PickedFromCustomer: "PICKED_FROM_CUSTOMER";
|
|
185
|
+
readonly InTransit: "IN_TRANSIT";
|
|
186
|
+
readonly OutForDelivery: "OUT_FOR_DELIVERY";
|
|
187
|
+
readonly Delivered: "DELIVERED";
|
|
188
|
+
readonly Replanned: "REPLANNED";
|
|
189
|
+
readonly CustomerDroppedOff: "CUSTOMER_DROPPED_OFF";
|
|
190
|
+
readonly PartiallyProcessed: "PARTIALLY_PROCESSED";
|
|
191
|
+
readonly Processed: "PROCESSED";
|
|
192
|
+
readonly Rejected: "REJECTED";
|
|
193
|
+
readonly Cancelled: "CANCELLED";
|
|
194
|
+
};
|
|
195
|
+
export type ListReturnsStatusEnum = typeof ListReturnsStatusEnum[keyof typeof ListReturnsStatusEnum];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Selling Partner API for Amazon External Fulfillment Return Item Processing
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024-09-11
|
|
6
|
+
* Contact: marketplaceapitest@amazon.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export * from './api/external-fulfillment-returns-api';
|