@sp-api-sdk/external-fulfillment-shipments-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.
Files changed (201) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +99 -0
  3. package/dist/cjs/api-model/api/external-fulfillment-shipments-api.js +766 -0
  4. package/dist/cjs/api-model/api.js +30 -0
  5. package/dist/cjs/api-model/base.js +52 -0
  6. package/dist/cjs/api-model/common.js +108 -0
  7. package/dist/cjs/api-model/configuration.js +87 -0
  8. package/dist/cjs/api-model/index.js +32 -0
  9. package/dist/cjs/api-model/models/address.js +15 -0
  10. package/dist/cjs/api-model/models/amount.js +15 -0
  11. package/dist/cjs/api-model/models/cancellation.js +21 -0
  12. package/dist/cjs/api-model/models/charge-breakup.js +15 -0
  13. package/dist/cjs/api-model/models/charge.js +23 -0
  14. package/dist/cjs/api-model/models/compliance-attributes.js +15 -0
  15. package/dist/cjs/api-model/models/courier-supported-attributes.js +15 -0
  16. package/dist/cjs/api-model/models/custom-attribute-type.js +26 -0
  17. package/dist/cjs/api-model/models/custom-attribute.js +15 -0
  18. package/dist/cjs/api-model/models/dimension.js +20 -0
  19. package/dist/cjs/api-model/models/document-v2.js +15 -0
  20. package/dist/cjs/api-model/models/document.js +22 -0
  21. package/dist/cjs/api-model/models/error-list.js +15 -0
  22. package/dist/cjs/api-model/models/gift-attributes.js +15 -0
  23. package/dist/cjs/api-model/models/index.js +73 -0
  24. package/dist/cjs/api-model/models/invoice-info.js +15 -0
  25. package/dist/cjs/api-model/models/invoice-requirement.js +25 -0
  26. package/dist/cjs/api-model/models/invoice-response.js +15 -0
  27. package/dist/cjs/api-model/models/line-item-with-reason.js +20 -0
  28. package/dist/cjs/api-model/models/line-item.js +15 -0
  29. package/dist/cjs/api-model/models/marketplace-attributes.js +20 -0
  30. package/dist/cjs/api-model/models/model-error.js +15 -0
  31. package/dist/cjs/api-model/models/original-line-item.js +15 -0
  32. package/dist/cjs/api-model/models/package-delivery-status.js +15 -0
  33. package/dist/cjs/api-model/models/package-dimensions.js +15 -0
  34. package/dist/cjs/api-model/models/package-line-item.js +15 -0
  35. package/dist/cjs/api-model/models/package-ship-label.js +15 -0
  36. package/dist/cjs/api-model/models/package-status.js +27 -0
  37. package/dist/cjs/api-model/models/package-sub-status.js +25 -0
  38. package/dist/cjs/api-model/models/package.js +29 -0
  39. package/dist/cjs/api-model/models/packages.js +15 -0
  40. package/dist/cjs/api-model/models/packing-slip-requirement.js +24 -0
  41. package/dist/cjs/api-model/models/pagination.js +15 -0
  42. package/dist/cjs/api-model/models/party-identification-info.js +22 -0
  43. package/dist/cjs/api-model/models/piece-type.js +23 -0
  44. package/dist/cjs/api-model/models/presence-status.js +23 -0
  45. package/dist/cjs/api-model/models/priority.js +23 -0
  46. package/dist/cjs/api-model/models/recommended-package-line-item.js +15 -0
  47. package/dist/cjs/api-model/models/recommended-package.js +15 -0
  48. package/dist/cjs/api-model/models/replaced-shipment-info.js +15 -0
  49. package/dist/cjs/api-model/models/requirement-level.js +23 -0
  50. package/dist/cjs/api-model/models/ship-label-metadata.js +15 -0
  51. package/dist/cjs/api-model/models/ship-labels-input.js +15 -0
  52. package/dist/cjs/api-model/models/ship-labels-response.js +15 -0
  53. package/dist/cjs/api-model/models/shipment-acknowledgement-request.js +15 -0
  54. package/dist/cjs/api-model/models/shipment-info.js +25 -0
  55. package/dist/cjs/api-model/models/shipment-line-item.js +15 -0
  56. package/dist/cjs/api-model/models/shipment-requirements.js +15 -0
  57. package/dist/cjs/api-model/models/shipment.js +44 -0
  58. package/dist/cjs/api-model/models/shipments-response.js +15 -0
  59. package/dist/cjs/api-model/models/shipping-info.js +20 -0
  60. package/dist/cjs/api-model/models/shipping-options-response.js +15 -0
  61. package/dist/cjs/api-model/models/shipping-options.js +22 -0
  62. package/dist/cjs/api-model/models/status.js +23 -0
  63. package/dist/cjs/api-model/models/tax-registration-info.js +20 -0
  64. package/dist/cjs/api-model/models/tax.js +27 -0
  65. package/dist/cjs/api-model/models/time-window.js +20 -0
  66. package/dist/cjs/api-model/models/weight.js +20 -0
  67. package/dist/cjs/client.js +13 -0
  68. package/dist/cjs/index.js +19 -0
  69. package/dist/es/api-model/api/external-fulfillment-shipments-api.js +756 -0
  70. package/dist/es/api-model/api.js +14 -0
  71. package/dist/es/api-model/base.js +44 -0
  72. package/dist/es/api-model/common.js +96 -0
  73. package/dist/es/api-model/configuration.js +83 -0
  74. package/dist/es/api-model/index.js +16 -0
  75. package/dist/es/api-model/models/address.js +14 -0
  76. package/dist/es/api-model/models/amount.js +14 -0
  77. package/dist/es/api-model/models/cancellation.js +18 -0
  78. package/dist/es/api-model/models/charge-breakup.js +14 -0
  79. package/dist/es/api-model/models/charge.js +20 -0
  80. package/dist/es/api-model/models/compliance-attributes.js +14 -0
  81. package/dist/es/api-model/models/courier-supported-attributes.js +14 -0
  82. package/dist/es/api-model/models/custom-attribute-type.js +23 -0
  83. package/dist/es/api-model/models/custom-attribute.js +14 -0
  84. package/dist/es/api-model/models/dimension.js +17 -0
  85. package/dist/es/api-model/models/document-v2.js +14 -0
  86. package/dist/es/api-model/models/document.js +19 -0
  87. package/dist/es/api-model/models/error-list.js +14 -0
  88. package/dist/es/api-model/models/gift-attributes.js +14 -0
  89. package/dist/es/api-model/models/index.js +57 -0
  90. package/dist/es/api-model/models/invoice-info.js +14 -0
  91. package/dist/es/api-model/models/invoice-requirement.js +22 -0
  92. package/dist/es/api-model/models/invoice-response.js +14 -0
  93. package/dist/es/api-model/models/line-item-with-reason.js +17 -0
  94. package/dist/es/api-model/models/line-item.js +14 -0
  95. package/dist/es/api-model/models/marketplace-attributes.js +17 -0
  96. package/dist/es/api-model/models/model-error.js +14 -0
  97. package/dist/es/api-model/models/original-line-item.js +14 -0
  98. package/dist/es/api-model/models/package-delivery-status.js +14 -0
  99. package/dist/es/api-model/models/package-dimensions.js +14 -0
  100. package/dist/es/api-model/models/package-line-item.js +14 -0
  101. package/dist/es/api-model/models/package-ship-label.js +14 -0
  102. package/dist/es/api-model/models/package-status.js +24 -0
  103. package/dist/es/api-model/models/package-sub-status.js +22 -0
  104. package/dist/es/api-model/models/package.js +26 -0
  105. package/dist/es/api-model/models/packages.js +14 -0
  106. package/dist/es/api-model/models/packing-slip-requirement.js +21 -0
  107. package/dist/es/api-model/models/pagination.js +14 -0
  108. package/dist/es/api-model/models/party-identification-info.js +19 -0
  109. package/dist/es/api-model/models/piece-type.js +20 -0
  110. package/dist/es/api-model/models/presence-status.js +20 -0
  111. package/dist/es/api-model/models/priority.js +20 -0
  112. package/dist/es/api-model/models/recommended-package-line-item.js +14 -0
  113. package/dist/es/api-model/models/recommended-package.js +14 -0
  114. package/dist/es/api-model/models/replaced-shipment-info.js +14 -0
  115. package/dist/es/api-model/models/requirement-level.js +20 -0
  116. package/dist/es/api-model/models/ship-label-metadata.js +14 -0
  117. package/dist/es/api-model/models/ship-labels-input.js +14 -0
  118. package/dist/es/api-model/models/ship-labels-response.js +14 -0
  119. package/dist/es/api-model/models/shipment-acknowledgement-request.js +14 -0
  120. package/dist/es/api-model/models/shipment-info.js +22 -0
  121. package/dist/es/api-model/models/shipment-line-item.js +14 -0
  122. package/dist/es/api-model/models/shipment-requirements.js +14 -0
  123. package/dist/es/api-model/models/shipment.js +41 -0
  124. package/dist/es/api-model/models/shipments-response.js +14 -0
  125. package/dist/es/api-model/models/shipping-info.js +17 -0
  126. package/dist/es/api-model/models/shipping-options-response.js +14 -0
  127. package/dist/es/api-model/models/shipping-options.js +19 -0
  128. package/dist/es/api-model/models/status.js +20 -0
  129. package/dist/es/api-model/models/tax-registration-info.js +17 -0
  130. package/dist/es/api-model/models/tax.js +24 -0
  131. package/dist/es/api-model/models/time-window.js +17 -0
  132. package/dist/es/api-model/models/weight.js +17 -0
  133. package/dist/es/client.js +9 -0
  134. package/dist/es/index.js +3 -0
  135. package/dist/types/api-model/api/external-fulfillment-shipments-api.d.ts +556 -0
  136. package/dist/types/api-model/api.d.ts +12 -0
  137. package/dist/types/api-model/base.d.ts +42 -0
  138. package/dist/types/api-model/common.d.ts +28 -0
  139. package/dist/types/api-model/configuration.d.ts +74 -0
  140. package/dist/types/api-model/index.d.ts +14 -0
  141. package/dist/types/api-model/models/address.d.ts +72 -0
  142. package/dist/types/api-model/models/amount.d.ts +24 -0
  143. package/dist/types/api-model/models/cancellation.d.ts +38 -0
  144. package/dist/types/api-model/models/charge-breakup.d.ts +20 -0
  145. package/dist/types/api-model/models/charge.d.ts +37 -0
  146. package/dist/types/api-model/models/compliance-attributes.d.ts +21 -0
  147. package/dist/types/api-model/models/courier-supported-attributes.d.ts +24 -0
  148. package/dist/types/api-model/models/custom-attribute-type.d.ts +22 -0
  149. package/dist/types/api-model/models/custom-attribute.d.ts +26 -0
  150. package/dist/types/api-model/models/dimension.d.ts +29 -0
  151. package/dist/types/api-model/models/document-v2.d.ts +20 -0
  152. package/dist/types/api-model/models/document.d.ts +31 -0
  153. package/dist/types/api-model/models/error-list.d.ts +20 -0
  154. package/dist/types/api-model/models/gift-attributes.d.ts +26 -0
  155. package/dist/types/api-model/models/index.d.ts +57 -0
  156. package/dist/types/api-model/models/invoice-info.d.ts +24 -0
  157. package/dist/types/api-model/models/invoice-requirement.d.ts +35 -0
  158. package/dist/types/api-model/models/invoice-response.d.ts +18 -0
  159. package/dist/types/api-model/models/line-item-with-reason.d.ts +27 -0
  160. package/dist/types/api-model/models/line-item.d.ts +24 -0
  161. package/dist/types/api-model/models/marketplace-attributes.d.ts +37 -0
  162. package/dist/types/api-model/models/model-error.d.ts +28 -0
  163. package/dist/types/api-model/models/original-line-item.d.ts +29 -0
  164. package/dist/types/api-model/models/package-delivery-status.d.ts +24 -0
  165. package/dist/types/api-model/models/package-dimensions.d.ts +20 -0
  166. package/dist/types/api-model/models/package-line-item.d.ts +38 -0
  167. package/dist/types/api-model/models/package-ship-label.d.ts +27 -0
  168. package/dist/types/api-model/models/package-status.d.ts +23 -0
  169. package/dist/types/api-model/models/package-sub-status.d.ts +21 -0
  170. package/dist/types/api-model/models/package.d.ts +56 -0
  171. package/dist/types/api-model/models/packages.d.ts +21 -0
  172. package/dist/types/api-model/models/packing-slip-requirement.d.ts +34 -0
  173. package/dist/types/api-model/models/pagination.d.ts +20 -0
  174. package/dist/types/api-model/models/party-identification-info.d.ts +35 -0
  175. package/dist/types/api-model/models/piece-type.d.ts +19 -0
  176. package/dist/types/api-model/models/presence-status.d.ts +19 -0
  177. package/dist/types/api-model/models/priority.d.ts +19 -0
  178. package/dist/types/api-model/models/recommended-package-line-item.d.ts +20 -0
  179. package/dist/types/api-model/models/recommended-package.d.ts +25 -0
  180. package/dist/types/api-model/models/replaced-shipment-info.d.ts +31 -0
  181. package/dist/types/api-model/models/requirement-level.d.ts +19 -0
  182. package/dist/types/api-model/models/ship-label-metadata.d.ts +31 -0
  183. package/dist/types/api-model/models/ship-labels-input.d.ts +22 -0
  184. package/dist/types/api-model/models/ship-labels-response.d.ts +21 -0
  185. package/dist/types/api-model/models/shipment-acknowledgement-request.d.ts +25 -0
  186. package/dist/types/api-model/models/shipment-info.d.ts +55 -0
  187. package/dist/types/api-model/models/shipment-line-item.d.ts +75 -0
  188. package/dist/types/api-model/models/shipment-requirements.d.ts +20 -0
  189. package/dist/types/api-model/models/shipment.d.ts +104 -0
  190. package/dist/types/api-model/models/shipments-response.d.ts +23 -0
  191. package/dist/types/api-model/models/shipping-info.d.ts +40 -0
  192. package/dist/types/api-model/models/shipping-options-response.d.ts +22 -0
  193. package/dist/types/api-model/models/shipping-options.d.ts +38 -0
  194. package/dist/types/api-model/models/status.d.ts +19 -0
  195. package/dist/types/api-model/models/tax-registration-info.d.ts +35 -0
  196. package/dist/types/api-model/models/tax.d.ts +38 -0
  197. package/dist/types/api-model/models/time-window.d.ts +33 -0
  198. package/dist/types/api-model/models/weight.d.ts +29 -0
  199. package/dist/types/client.d.ts +6 -0
  200. package/dist/types/index.d.ts +3 -0
  201. package/package.json +44 -0
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api/external-fulfillment-shipments-api"), exports);
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
20
+ const axios_1 = __importDefault(require("axios"));
21
+ exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
22
+ exports.COLLECTION_FORMATS = {
23
+ csv: ",",
24
+ ssv: " ",
25
+ tsv: "\t",
26
+ pipes: "|",
27
+ };
28
+ class BaseAPI {
29
+ basePath;
30
+ axios;
31
+ configuration;
32
+ constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
33
+ this.basePath = basePath;
34
+ this.axios = axios;
35
+ if (configuration) {
36
+ this.configuration = configuration;
37
+ this.basePath = configuration.basePath ?? basePath;
38
+ }
39
+ }
40
+ }
41
+ exports.BaseAPI = BaseAPI;
42
+ ;
43
+ class RequiredError extends Error {
44
+ field;
45
+ constructor(field, msg) {
46
+ super(msg);
47
+ this.field = field;
48
+ this.name = "RequiredError";
49
+ }
50
+ }
51
+ exports.RequiredError = RequiredError;
52
+ exports.operationServerMap = {};
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
17
+ const base_1 = require("./base");
18
+ exports.DUMMY_BASE_URL = 'https://example.com';
19
+ /**
20
+ *
21
+ * @throws {RequiredError}
22
+ */
23
+ const assertParamExists = function (functionName, paramName, paramValue) {
24
+ if (paramValue === null || paramValue === undefined) {
25
+ throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
26
+ }
27
+ };
28
+ exports.assertParamExists = assertParamExists;
29
+ const setApiKeyToObject = async function (object, keyParamName, configuration) {
30
+ if (configuration && configuration.apiKey) {
31
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
32
+ ? await configuration.apiKey(keyParamName)
33
+ : await configuration.apiKey;
34
+ object[keyParamName] = localVarApiKeyValue;
35
+ }
36
+ };
37
+ exports.setApiKeyToObject = setApiKeyToObject;
38
+ const setBasicAuthToObject = function (object, configuration) {
39
+ if (configuration && (configuration.username || configuration.password)) {
40
+ object["auth"] = { username: configuration.username, password: configuration.password };
41
+ }
42
+ };
43
+ exports.setBasicAuthToObject = setBasicAuthToObject;
44
+ const setBearerAuthToObject = async function (object, configuration) {
45
+ if (configuration && configuration.accessToken) {
46
+ const accessToken = typeof configuration.accessToken === 'function'
47
+ ? await configuration.accessToken()
48
+ : await configuration.accessToken;
49
+ object["Authorization"] = "Bearer " + accessToken;
50
+ }
51
+ };
52
+ exports.setBearerAuthToObject = setBearerAuthToObject;
53
+ const setOAuthToObject = async function (object, name, scopes, configuration) {
54
+ if (configuration && configuration.accessToken) {
55
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
56
+ ? await configuration.accessToken(name, scopes)
57
+ : await configuration.accessToken;
58
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
59
+ }
60
+ };
61
+ exports.setOAuthToObject = setOAuthToObject;
62
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
63
+ if (parameter == null)
64
+ return;
65
+ if (typeof parameter === "object") {
66
+ if (Array.isArray(parameter)) {
67
+ parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
68
+ }
69
+ else {
70
+ Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
71
+ }
72
+ }
73
+ else {
74
+ if (urlSearchParams.has(key)) {
75
+ urlSearchParams.append(key, parameter);
76
+ }
77
+ else {
78
+ urlSearchParams.set(key, parameter);
79
+ }
80
+ }
81
+ }
82
+ const setSearchParams = function (url, ...objects) {
83
+ const searchParams = new URLSearchParams(url.search);
84
+ setFlattenedQueryParams(searchParams, objects);
85
+ url.search = searchParams.toString();
86
+ };
87
+ exports.setSearchParams = setSearchParams;
88
+ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
89
+ const nonString = typeof value !== 'string';
90
+ const needsSerialization = nonString && configuration && configuration.isJsonMime
91
+ ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
92
+ : nonString;
93
+ return needsSerialization
94
+ ? JSON.stringify(value !== undefined ? value : {})
95
+ : (value || "");
96
+ };
97
+ exports.serializeDataIfNeeded = serializeDataIfNeeded;
98
+ const toPathString = function (url) {
99
+ return url.pathname + url.search + url.hash;
100
+ };
101
+ exports.toPathString = toPathString;
102
+ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
103
+ return (axios = globalAxios, basePath = BASE_PATH) => {
104
+ const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
105
+ return axios.request(axiosRequestArgs);
106
+ };
107
+ };
108
+ exports.createRequestFunction = createRequestFunction;
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.Configuration = void 0;
17
+ class Configuration {
18
+ /**
19
+ * parameter for apiKey security
20
+ * @param name security name
21
+ */
22
+ apiKey;
23
+ /**
24
+ * parameter for basic security
25
+ */
26
+ username;
27
+ /**
28
+ * parameter for basic security
29
+ */
30
+ password;
31
+ /**
32
+ * parameter for oauth2 security
33
+ * @param name security name
34
+ * @param scopes oauth2 scope
35
+ */
36
+ accessToken;
37
+ /**
38
+ * override base path
39
+ */
40
+ basePath;
41
+ /**
42
+ * override server index
43
+ */
44
+ serverIndex;
45
+ /**
46
+ * base options for axios calls
47
+ */
48
+ baseOptions;
49
+ /**
50
+ * The FormData constructor that will be used to create multipart form data
51
+ * requests. You can inject this here so that execution environments that
52
+ * do not support the FormData class can still run the generated client.
53
+ *
54
+ * @type {new () => FormData}
55
+ */
56
+ formDataCtor;
57
+ constructor(param = {}) {
58
+ this.apiKey = param.apiKey;
59
+ this.username = param.username;
60
+ this.password = param.password;
61
+ this.accessToken = param.accessToken;
62
+ this.basePath = param.basePath;
63
+ this.serverIndex = param.serverIndex;
64
+ this.baseOptions = {
65
+ ...param.baseOptions,
66
+ headers: {
67
+ ...param.baseOptions?.headers,
68
+ },
69
+ };
70
+ this.formDataCtor = param.formDataCtor;
71
+ }
72
+ /**
73
+ * Check if the given MIME is a JSON MIME.
74
+ * JSON MIME examples:
75
+ * application/json
76
+ * application/json; charset=UTF8
77
+ * APPLICATION/JSON
78
+ * application/vnd.company+json
79
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
80
+ * @return True if the given MIME is JSON, false otherwise.
81
+ */
82
+ isJsonMime(mime) {
83
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
84
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
85
+ }
86
+ }
87
+ exports.Configuration = Configuration;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api"), exports);
31
+ __exportStar(require("./configuration"), exports);
32
+ __exportStar(require("./models"), exports);
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CancellationCancellationTypeEnum = void 0;
17
+ exports.CancellationCancellationTypeEnum = {
18
+ SellerRejected: 'SELLER_REJECTED',
19
+ MarketplaceCancelled: 'MARKETPLACE_CANCELLED',
20
+ SystemCancelled: 'SYSTEM_CANCELLED'
21
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ChargeChargeTypeEnum = void 0;
17
+ exports.ChargeChargeTypeEnum = {
18
+ Product: 'PRODUCT',
19
+ Shipping: 'SHIPPING',
20
+ GiftWrap: 'GIFT_WRAP',
21
+ Total: 'TOTAL',
22
+ Other: 'OTHER'
23
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CustomAttributeType = void 0;
17
+ /**
18
+ * The data type of the custom attribute value to aid with parsing during deserialization.
19
+ */
20
+ exports.CustomAttributeType = {
21
+ String: 'STRING',
22
+ Boolean: 'BOOLEAN',
23
+ Integer: 'INTEGER',
24
+ Double: 'DOUBLE',
25
+ JsonString: 'JSON_STRING'
26
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DimensionDimensionUnitEnum = void 0;
17
+ exports.DimensionDimensionUnitEnum = {
18
+ Cm: 'CM',
19
+ M: 'M'
20
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DocumentFormatEnum = void 0;
17
+ exports.DocumentFormatEnum = {
18
+ Zpl: 'ZPL',
19
+ Pdf: 'PDF',
20
+ Png: 'PNG',
21
+ PlainText: 'PLAIN_TEXT'
22
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * The Selling Partner API for Amazon External Fulfillment Shipments Processing
6
+ * You can use the External Fulfillment Shipments API to retrieve, manage, and track shipments processed through Amazon\'s external fulfillment network. Use this API to get shipment details, monitor status changes, and access fulfillment requirements.
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./address"), exports);
18
+ __exportStar(require("./amount"), exports);
19
+ __exportStar(require("./cancellation"), exports);
20
+ __exportStar(require("./charge"), exports);
21
+ __exportStar(require("./charge-breakup"), exports);
22
+ __exportStar(require("./compliance-attributes"), exports);
23
+ __exportStar(require("./courier-supported-attributes"), exports);
24
+ __exportStar(require("./custom-attribute"), exports);
25
+ __exportStar(require("./custom-attribute-type"), exports);
26
+ __exportStar(require("./dimension"), exports);
27
+ __exportStar(require("./document"), exports);
28
+ __exportStar(require("./document-v2"), exports);
29
+ __exportStar(require("./error-list"), exports);
30
+ __exportStar(require("./gift-attributes"), exports);
31
+ __exportStar(require("./invoice-info"), exports);
32
+ __exportStar(require("./invoice-requirement"), exports);
33
+ __exportStar(require("./invoice-response"), exports);
34
+ __exportStar(require("./line-item"), exports);
35
+ __exportStar(require("./line-item-with-reason"), exports);
36
+ __exportStar(require("./marketplace-attributes"), exports);
37
+ __exportStar(require("./model-error"), exports);
38
+ __exportStar(require("./original-line-item"), exports);
39
+ __exportStar(require("./package"), exports);
40
+ __exportStar(require("./package-delivery-status"), exports);
41
+ __exportStar(require("./package-dimensions"), exports);
42
+ __exportStar(require("./package-line-item"), exports);
43
+ __exportStar(require("./package-ship-label"), exports);
44
+ __exportStar(require("./package-status"), exports);
45
+ __exportStar(require("./package-sub-status"), exports);
46
+ __exportStar(require("./packages"), exports);
47
+ __exportStar(require("./packing-slip-requirement"), exports);
48
+ __exportStar(require("./pagination"), exports);
49
+ __exportStar(require("./party-identification-info"), exports);
50
+ __exportStar(require("./piece-type"), exports);
51
+ __exportStar(require("./presence-status"), exports);
52
+ __exportStar(require("./priority"), exports);
53
+ __exportStar(require("./recommended-package"), exports);
54
+ __exportStar(require("./recommended-package-line-item"), exports);
55
+ __exportStar(require("./replaced-shipment-info"), exports);
56
+ __exportStar(require("./requirement-level"), exports);
57
+ __exportStar(require("./ship-label-metadata"), exports);
58
+ __exportStar(require("./ship-labels-input"), exports);
59
+ __exportStar(require("./ship-labels-response"), exports);
60
+ __exportStar(require("./shipment"), exports);
61
+ __exportStar(require("./shipment-acknowledgement-request"), exports);
62
+ __exportStar(require("./shipment-info"), exports);
63
+ __exportStar(require("./shipment-line-item"), exports);
64
+ __exportStar(require("./shipment-requirements"), exports);
65
+ __exportStar(require("./shipments-response"), exports);
66
+ __exportStar(require("./shipping-info"), exports);
67
+ __exportStar(require("./shipping-options"), exports);
68
+ __exportStar(require("./shipping-options-response"), exports);
69
+ __exportStar(require("./status"), exports);
70
+ __exportStar(require("./tax"), exports);
71
+ __exportStar(require("./tax-registration-info"), exports);
72
+ __exportStar(require("./time-window"), exports);
73
+ __exportStar(require("./weight"), exports);