@teemill/orders 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +7 -25
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/api.ts +1526 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1103 -0
- package/dist/api.js +632 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api.d.ts +1103 -0
- package/dist/esm/api.js +625 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/{models/Status.d.ts → esm/index.d.ts} +3 -16
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -3
- package/dist/index.js +15 -5
- package/git_push.sh +57 -0
- package/{src/models/Status.ts → index.ts} +3 -26
- package/package.json +18 -4
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +4 -6
- package/dist/apis/OrdersApi.d.ts +0 -115
- package/dist/apis/OrdersApi.js +0 -531
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -19
- package/dist/models/Address.d.ts +0 -73
- package/dist/models/Address.js +0 -67
- package/dist/models/ApiError.d.ts +0 -37
- package/dist/models/ApiError.js +0 -49
- package/dist/models/ConfirmOrderFulfillment.d.ts +0 -37
- package/dist/models/ConfirmOrderFulfillment.js +0 -51
- package/dist/models/ConfirmOrderRequest.d.ts +0 -32
- package/dist/models/ConfirmOrderRequest.js +0 -48
- package/dist/models/ConfirmOrderValidationError.d.ts +0 -47
- package/dist/models/ConfirmOrderValidationError.js +0 -60
- package/dist/models/ContactInformation.d.ts +0 -37
- package/dist/models/ContactInformation.js +0 -49
- package/dist/models/DeliveryEstimates.d.ts +0 -37
- package/dist/models/DeliveryEstimates.js +0 -47
- package/dist/models/ExportOrders202Response.d.ts +0 -31
- package/dist/models/ExportOrders202Response.js +0 -45
- package/dist/models/Fulfillment.d.ts +0 -71
- package/dist/models/Fulfillment.js +0 -61
- package/dist/models/FulfillmentItem.d.ts +0 -43
- package/dist/models/FulfillmentItem.js +0 -49
- package/dist/models/Order.d.ts +0 -135
- package/dist/models/Order.js +0 -90
- package/dist/models/OrderItem.d.ts +0 -75
- package/dist/models/OrderItem.js +0 -61
- package/dist/models/OrderItemTaxPrice.d.ts +0 -37
- package/dist/models/OrderItemTaxPrice.js +0 -47
- package/dist/models/OrderTracking.d.ts +0 -43
- package/dist/models/OrderTracking.js +0 -49
- package/dist/models/OrdersResponse.d.ts +0 -38
- package/dist/models/OrdersResponse.js +0 -48
- package/dist/models/Origin.d.ts +0 -37
- package/dist/models/Origin.js +0 -47
- package/dist/models/Price.d.ts +0 -37
- package/dist/models/Price.js +0 -47
- package/dist/models/ShippingMethod.d.ts +0 -75
- package/dist/models/ShippingMethod.js +0 -61
- package/dist/models/Status.js +0 -39
- package/dist/models/StatusHistoryItem.d.ts +0 -38
- package/dist/models/StatusHistoryItem.js +0 -48
- package/dist/models/index.d.ts +0 -20
- package/dist/models/index.js +0 -38
- package/dist/runtime.d.ts +0 -187
- package/dist/runtime.js +0 -565
- package/src/apis/OrdersApi.ts +0 -511
- package/src/apis/index.ts +0 -3
- package/src/index.ts +0 -5
- package/src/models/Address.ts +0 -120
- package/src/models/ApiError.ts +0 -69
- package/src/models/ConfirmOrderFulfillment.ts +0 -70
- package/src/models/ConfirmOrderRequest.ts +0 -68
- package/src/models/ConfirmOrderValidationError.ts +0 -83
- package/src/models/ContactInformation.ts +0 -69
- package/src/models/DeliveryEstimates.ts +0 -68
- package/src/models/ExportOrders202Response.ts +0 -60
- package/src/models/Fulfillment.ts +0 -133
- package/src/models/FulfillmentItem.ts +0 -76
- package/src/models/Order.ts +0 -239
- package/src/models/OrderItem.ts +0 -127
- package/src/models/OrderItemTaxPrice.ts +0 -68
- package/src/models/OrderTracking.ts +0 -76
- package/src/models/OrdersResponse.ts +0 -75
- package/src/models/Origin.ts +0 -68
- package/src/models/Price.ts +0 -68
- package/src/models/ShippingMethod.ts +0 -129
- package/src/models/StatusHistoryItem.ts +0 -75
- package/src/models/index.ts +0 -22
- package/src/runtime.ts +0 -441
package/dist/esm/api.js
ADDED
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Orders API
|
|
5
|
+
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.6.1
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
+
export const ConfirmOrderValidationErrorCodeEnum = {
|
|
30
|
+
BadRequest: 'BAD_REQUEST',
|
|
31
|
+
PaymentFailed: 'PAYMENT_FAILED',
|
|
32
|
+
Conflict: 'CONFLICT',
|
|
33
|
+
ActionRequired: 'ACTION_REQUIRED'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @enum {string}
|
|
39
|
+
*/
|
|
40
|
+
export const Status = {
|
|
41
|
+
New: 'new',
|
|
42
|
+
Paid: 'paid',
|
|
43
|
+
Processing: 'processing',
|
|
44
|
+
Complete: 'complete',
|
|
45
|
+
Refunded: 'refunded'
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* OrdersApi - axios parameter creator
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
51
|
+
export const OrdersApiAxiosParamCreator = function (configuration) {
|
|
52
|
+
return {
|
|
53
|
+
/**
|
|
54
|
+
* Cancels an order if it has not yet started processing.
|
|
55
|
+
* @summary Cancel order
|
|
56
|
+
* @param {string} project What project it is
|
|
57
|
+
* @param {string} orderId Unique identifier of an order
|
|
58
|
+
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
59
|
+
* @param {*} [options] Override http request option.
|
|
60
|
+
* @throws {RequiredError}
|
|
61
|
+
*/
|
|
62
|
+
cancelOrder: (project_1, orderId_1, fields_1, ...args_1) => __awaiter(this, [project_1, orderId_1, fields_1, ...args_1], void 0, function* (project, orderId, fields, options = {}) {
|
|
63
|
+
// verify required parameter 'project' is not null or undefined
|
|
64
|
+
assertParamExists('cancelOrder', 'project', project);
|
|
65
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
66
|
+
assertParamExists('cancelOrder', 'orderId', orderId);
|
|
67
|
+
const localVarPath = `/v1/orders/{orderId}`
|
|
68
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
69
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
70
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
71
|
+
let baseOptions;
|
|
72
|
+
if (configuration) {
|
|
73
|
+
baseOptions = configuration.baseOptions;
|
|
74
|
+
}
|
|
75
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
76
|
+
const localVarHeaderParameter = {};
|
|
77
|
+
const localVarQueryParameter = {};
|
|
78
|
+
// authentication session-oauth required
|
|
79
|
+
// oauth required
|
|
80
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
81
|
+
// authentication api-key required
|
|
82
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
83
|
+
if (project !== undefined) {
|
|
84
|
+
localVarQueryParameter['project'] = project;
|
|
85
|
+
}
|
|
86
|
+
if (fields !== undefined) {
|
|
87
|
+
localVarQueryParameter['fields'] = fields;
|
|
88
|
+
}
|
|
89
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
90
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
91
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
92
|
+
return {
|
|
93
|
+
url: toPathString(localVarUrlObj),
|
|
94
|
+
options: localVarRequestOptions,
|
|
95
|
+
};
|
|
96
|
+
}),
|
|
97
|
+
/**
|
|
98
|
+
* Confirms an order, and submits it as ready to take payment and begin processing.
|
|
99
|
+
* @summary Confirm order
|
|
100
|
+
* @param {string} project What project it is
|
|
101
|
+
* @param {string} orderId Unique identifier of an order
|
|
102
|
+
* @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
|
|
103
|
+
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
confirmOrder: (project_1, orderId_1, confirmOrderRequest_1, fields_1, ...args_1) => __awaiter(this, [project_1, orderId_1, confirmOrderRequest_1, fields_1, ...args_1], void 0, function* (project, orderId, confirmOrderRequest, fields, options = {}) {
|
|
108
|
+
// verify required parameter 'project' is not null or undefined
|
|
109
|
+
assertParamExists('confirmOrder', 'project', project);
|
|
110
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
111
|
+
assertParamExists('confirmOrder', 'orderId', orderId);
|
|
112
|
+
// verify required parameter 'confirmOrderRequest' is not null or undefined
|
|
113
|
+
assertParamExists('confirmOrder', 'confirmOrderRequest', confirmOrderRequest);
|
|
114
|
+
const localVarPath = `/v1/orders/{orderId}/confirm`
|
|
115
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
116
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
117
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
118
|
+
let baseOptions;
|
|
119
|
+
if (configuration) {
|
|
120
|
+
baseOptions = configuration.baseOptions;
|
|
121
|
+
}
|
|
122
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
123
|
+
const localVarHeaderParameter = {};
|
|
124
|
+
const localVarQueryParameter = {};
|
|
125
|
+
// authentication session-oauth required
|
|
126
|
+
// oauth required
|
|
127
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
128
|
+
// authentication api-key required
|
|
129
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
130
|
+
if (project !== undefined) {
|
|
131
|
+
localVarQueryParameter['project'] = project;
|
|
132
|
+
}
|
|
133
|
+
if (fields !== undefined) {
|
|
134
|
+
localVarQueryParameter['fields'] = fields;
|
|
135
|
+
}
|
|
136
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
137
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
138
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
139
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
140
|
+
localVarRequestOptions.data = serializeDataIfNeeded(confirmOrderRequest, localVarRequestOptions, configuration);
|
|
141
|
+
return {
|
|
142
|
+
url: toPathString(localVarUrlObj),
|
|
143
|
+
options: localVarRequestOptions,
|
|
144
|
+
};
|
|
145
|
+
}),
|
|
146
|
+
/**
|
|
147
|
+
* Creates a new order for the provided variants. You can fetch details and references to the given project\'s variants from the Product Catalog API.
|
|
148
|
+
* @summary Create order
|
|
149
|
+
* @param {string} project What project it is
|
|
150
|
+
* @param {Order} order Order schema
|
|
151
|
+
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
152
|
+
* @param {*} [options] Override http request option.
|
|
153
|
+
* @throws {RequiredError}
|
|
154
|
+
*/
|
|
155
|
+
createOrder: (project_1, order_1, fields_1, ...args_1) => __awaiter(this, [project_1, order_1, fields_1, ...args_1], void 0, function* (project, order, fields, options = {}) {
|
|
156
|
+
// verify required parameter 'project' is not null or undefined
|
|
157
|
+
assertParamExists('createOrder', 'project', project);
|
|
158
|
+
// verify required parameter 'order' is not null or undefined
|
|
159
|
+
assertParamExists('createOrder', 'order', order);
|
|
160
|
+
const localVarPath = `/v1/orders`;
|
|
161
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
162
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
163
|
+
let baseOptions;
|
|
164
|
+
if (configuration) {
|
|
165
|
+
baseOptions = configuration.baseOptions;
|
|
166
|
+
}
|
|
167
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
168
|
+
const localVarHeaderParameter = {};
|
|
169
|
+
const localVarQueryParameter = {};
|
|
170
|
+
// authentication session-oauth required
|
|
171
|
+
// oauth required
|
|
172
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
173
|
+
// authentication api-key required
|
|
174
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
175
|
+
if (project !== undefined) {
|
|
176
|
+
localVarQueryParameter['project'] = project;
|
|
177
|
+
}
|
|
178
|
+
if (fields !== undefined) {
|
|
179
|
+
localVarQueryParameter['fields'] = fields;
|
|
180
|
+
}
|
|
181
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
182
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
183
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
184
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
185
|
+
localVarRequestOptions.data = serializeDataIfNeeded(order, localVarRequestOptions, configuration);
|
|
186
|
+
return {
|
|
187
|
+
url: toPathString(localVarUrlObj),
|
|
188
|
+
options: localVarRequestOptions,
|
|
189
|
+
};
|
|
190
|
+
}),
|
|
191
|
+
/**
|
|
192
|
+
* Export orders as a CSV file
|
|
193
|
+
* @summary Export orders
|
|
194
|
+
* @param {string} project What project it is
|
|
195
|
+
* @param {string} start Start of date range to filter by when orders were placed
|
|
196
|
+
* @param {string} [end] End of date range to filter by when orders were placed
|
|
197
|
+
* @param {*} [options] Override http request option.
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
exportOrders: (project_1, start_1, end_1, ...args_1) => __awaiter(this, [project_1, start_1, end_1, ...args_1], void 0, function* (project, start, end, options = {}) {
|
|
201
|
+
// verify required parameter 'project' is not null or undefined
|
|
202
|
+
assertParamExists('exportOrders', 'project', project);
|
|
203
|
+
// verify required parameter 'start' is not null or undefined
|
|
204
|
+
assertParamExists('exportOrders', 'start', start);
|
|
205
|
+
const localVarPath = `/v1/orders/export`;
|
|
206
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
207
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
208
|
+
let baseOptions;
|
|
209
|
+
if (configuration) {
|
|
210
|
+
baseOptions = configuration.baseOptions;
|
|
211
|
+
}
|
|
212
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
213
|
+
const localVarHeaderParameter = {};
|
|
214
|
+
const localVarQueryParameter = {};
|
|
215
|
+
// authentication session-oauth required
|
|
216
|
+
// oauth required
|
|
217
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
218
|
+
// authentication api-key required
|
|
219
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
220
|
+
if (project !== undefined) {
|
|
221
|
+
localVarQueryParameter['project'] = project;
|
|
222
|
+
}
|
|
223
|
+
if (start !== undefined) {
|
|
224
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
225
|
+
start.toISOString() :
|
|
226
|
+
start;
|
|
227
|
+
}
|
|
228
|
+
if (end !== undefined) {
|
|
229
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
230
|
+
end.toISOString() :
|
|
231
|
+
end;
|
|
232
|
+
}
|
|
233
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
234
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
235
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
236
|
+
return {
|
|
237
|
+
url: toPathString(localVarUrlObj),
|
|
238
|
+
options: localVarRequestOptions,
|
|
239
|
+
};
|
|
240
|
+
}),
|
|
241
|
+
/**
|
|
242
|
+
* Get an order by a given ID.
|
|
243
|
+
* @summary Get order
|
|
244
|
+
* @param {string} project What project it is
|
|
245
|
+
* @param {string} orderId Unique identifier of an order
|
|
246
|
+
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
*/
|
|
250
|
+
getOrder: (project_1, orderId_1, fields_1, ...args_1) => __awaiter(this, [project_1, orderId_1, fields_1, ...args_1], void 0, function* (project, orderId, fields, options = {}) {
|
|
251
|
+
// verify required parameter 'project' is not null or undefined
|
|
252
|
+
assertParamExists('getOrder', 'project', project);
|
|
253
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
254
|
+
assertParamExists('getOrder', 'orderId', orderId);
|
|
255
|
+
const localVarPath = `/v1/orders/{orderId}`
|
|
256
|
+
.replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
|
|
257
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
258
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
259
|
+
let baseOptions;
|
|
260
|
+
if (configuration) {
|
|
261
|
+
baseOptions = configuration.baseOptions;
|
|
262
|
+
}
|
|
263
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
264
|
+
const localVarHeaderParameter = {};
|
|
265
|
+
const localVarQueryParameter = {};
|
|
266
|
+
// authentication session-oauth required
|
|
267
|
+
// oauth required
|
|
268
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
269
|
+
// authentication api-key required
|
|
270
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
271
|
+
if (project !== undefined) {
|
|
272
|
+
localVarQueryParameter['project'] = project;
|
|
273
|
+
}
|
|
274
|
+
if (fields !== undefined) {
|
|
275
|
+
localVarQueryParameter['fields'] = fields;
|
|
276
|
+
}
|
|
277
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
278
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
280
|
+
return {
|
|
281
|
+
url: toPathString(localVarUrlObj),
|
|
282
|
+
options: localVarRequestOptions,
|
|
283
|
+
};
|
|
284
|
+
}),
|
|
285
|
+
/**
|
|
286
|
+
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
287
|
+
* @summary List orders
|
|
288
|
+
* @param {string} project What project it is
|
|
289
|
+
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
290
|
+
* @param {number} [pageToken] Page reference token
|
|
291
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
292
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
293
|
+
* @param {Array<string>} [ids] Specify fulfillment IDs to list
|
|
294
|
+
* @param {Array<Status>} [statuses] Filter by fulfillment status
|
|
295
|
+
* @param {string} [start] Start of date range to filter by when orders were placed
|
|
296
|
+
* @param {string} [end] End of date range to filter by when orders were placed
|
|
297
|
+
* @param {*} [options] Override http request option.
|
|
298
|
+
* @throws {RequiredError}
|
|
299
|
+
*/
|
|
300
|
+
getOrders: (project_1, fields_1, pageToken_1, pageSize_1, search_1, ids_1, statuses_1, start_1, end_1, ...args_1) => __awaiter(this, [project_1, fields_1, pageToken_1, pageSize_1, search_1, ids_1, statuses_1, start_1, end_1, ...args_1], void 0, function* (project, fields, pageToken, pageSize, search, ids, statuses, start, end, options = {}) {
|
|
301
|
+
// verify required parameter 'project' is not null or undefined
|
|
302
|
+
assertParamExists('getOrders', 'project', project);
|
|
303
|
+
const localVarPath = `/v1/orders`;
|
|
304
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
305
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
306
|
+
let baseOptions;
|
|
307
|
+
if (configuration) {
|
|
308
|
+
baseOptions = configuration.baseOptions;
|
|
309
|
+
}
|
|
310
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
311
|
+
const localVarHeaderParameter = {};
|
|
312
|
+
const localVarQueryParameter = {};
|
|
313
|
+
// authentication session-oauth required
|
|
314
|
+
// oauth required
|
|
315
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
316
|
+
// authentication api-key required
|
|
317
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
318
|
+
if (project !== undefined) {
|
|
319
|
+
localVarQueryParameter['project'] = project;
|
|
320
|
+
}
|
|
321
|
+
if (fields !== undefined) {
|
|
322
|
+
localVarQueryParameter['fields'] = fields;
|
|
323
|
+
}
|
|
324
|
+
if (pageToken !== undefined) {
|
|
325
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
326
|
+
}
|
|
327
|
+
if (pageSize !== undefined) {
|
|
328
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
329
|
+
}
|
|
330
|
+
if (search !== undefined) {
|
|
331
|
+
localVarQueryParameter['search'] = search;
|
|
332
|
+
}
|
|
333
|
+
if (ids) {
|
|
334
|
+
localVarQueryParameter['ids'] = ids;
|
|
335
|
+
}
|
|
336
|
+
if (statuses) {
|
|
337
|
+
localVarQueryParameter['statuses'] = statuses;
|
|
338
|
+
}
|
|
339
|
+
if (start !== undefined) {
|
|
340
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
341
|
+
start.toISOString() :
|
|
342
|
+
start;
|
|
343
|
+
}
|
|
344
|
+
if (end !== undefined) {
|
|
345
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
346
|
+
end.toISOString() :
|
|
347
|
+
end;
|
|
348
|
+
}
|
|
349
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
350
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
351
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
352
|
+
return {
|
|
353
|
+
url: toPathString(localVarUrlObj),
|
|
354
|
+
options: localVarRequestOptions,
|
|
355
|
+
};
|
|
356
|
+
}),
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
/**
|
|
360
|
+
* OrdersApi - functional programming interface
|
|
361
|
+
* @export
|
|
362
|
+
*/
|
|
363
|
+
export const OrdersApiFp = function (configuration) {
|
|
364
|
+
const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration);
|
|
365
|
+
return {
|
|
366
|
+
/**
|
|
367
|
+
* Cancels an order if it has not yet started processing.
|
|
368
|
+
* @summary Cancel order
|
|
369
|
+
* @param {string} project What project it is
|
|
370
|
+
* @param {string} orderId Unique identifier of an order
|
|
371
|
+
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
372
|
+
* @param {*} [options] Override http request option.
|
|
373
|
+
* @throws {RequiredError}
|
|
374
|
+
*/
|
|
375
|
+
cancelOrder(project, orderId, fields, options) {
|
|
376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
377
|
+
var _a, _b, _c;
|
|
378
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelOrder(project, orderId, fields, options);
|
|
379
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
380
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.cancelOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
381
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
382
|
+
});
|
|
383
|
+
},
|
|
384
|
+
/**
|
|
385
|
+
* Confirms an order, and submits it as ready to take payment and begin processing.
|
|
386
|
+
* @summary Confirm order
|
|
387
|
+
* @param {string} project What project it is
|
|
388
|
+
* @param {string} orderId Unique identifier of an order
|
|
389
|
+
* @param {ConfirmOrderRequest} confirmOrderRequest ConfirmFulfillment schema
|
|
390
|
+
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
391
|
+
* @param {*} [options] Override http request option.
|
|
392
|
+
* @throws {RequiredError}
|
|
393
|
+
*/
|
|
394
|
+
confirmOrder(project, orderId, confirmOrderRequest, fields, options) {
|
|
395
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
396
|
+
var _a, _b, _c;
|
|
397
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmOrder(project, orderId, confirmOrderRequest, fields, options);
|
|
398
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
399
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.confirmOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
400
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
401
|
+
});
|
|
402
|
+
},
|
|
403
|
+
/**
|
|
404
|
+
* Creates a new order for the provided variants. You can fetch details and references to the given project\'s variants from the Product Catalog API.
|
|
405
|
+
* @summary Create order
|
|
406
|
+
* @param {string} project What project it is
|
|
407
|
+
* @param {Order} order Order schema
|
|
408
|
+
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
409
|
+
* @param {*} [options] Override http request option.
|
|
410
|
+
* @throws {RequiredError}
|
|
411
|
+
*/
|
|
412
|
+
createOrder(project, order, fields, options) {
|
|
413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
414
|
+
var _a, _b, _c;
|
|
415
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrder(project, order, fields, options);
|
|
416
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
417
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.createOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
418
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
419
|
+
});
|
|
420
|
+
},
|
|
421
|
+
/**
|
|
422
|
+
* Export orders as a CSV file
|
|
423
|
+
* @summary Export orders
|
|
424
|
+
* @param {string} project What project it is
|
|
425
|
+
* @param {string} start Start of date range to filter by when orders were placed
|
|
426
|
+
* @param {string} [end] End of date range to filter by when orders were placed
|
|
427
|
+
* @param {*} [options] Override http request option.
|
|
428
|
+
* @throws {RequiredError}
|
|
429
|
+
*/
|
|
430
|
+
exportOrders(project, start, end, options) {
|
|
431
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
432
|
+
var _a, _b, _c;
|
|
433
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.exportOrders(project, start, end, options);
|
|
434
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
435
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.exportOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
436
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
437
|
+
});
|
|
438
|
+
},
|
|
439
|
+
/**
|
|
440
|
+
* Get an order by a given ID.
|
|
441
|
+
* @summary Get order
|
|
442
|
+
* @param {string} project What project it is
|
|
443
|
+
* @param {string} orderId Unique identifier of an order
|
|
444
|
+
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
445
|
+
* @param {*} [options] Override http request option.
|
|
446
|
+
* @throws {RequiredError}
|
|
447
|
+
*/
|
|
448
|
+
getOrder(project, orderId, fields, options) {
|
|
449
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
450
|
+
var _a, _b, _c;
|
|
451
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrder(project, orderId, fields, options);
|
|
452
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
453
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.getOrder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
454
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
455
|
+
});
|
|
456
|
+
},
|
|
457
|
+
/**
|
|
458
|
+
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
459
|
+
* @summary List orders
|
|
460
|
+
* @param {string} project What project it is
|
|
461
|
+
* @param {string} [fields] Specifies which fields to return, separated by commas
|
|
462
|
+
* @param {number} [pageToken] Page reference token
|
|
463
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
464
|
+
* @param {string} [search] Search term to filter based on order reference, customer name and email
|
|
465
|
+
* @param {Array<string>} [ids] Specify fulfillment IDs to list
|
|
466
|
+
* @param {Array<Status>} [statuses] Filter by fulfillment status
|
|
467
|
+
* @param {string} [start] Start of date range to filter by when orders were placed
|
|
468
|
+
* @param {string} [end] End of date range to filter by when orders were placed
|
|
469
|
+
* @param {*} [options] Override http request option.
|
|
470
|
+
* @throws {RequiredError}
|
|
471
|
+
*/
|
|
472
|
+
getOrders(project, fields, pageToken, pageSize, search, ids, statuses, start, end, options) {
|
|
473
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
474
|
+
var _a, _b, _c;
|
|
475
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrders(project, fields, pageToken, pageSize, search, ids, statuses, start, end, options);
|
|
476
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
477
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrdersApi.getOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
478
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
479
|
+
});
|
|
480
|
+
},
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
/**
|
|
484
|
+
* OrdersApi - factory interface
|
|
485
|
+
* @export
|
|
486
|
+
*/
|
|
487
|
+
export const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
488
|
+
const localVarFp = OrdersApiFp(configuration);
|
|
489
|
+
return {
|
|
490
|
+
/**
|
|
491
|
+
* Cancels an order if it has not yet started processing.
|
|
492
|
+
* @summary Cancel order
|
|
493
|
+
* @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
|
|
494
|
+
* @param {*} [options] Override http request option.
|
|
495
|
+
* @throws {RequiredError}
|
|
496
|
+
*/
|
|
497
|
+
cancelOrder(requestParameters, options) {
|
|
498
|
+
return localVarFp.cancelOrder(requestParameters.project, requestParameters.orderId, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
499
|
+
},
|
|
500
|
+
/**
|
|
501
|
+
* Confirms an order, and submits it as ready to take payment and begin processing.
|
|
502
|
+
* @summary Confirm order
|
|
503
|
+
* @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
*/
|
|
507
|
+
confirmOrder(requestParameters, options) {
|
|
508
|
+
return localVarFp.confirmOrder(requestParameters.project, requestParameters.orderId, requestParameters.confirmOrderRequest, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
509
|
+
},
|
|
510
|
+
/**
|
|
511
|
+
* Creates a new order for the provided variants. You can fetch details and references to the given project\'s variants from the Product Catalog API.
|
|
512
|
+
* @summary Create order
|
|
513
|
+
* @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
|
|
514
|
+
* @param {*} [options] Override http request option.
|
|
515
|
+
* @throws {RequiredError}
|
|
516
|
+
*/
|
|
517
|
+
createOrder(requestParameters, options) {
|
|
518
|
+
return localVarFp.createOrder(requestParameters.project, requestParameters.order, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
519
|
+
},
|
|
520
|
+
/**
|
|
521
|
+
* Export orders as a CSV file
|
|
522
|
+
* @summary Export orders
|
|
523
|
+
* @param {OrdersApiExportOrdersRequest} requestParameters Request parameters.
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
*/
|
|
527
|
+
exportOrders(requestParameters, options) {
|
|
528
|
+
return localVarFp.exportOrders(requestParameters.project, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
529
|
+
},
|
|
530
|
+
/**
|
|
531
|
+
* Get an order by a given ID.
|
|
532
|
+
* @summary Get order
|
|
533
|
+
* @param {OrdersApiGetOrderRequest} requestParameters Request parameters.
|
|
534
|
+
* @param {*} [options] Override http request option.
|
|
535
|
+
* @throws {RequiredError}
|
|
536
|
+
*/
|
|
537
|
+
getOrder(requestParameters, options) {
|
|
538
|
+
return localVarFp.getOrder(requestParameters.project, requestParameters.orderId, requestParameters.fields, options).then((request) => request(axios, basePath));
|
|
539
|
+
},
|
|
540
|
+
/**
|
|
541
|
+
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
542
|
+
* @summary List orders
|
|
543
|
+
* @param {OrdersApiGetOrdersRequest} requestParameters Request parameters.
|
|
544
|
+
* @param {*} [options] Override http request option.
|
|
545
|
+
* @throws {RequiredError}
|
|
546
|
+
*/
|
|
547
|
+
getOrders(requestParameters, options) {
|
|
548
|
+
return localVarFp.getOrders(requestParameters.project, requestParameters.fields, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.ids, requestParameters.statuses, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath));
|
|
549
|
+
},
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
/**
|
|
553
|
+
* OrdersApi - object-oriented interface
|
|
554
|
+
* @export
|
|
555
|
+
* @class OrdersApi
|
|
556
|
+
* @extends {BaseAPI}
|
|
557
|
+
*/
|
|
558
|
+
export class OrdersApi extends BaseAPI {
|
|
559
|
+
/**
|
|
560
|
+
* Cancels an order if it has not yet started processing.
|
|
561
|
+
* @summary Cancel order
|
|
562
|
+
* @param {OrdersApiCancelOrderRequest} requestParameters Request parameters.
|
|
563
|
+
* @param {*} [options] Override http request option.
|
|
564
|
+
* @throws {RequiredError}
|
|
565
|
+
* @memberof OrdersApi
|
|
566
|
+
*/
|
|
567
|
+
cancelOrder(requestParameters, options) {
|
|
568
|
+
return OrdersApiFp(this.configuration).cancelOrder(requestParameters.project, requestParameters.orderId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* Confirms an order, and submits it as ready to take payment and begin processing.
|
|
572
|
+
* @summary Confirm order
|
|
573
|
+
* @param {OrdersApiConfirmOrderRequest} requestParameters Request parameters.
|
|
574
|
+
* @param {*} [options] Override http request option.
|
|
575
|
+
* @throws {RequiredError}
|
|
576
|
+
* @memberof OrdersApi
|
|
577
|
+
*/
|
|
578
|
+
confirmOrder(requestParameters, options) {
|
|
579
|
+
return OrdersApiFp(this.configuration).confirmOrder(requestParameters.project, requestParameters.orderId, requestParameters.confirmOrderRequest, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* Creates a new order for the provided variants. You can fetch details and references to the given project\'s variants from the Product Catalog API.
|
|
583
|
+
* @summary Create order
|
|
584
|
+
* @param {OrdersApiCreateOrderRequest} requestParameters Request parameters.
|
|
585
|
+
* @param {*} [options] Override http request option.
|
|
586
|
+
* @throws {RequiredError}
|
|
587
|
+
* @memberof OrdersApi
|
|
588
|
+
*/
|
|
589
|
+
createOrder(requestParameters, options) {
|
|
590
|
+
return OrdersApiFp(this.configuration).createOrder(requestParameters.project, requestParameters.order, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* Export orders as a CSV file
|
|
594
|
+
* @summary Export orders
|
|
595
|
+
* @param {OrdersApiExportOrdersRequest} requestParameters Request parameters.
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
* @memberof OrdersApi
|
|
599
|
+
*/
|
|
600
|
+
exportOrders(requestParameters, options) {
|
|
601
|
+
return OrdersApiFp(this.configuration).exportOrders(requestParameters.project, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* Get an order by a given ID.
|
|
605
|
+
* @summary Get order
|
|
606
|
+
* @param {OrdersApiGetOrderRequest} requestParameters Request parameters.
|
|
607
|
+
* @param {*} [options] Override http request option.
|
|
608
|
+
* @throws {RequiredError}
|
|
609
|
+
* @memberof OrdersApi
|
|
610
|
+
*/
|
|
611
|
+
getOrder(requestParameters, options) {
|
|
612
|
+
return OrdersApiFp(this.configuration).getOrder(requestParameters.project, requestParameters.orderId, requestParameters.fields, options).then((request) => request(this.axios, this.basePath));
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* Lists all orders placed on this project, paginated into configurable chunks.
|
|
616
|
+
* @summary List orders
|
|
617
|
+
* @param {OrdersApiGetOrdersRequest} requestParameters Request parameters.
|
|
618
|
+
* @param {*} [options] Override http request option.
|
|
619
|
+
* @throws {RequiredError}
|
|
620
|
+
* @memberof OrdersApi
|
|
621
|
+
*/
|
|
622
|
+
getOrders(requestParameters, options) {
|
|
623
|
+
return OrdersApiFp(this.configuration).getOrders(requestParameters.project, requestParameters.fields, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.ids, requestParameters.statuses, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath));
|
|
624
|
+
}
|
|
625
|
+
}
|