@sp-api-sdk/vendor-direct-fulfillment-orders-api-v1 1.8.3 → 1.8.6
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 +3 -3
- package/dist/cjs/src/api-model/models/item-quantity.js +3 -8
- package/dist/cjs/src/api-model/models/order-details.js +6 -11
- package/dist/cjs/src/api-model/models/tax-details.js +9 -14
- package/dist/cjs/src/api-model/models/tax-registration-details.js +4 -9
- package/dist/es/src/api-model/api/vendor-orders-api.js +3 -3
- package/dist/es/src/api-model/models/item-quantity.js +3 -8
- package/dist/es/src/api-model/models/order-details.js +6 -11
- package/dist/es/src/api-model/models/tax-details.js +9 -14
- package/dist/es/src/api-model/models/tax-registration-details.js +4 -9
- package/dist/types/src/api-model/api/vendor-orders-api.d.ts +14 -14
- package/dist/types/src/api-model/base.d.ts +2 -2
- package/dist/types/src/api-model/common.d.ts +7 -7
- package/dist/types/src/api-model/models/acknowledgement-status.d.ts +2 -2
- package/dist/types/src/api-model/models/address.d.ts +12 -12
- package/dist/types/src/api-model/models/get-order-response.d.ts +2 -2
- package/dist/types/src/api-model/models/get-orders-response.d.ts +2 -2
- package/dist/types/src/api-model/models/gift-details.d.ts +2 -2
- package/dist/types/src/api-model/models/item-quantity.d.ts +6 -9
- package/dist/types/src/api-model/models/model-error.d.ts +3 -3
- package/dist/types/src/api-model/models/money.d.ts +2 -2
- package/dist/types/src/api-model/models/order-acknowledgement-item.d.ts +7 -7
- 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 +17 -20
- package/dist/types/src/api-model/models/order-item-acknowledgement.d.ts +4 -4
- 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 +10 -10
- package/dist/types/src/api-model/models/order-list.d.ts +2 -2
- package/dist/types/src/api-model/models/order.d.ts +2 -2
- package/dist/types/src/api-model/models/pagination.d.ts +1 -1
- package/dist/types/src/api-model/models/party-identification.d.ts +3 -3
- package/dist/types/src/api-model/models/scheduled-delivery-shipment.d.ts +3 -3
- package/dist/types/src/api-model/models/shipment-dates.d.ts +2 -2
- package/dist/types/src/api-model/models/shipment-details.d.ts +7 -7
- 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 +2 -2
- package/dist/types/src/api-model/models/tax-details.d.ts +14 -17
- package/dist/types/src/api-model/models/tax-registration-details.d.ts +9 -12
- package/dist/types/src/api-model/models/transaction-id.d.ts +1 -1
- package/package.json +4 -4
|
@@ -47,7 +47,7 @@ const VendorOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
47
47
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
48
48
|
const localVarHeaderParameter = {};
|
|
49
49
|
const localVarQueryParameter = {};
|
|
50
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter
|
|
50
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
51
51
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
52
52
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
53
53
|
return {
|
|
@@ -111,7 +111,7 @@ const VendorOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
111
111
|
if (includeDetails !== undefined) {
|
|
112
112
|
localVarQueryParameter['includeDetails'] = includeDetails;
|
|
113
113
|
}
|
|
114
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter
|
|
114
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
115
115
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
116
116
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
117
117
|
return {
|
|
@@ -139,7 +139,7 @@ const VendorOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
139
139
|
const localVarHeaderParameter = {};
|
|
140
140
|
const localVarQueryParameter = {};
|
|
141
141
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
142
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter
|
|
142
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
143
143
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
144
144
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
145
145
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
@@ -14,11 +14,6 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ItemQuantityUnitOfMeasureEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*/
|
|
21
|
-
var ItemQuantityUnitOfMeasureEnum;
|
|
22
|
-
(function (ItemQuantityUnitOfMeasureEnum) {
|
|
23
|
-
ItemQuantityUnitOfMeasureEnum["Each"] = "Each";
|
|
24
|
-
})(ItemQuantityUnitOfMeasureEnum = exports.ItemQuantityUnitOfMeasureEnum || (exports.ItemQuantityUnitOfMeasureEnum = {}));
|
|
17
|
+
exports.ItemQuantityUnitOfMeasureEnum = {
|
|
18
|
+
Each: 'Each'
|
|
19
|
+
};
|
|
@@ -14,14 +14,9 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.OrderDetailsOrderStatusEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
OrderDetailsOrderStatusEnum["New"] = "NEW";
|
|
24
|
-
OrderDetailsOrderStatusEnum["Shipped"] = "SHIPPED";
|
|
25
|
-
OrderDetailsOrderStatusEnum["Accepted"] = "ACCEPTED";
|
|
26
|
-
OrderDetailsOrderStatusEnum["Cancelled"] = "CANCELLED";
|
|
27
|
-
})(OrderDetailsOrderStatusEnum = exports.OrderDetailsOrderStatusEnum || (exports.OrderDetailsOrderStatusEnum = {}));
|
|
17
|
+
exports.OrderDetailsOrderStatusEnum = {
|
|
18
|
+
New: 'NEW',
|
|
19
|
+
Shipped: 'SHIPPED',
|
|
20
|
+
Accepted: 'ACCEPTED',
|
|
21
|
+
Cancelled: 'CANCELLED'
|
|
22
|
+
};
|
|
@@ -14,17 +14,12 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.TaxDetailsTypeEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
TaxDetailsTypeEnum["Pst"] = "PST";
|
|
27
|
-
TaxDetailsTypeEnum["Total"] = "TOTAL";
|
|
28
|
-
TaxDetailsTypeEnum["Tva"] = "TVA";
|
|
29
|
-
TaxDetailsTypeEnum["Vat"] = "VAT";
|
|
30
|
-
})(TaxDetailsTypeEnum = exports.TaxDetailsTypeEnum || (exports.TaxDetailsTypeEnum = {}));
|
|
17
|
+
exports.TaxDetailsTypeEnum = {
|
|
18
|
+
Consumption: 'CONSUMPTION',
|
|
19
|
+
Gst: 'GST',
|
|
20
|
+
MwSt: 'MwSt.',
|
|
21
|
+
Pst: 'PST',
|
|
22
|
+
Total: 'TOTAL',
|
|
23
|
+
Tva: 'TVA',
|
|
24
|
+
Vat: 'VAT'
|
|
25
|
+
};
|
|
@@ -14,12 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.TaxRegistrationDetailsTaxRegistrationTypeEnum = void 0;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var TaxRegistrationDetailsTaxRegistrationTypeEnum;
|
|
22
|
-
(function (TaxRegistrationDetailsTaxRegistrationTypeEnum) {
|
|
23
|
-
TaxRegistrationDetailsTaxRegistrationTypeEnum["Vat"] = "VAT";
|
|
24
|
-
TaxRegistrationDetailsTaxRegistrationTypeEnum["Gst"] = "GST";
|
|
25
|
-
})(TaxRegistrationDetailsTaxRegistrationTypeEnum = exports.TaxRegistrationDetailsTaxRegistrationTypeEnum || (exports.TaxRegistrationDetailsTaxRegistrationTypeEnum = {}));
|
|
17
|
+
exports.TaxRegistrationDetailsTaxRegistrationTypeEnum = {
|
|
18
|
+
Vat: 'VAT',
|
|
19
|
+
Gst: 'GST'
|
|
20
|
+
};
|
|
@@ -43,7 +43,7 @@ export const VendorOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
43
43
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
44
44
|
const localVarHeaderParameter = {};
|
|
45
45
|
const localVarQueryParameter = {};
|
|
46
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
46
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
47
47
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48
48
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
49
49
|
return {
|
|
@@ -107,7 +107,7 @@ export const VendorOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
if (includeDetails !== undefined) {
|
|
108
108
|
localVarQueryParameter['includeDetails'] = includeDetails;
|
|
109
109
|
}
|
|
110
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
110
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
111
111
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
112
112
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
113
113
|
return {
|
|
@@ -135,7 +135,7 @@ export const VendorOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
135
135
|
const localVarHeaderParameter = {};
|
|
136
136
|
const localVarQueryParameter = {};
|
|
137
137
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
138
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter
|
|
138
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
139
139
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
140
140
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
141
141
|
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
@@ -11,11 +11,6 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*/
|
|
18
|
-
export var ItemQuantityUnitOfMeasureEnum;
|
|
19
|
-
(function (ItemQuantityUnitOfMeasureEnum) {
|
|
20
|
-
ItemQuantityUnitOfMeasureEnum["Each"] = "Each";
|
|
21
|
-
})(ItemQuantityUnitOfMeasureEnum || (ItemQuantityUnitOfMeasureEnum = {}));
|
|
14
|
+
export const ItemQuantityUnitOfMeasureEnum = {
|
|
15
|
+
Each: 'Each'
|
|
16
|
+
};
|
|
@@ -11,14 +11,9 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
OrderDetailsOrderStatusEnum["New"] = "NEW";
|
|
21
|
-
OrderDetailsOrderStatusEnum["Shipped"] = "SHIPPED";
|
|
22
|
-
OrderDetailsOrderStatusEnum["Accepted"] = "ACCEPTED";
|
|
23
|
-
OrderDetailsOrderStatusEnum["Cancelled"] = "CANCELLED";
|
|
24
|
-
})(OrderDetailsOrderStatusEnum || (OrderDetailsOrderStatusEnum = {}));
|
|
14
|
+
export const OrderDetailsOrderStatusEnum = {
|
|
15
|
+
New: 'NEW',
|
|
16
|
+
Shipped: 'SHIPPED',
|
|
17
|
+
Accepted: 'ACCEPTED',
|
|
18
|
+
Cancelled: 'CANCELLED'
|
|
19
|
+
};
|
|
@@ -11,17 +11,12 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
TaxDetailsTypeEnum["Pst"] = "PST";
|
|
24
|
-
TaxDetailsTypeEnum["Total"] = "TOTAL";
|
|
25
|
-
TaxDetailsTypeEnum["Tva"] = "TVA";
|
|
26
|
-
TaxDetailsTypeEnum["Vat"] = "VAT";
|
|
27
|
-
})(TaxDetailsTypeEnum || (TaxDetailsTypeEnum = {}));
|
|
14
|
+
export const TaxDetailsTypeEnum = {
|
|
15
|
+
Consumption: 'CONSUMPTION',
|
|
16
|
+
Gst: 'GST',
|
|
17
|
+
MwSt: 'MwSt.',
|
|
18
|
+
Pst: 'PST',
|
|
19
|
+
Total: 'TOTAL',
|
|
20
|
+
Tva: 'TVA',
|
|
21
|
+
Vat: 'VAT'
|
|
22
|
+
};
|
|
@@ -11,12 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export var TaxRegistrationDetailsTaxRegistrationTypeEnum;
|
|
19
|
-
(function (TaxRegistrationDetailsTaxRegistrationTypeEnum) {
|
|
20
|
-
TaxRegistrationDetailsTaxRegistrationTypeEnum["Vat"] = "VAT";
|
|
21
|
-
TaxRegistrationDetailsTaxRegistrationTypeEnum["Gst"] = "GST";
|
|
22
|
-
})(TaxRegistrationDetailsTaxRegistrationTypeEnum || (TaxRegistrationDetailsTaxRegistrationTypeEnum = {}));
|
|
14
|
+
export const TaxRegistrationDetailsTaxRegistrationTypeEnum = {
|
|
15
|
+
Vat: 'VAT',
|
|
16
|
+
Gst: 'GST'
|
|
17
|
+
};
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { AxiosPromise, AxiosInstance } from 'axios';
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { GetOrderResponse } from '../models';
|
|
@@ -20,14 +20,14 @@ import { SubmitAcknowledgementResponse } from '../models';
|
|
|
20
20
|
* VendorOrdersApi - axios parameter creator
|
|
21
21
|
* @export
|
|
22
22
|
*/
|
|
23
|
-
export declare const VendorOrdersApiAxiosParamCreator: (configuration?: Configuration
|
|
23
|
+
export declare const VendorOrdersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
24
|
/**
|
|
25
25
|
* Returns purchase order information for the purchaseOrderNumber that you specify. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
26
26
|
* @param {string} purchaseOrderNumber The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code.
|
|
27
27
|
* @param {*} [options] Override http request option.
|
|
28
28
|
* @throws {RequiredError}
|
|
29
29
|
*/
|
|
30
|
-
getOrder: (purchaseOrderNumber: string, options?:
|
|
30
|
+
getOrder: (purchaseOrderNumber: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
31
|
/**
|
|
32
32
|
* 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 Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
33
33
|
* @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.
|
|
@@ -41,27 +41,27 @@ export declare const VendorOrdersApiAxiosParamCreator: (configuration?: Configur
|
|
|
41
41
|
* @param {*} [options] Override http request option.
|
|
42
42
|
* @throws {RequiredError}
|
|
43
43
|
*/
|
|
44
|
-
getOrders: (createdAfter: string, createdBefore: string, shipFromPartyId?: string
|
|
44
|
+
getOrders: (createdAfter: string, createdBefore: string, shipFromPartyId?: string, status?: 'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED', limit?: number, sortOrder?: 'ASC' | 'DESC', nextToken?: string, includeDetails?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
45
|
/**
|
|
46
46
|
* Submits acknowledgements for one or more purchase orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
47
47
|
* @param {SubmitAcknowledgementRequest} body
|
|
48
48
|
* @param {*} [options] Override http request option.
|
|
49
49
|
* @throws {RequiredError}
|
|
50
50
|
*/
|
|
51
|
-
submitAcknowledgement: (body: SubmitAcknowledgementRequest, options?:
|
|
51
|
+
submitAcknowledgement: (body: SubmitAcknowledgementRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
54
54
|
* VendorOrdersApi - functional programming interface
|
|
55
55
|
* @export
|
|
56
56
|
*/
|
|
57
|
-
export declare const VendorOrdersApiFp: (configuration?: Configuration
|
|
57
|
+
export declare const VendorOrdersApiFp: (configuration?: Configuration) => {
|
|
58
58
|
/**
|
|
59
59
|
* Returns purchase order information for the purchaseOrderNumber that you specify. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
60
60
|
* @param {string} purchaseOrderNumber The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code.
|
|
61
61
|
* @param {*} [options] Override http request option.
|
|
62
62
|
* @throws {RequiredError}
|
|
63
63
|
*/
|
|
64
|
-
getOrder(purchaseOrderNumber: string, options?:
|
|
64
|
+
getOrder(purchaseOrderNumber: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrderResponse>>;
|
|
65
65
|
/**
|
|
66
66
|
* 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 Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
67
67
|
* @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.
|
|
@@ -75,20 +75,20 @@ export declare const VendorOrdersApiFp: (configuration?: Configuration | undefin
|
|
|
75
75
|
* @param {*} [options] Override http request option.
|
|
76
76
|
* @throws {RequiredError}
|
|
77
77
|
*/
|
|
78
|
-
getOrders(createdAfter: string, createdBefore: string, shipFromPartyId?: string
|
|
78
|
+
getOrders(createdAfter: string, createdBefore: string, shipFromPartyId?: string, status?: 'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED', limit?: number, sortOrder?: 'ASC' | 'DESC', nextToken?: string, includeDetails?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrdersResponse>>;
|
|
79
79
|
/**
|
|
80
80
|
* Submits acknowledgements for one or more purchase orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
81
81
|
* @param {SubmitAcknowledgementRequest} body
|
|
82
82
|
* @param {*} [options] Override http request option.
|
|
83
83
|
* @throws {RequiredError}
|
|
84
84
|
*/
|
|
85
|
-
submitAcknowledgement(body: SubmitAcknowledgementRequest, options?:
|
|
85
|
+
submitAcknowledgement(body: SubmitAcknowledgementRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitAcknowledgementResponse>>;
|
|
86
86
|
};
|
|
87
87
|
/**
|
|
88
88
|
* VendorOrdersApi - factory interface
|
|
89
89
|
* @export
|
|
90
90
|
*/
|
|
91
|
-
export declare const VendorOrdersApiFactory: (configuration?: Configuration
|
|
91
|
+
export declare const VendorOrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
92
92
|
/**
|
|
93
93
|
* Returns purchase order information for the purchaseOrderNumber that you specify. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
94
94
|
* @param {string} purchaseOrderNumber The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code.
|
|
@@ -109,7 +109,7 @@ export declare const VendorOrdersApiFactory: (configuration?: Configuration | un
|
|
|
109
109
|
* @param {*} [options] Override http request option.
|
|
110
110
|
* @throws {RequiredError}
|
|
111
111
|
*/
|
|
112
|
-
getOrders(createdAfter: string, createdBefore: string, shipFromPartyId?: string
|
|
112
|
+
getOrders(createdAfter: string, createdBefore: string, shipFromPartyId?: string, status?: 'NEW' | 'SHIPPED' | 'ACCEPTED' | 'CANCELLED', limit?: number, sortOrder?: 'ASC' | 'DESC', nextToken?: string, includeDetails?: boolean, options?: any): AxiosPromise<GetOrdersResponse>;
|
|
113
113
|
/**
|
|
114
114
|
* Submits acknowledgements for one or more purchase orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
115
115
|
* @param {SubmitAcknowledgementRequest} body
|
|
@@ -213,7 +213,7 @@ export declare class VendorOrdersApi extends BaseAPI {
|
|
|
213
213
|
* @throws {RequiredError}
|
|
214
214
|
* @memberof VendorOrdersApi
|
|
215
215
|
*/
|
|
216
|
-
getOrder(requestParameters: VendorOrdersApiGetOrderRequest, options?:
|
|
216
|
+
getOrder(requestParameters: VendorOrdersApiGetOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOrderResponse, any>>;
|
|
217
217
|
/**
|
|
218
218
|
* 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 Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
219
219
|
* @param {VendorOrdersApiGetOrdersRequest} requestParameters Request parameters.
|
|
@@ -221,7 +221,7 @@ export declare class VendorOrdersApi extends BaseAPI {
|
|
|
221
221
|
* @throws {RequiredError}
|
|
222
222
|
* @memberof VendorOrdersApi
|
|
223
223
|
*/
|
|
224
|
-
getOrders(requestParameters: VendorOrdersApiGetOrdersRequest, options?:
|
|
224
|
+
getOrders(requestParameters: VendorOrdersApiGetOrdersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOrdersResponse, any>>;
|
|
225
225
|
/**
|
|
226
226
|
* Submits acknowledgements for one or more purchase orders. **Usage Plans:** | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 10 | 10 | |Selling partner specific| Variable | Variable | The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
|
|
227
227
|
* @param {VendorOrdersApiSubmitAcknowledgementRequest} requestParameters Request parameters.
|
|
@@ -229,5 +229,5 @@ export declare class VendorOrdersApi extends BaseAPI {
|
|
|
229
229
|
* @throws {RequiredError}
|
|
230
230
|
* @memberof VendorOrdersApi
|
|
231
231
|
*/
|
|
232
|
-
submitAcknowledgement(requestParameters: VendorOrdersApiSubmitAcknowledgementRequest, options?:
|
|
232
|
+
submitAcknowledgement(requestParameters: VendorOrdersApiSubmitAcknowledgementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubmitAcknowledgementResponse, any>>;
|
|
233
233
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { Configuration } from "./configuration";
|
|
13
|
-
import { AxiosInstance } from 'axios';
|
|
13
|
+
import { AxiosInstance, AxiosRequestConfig } 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: AxiosRequestConfig;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { Configuration } from "./configuration";
|
|
13
13
|
import { RequestArgs } from "./base";
|
|
14
|
-
import { AxiosInstance } from 'axios';
|
|
14
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -27,22 +27,22 @@ export declare const assertParamExists: (functionName: string, paramName: string
|
|
|
27
27
|
*
|
|
28
28
|
* @export
|
|
29
29
|
*/
|
|
30
|
-
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration
|
|
30
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration
|
|
35
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @export
|
|
39
39
|
*/
|
|
40
|
-
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration
|
|
40
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @export
|
|
44
44
|
*/
|
|
45
|
-
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration
|
|
45
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @export
|
|
@@ -52,7 +52,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
|
52
52
|
*
|
|
53
53
|
* @export
|
|
54
54
|
*/
|
|
55
|
-
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration
|
|
55
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @export
|
|
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
@@ -20,11 +20,11 @@ export interface AcknowledgementStatus {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AcknowledgementStatus
|
|
22
22
|
*/
|
|
23
|
-
code?: string;
|
|
23
|
+
'code'?: string;
|
|
24
24
|
/**
|
|
25
25
|
* Reason for the acknowledgement code.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof AcknowledgementStatus
|
|
28
28
|
*/
|
|
29
|
-
description?: string;
|
|
29
|
+
'description'?: string;
|
|
30
30
|
}
|
|
@@ -20,71 +20,71 @@ export interface Address {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof Address
|
|
22
22
|
*/
|
|
23
|
-
name: string;
|
|
23
|
+
'name': string;
|
|
24
24
|
/**
|
|
25
25
|
* The attention name of the person at that address.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof Address
|
|
28
28
|
*/
|
|
29
|
-
attention?: string;
|
|
29
|
+
'attention'?: string;
|
|
30
30
|
/**
|
|
31
31
|
* First line of the address.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof Address
|
|
34
34
|
*/
|
|
35
|
-
addressLine1: string;
|
|
35
|
+
'addressLine1': string;
|
|
36
36
|
/**
|
|
37
37
|
* Additional address information, if required.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof Address
|
|
40
40
|
*/
|
|
41
|
-
addressLine2?: string;
|
|
41
|
+
'addressLine2'?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Additional address information, if required.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof Address
|
|
46
46
|
*/
|
|
47
|
-
addressLine3?: string;
|
|
47
|
+
'addressLine3'?: string;
|
|
48
48
|
/**
|
|
49
49
|
* The city where the person, business or institution is located.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof Address
|
|
52
52
|
*/
|
|
53
|
-
city?: string;
|
|
53
|
+
'city'?: string;
|
|
54
54
|
/**
|
|
55
55
|
* The county where person, business or institution is located.
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof Address
|
|
58
58
|
*/
|
|
59
|
-
county?: string;
|
|
59
|
+
'county'?: string;
|
|
60
60
|
/**
|
|
61
61
|
* The district where person, business or institution is located.
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof Address
|
|
64
64
|
*/
|
|
65
|
-
district?: string;
|
|
65
|
+
'district'?: string;
|
|
66
66
|
/**
|
|
67
67
|
* The state or region where person, business or institution is located.
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof Address
|
|
70
70
|
*/
|
|
71
|
-
stateOrRegion: string;
|
|
71
|
+
'stateOrRegion': string;
|
|
72
72
|
/**
|
|
73
73
|
* The postal code of that address. It conatins a series of letters or digits or both, sometimes including spaces or punctuation.
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof Address
|
|
76
76
|
*/
|
|
77
|
-
postalCode?: string;
|
|
77
|
+
'postalCode'?: string;
|
|
78
78
|
/**
|
|
79
79
|
* The two digit country code. In ISO 3166-1 alpha-2 format.
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof Address
|
|
82
82
|
*/
|
|
83
|
-
countryCode: string;
|
|
83
|
+
'countryCode': string;
|
|
84
84
|
/**
|
|
85
85
|
* The phone number of the person, business or institution located at that address.
|
|
86
86
|
* @type {string}
|
|
87
87
|
* @memberof Address
|
|
88
88
|
*/
|
|
89
|
-
phone?: string;
|
|
89
|
+
'phone'?: string;
|
|
90
90
|
}
|
|
@@ -21,11 +21,11 @@ export interface GetOrderResponse {
|
|
|
21
21
|
* @type {Order}
|
|
22
22
|
* @memberof GetOrderResponse
|
|
23
23
|
*/
|
|
24
|
-
payload?: Order;
|
|
24
|
+
'payload'?: Order;
|
|
25
25
|
/**
|
|
26
26
|
* A list of error responses returned when a request is unsuccessful.
|
|
27
27
|
* @type {Array<Error>}
|
|
28
28
|
* @memberof GetOrderResponse
|
|
29
29
|
*/
|
|
30
|
-
errors?: Array<Error>;
|
|
30
|
+
'errors'?: Array<Error>;
|
|
31
31
|
}
|
|
@@ -21,11 +21,11 @@ export interface GetOrdersResponse {
|
|
|
21
21
|
* @type {OrderList}
|
|
22
22
|
* @memberof GetOrdersResponse
|
|
23
23
|
*/
|
|
24
|
-
payload?: OrderList;
|
|
24
|
+
'payload'?: OrderList;
|
|
25
25
|
/**
|
|
26
26
|
* A list of error responses returned when a request is unsuccessful.
|
|
27
27
|
* @type {Array<Error>}
|
|
28
28
|
* @memberof GetOrdersResponse
|
|
29
29
|
*/
|
|
30
|
-
errors?: Array<Error>;
|
|
30
|
+
'errors'?: Array<Error>;
|
|
31
31
|
}
|
|
@@ -20,11 +20,11 @@ export interface GiftDetails {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof GiftDetails
|
|
22
22
|
*/
|
|
23
|
-
giftMessage?: string;
|
|
23
|
+
'giftMessage'?: string;
|
|
24
24
|
/**
|
|
25
25
|
* Gift wrap identifier for the gift wrapping, if any.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof GiftDetails
|
|
28
28
|
*/
|
|
29
|
-
giftWrapId?: string;
|
|
29
|
+
'giftWrapId'?: string;
|
|
30
30
|
}
|
|
@@ -20,18 +20,15 @@ export interface ItemQuantity {
|
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof ItemQuantity
|
|
22
22
|
*/
|
|
23
|
-
amount?: number;
|
|
23
|
+
'amount'?: number;
|
|
24
24
|
/**
|
|
25
25
|
* Unit of measure for the acknowledged quantity.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ItemQuantity
|
|
28
28
|
*/
|
|
29
|
-
unitOfMeasure?: ItemQuantityUnitOfMeasureEnum;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @export
|
|
33
|
-
* @enum {string}
|
|
34
|
-
*/
|
|
35
|
-
export declare enum ItemQuantityUnitOfMeasureEnum {
|
|
36
|
-
Each = "Each"
|
|
29
|
+
'unitOfMeasure'?: ItemQuantityUnitOfMeasureEnum;
|
|
37
30
|
}
|
|
31
|
+
export declare const ItemQuantityUnitOfMeasureEnum: {
|
|
32
|
+
readonly Each: "Each";
|
|
33
|
+
};
|
|
34
|
+
export declare type ItemQuantityUnitOfMeasureEnum = typeof ItemQuantityUnitOfMeasureEnum[keyof typeof ItemQuantityUnitOfMeasureEnum];
|
|
@@ -20,17 +20,17 @@ export interface ModelError {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ModelError
|
|
22
22
|
*/
|
|
23
|
-
code: string;
|
|
23
|
+
'code': string;
|
|
24
24
|
/**
|
|
25
25
|
* A message that describes the error condition.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ModelError
|
|
28
28
|
*/
|
|
29
|
-
message: string;
|
|
29
|
+
'message': string;
|
|
30
30
|
/**
|
|
31
31
|
* Additional details that can help the caller understand or fix the issue.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ModelError
|
|
34
34
|
*/
|
|
35
|
-
details?: string;
|
|
35
|
+
'details'?: string;
|
|
36
36
|
}
|
|
@@ -20,11 +20,11 @@ export interface Money {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof Money
|
|
22
22
|
*/
|
|
23
|
-
currencyCode?: string;
|
|
23
|
+
'currencyCode'?: string;
|
|
24
24
|
/**
|
|
25
25
|
* A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof Money
|
|
28
28
|
*/
|
|
29
|
-
amount?: string;
|
|
29
|
+
'amount'?: string;
|
|
30
30
|
}
|
|
@@ -23,41 +23,41 @@ export interface OrderAcknowledgementItem {
|
|
|
23
23
|
* @type {string}
|
|
24
24
|
* @memberof OrderAcknowledgementItem
|
|
25
25
|
*/
|
|
26
|
-
purchaseOrderNumber: string;
|
|
26
|
+
'purchaseOrderNumber': string;
|
|
27
27
|
/**
|
|
28
28
|
* The vendor\'s order number for this order.
|
|
29
29
|
* @type {string}
|
|
30
30
|
* @memberof OrderAcknowledgementItem
|
|
31
31
|
*/
|
|
32
|
-
vendorOrderNumber: string;
|
|
32
|
+
'vendorOrderNumber': string;
|
|
33
33
|
/**
|
|
34
34
|
* The date and time when the order is acknowledged, in ISO-8601 date/time format. For example: 2018-07-16T23:00:00Z / 2018-07-16T23:00:00-05:00 / 2018-07-16T23:00:00-08:00.
|
|
35
35
|
* @type {string}
|
|
36
36
|
* @memberof OrderAcknowledgementItem
|
|
37
37
|
*/
|
|
38
|
-
acknowledgementDate: string;
|
|
38
|
+
'acknowledgementDate': string;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* @type {AcknowledgementStatus}
|
|
42
42
|
* @memberof OrderAcknowledgementItem
|
|
43
43
|
*/
|
|
44
|
-
acknowledgementStatus: AcknowledgementStatus;
|
|
44
|
+
'acknowledgementStatus': AcknowledgementStatus;
|
|
45
45
|
/**
|
|
46
46
|
*
|
|
47
47
|
* @type {PartyIdentification}
|
|
48
48
|
* @memberof OrderAcknowledgementItem
|
|
49
49
|
*/
|
|
50
|
-
sellingParty: PartyIdentification;
|
|
50
|
+
'sellingParty': PartyIdentification;
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
53
53
|
* @type {PartyIdentification}
|
|
54
54
|
* @memberof OrderAcknowledgementItem
|
|
55
55
|
*/
|
|
56
|
-
shipFromParty: PartyIdentification;
|
|
56
|
+
'shipFromParty': PartyIdentification;
|
|
57
57
|
/**
|
|
58
58
|
* Item details including acknowledged quantity.
|
|
59
59
|
* @type {Array<OrderItemAcknowledgement>}
|
|
60
60
|
* @memberof OrderAcknowledgementItem
|
|
61
61
|
*/
|
|
62
|
-
itemAcknowledgements: Array<OrderItemAcknowledgement>;
|
|
62
|
+
'itemAcknowledgements': Array<OrderItemAcknowledgement>;
|
|
63
63
|
}
|
|
@@ -25,69 +25,66 @@ export interface OrderDetails {
|
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof OrderDetails
|
|
27
27
|
*/
|
|
28
|
-
customerOrderNumber: string;
|
|
28
|
+
'customerOrderNumber': string;
|
|
29
29
|
/**
|
|
30
30
|
* The date the order was placed. This field is expected to be in ISO-8601 date/time format, for example:2018-07-16T23:00:00Z/ 2018-07-16T23:00:00-05:00 /2018-07-16T23:00:00-08:00. If no time zone is specified, UTC should be assumed.
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof OrderDetails
|
|
33
33
|
*/
|
|
34
|
-
orderDate: string;
|
|
34
|
+
'orderDate': string;
|
|
35
35
|
/**
|
|
36
36
|
* Current status of the order.
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof OrderDetails
|
|
39
39
|
*/
|
|
40
|
-
orderStatus?: OrderDetailsOrderStatusEnum;
|
|
40
|
+
'orderStatus'?: OrderDetailsOrderStatusEnum;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {ShipmentDetails}
|
|
44
44
|
* @memberof OrderDetails
|
|
45
45
|
*/
|
|
46
|
-
shipmentDetails: ShipmentDetails;
|
|
46
|
+
'shipmentDetails': ShipmentDetails;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {OrderDetailsTaxTotal}
|
|
50
50
|
* @memberof OrderDetails
|
|
51
51
|
*/
|
|
52
|
-
taxTotal?: OrderDetailsTaxTotal;
|
|
52
|
+
'taxTotal'?: OrderDetailsTaxTotal;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {PartyIdentification}
|
|
56
56
|
* @memberof OrderDetails
|
|
57
57
|
*/
|
|
58
|
-
sellingParty: PartyIdentification;
|
|
58
|
+
'sellingParty': PartyIdentification;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {PartyIdentification}
|
|
62
62
|
* @memberof OrderDetails
|
|
63
63
|
*/
|
|
64
|
-
shipFromParty: PartyIdentification;
|
|
64
|
+
'shipFromParty': PartyIdentification;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {Address}
|
|
68
68
|
* @memberof OrderDetails
|
|
69
69
|
*/
|
|
70
|
-
shipToParty: Address;
|
|
70
|
+
'shipToParty': Address;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {PartyIdentification}
|
|
74
74
|
* @memberof OrderDetails
|
|
75
75
|
*/
|
|
76
|
-
billToParty: PartyIdentification;
|
|
76
|
+
'billToParty': PartyIdentification;
|
|
77
77
|
/**
|
|
78
78
|
* A list of items in this purchase order.
|
|
79
79
|
* @type {Array<OrderItem>}
|
|
80
80
|
* @memberof OrderDetails
|
|
81
81
|
*/
|
|
82
|
-
items: Array<OrderItem>;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* @export
|
|
86
|
-
* @enum {string}
|
|
87
|
-
*/
|
|
88
|
-
export declare enum OrderDetailsOrderStatusEnum {
|
|
89
|
-
New = "NEW",
|
|
90
|
-
Shipped = "SHIPPED",
|
|
91
|
-
Accepted = "ACCEPTED",
|
|
92
|
-
Cancelled = "CANCELLED"
|
|
82
|
+
'items': Array<OrderItem>;
|
|
93
83
|
}
|
|
84
|
+
export declare const OrderDetailsOrderStatusEnum: {
|
|
85
|
+
readonly New: "NEW";
|
|
86
|
+
readonly Shipped: "SHIPPED";
|
|
87
|
+
readonly Accepted: "ACCEPTED";
|
|
88
|
+
readonly Cancelled: "CANCELLED";
|
|
89
|
+
};
|
|
90
|
+
export declare type OrderDetailsOrderStatusEnum = typeof OrderDetailsOrderStatusEnum[keyof typeof OrderDetailsOrderStatusEnum];
|
|
@@ -21,23 +21,23 @@ export interface OrderItemAcknowledgement {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof OrderItemAcknowledgement
|
|
23
23
|
*/
|
|
24
|
-
itemSequenceNumber: string;
|
|
24
|
+
'itemSequenceNumber': string;
|
|
25
25
|
/**
|
|
26
26
|
* Buyer\'s standard identification number (ASIN) of an item.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof OrderItemAcknowledgement
|
|
29
29
|
*/
|
|
30
|
-
buyerProductIdentifier?: string;
|
|
30
|
+
'buyerProductIdentifier'?: string;
|
|
31
31
|
/**
|
|
32
32
|
* The vendor selected product identification of the item. Should be the same as was provided in the purchase order.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof OrderItemAcknowledgement
|
|
35
35
|
*/
|
|
36
|
-
vendorProductIdentifier?: string;
|
|
36
|
+
'vendorProductIdentifier'?: string;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {ItemQuantity}
|
|
40
40
|
* @memberof OrderItemAcknowledgement
|
|
41
41
|
*/
|
|
42
|
-
acknowledgedQuantity: ItemQuantity;
|
|
42
|
+
'acknowledgedQuantity': ItemQuantity;
|
|
43
43
|
}
|
|
@@ -25,59 +25,59 @@ export interface OrderItem {
|
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof OrderItem
|
|
27
27
|
*/
|
|
28
|
-
itemSequenceNumber: string;
|
|
28
|
+
'itemSequenceNumber': string;
|
|
29
29
|
/**
|
|
30
30
|
* Buyer\'s standard identification number (ASIN) of an item.
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof OrderItem
|
|
33
33
|
*/
|
|
34
|
-
buyerProductIdentifier?: string;
|
|
34
|
+
'buyerProductIdentifier'?: string;
|
|
35
35
|
/**
|
|
36
36
|
* The vendor selected product identification of the item.
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof OrderItem
|
|
39
39
|
*/
|
|
40
|
-
vendorProductIdentifier?: string;
|
|
40
|
+
'vendorProductIdentifier'?: string;
|
|
41
41
|
/**
|
|
42
42
|
* Title for the item.
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof OrderItem
|
|
45
45
|
*/
|
|
46
|
-
title?: string;
|
|
46
|
+
'title'?: string;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {ItemQuantity}
|
|
50
50
|
* @memberof OrderItem
|
|
51
51
|
*/
|
|
52
|
-
orderedQuantity: ItemQuantity;
|
|
52
|
+
'orderedQuantity': ItemQuantity;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {ScheduledDeliveryShipment}
|
|
56
56
|
* @memberof OrderItem
|
|
57
57
|
*/
|
|
58
|
-
scheduledDeliveryShipment?: ScheduledDeliveryShipment;
|
|
58
|
+
'scheduledDeliveryShipment'?: ScheduledDeliveryShipment;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {GiftDetails}
|
|
62
62
|
* @memberof OrderItem
|
|
63
63
|
*/
|
|
64
|
-
giftDetails?: GiftDetails;
|
|
64
|
+
'giftDetails'?: GiftDetails;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {Money}
|
|
68
68
|
* @memberof OrderItem
|
|
69
69
|
*/
|
|
70
|
-
netPrice: Money;
|
|
70
|
+
'netPrice': Money;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {OrderItemTaxDetails}
|
|
74
74
|
* @memberof OrderItem
|
|
75
75
|
*/
|
|
76
|
-
taxDetails?: OrderItemTaxDetails;
|
|
76
|
+
'taxDetails'?: OrderItemTaxDetails;
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
79
|
* @type {Money}
|
|
80
80
|
* @memberof OrderItem
|
|
81
81
|
*/
|
|
82
|
-
totalPrice?: Money;
|
|
82
|
+
'totalPrice'?: Money;
|
|
83
83
|
}
|
|
@@ -22,11 +22,11 @@ export interface OrderList {
|
|
|
22
22
|
* @type {Pagination}
|
|
23
23
|
* @memberof OrderList
|
|
24
24
|
*/
|
|
25
|
-
pagination?: Pagination;
|
|
25
|
+
'pagination'?: Pagination;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {Array<Order>}
|
|
29
29
|
* @memberof OrderList
|
|
30
30
|
*/
|
|
31
|
-
orders?: Array<Order>;
|
|
31
|
+
'orders'?: Array<Order>;
|
|
32
32
|
}
|
|
@@ -21,11 +21,11 @@ export interface Order {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof Order
|
|
23
23
|
*/
|
|
24
|
-
purchaseOrderNumber: string;
|
|
24
|
+
'purchaseOrderNumber': string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {OrderDetails}
|
|
28
28
|
* @memberof Order
|
|
29
29
|
*/
|
|
30
|
-
orderDetails?: OrderDetails;
|
|
30
|
+
'orderDetails'?: OrderDetails;
|
|
31
31
|
}
|
|
@@ -22,17 +22,17 @@ export interface PartyIdentification {
|
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof PartyIdentification
|
|
24
24
|
*/
|
|
25
|
-
partyId: string;
|
|
25
|
+
'partyId': string;
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
28
28
|
* @type {Address}
|
|
29
29
|
* @memberof PartyIdentification
|
|
30
30
|
*/
|
|
31
|
-
address?: Address;
|
|
31
|
+
'address'?: Address;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @type {TaxRegistrationDetails}
|
|
35
35
|
* @memberof PartyIdentification
|
|
36
36
|
*/
|
|
37
|
-
taxInfo?: TaxRegistrationDetails;
|
|
37
|
+
'taxInfo'?: TaxRegistrationDetails;
|
|
38
38
|
}
|
|
@@ -20,17 +20,17 @@ export interface ScheduledDeliveryShipment {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ScheduledDeliveryShipment
|
|
22
22
|
*/
|
|
23
|
-
scheduledDeliveryServiceType?: string;
|
|
23
|
+
'scheduledDeliveryServiceType'?: string;
|
|
24
24
|
/**
|
|
25
25
|
* Earliest nominated delivery date for the scheduled delivery.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ScheduledDeliveryShipment
|
|
28
28
|
*/
|
|
29
|
-
earliestNominatedDeliveryDate?: string;
|
|
29
|
+
'earliestNominatedDeliveryDate'?: string;
|
|
30
30
|
/**
|
|
31
31
|
* Latest nominated delivery date for the scheduled delivery.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ScheduledDeliveryShipment
|
|
34
34
|
*/
|
|
35
|
-
latestNominatedDeliveryDate?: string;
|
|
35
|
+
'latestNominatedDeliveryDate'?: string;
|
|
36
36
|
}
|
|
@@ -20,11 +20,11 @@ export interface ShipmentDates {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ShipmentDates
|
|
22
22
|
*/
|
|
23
|
-
requiredShipDate: string;
|
|
23
|
+
'requiredShipDate': string;
|
|
24
24
|
/**
|
|
25
25
|
* Delivery date promised to the Amazon customer.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ShipmentDates
|
|
28
28
|
*/
|
|
29
|
-
promisedDeliveryDate?: string;
|
|
29
|
+
'promisedDeliveryDate'?: string;
|
|
30
30
|
}
|
|
@@ -21,41 +21,41 @@ export interface ShipmentDetails {
|
|
|
21
21
|
* @type {boolean}
|
|
22
22
|
* @memberof ShipmentDetails
|
|
23
23
|
*/
|
|
24
|
-
isPriorityShipment: boolean;
|
|
24
|
+
'isPriorityShipment': boolean;
|
|
25
25
|
/**
|
|
26
26
|
* When true, this order is part of a scheduled delivery program.
|
|
27
27
|
* @type {boolean}
|
|
28
28
|
* @memberof ShipmentDetails
|
|
29
29
|
*/
|
|
30
|
-
isScheduledDeliveryShipment?: boolean;
|
|
30
|
+
'isScheduledDeliveryShipment'?: boolean;
|
|
31
31
|
/**
|
|
32
32
|
* When true, a packing slip is required to be sent to the customer.
|
|
33
33
|
* @type {boolean}
|
|
34
34
|
* @memberof ShipmentDetails
|
|
35
35
|
*/
|
|
36
|
-
isPslipRequired: boolean;
|
|
36
|
+
'isPslipRequired': boolean;
|
|
37
37
|
/**
|
|
38
38
|
* When true, the order contain a gift. Include the gift message and gift wrap information.
|
|
39
39
|
* @type {boolean}
|
|
40
40
|
* @memberof ShipmentDetails
|
|
41
41
|
*/
|
|
42
|
-
isGift?: boolean;
|
|
42
|
+
'isGift'?: boolean;
|
|
43
43
|
/**
|
|
44
44
|
* Ship method to be used for shipping the order. Amazon defines ship method codes indicating the shipping carrier and shipment service level. To see the full list of ship methods in use, including both the code and the friendly name, search the \'Help\' section on Vendor Central for \'ship methods\'.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof ShipmentDetails
|
|
47
47
|
*/
|
|
48
|
-
shipMethod: string;
|
|
48
|
+
'shipMethod': string;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {ShipmentDates}
|
|
52
52
|
* @memberof ShipmentDetails
|
|
53
53
|
*/
|
|
54
|
-
shipmentDates: ShipmentDates;
|
|
54
|
+
'shipmentDates': ShipmentDates;
|
|
55
55
|
/**
|
|
56
56
|
* Message to customer for order status.
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof ShipmentDetails
|
|
59
59
|
*/
|
|
60
|
-
messageToCustomer: string;
|
|
60
|
+
'messageToCustomer': string;
|
|
61
61
|
}
|
|
@@ -21,5 +21,5 @@ export interface SubmitAcknowledgementRequest {
|
|
|
21
21
|
* @type {Array<OrderAcknowledgementItem>}
|
|
22
22
|
* @memberof SubmitAcknowledgementRequest
|
|
23
23
|
*/
|
|
24
|
-
orderAcknowledgements?: Array<OrderAcknowledgementItem>;
|
|
24
|
+
'orderAcknowledgements'?: Array<OrderAcknowledgementItem>;
|
|
25
25
|
}
|
|
@@ -21,11 +21,11 @@ export interface SubmitAcknowledgementResponse {
|
|
|
21
21
|
* @type {TransactionId}
|
|
22
22
|
* @memberof SubmitAcknowledgementResponse
|
|
23
23
|
*/
|
|
24
|
-
payload?: TransactionId;
|
|
24
|
+
'payload'?: TransactionId;
|
|
25
25
|
/**
|
|
26
26
|
* A list of error responses returned when a request is unsuccessful.
|
|
27
27
|
* @type {Array<Error>}
|
|
28
28
|
* @memberof SubmitAcknowledgementResponse
|
|
29
29
|
*/
|
|
30
|
-
errors?: Array<Error>;
|
|
30
|
+
'errors'?: Array<Error>;
|
|
31
31
|
}
|
|
@@ -21,36 +21,33 @@ export interface TaxDetails {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof TaxDetails
|
|
23
23
|
*/
|
|
24
|
-
taxRate?: string;
|
|
24
|
+
'taxRate'?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {Money}
|
|
28
28
|
* @memberof TaxDetails
|
|
29
29
|
*/
|
|
30
|
-
taxAmount: Money;
|
|
30
|
+
'taxAmount': Money;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {Money}
|
|
34
34
|
* @memberof TaxDetails
|
|
35
35
|
*/
|
|
36
|
-
taxableAmount?: Money;
|
|
36
|
+
'taxableAmount'?: Money;
|
|
37
37
|
/**
|
|
38
38
|
* Tax type.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof TaxDetails
|
|
41
41
|
*/
|
|
42
|
-
type?: TaxDetailsTypeEnum;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @export
|
|
46
|
-
* @enum {string}
|
|
47
|
-
*/
|
|
48
|
-
export declare enum TaxDetailsTypeEnum {
|
|
49
|
-
Consumption = "CONSUMPTION",
|
|
50
|
-
Gst = "GST",
|
|
51
|
-
MwSt = "MwSt.",
|
|
52
|
-
Pst = "PST",
|
|
53
|
-
Total = "TOTAL",
|
|
54
|
-
Tva = "TVA",
|
|
55
|
-
Vat = "VAT"
|
|
42
|
+
'type'?: TaxDetailsTypeEnum;
|
|
56
43
|
}
|
|
44
|
+
export declare const TaxDetailsTypeEnum: {
|
|
45
|
+
readonly Consumption: "CONSUMPTION";
|
|
46
|
+
readonly Gst: "GST";
|
|
47
|
+
readonly MwSt: "MwSt.";
|
|
48
|
+
readonly Pst: "PST";
|
|
49
|
+
readonly Total: "TOTAL";
|
|
50
|
+
readonly Tva: "TVA";
|
|
51
|
+
readonly Vat: "VAT";
|
|
52
|
+
};
|
|
53
|
+
export declare type TaxDetailsTypeEnum = typeof TaxDetailsTypeEnum[keyof typeof TaxDetailsTypeEnum];
|
|
@@ -21,31 +21,28 @@ export interface TaxRegistrationDetails {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof TaxRegistrationDetails
|
|
23
23
|
*/
|
|
24
|
-
taxRegistrationType?: TaxRegistrationDetailsTaxRegistrationTypeEnum;
|
|
24
|
+
'taxRegistrationType'?: TaxRegistrationDetailsTaxRegistrationTypeEnum;
|
|
25
25
|
/**
|
|
26
26
|
* Tax registration number for the party. For example, VAT ID.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof TaxRegistrationDetails
|
|
29
29
|
*/
|
|
30
|
-
taxRegistrationNumber: string;
|
|
30
|
+
'taxRegistrationNumber': string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {Address}
|
|
34
34
|
* @memberof TaxRegistrationDetails
|
|
35
35
|
*/
|
|
36
|
-
taxRegistrationAddress?: Address;
|
|
36
|
+
'taxRegistrationAddress'?: Address;
|
|
37
37
|
/**
|
|
38
38
|
* Tax registration message that can be used for additional tax related details.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof TaxRegistrationDetails
|
|
41
41
|
*/
|
|
42
|
-
taxRegistrationMessages?: string;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @export
|
|
46
|
-
* @enum {string}
|
|
47
|
-
*/
|
|
48
|
-
export declare enum TaxRegistrationDetailsTaxRegistrationTypeEnum {
|
|
49
|
-
Vat = "VAT",
|
|
50
|
-
Gst = "GST"
|
|
42
|
+
'taxRegistrationMessages'?: string;
|
|
51
43
|
}
|
|
44
|
+
export declare const TaxRegistrationDetailsTaxRegistrationTypeEnum: {
|
|
45
|
+
readonly Vat: "VAT";
|
|
46
|
+
readonly Gst: "GST";
|
|
47
|
+
};
|
|
48
|
+
export declare type TaxRegistrationDetailsTaxRegistrationTypeEnum = typeof TaxRegistrationDetailsTaxRegistrationTypeEnum[keyof typeof TaxRegistrationDetailsTaxRegistrationTypeEnum];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/vendor-direct-fulfillment-orders-api-v1",
|
|
3
3
|
"author": "Vincent Mesquita <vincent.mesquita@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": "1.8.
|
|
5
|
+
"version": "1.8.6",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"test": "jest"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@sp-api-sdk/auth": "^1.9.
|
|
31
|
-
"@sp-api-sdk/common": "^1.9.
|
|
30
|
+
"@sp-api-sdk/auth": "^1.9.18",
|
|
31
|
+
"@sp-api-sdk/common": "^1.9.4",
|
|
32
32
|
"axios": "^0.27.2"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"sp sdk",
|
|
51
51
|
"vendor direct fulfillment orders api"
|
|
52
52
|
],
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "18efdada205f63f94bd5c11e163e758adbb93257"
|
|
54
54
|
}
|