@sp-api-sdk/vendor-direct-fulfillment-orders-api-v1 4.0.17 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.cjs +528 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1088 -0
- package/dist/index.d.ts +1088 -0
- package/dist/index.js +480 -0
- package/dist/index.js.map +1 -0
- package/package.json +23 -12
- package/dist/cjs/api-model/api/vendor-direct-fulfillment-orders-api.js +0 -288
- package/dist/cjs/api-model/api.js +0 -30
- package/dist/cjs/api-model/base.js +0 -52
- package/dist/cjs/api-model/common.js +0 -123
- package/dist/cjs/api-model/configuration.js +0 -98
- package/dist/cjs/api-model/index.js +0 -32
- package/dist/cjs/api-model/models/acknowledgement-status.js +0 -15
- package/dist/cjs/api-model/models/address.js +0 -15
- package/dist/cjs/api-model/models/get-order-response.js +0 -15
- package/dist/cjs/api-model/models/get-orders-response.js +0 -15
- package/dist/cjs/api-model/models/gift-details.js +0 -15
- package/dist/cjs/api-model/models/index.js +0 -42
- package/dist/cjs/api-model/models/item-quantity.js +0 -19
- package/dist/cjs/api-model/models/model-error.js +0 -15
- package/dist/cjs/api-model/models/money.js +0 -15
- package/dist/cjs/api-model/models/order-acknowledgement-item.js +0 -15
- package/dist/cjs/api-model/models/order-details-tax-total.js +0 -15
- package/dist/cjs/api-model/models/order-details.js +0 -22
- package/dist/cjs/api-model/models/order-item-acknowledgement.js +0 -15
- package/dist/cjs/api-model/models/order-item-tax-details.js +0 -15
- package/dist/cjs/api-model/models/order-item.js +0 -15
- package/dist/cjs/api-model/models/order-list.js +0 -15
- package/dist/cjs/api-model/models/order.js +0 -15
- package/dist/cjs/api-model/models/pagination.js +0 -15
- package/dist/cjs/api-model/models/party-identification.js +0 -15
- package/dist/cjs/api-model/models/scheduled-delivery-shipment.js +0 -15
- package/dist/cjs/api-model/models/shipment-dates.js +0 -15
- package/dist/cjs/api-model/models/shipment-details.js +0 -15
- package/dist/cjs/api-model/models/submit-acknowledgement-request.js +0 -15
- package/dist/cjs/api-model/models/submit-acknowledgement-response.js +0 -15
- package/dist/cjs/api-model/models/tax-details.js +0 -25
- package/dist/cjs/api-model/models/tax-registration-details.js +0 -20
- package/dist/cjs/api-model/models/transaction-id.js +0 -15
- package/dist/cjs/client.js +0 -35
- package/dist/cjs/index.js +0 -19
- package/dist/es/api-model/api/vendor-direct-fulfillment-orders-api.js +0 -278
- package/dist/es/api-model/api.js +0 -14
- package/dist/es/api-model/base.js +0 -44
- package/dist/es/api-model/common.js +0 -110
- package/dist/es/api-model/configuration.js +0 -94
- package/dist/es/api-model/index.js +0 -16
- package/dist/es/api-model/models/acknowledgement-status.js +0 -14
- package/dist/es/api-model/models/address.js +0 -14
- package/dist/es/api-model/models/get-order-response.js +0 -14
- package/dist/es/api-model/models/get-orders-response.js +0 -14
- package/dist/es/api-model/models/gift-details.js +0 -14
- package/dist/es/api-model/models/index.js +0 -26
- package/dist/es/api-model/models/item-quantity.js +0 -16
- package/dist/es/api-model/models/model-error.js +0 -14
- package/dist/es/api-model/models/money.js +0 -14
- package/dist/es/api-model/models/order-acknowledgement-item.js +0 -14
- package/dist/es/api-model/models/order-details-tax-total.js +0 -14
- package/dist/es/api-model/models/order-details.js +0 -19
- package/dist/es/api-model/models/order-item-acknowledgement.js +0 -14
- package/dist/es/api-model/models/order-item-tax-details.js +0 -14
- package/dist/es/api-model/models/order-item.js +0 -14
- package/dist/es/api-model/models/order-list.js +0 -14
- package/dist/es/api-model/models/order.js +0 -14
- package/dist/es/api-model/models/pagination.js +0 -14
- package/dist/es/api-model/models/party-identification.js +0 -14
- package/dist/es/api-model/models/scheduled-delivery-shipment.js +0 -14
- package/dist/es/api-model/models/shipment-dates.js +0 -14
- package/dist/es/api-model/models/shipment-details.js +0 -14
- package/dist/es/api-model/models/submit-acknowledgement-request.js +0 -14
- package/dist/es/api-model/models/submit-acknowledgement-response.js +0 -14
- package/dist/es/api-model/models/tax-details.js +0 -22
- package/dist/es/api-model/models/tax-registration-details.js +0 -17
- package/dist/es/api-model/models/transaction-id.js +0 -14
- package/dist/es/client.js +0 -31
- package/dist/es/index.js +0 -3
- package/dist/types/api-model/api/vendor-direct-fulfillment-orders-api.d.ts +0 -204
- package/dist/types/api-model/api.d.ts +0 -12
- package/dist/types/api-model/base.d.ts +0 -42
- package/dist/types/api-model/common.d.ts +0 -34
- package/dist/types/api-model/configuration.d.ts +0 -98
- package/dist/types/api-model/index.d.ts +0 -14
- package/dist/types/api-model/models/acknowledgement-status.d.ts +0 -24
- package/dist/types/api-model/models/address.d.ts +0 -64
- package/dist/types/api-model/models/get-order-response.d.ts +0 -22
- package/dist/types/api-model/models/get-orders-response.d.ts +0 -22
- package/dist/types/api-model/models/gift-details.d.ts +0 -24
- package/dist/types/api-model/models/index.d.ts +0 -26
- package/dist/types/api-model/models/item-quantity.d.ts +0 -28
- package/dist/types/api-model/models/model-error.d.ts +0 -28
- package/dist/types/api-model/models/money.d.ts +0 -24
- package/dist/types/api-model/models/order-acknowledgement-item.d.ts +0 -38
- package/dist/types/api-model/models/order-details-tax-total.d.ts +0 -21
- package/dist/types/api-model/models/order-details.d.ts +0 -50
- package/dist/types/api-model/models/order-item-acknowledgement.d.ts +0 -30
- package/dist/types/api-model/models/order-item-tax-details.d.ts +0 -21
- package/dist/types/api-model/models/order-item.d.ts +0 -43
- package/dist/types/api-model/models/order-list.d.ts +0 -23
- package/dist/types/api-model/models/order.d.ts +0 -22
- package/dist/types/api-model/models/pagination.d.ts +0 -20
- package/dist/types/api-model/models/party-identification.d.ts +0 -24
- package/dist/types/api-model/models/scheduled-delivery-shipment.d.ts +0 -28
- package/dist/types/api-model/models/shipment-dates.d.ts +0 -24
- package/dist/types/api-model/models/shipment-details.d.ts +0 -42
- package/dist/types/api-model/models/submit-acknowledgement-request.d.ts +0 -21
- package/dist/types/api-model/models/submit-acknowledgement-response.d.ts +0 -22
- package/dist/types/api-model/models/tax-details.d.ts +0 -37
- package/dist/types/api-model/models/tax-registration-details.d.ts +0 -35
- package/dist/types/api-model/models/transaction-id.d.ts +0 -20
- package/dist/types/client.d.ts +0 -6
- package/dist/types/index.d.ts +0 -3
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Direct Fulfillment Orders
|
|
5
|
-
* The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import globalAxios from 'axios';
|
|
15
|
-
// Some imports not used depending on template conditions
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
20
|
-
/**
|
|
21
|
-
* VendorDirectFulfillmentOrdersApi - axios parameter creator
|
|
22
|
-
*/
|
|
23
|
-
export const VendorDirectFulfillmentOrdersApiAxiosParamCreator = function (configuration) {
|
|
24
|
-
return {
|
|
25
|
-
/**
|
|
26
|
-
* Returns purchase order information for the purchaseOrderNumber that you specify. **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).
|
|
27
|
-
* @param {string} purchaseOrderNumber The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code.
|
|
28
|
-
* @param {*} [options] Override http request option.
|
|
29
|
-
* @throws {RequiredError}
|
|
30
|
-
*/
|
|
31
|
-
getOrder: async (purchaseOrderNumber, options = {}) => {
|
|
32
|
-
// verify required parameter 'purchaseOrderNumber' is not null or undefined
|
|
33
|
-
assertParamExists('getOrder', 'purchaseOrderNumber', purchaseOrderNumber);
|
|
34
|
-
const localVarPath = `/vendor/directFulfillment/orders/v1/purchaseOrders/{purchaseOrderNumber}`
|
|
35
|
-
.replace('{purchaseOrderNumber}', encodeURIComponent(String(purchaseOrderNumber)));
|
|
36
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
38
|
-
let baseOptions;
|
|
39
|
-
if (configuration) {
|
|
40
|
-
baseOptions = configuration.baseOptions;
|
|
41
|
-
}
|
|
42
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
43
|
-
const localVarHeaderParameter = {};
|
|
44
|
-
const localVarQueryParameter = {};
|
|
45
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
46
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
47
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
49
|
-
return {
|
|
50
|
-
url: toPathString(localVarUrlObj),
|
|
51
|
-
options: localVarRequestOptions,
|
|
52
|
-
};
|
|
53
|
-
},
|
|
54
|
-
/**
|
|
55
|
-
* 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).
|
|
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
|
-
* @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
|
-
* @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
|
|
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
|
-
* @param {number} [limit] The limit to the number of purchase orders returned.
|
|
61
|
-
* @param {GetOrdersSortOrderEnum} [sortOrder] Sort the list in ascending or descending order by order creation date.
|
|
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
|
-
* @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.
|
|
64
|
-
* @param {*} [options] Override http request option.
|
|
65
|
-
* @throws {RequiredError}
|
|
66
|
-
*/
|
|
67
|
-
getOrders: async (createdAfter, createdBefore, shipFromPartyId, status, limit, sortOrder, nextToken, includeDetails, options = {}) => {
|
|
68
|
-
// verify required parameter 'createdAfter' is not null or undefined
|
|
69
|
-
assertParamExists('getOrders', 'createdAfter', createdAfter);
|
|
70
|
-
// verify required parameter 'createdBefore' is not null or undefined
|
|
71
|
-
assertParamExists('getOrders', 'createdBefore', createdBefore);
|
|
72
|
-
const localVarPath = `/vendor/directFulfillment/orders/v1/purchaseOrders`;
|
|
73
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
74
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
75
|
-
let baseOptions;
|
|
76
|
-
if (configuration) {
|
|
77
|
-
baseOptions = configuration.baseOptions;
|
|
78
|
-
}
|
|
79
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
80
|
-
const localVarHeaderParameter = {};
|
|
81
|
-
const localVarQueryParameter = {};
|
|
82
|
-
if (shipFromPartyId !== undefined) {
|
|
83
|
-
localVarQueryParameter['shipFromPartyId'] = shipFromPartyId;
|
|
84
|
-
}
|
|
85
|
-
if (status !== undefined) {
|
|
86
|
-
localVarQueryParameter['status'] = status;
|
|
87
|
-
}
|
|
88
|
-
if (limit !== undefined) {
|
|
89
|
-
localVarQueryParameter['limit'] = limit;
|
|
90
|
-
}
|
|
91
|
-
if (createdAfter !== undefined) {
|
|
92
|
-
localVarQueryParameter['createdAfter'] = (createdAfter instanceof Date) ?
|
|
93
|
-
createdAfter.toISOString() :
|
|
94
|
-
createdAfter;
|
|
95
|
-
}
|
|
96
|
-
if (createdBefore !== undefined) {
|
|
97
|
-
localVarQueryParameter['createdBefore'] = (createdBefore instanceof Date) ?
|
|
98
|
-
createdBefore.toISOString() :
|
|
99
|
-
createdBefore;
|
|
100
|
-
}
|
|
101
|
-
if (sortOrder !== undefined) {
|
|
102
|
-
localVarQueryParameter['sortOrder'] = sortOrder;
|
|
103
|
-
}
|
|
104
|
-
if (nextToken !== undefined) {
|
|
105
|
-
localVarQueryParameter['nextToken'] = nextToken;
|
|
106
|
-
}
|
|
107
|
-
if (includeDetails !== undefined) {
|
|
108
|
-
localVarQueryParameter['includeDetails'] = includeDetails;
|
|
109
|
-
}
|
|
110
|
-
localVarHeaderParameter['Accept'] = 'application/json,payload';
|
|
111
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
112
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
113
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
114
|
-
return {
|
|
115
|
-
url: toPathString(localVarUrlObj),
|
|
116
|
-
options: localVarRequestOptions,
|
|
117
|
-
};
|
|
118
|
-
},
|
|
119
|
-
/**
|
|
120
|
-
* 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).
|
|
121
|
-
* @param {SubmitAcknowledgementRequest} body The request body containing the acknowledgement to an order.
|
|
122
|
-
* @param {*} [options] Override http request option.
|
|
123
|
-
* @throws {RequiredError}
|
|
124
|
-
*/
|
|
125
|
-
submitAcknowledgement: async (body, options = {}) => {
|
|
126
|
-
// verify required parameter 'body' is not null or undefined
|
|
127
|
-
assertParamExists('submitAcknowledgement', 'body', body);
|
|
128
|
-
const localVarPath = `/vendor/directFulfillment/orders/v1/acknowledgements`;
|
|
129
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
130
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
131
|
-
let baseOptions;
|
|
132
|
-
if (configuration) {
|
|
133
|
-
baseOptions = configuration.baseOptions;
|
|
134
|
-
}
|
|
135
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
136
|
-
const localVarHeaderParameter = {};
|
|
137
|
-
const localVarQueryParameter = {};
|
|
138
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
140
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
141
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
142
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
143
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
144
|
-
return {
|
|
145
|
-
url: toPathString(localVarUrlObj),
|
|
146
|
-
options: localVarRequestOptions,
|
|
147
|
-
};
|
|
148
|
-
},
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
/**
|
|
152
|
-
* VendorDirectFulfillmentOrdersApi - functional programming interface
|
|
153
|
-
*/
|
|
154
|
-
export const VendorDirectFulfillmentOrdersApiFp = function (configuration) {
|
|
155
|
-
const localVarAxiosParamCreator = VendorDirectFulfillmentOrdersApiAxiosParamCreator(configuration);
|
|
156
|
-
return {
|
|
157
|
-
/**
|
|
158
|
-
* Returns purchase order information for the purchaseOrderNumber that you specify. **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).
|
|
159
|
-
* @param {string} purchaseOrderNumber The order identifier for the purchase order that you want. Formatting Notes: alpha-numeric code.
|
|
160
|
-
* @param {*} [options] Override http request option.
|
|
161
|
-
* @throws {RequiredError}
|
|
162
|
-
*/
|
|
163
|
-
async getOrder(purchaseOrderNumber, options) {
|
|
164
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrder(purchaseOrderNumber, options);
|
|
165
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
166
|
-
const localVarOperationServerBasePath = operationServerMap['VendorDirectFulfillmentOrdersApi.getOrder']?.[localVarOperationServerIndex]?.url;
|
|
167
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
168
|
-
},
|
|
169
|
-
/**
|
|
170
|
-
* 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).
|
|
171
|
-
* @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.
|
|
172
|
-
* @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.
|
|
173
|
-
* @param {string} [shipFromPartyId] The vendor warehouse identifier for the fulfillment warehouse. If not specified, the result will contain orders for all warehouses.
|
|
174
|
-
* @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.
|
|
175
|
-
* @param {number} [limit] The limit to the number of purchase orders returned.
|
|
176
|
-
* @param {GetOrdersSortOrderEnum} [sortOrder] Sort the list in ascending or descending order by order creation date.
|
|
177
|
-
* @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.
|
|
178
|
-
* @param {boolean} [includeDetails] When true, returns the complete purchase order details. Otherwise, only purchase order numbers are returned.
|
|
179
|
-
* @param {*} [options] Override http request option.
|
|
180
|
-
* @throws {RequiredError}
|
|
181
|
-
*/
|
|
182
|
-
async getOrders(createdAfter, createdBefore, shipFromPartyId, status, limit, sortOrder, nextToken, includeDetails, options) {
|
|
183
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrders(createdAfter, createdBefore, shipFromPartyId, status, limit, sortOrder, nextToken, includeDetails, options);
|
|
184
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
185
|
-
const localVarOperationServerBasePath = operationServerMap['VendorDirectFulfillmentOrdersApi.getOrders']?.[localVarOperationServerIndex]?.url;
|
|
186
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
187
|
-
},
|
|
188
|
-
/**
|
|
189
|
-
* 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).
|
|
190
|
-
* @param {SubmitAcknowledgementRequest} body The request body containing the acknowledgement to an order.
|
|
191
|
-
* @param {*} [options] Override http request option.
|
|
192
|
-
* @throws {RequiredError}
|
|
193
|
-
*/
|
|
194
|
-
async submitAcknowledgement(body, options) {
|
|
195
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.submitAcknowledgement(body, options);
|
|
196
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
197
|
-
const localVarOperationServerBasePath = operationServerMap['VendorDirectFulfillmentOrdersApi.submitAcknowledgement']?.[localVarOperationServerIndex]?.url;
|
|
198
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
199
|
-
},
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
/**
|
|
203
|
-
* VendorDirectFulfillmentOrdersApi - factory interface
|
|
204
|
-
*/
|
|
205
|
-
export const VendorDirectFulfillmentOrdersApiFactory = function (configuration, basePath, axios) {
|
|
206
|
-
const localVarFp = VendorDirectFulfillmentOrdersApiFp(configuration);
|
|
207
|
-
return {
|
|
208
|
-
/**
|
|
209
|
-
* Returns purchase order information for the purchaseOrderNumber that you specify. **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).
|
|
210
|
-
* @param {VendorDirectFulfillmentOrdersApiGetOrderRequest} requestParameters Request parameters.
|
|
211
|
-
* @param {*} [options] Override http request option.
|
|
212
|
-
* @throws {RequiredError}
|
|
213
|
-
*/
|
|
214
|
-
getOrder(requestParameters, options) {
|
|
215
|
-
return localVarFp.getOrder(requestParameters.purchaseOrderNumber, options).then((request) => request(axios, basePath));
|
|
216
|
-
},
|
|
217
|
-
/**
|
|
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 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).
|
|
219
|
-
* @param {VendorDirectFulfillmentOrdersApiGetOrdersRequest} requestParameters Request parameters.
|
|
220
|
-
* @param {*} [options] Override http request option.
|
|
221
|
-
* @throws {RequiredError}
|
|
222
|
-
*/
|
|
223
|
-
getOrders(requestParameters, options) {
|
|
224
|
-
return localVarFp.getOrders(requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.shipFromPartyId, requestParameters.status, requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.includeDetails, options).then((request) => request(axios, basePath));
|
|
225
|
-
},
|
|
226
|
-
/**
|
|
227
|
-
* 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).
|
|
228
|
-
* @param {VendorDirectFulfillmentOrdersApiSubmitAcknowledgementRequest} requestParameters Request parameters.
|
|
229
|
-
* @param {*} [options] Override http request option.
|
|
230
|
-
* @throws {RequiredError}
|
|
231
|
-
*/
|
|
232
|
-
submitAcknowledgement(requestParameters, options) {
|
|
233
|
-
return localVarFp.submitAcknowledgement(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
234
|
-
},
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
/**
|
|
238
|
-
* VendorDirectFulfillmentOrdersApi - object-oriented interface
|
|
239
|
-
*/
|
|
240
|
-
export class VendorDirectFulfillmentOrdersApi extends BaseAPI {
|
|
241
|
-
/**
|
|
242
|
-
* Returns purchase order information for the purchaseOrderNumber that you specify. **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).
|
|
243
|
-
* @param {VendorDirectFulfillmentOrdersApiGetOrderRequest} requestParameters Request parameters.
|
|
244
|
-
* @param {*} [options] Override http request option.
|
|
245
|
-
* @throws {RequiredError}
|
|
246
|
-
*/
|
|
247
|
-
getOrder(requestParameters, options) {
|
|
248
|
-
return VendorDirectFulfillmentOrdersApiFp(this.configuration).getOrder(requestParameters.purchaseOrderNumber, options).then((request) => request(this.axios, this.basePath));
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* 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).
|
|
252
|
-
* @param {VendorDirectFulfillmentOrdersApiGetOrdersRequest} requestParameters Request parameters.
|
|
253
|
-
* @param {*} [options] Override http request option.
|
|
254
|
-
* @throws {RequiredError}
|
|
255
|
-
*/
|
|
256
|
-
getOrders(requestParameters, options) {
|
|
257
|
-
return VendorDirectFulfillmentOrdersApiFp(this.configuration).getOrders(requestParameters.createdAfter, requestParameters.createdBefore, requestParameters.shipFromPartyId, requestParameters.status, requestParameters.limit, requestParameters.sortOrder, requestParameters.nextToken, requestParameters.includeDetails, options).then((request) => request(this.axios, this.basePath));
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
* 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).
|
|
261
|
-
* @param {VendorDirectFulfillmentOrdersApiSubmitAcknowledgementRequest} requestParameters Request parameters.
|
|
262
|
-
* @param {*} [options] Override http request option.
|
|
263
|
-
* @throws {RequiredError}
|
|
264
|
-
*/
|
|
265
|
-
submitAcknowledgement(requestParameters, options) {
|
|
266
|
-
return VendorDirectFulfillmentOrdersApiFp(this.configuration).submitAcknowledgement(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
export const GetOrdersStatusEnum = {
|
|
270
|
-
New: 'NEW',
|
|
271
|
-
Shipped: 'SHIPPED',
|
|
272
|
-
Accepted: 'ACCEPTED',
|
|
273
|
-
Cancelled: 'CANCELLED',
|
|
274
|
-
};
|
|
275
|
-
export const GetOrdersSortOrderEnum = {
|
|
276
|
-
Asc: 'ASC',
|
|
277
|
-
Desc: 'DESC',
|
|
278
|
-
};
|
package/dist/es/api-model/api.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Direct Fulfillment Orders
|
|
5
|
-
* The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
export * from './api/vendor-direct-fulfillment-orders-api';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Direct Fulfillment Orders
|
|
5
|
-
* The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import globalAxios from 'axios';
|
|
15
|
-
export const BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
16
|
-
export const COLLECTION_FORMATS = {
|
|
17
|
-
csv: ",",
|
|
18
|
-
ssv: " ",
|
|
19
|
-
tsv: "\t",
|
|
20
|
-
pipes: "|",
|
|
21
|
-
};
|
|
22
|
-
export class BaseAPI {
|
|
23
|
-
basePath;
|
|
24
|
-
axios;
|
|
25
|
-
configuration;
|
|
26
|
-
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
27
|
-
this.basePath = basePath;
|
|
28
|
-
this.axios = axios;
|
|
29
|
-
if (configuration) {
|
|
30
|
-
this.configuration = configuration;
|
|
31
|
-
this.basePath = configuration.basePath ?? basePath;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
;
|
|
36
|
-
export class RequiredError extends Error {
|
|
37
|
-
field;
|
|
38
|
-
constructor(field, msg) {
|
|
39
|
-
super(msg);
|
|
40
|
-
this.field = field;
|
|
41
|
-
this.name = "RequiredError";
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
export const operationServerMap = {};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Direct Fulfillment Orders
|
|
5
|
-
* The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
import { RequiredError } from "./base";
|
|
15
|
-
export const DUMMY_BASE_URL = 'https://example.com';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @throws {RequiredError}
|
|
19
|
-
*/
|
|
20
|
-
export const assertParamExists = function (functionName, paramName, paramValue) {
|
|
21
|
-
if (paramValue === null || paramValue === undefined) {
|
|
22
|
-
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
export const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
26
|
-
if (configuration && configuration.apiKey) {
|
|
27
|
-
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
28
|
-
? await configuration.apiKey(keyParamName)
|
|
29
|
-
: await configuration.apiKey;
|
|
30
|
-
object[keyParamName] = localVarApiKeyValue;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
export const setBasicAuthToObject = function (object, configuration) {
|
|
34
|
-
if (configuration && (configuration.username || configuration.password)) {
|
|
35
|
-
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
export const setBearerAuthToObject = async function (object, configuration) {
|
|
39
|
-
if (configuration && configuration.accessToken) {
|
|
40
|
-
const accessToken = typeof configuration.accessToken === 'function'
|
|
41
|
-
? await configuration.accessToken()
|
|
42
|
-
: await configuration.accessToken;
|
|
43
|
-
object["Authorization"] = "Bearer " + accessToken;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
export const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
47
|
-
if (configuration && configuration.accessToken) {
|
|
48
|
-
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
49
|
-
? await configuration.accessToken(name, scopes)
|
|
50
|
-
: await configuration.accessToken;
|
|
51
|
-
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
55
|
-
if (parameter == null)
|
|
56
|
-
return;
|
|
57
|
-
if (typeof parameter === "object") {
|
|
58
|
-
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
59
|
-
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
if (urlSearchParams.has(key)) {
|
|
67
|
-
urlSearchParams.append(key, parameter);
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
urlSearchParams.set(key, parameter);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
export const setSearchParams = function (url, ...objects) {
|
|
75
|
-
const searchParams = new URLSearchParams(url.search);
|
|
76
|
-
setFlattenedQueryParams(searchParams, objects);
|
|
77
|
-
url.search = searchParams.toString();
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
81
|
-
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
82
|
-
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
83
|
-
*/
|
|
84
|
-
// @ts-ignore
|
|
85
|
-
export const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
86
|
-
if (value instanceof Set) {
|
|
87
|
-
return Array.from(value);
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
return value;
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
94
|
-
const nonString = typeof value !== 'string';
|
|
95
|
-
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
96
|
-
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
97
|
-
: nonString;
|
|
98
|
-
return needsSerialization
|
|
99
|
-
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
100
|
-
: (value || "");
|
|
101
|
-
};
|
|
102
|
-
export const toPathString = function (url) {
|
|
103
|
-
return url.pathname + url.search + url.hash;
|
|
104
|
-
};
|
|
105
|
-
export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
106
|
-
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
107
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
108
|
-
return axios.request(axiosRequestArgs);
|
|
109
|
-
};
|
|
110
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/**
|
|
3
|
-
* Selling Partner API for Direct Fulfillment Orders
|
|
4
|
-
* The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: v1
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
export class Configuration {
|
|
14
|
-
/**
|
|
15
|
-
* parameter for apiKey security
|
|
16
|
-
* @param name security name
|
|
17
|
-
*/
|
|
18
|
-
apiKey;
|
|
19
|
-
/**
|
|
20
|
-
* parameter for basic security
|
|
21
|
-
*/
|
|
22
|
-
username;
|
|
23
|
-
/**
|
|
24
|
-
* parameter for basic security
|
|
25
|
-
*/
|
|
26
|
-
password;
|
|
27
|
-
/**
|
|
28
|
-
* parameter for oauth2 security
|
|
29
|
-
* @param name security name
|
|
30
|
-
* @param scopes oauth2 scope
|
|
31
|
-
*/
|
|
32
|
-
accessToken;
|
|
33
|
-
/**
|
|
34
|
-
* parameter for aws4 signature security
|
|
35
|
-
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
36
|
-
* @param {string} options.region - aws region
|
|
37
|
-
* @param {string} options.service - name of the service.
|
|
38
|
-
* @param {string} credentials.accessKeyId - aws access key id
|
|
39
|
-
* @param {string} credentials.secretAccessKey - aws access key
|
|
40
|
-
* @param {string} credentials.sessionToken - aws session token
|
|
41
|
-
* @memberof Configuration
|
|
42
|
-
*/
|
|
43
|
-
awsv4;
|
|
44
|
-
/**
|
|
45
|
-
* override base path
|
|
46
|
-
*/
|
|
47
|
-
basePath;
|
|
48
|
-
/**
|
|
49
|
-
* override server index
|
|
50
|
-
*/
|
|
51
|
-
serverIndex;
|
|
52
|
-
/**
|
|
53
|
-
* base options for axios calls
|
|
54
|
-
*/
|
|
55
|
-
baseOptions;
|
|
56
|
-
/**
|
|
57
|
-
* The FormData constructor that will be used to create multipart form data
|
|
58
|
-
* requests. You can inject this here so that execution environments that
|
|
59
|
-
* do not support the FormData class can still run the generated client.
|
|
60
|
-
*
|
|
61
|
-
* @type {new () => FormData}
|
|
62
|
-
*/
|
|
63
|
-
formDataCtor;
|
|
64
|
-
constructor(param = {}) {
|
|
65
|
-
this.apiKey = param.apiKey;
|
|
66
|
-
this.username = param.username;
|
|
67
|
-
this.password = param.password;
|
|
68
|
-
this.accessToken = param.accessToken;
|
|
69
|
-
this.awsv4 = param.awsv4;
|
|
70
|
-
this.basePath = param.basePath;
|
|
71
|
-
this.serverIndex = param.serverIndex;
|
|
72
|
-
this.baseOptions = {
|
|
73
|
-
...param.baseOptions,
|
|
74
|
-
headers: {
|
|
75
|
-
...param.baseOptions?.headers,
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
this.formDataCtor = param.formDataCtor;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Check if the given MIME is a JSON MIME.
|
|
82
|
-
* JSON MIME examples:
|
|
83
|
-
* application/json
|
|
84
|
-
* application/json; charset=UTF8
|
|
85
|
-
* APPLICATION/JSON
|
|
86
|
-
* application/vnd.company+json
|
|
87
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
88
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
89
|
-
*/
|
|
90
|
-
isJsonMime(mime) {
|
|
91
|
-
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
92
|
-
return mime !== null && jsonMime.test(mime);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Direct Fulfillment Orders
|
|
5
|
-
* The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
export * from "./api";
|
|
15
|
-
export * from "./configuration";
|
|
16
|
-
export * from "./models";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Direct Fulfillment Orders
|
|
5
|
-
* The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Direct Fulfillment Orders
|
|
5
|
-
* The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Direct Fulfillment Orders
|
|
5
|
-
* The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Direct Fulfillment Orders
|
|
5
|
-
* The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Selling Partner API for Direct Fulfillment Orders
|
|
5
|
-
* The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor\'s order data.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
export {};
|