@sp-api-sdk/vendor-direct-fulfillment-orders-api-v1 2.2.1 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/api-model/api/vendor-orders-api.js +30 -8
- package/dist/cjs/src/api-model/base.js +7 -2
- package/dist/cjs/src/api-model/common.js +1 -1
- package/dist/cjs/src/api-model/configuration.js +8 -0
- package/dist/es/src/api-model/api/vendor-orders-api.js +30 -8
- package/dist/es/src/api-model/base.js +6 -1
- package/dist/es/src/api-model/common.js +1 -1
- package/dist/es/src/api-model/configuration.js +8 -0
- package/dist/types/src/api-model/api/vendor-orders-api.d.ts +42 -24
- package/dist/types/src/api-model/base.d.ts +14 -2
- package/dist/types/src/api-model/configuration.d.ts +8 -0
- package/dist/types/src/api-model/models/get-order-response.d.ts +1 -1
- package/dist/types/src/api-model/models/get-orders-response.d.ts +1 -1
- package/dist/types/src/api-model/models/order-acknowledgement-item.d.ts +3 -3
- package/dist/types/src/api-model/models/order-details-tax-total.d.ts +1 -1
- package/dist/types/src/api-model/models/order-details.d.ts +5 -5
- package/dist/types/src/api-model/models/order-item-acknowledgement.d.ts +1 -1
- package/dist/types/src/api-model/models/order-item-tax-details.d.ts +1 -1
- package/dist/types/src/api-model/models/order-item.d.ts +5 -5
- package/dist/types/src/api-model/models/order-list.d.ts +2 -2
- package/dist/types/src/api-model/models/order.d.ts +1 -1
- package/dist/types/src/api-model/models/party-identification.d.ts +2 -2
- package/dist/types/src/api-model/models/shipment-details.d.ts +1 -1
- package/dist/types/src/api-model/models/submit-acknowledgement-request.d.ts +1 -1
- package/dist/types/src/api-model/models/submit-acknowledgement-response.d.ts +1 -1
- package/dist/types/src/api-model/models/tax-details.d.ts +1 -1
- package/dist/types/src/api-model/models/tax-registration-details.d.ts +1 -1
- package/package.json +4 -4
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.VendorOrdersApi = exports.VendorOrdersApiFactory = exports.VendorOrdersApiFp = exports.VendorOrdersApiAxiosParamCreator = void 0;
|
|
19
|
+
exports.GetOrdersSortOrderEnum = exports.GetOrdersStatusEnum = exports.VendorOrdersApi = exports.VendorOrdersApiFactory = exports.VendorOrdersApiFp = exports.VendorOrdersApiAxiosParamCreator = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
// Some imports not used depending on template conditions
|
|
22
22
|
// @ts-ignore
|
|
@@ -62,9 +62,9 @@ const VendorOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
62
62
|
* @param {string} createdAfter Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
|
|
63
63
|
* @param {string} createdBefore Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
|
|
64
64
|
* @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
|
|
65
|
-
* @param {
|
|
65
|
+
* @param {GetOrdersStatusEnum} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
|
|
66
66
|
* @param {number} [limit] The limit to the number of purchase orders returned.
|
|
67
|
-
* @param {
|
|
67
|
+
* @param {GetOrdersSortOrderEnum} [sortOrder] Sort the list in ascending or descending order by order creation date.
|
|
68
68
|
* @param {string} [nextToken] Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.
|
|
69
69
|
* @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.
|
|
70
70
|
* @param {*} [options] Override http request option.
|
|
@@ -168,16 +168,18 @@ const VendorOrdersApiFp = function (configuration) {
|
|
|
168
168
|
*/
|
|
169
169
|
async getOrder(purchaseOrderNumber, options) {
|
|
170
170
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrder(purchaseOrderNumber, options);
|
|
171
|
-
|
|
171
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
172
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VendorOrdersApi.getOrder']?.[localVarOperationServerIndex]?.url;
|
|
173
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
172
174
|
},
|
|
173
175
|
/**
|
|
174
176
|
* Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
175
177
|
* @param {string} createdAfter Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
|
|
176
178
|
* @param {string} createdBefore Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
|
|
177
179
|
* @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
|
|
178
|
-
* @param {
|
|
180
|
+
* @param {GetOrdersStatusEnum} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
|
|
179
181
|
* @param {number} [limit] The limit to the number of purchase orders returned.
|
|
180
|
-
* @param {
|
|
182
|
+
* @param {GetOrdersSortOrderEnum} [sortOrder] Sort the list in ascending or descending order by order creation date.
|
|
181
183
|
* @param {string} [nextToken] Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.
|
|
182
184
|
* @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.
|
|
183
185
|
* @param {*} [options] Override http request option.
|
|
@@ -185,7 +187,9 @@ const VendorOrdersApiFp = function (configuration) {
|
|
|
185
187
|
*/
|
|
186
188
|
async getOrders(createdAfter, createdBefore, shipFromPartyId, status, limit, sortOrder, nextToken, includeDetails, options) {
|
|
187
189
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(createdAfter, createdBefore, shipFromPartyId, status, limit, sortOrder, nextToken, includeDetails, options);
|
|
188
|
-
|
|
190
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
191
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VendorOrdersApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
192
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
189
193
|
},
|
|
190
194
|
/**
|
|
191
195
|
* Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
@@ -195,7 +199,9 @@ const VendorOrdersApiFp = function (configuration) {
|
|
|
195
199
|
*/
|
|
196
200
|
async submitAcknowledgement(body, options) {
|
|
197
201
|
const localVarAxiosArgs = await localVarAxiosParamCreator.submitAcknowledgement(body, options);
|
|
198
|
-
|
|
202
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
203
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VendorOrdersApi.submitAcknowledgement']?.[localVarOperationServerIndex]?.url;
|
|
204
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
199
205
|
},
|
|
200
206
|
};
|
|
201
207
|
};
|
|
@@ -276,3 +282,19 @@ class VendorOrdersApi extends base_1.BaseAPI {
|
|
|
276
282
|
}
|
|
277
283
|
}
|
|
278
284
|
exports.VendorOrdersApi = VendorOrdersApi;
|
|
285
|
+
/**
|
|
286
|
+
* @export
|
|
287
|
+
*/
|
|
288
|
+
exports.GetOrdersStatusEnum = {
|
|
289
|
+
New: 'NEW',
|
|
290
|
+
Shipped: 'SHIPPED',
|
|
291
|
+
Accepted: 'ACCEPTED',
|
|
292
|
+
Cancelled: 'CANCELLED'
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* @export
|
|
296
|
+
*/
|
|
297
|
+
exports.GetOrdersSortOrderEnum = {
|
|
298
|
+
Asc: 'ASC',
|
|
299
|
+
Desc: 'DESC'
|
|
300
|
+
};
|
|
@@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
19
|
+
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
20
20
|
const axios_1 = __importDefault(require("axios"));
|
|
21
21
|
exports.BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
22
22
|
/**
|
|
@@ -43,7 +43,7 @@ class BaseAPI {
|
|
|
43
43
|
this.axios = axios;
|
|
44
44
|
if (configuration) {
|
|
45
45
|
this.configuration = configuration;
|
|
46
|
-
this.basePath = configuration.basePath
|
|
46
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -64,3 +64,8 @@ class RequiredError extends Error {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
exports.RequiredError = RequiredError;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
exports.operationServerMap = {};
|
|
@@ -138,7 +138,7 @@ exports.toPathString = toPathString;
|
|
|
138
138
|
*/
|
|
139
139
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
140
140
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
141
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath
|
|
141
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
142
142
|
return axios.request(axiosRequestArgs);
|
|
143
143
|
};
|
|
144
144
|
};
|
|
@@ -49,6 +49,13 @@ class Configuration {
|
|
|
49
49
|
* @memberof Configuration
|
|
50
50
|
*/
|
|
51
51
|
basePath;
|
|
52
|
+
/**
|
|
53
|
+
* override server index
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof Configuration
|
|
57
|
+
*/
|
|
58
|
+
serverIndex;
|
|
52
59
|
/**
|
|
53
60
|
* base options for axios calls
|
|
54
61
|
*
|
|
@@ -70,6 +77,7 @@ class Configuration {
|
|
|
70
77
|
this.password = param.password;
|
|
71
78
|
this.accessToken = param.accessToken;
|
|
72
79
|
this.basePath = param.basePath;
|
|
80
|
+
this.serverIndex = param.serverIndex;
|
|
73
81
|
this.baseOptions = param.baseOptions;
|
|
74
82
|
this.formDataCtor = param.formDataCtor;
|
|
75
83
|
}
|
|
@@ -16,7 +16,7 @@ import globalAxios from 'axios';
|
|
|
16
16
|
// @ts-ignore
|
|
17
17
|
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import { BASE_PATH, BaseAPI } from '../base';
|
|
19
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
20
20
|
/**
|
|
21
21
|
* VendorOrdersApi - axios parameter creator
|
|
22
22
|
* @export
|
|
@@ -56,9 +56,9 @@ export const VendorOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
56
56
|
* @param {string} createdAfter Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
|
|
57
57
|
* @param {string} createdBefore Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
|
|
58
58
|
* @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
|
|
59
|
-
* @param {
|
|
59
|
+
* @param {GetOrdersStatusEnum} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
|
|
60
60
|
* @param {number} [limit] The limit to the number of purchase orders returned.
|
|
61
|
-
* @param {
|
|
61
|
+
* @param {GetOrdersSortOrderEnum} [sortOrder] Sort the list in ascending or descending order by order creation date.
|
|
62
62
|
* @param {string} [nextToken] Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.
|
|
63
63
|
* @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.
|
|
64
64
|
* @param {*} [options] Override http request option.
|
|
@@ -161,16 +161,18 @@ export const VendorOrdersApiFp = function (configuration) {
|
|
|
161
161
|
*/
|
|
162
162
|
async getOrder(purchaseOrderNumber, options) {
|
|
163
163
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrder(purchaseOrderNumber, options);
|
|
164
|
-
|
|
164
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
165
|
+
const localVarOperationServerBasePath = operationServerMap['VendorOrdersApi.getOrder']?.[localVarOperationServerIndex]?.url;
|
|
166
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
165
167
|
},
|
|
166
168
|
/**
|
|
167
169
|
* Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
168
170
|
* @param {string} createdAfter Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
|
|
169
171
|
* @param {string} createdBefore Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
|
|
170
172
|
* @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
|
|
171
|
-
* @param {
|
|
173
|
+
* @param {GetOrdersStatusEnum} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
|
|
172
174
|
* @param {number} [limit] The limit to the number of purchase orders returned.
|
|
173
|
-
* @param {
|
|
175
|
+
* @param {GetOrdersSortOrderEnum} [sortOrder] Sort the list in ascending or descending order by order creation date.
|
|
174
176
|
* @param {string} [nextToken] Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.
|
|
175
177
|
* @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.
|
|
176
178
|
* @param {*} [options] Override http request option.
|
|
@@ -178,7 +180,9 @@ export const VendorOrdersApiFp = function (configuration) {
|
|
|
178
180
|
*/
|
|
179
181
|
async getOrders(createdAfter, createdBefore, shipFromPartyId, status, limit, sortOrder, nextToken, includeDetails, options) {
|
|
180
182
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(createdAfter, createdBefore, shipFromPartyId, status, limit, sortOrder, nextToken, includeDetails, options);
|
|
181
|
-
|
|
183
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
184
|
+
const localVarOperationServerBasePath = operationServerMap['VendorOrdersApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
185
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
182
186
|
},
|
|
183
187
|
/**
|
|
184
188
|
* Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
@@ -188,7 +192,9 @@ export const VendorOrdersApiFp = function (configuration) {
|
|
|
188
192
|
*/
|
|
189
193
|
async submitAcknowledgement(body, options) {
|
|
190
194
|
const localVarAxiosArgs = await localVarAxiosParamCreator.submitAcknowledgement(body, options);
|
|
191
|
-
|
|
195
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
196
|
+
const localVarOperationServerBasePath = operationServerMap['VendorOrdersApi.submitAcknowledgement']?.[localVarOperationServerIndex]?.url;
|
|
197
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
192
198
|
},
|
|
193
199
|
};
|
|
194
200
|
};
|
|
@@ -266,3 +272,19 @@ export class VendorOrdersApi extends BaseAPI {
|
|
|
266
272
|
return VendorOrdersApiFp(this.configuration).submitAcknowledgement(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
267
273
|
}
|
|
268
274
|
}
|
|
275
|
+
/**
|
|
276
|
+
* @export
|
|
277
|
+
*/
|
|
278
|
+
export const GetOrdersStatusEnum = {
|
|
279
|
+
New: 'NEW',
|
|
280
|
+
Shipped: 'SHIPPED',
|
|
281
|
+
Accepted: 'ACCEPTED',
|
|
282
|
+
Cancelled: 'CANCELLED'
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* @export
|
|
286
|
+
*/
|
|
287
|
+
export const GetOrdersSortOrderEnum = {
|
|
288
|
+
Asc: 'ASC',
|
|
289
|
+
Desc: 'DESC'
|
|
290
|
+
};
|
|
@@ -37,7 +37,7 @@ export class BaseAPI {
|
|
|
37
37
|
this.axios = axios;
|
|
38
38
|
if (configuration) {
|
|
39
39
|
this.configuration = configuration;
|
|
40
|
-
this.basePath = configuration.basePath
|
|
40
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -56,3 +56,8 @@ export class RequiredError extends Error {
|
|
|
56
56
|
this.name = "RequiredError";
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export const operationServerMap = {};
|
|
@@ -127,7 +127,7 @@ export const toPathString = function (url) {
|
|
|
127
127
|
*/
|
|
128
128
|
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
129
129
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
130
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath
|
|
130
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
131
131
|
return axios.request(axiosRequestArgs);
|
|
132
132
|
};
|
|
133
133
|
};
|
|
@@ -46,6 +46,13 @@ export class Configuration {
|
|
|
46
46
|
* @memberof Configuration
|
|
47
47
|
*/
|
|
48
48
|
basePath;
|
|
49
|
+
/**
|
|
50
|
+
* override server index
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
serverIndex;
|
|
49
56
|
/**
|
|
50
57
|
* base options for axios calls
|
|
51
58
|
*
|
|
@@ -67,6 +74,7 @@ export class Configuration {
|
|
|
67
74
|
this.password = param.password;
|
|
68
75
|
this.accessToken = param.accessToken;
|
|
69
76
|
this.basePath = param.basePath;
|
|
77
|
+
this.serverIndex = param.serverIndex;
|
|
70
78
|
this.baseOptions = param.baseOptions;
|
|
71
79
|
this.formDataCtor = param.formDataCtor;
|
|
72
80
|
}
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
|
-
import type { AxiosPromise, AxiosInstance,
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import globalAxios from 'axios';
|
|
15
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
16
|
-
import { GetOrderResponse } from '../models';
|
|
17
|
-
import { GetOrdersResponse } from '../models';
|
|
18
|
-
import { SubmitAcknowledgementRequest } from '../models';
|
|
19
|
-
import { SubmitAcknowledgementResponse } from '../models';
|
|
15
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
16
|
+
import type { GetOrderResponse } from '../models';
|
|
17
|
+
import type { GetOrdersResponse } from '../models';
|
|
18
|
+
import type { SubmitAcknowledgementRequest } from '../models';
|
|
19
|
+
import type { SubmitAcknowledgementResponse } from '../models';
|
|
20
20
|
/**
|
|
21
21
|
* VendorOrdersApi - axios parameter creator
|
|
22
22
|
* @export
|
|
@@ -28,28 +28,28 @@ export declare const VendorOrdersApiAxiosParamCreator: (configuration?: Configur
|
|
|
28
28
|
* @param {*} [options] Override http request option.
|
|
29
29
|
* @throws {RequiredError}
|
|
30
30
|
*/
|
|
31
|
-
getOrder: (purchaseOrderNumber: string, options?:
|
|
31
|
+
getOrder: (purchaseOrderNumber: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
32
|
/**
|
|
33
33
|
* Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
34
34
|
* @param {string} createdAfter Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
|
|
35
35
|
* @param {string} createdBefore Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
|
|
36
36
|
* @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
|
|
37
|
-
* @param {
|
|
37
|
+
* @param {GetOrdersStatusEnum} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
|
|
38
38
|
* @param {number} [limit] The limit to the number of purchase orders returned.
|
|
39
|
-
* @param {
|
|
39
|
+
* @param {GetOrdersSortOrderEnum} [sortOrder] Sort the list in ascending or descending order by order creation date.
|
|
40
40
|
* @param {string} [nextToken] Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.
|
|
41
41
|
* @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
43
43
|
* @throws {RequiredError}
|
|
44
44
|
*/
|
|
45
|
-
getOrders: (createdAfter: string, createdBefore: string, shipFromPartyId?: string, status?:
|
|
45
|
+
getOrders: (createdAfter: string, createdBefore: string, shipFromPartyId?: string, status?: GetOrdersStatusEnum, limit?: number, sortOrder?: GetOrdersSortOrderEnum, nextToken?: string, includeDetails?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
46
|
/**
|
|
47
47
|
* Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
48
48
|
* @param {SubmitAcknowledgementRequest} body
|
|
49
49
|
* @param {*} [options] Override http request option.
|
|
50
50
|
* @throws {RequiredError}
|
|
51
51
|
*/
|
|
52
|
-
submitAcknowledgement: (body: SubmitAcknowledgementRequest, options?:
|
|
52
|
+
submitAcknowledgement: (body: SubmitAcknowledgementRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
53
53
|
};
|
|
54
54
|
/**
|
|
55
55
|
* VendorOrdersApi - functional programming interface
|
|
@@ -62,28 +62,28 @@ export declare const VendorOrdersApiFp: (configuration?: Configuration) => {
|
|
|
62
62
|
* @param {*} [options] Override http request option.
|
|
63
63
|
* @throws {RequiredError}
|
|
64
64
|
*/
|
|
65
|
-
getOrder(purchaseOrderNumber: string, options?:
|
|
65
|
+
getOrder(purchaseOrderNumber: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrderResponse>>;
|
|
66
66
|
/**
|
|
67
67
|
* Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
68
68
|
* @param {string} createdAfter Purchase orders that became available after this date and time will be included in the result. Must be in ISO-8601 date/time format.
|
|
69
69
|
* @param {string} createdBefore Purchase orders that became available before this date and time will be included in the result. Must be in ISO-8601 date/time format.
|
|
70
70
|
* @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
|
|
71
|
-
* @param {
|
|
71
|
+
* @param {GetOrdersStatusEnum} [status] Returns only the purchase orders that match the specified status. If not specified, the result will contain orders that match any status.
|
|
72
72
|
* @param {number} [limit] The limit to the number of purchase orders returned.
|
|
73
|
-
* @param {
|
|
73
|
+
* @param {GetOrdersSortOrderEnum} [sortOrder] Sort the list in ascending or descending order by order creation date.
|
|
74
74
|
* @param {string} [nextToken] Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.
|
|
75
75
|
* @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.
|
|
76
76
|
* @param {*} [options] Override http request option.
|
|
77
77
|
* @throws {RequiredError}
|
|
78
78
|
*/
|
|
79
|
-
getOrders(createdAfter: string, createdBefore: string, shipFromPartyId?: string, status?:
|
|
79
|
+
getOrders(createdAfter: string, createdBefore: string, shipFromPartyId?: string, status?: GetOrdersStatusEnum, limit?: number, sortOrder?: GetOrdersSortOrderEnum, nextToken?: string, includeDetails?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrdersResponse>>;
|
|
80
80
|
/**
|
|
81
81
|
* Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
82
82
|
* @param {SubmitAcknowledgementRequest} body
|
|
83
83
|
* @param {*} [options] Override http request option.
|
|
84
84
|
* @throws {RequiredError}
|
|
85
85
|
*/
|
|
86
|
-
submitAcknowledgement(body: SubmitAcknowledgementRequest, options?:
|
|
86
|
+
submitAcknowledgement(body: SubmitAcknowledgementRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitAcknowledgementResponse>>;
|
|
87
87
|
};
|
|
88
88
|
/**
|
|
89
89
|
* VendorOrdersApi - factory interface
|
|
@@ -96,21 +96,21 @@ export declare const VendorOrdersApiFactory: (configuration?: Configuration, bas
|
|
|
96
96
|
* @param {*} [options] Override http request option.
|
|
97
97
|
* @throws {RequiredError}
|
|
98
98
|
*/
|
|
99
|
-
getOrder(requestParameters: VendorOrdersApiGetOrderRequest, options?:
|
|
99
|
+
getOrder(requestParameters: VendorOrdersApiGetOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOrderResponse>;
|
|
100
100
|
/**
|
|
101
101
|
* Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
102
102
|
* @param {VendorOrdersApiGetOrdersRequest} requestParameters Request parameters.
|
|
103
103
|
* @param {*} [options] Override http request option.
|
|
104
104
|
* @throws {RequiredError}
|
|
105
105
|
*/
|
|
106
|
-
getOrders(requestParameters: VendorOrdersApiGetOrdersRequest, options?:
|
|
106
|
+
getOrders(requestParameters: VendorOrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetOrdersResponse>;
|
|
107
107
|
/**
|
|
108
108
|
* Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
109
109
|
* @param {VendorOrdersApiSubmitAcknowledgementRequest} requestParameters Request parameters.
|
|
110
110
|
* @param {*} [options] Override http request option.
|
|
111
111
|
* @throws {RequiredError}
|
|
112
112
|
*/
|
|
113
|
-
submitAcknowledgement(requestParameters: VendorOrdersApiSubmitAcknowledgementRequest, options?:
|
|
113
|
+
submitAcknowledgement(requestParameters: VendorOrdersApiSubmitAcknowledgementRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubmitAcknowledgementResponse>;
|
|
114
114
|
};
|
|
115
115
|
/**
|
|
116
116
|
* Request parameters for getOrder operation in VendorOrdersApi.
|
|
@@ -154,7 +154,7 @@ export interface VendorOrdersApiGetOrdersRequest {
|
|
|
154
154
|
* @type {'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED'}
|
|
155
155
|
* @memberof VendorOrdersApiGetOrders
|
|
156
156
|
*/
|
|
157
|
-
readonly status?:
|
|
157
|
+
readonly status?: GetOrdersStatusEnum;
|
|
158
158
|
/**
|
|
159
159
|
* The limit to the number of purchase orders returned.
|
|
160
160
|
* @type {number}
|
|
@@ -166,7 +166,7 @@ export interface VendorOrdersApiGetOrdersRequest {
|
|
|
166
166
|
* @type {'ASC' | 'DESC'}
|
|
167
167
|
* @memberof VendorOrdersApiGetOrders
|
|
168
168
|
*/
|
|
169
|
-
readonly sortOrder?:
|
|
169
|
+
readonly sortOrder?: GetOrdersSortOrderEnum;
|
|
170
170
|
/**
|
|
171
171
|
* Used for pagination when there are more orders than the specified result size limit. The token value is returned in the previous API call.
|
|
172
172
|
* @type {string}
|
|
@@ -207,7 +207,7 @@ export declare class VendorOrdersApi extends BaseAPI {
|
|
|
207
207
|
* @throws {RequiredError}
|
|
208
208
|
* @memberof VendorOrdersApi
|
|
209
209
|
*/
|
|
210
|
-
getOrder(requestParameters: VendorOrdersApiGetOrderRequest, options?:
|
|
210
|
+
getOrder(requestParameters: VendorOrdersApiGetOrderRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetOrderResponse, any>>;
|
|
211
211
|
/**
|
|
212
212
|
* Returns a list of purchase orders created during the time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both parameters. You can choose to get only the purchase order numbers by setting the includeDetails parameter to false. In that case, the operation returns a list of purchase order numbers. You can then call the getOrder operation to return the details of a specific order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
213
213
|
* @param {VendorOrdersApiGetOrdersRequest} requestParameters Request parameters.
|
|
@@ -215,7 +215,7 @@ export declare class VendorOrdersApi extends BaseAPI {
|
|
|
215
215
|
* @throws {RequiredError}
|
|
216
216
|
* @memberof VendorOrdersApi
|
|
217
217
|
*/
|
|
218
|
-
getOrders(requestParameters: VendorOrdersApiGetOrdersRequest, options?:
|
|
218
|
+
getOrders(requestParameters: VendorOrdersApiGetOrdersRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<GetOrdersResponse, any>>;
|
|
219
219
|
/**
|
|
220
220
|
* Submits acknowledgements for one or more purchase orders. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
|
|
221
221
|
* @param {VendorOrdersApiSubmitAcknowledgementRequest} requestParameters Request parameters.
|
|
@@ -223,5 +223,23 @@ export declare class VendorOrdersApi extends BaseAPI {
|
|
|
223
223
|
* @throws {RequiredError}
|
|
224
224
|
* @memberof VendorOrdersApi
|
|
225
225
|
*/
|
|
226
|
-
submitAcknowledgement(requestParameters: VendorOrdersApiSubmitAcknowledgementRequest, options?:
|
|
226
|
+
submitAcknowledgement(requestParameters: VendorOrdersApiSubmitAcknowledgementRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<SubmitAcknowledgementResponse, any>>;
|
|
227
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* @export
|
|
230
|
+
*/
|
|
231
|
+
export declare const GetOrdersStatusEnum: {
|
|
232
|
+
readonly New: "NEW";
|
|
233
|
+
readonly Shipped: "SHIPPED";
|
|
234
|
+
readonly Accepted: "ACCEPTED";
|
|
235
|
+
readonly Cancelled: "CANCELLED";
|
|
236
|
+
};
|
|
237
|
+
export type GetOrdersStatusEnum = typeof GetOrdersStatusEnum[keyof typeof GetOrdersStatusEnum];
|
|
238
|
+
/**
|
|
239
|
+
* @export
|
|
240
|
+
*/
|
|
241
|
+
export declare const GetOrdersSortOrderEnum: {
|
|
242
|
+
readonly Asc: "ASC";
|
|
243
|
+
readonly Desc: "DESC";
|
|
244
|
+
};
|
|
245
|
+
export type GetOrdersSortOrderEnum = typeof GetOrdersSortOrderEnum[keyof typeof GetOrdersSortOrderEnum];
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
|
-
import type { AxiosInstance,
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -29,7 +29,7 @@ export declare const COLLECTION_FORMATS: {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface RequestArgs {
|
|
31
31
|
url: string;
|
|
32
|
-
options:
|
|
32
|
+
options: RawAxiosRequestConfig;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
@@ -52,3 +52,15 @@ export declare class RequiredError extends Error {
|
|
|
52
52
|
field: string;
|
|
53
53
|
constructor(field: string, msg?: string);
|
|
54
54
|
}
|
|
55
|
+
interface ServerMap {
|
|
56
|
+
[key: string]: {
|
|
57
|
+
url: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const operationServerMap: ServerMap;
|
|
66
|
+
export {};
|
|
@@ -15,6 +15,7 @@ export interface ConfigurationParameters {
|
|
|
15
15
|
password?: string;
|
|
16
16
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
17
|
basePath?: string;
|
|
18
|
+
serverIndex?: number;
|
|
18
19
|
baseOptions?: any;
|
|
19
20
|
formDataCtor?: new () => any;
|
|
20
21
|
}
|
|
@@ -53,6 +54,13 @@ export declare class Configuration {
|
|
|
53
54
|
* @memberof Configuration
|
|
54
55
|
*/
|
|
55
56
|
basePath?: string;
|
|
57
|
+
/**
|
|
58
|
+
* override server index
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof Configuration
|
|
62
|
+
*/
|
|
63
|
+
serverIndex?: number;
|
|
56
64
|
/**
|
|
57
65
|
* base options for axios calls
|
|
58
66
|
*
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AcknowledgementStatus } from './acknowledgement-status';
|
|
13
|
-
import { OrderItemAcknowledgement } from './order-item-acknowledgement';
|
|
14
|
-
import { PartyIdentification } from './party-identification';
|
|
12
|
+
import type { AcknowledgementStatus } from './acknowledgement-status';
|
|
13
|
+
import type { OrderItemAcknowledgement } from './order-item-acknowledgement';
|
|
14
|
+
import type { PartyIdentification } from './party-identification';
|
|
15
15
|
/**
|
|
16
16
|
* Details of an individual order being acknowledged.
|
|
17
17
|
* @export
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Address } from './address';
|
|
13
|
-
import { OrderDetailsTaxTotal } from './order-details-tax-total';
|
|
14
|
-
import { OrderItem } from './order-item';
|
|
15
|
-
import { PartyIdentification } from './party-identification';
|
|
16
|
-
import { ShipmentDetails } from './shipment-details';
|
|
12
|
+
import type { Address } from './address';
|
|
13
|
+
import type { OrderDetailsTaxTotal } from './order-details-tax-total';
|
|
14
|
+
import type { OrderItem } from './order-item';
|
|
15
|
+
import type { PartyIdentification } from './party-identification';
|
|
16
|
+
import type { ShipmentDetails } from './shipment-details';
|
|
17
17
|
/**
|
|
18
18
|
* Details of an order.
|
|
19
19
|
* @export
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { GiftDetails } from './gift-details';
|
|
13
|
-
import { ItemQuantity } from './item-quantity';
|
|
14
|
-
import { Money } from './money';
|
|
15
|
-
import { OrderItemTaxDetails } from './order-item-tax-details';
|
|
16
|
-
import { ScheduledDeliveryShipment } from './scheduled-delivery-shipment';
|
|
12
|
+
import type { GiftDetails } from './gift-details';
|
|
13
|
+
import type { ItemQuantity } from './item-quantity';
|
|
14
|
+
import type { Money } from './money';
|
|
15
|
+
import type { OrderItemTaxDetails } from './order-item-tax-details';
|
|
16
|
+
import type { ScheduledDeliveryShipment } from './scheduled-delivery-shipment';
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Order } from './order';
|
|
13
|
-
import { Pagination } from './pagination';
|
|
12
|
+
import type { Order } from './order';
|
|
13
|
+
import type { Pagination } from './pagination';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Address } from './address';
|
|
13
|
-
import { TaxRegistrationDetails } from './tax-registration-details';
|
|
12
|
+
import type { Address } from './address';
|
|
13
|
+
import type { TaxRegistrationDetails } from './tax-registration-details';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { OrderAcknowledgementItem } from './order-acknowledgement-item';
|
|
12
|
+
import type { OrderAcknowledgementItem } from './order-acknowledgement-item';
|
|
13
13
|
/**
|
|
14
14
|
* The request schema for the submitAcknowledgement operation.
|
|
15
15
|
* @export
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { TransactionId } from './transaction-id';
|
|
12
|
+
import type { TransactionId } from './transaction-id';
|
|
13
13
|
/**
|
|
14
14
|
* The response schema for the submitAcknowledgement operation.
|
|
15
15
|
* @export
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/vendor-direct-fulfillment-orders-api-v1",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data.",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.3.1",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.0.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.0.9",
|
|
22
|
+
"axios": "^1.7.2"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"vendor direct fulfillment orders api"
|
|
42
42
|
],
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "cce8c720364baf071322463e8e3ed29c322cc93a"
|
|
44
44
|
}
|