@teemill/orders 1.1.0 → 1.2.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/.openapi-generator/FILES +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/OrdersApi.d.ts +13 -7
- package/dist/apis/OrdersApi.js +30 -12
- package/dist/models/Address.d.ts +1 -1
- package/dist/models/Address.js +1 -1
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/ConfirmOrderFulfillment.d.ts +1 -1
- package/dist/models/ConfirmOrderFulfillment.js +1 -1
- package/dist/models/ConfirmOrderRequest.d.ts +1 -1
- package/dist/models/ConfirmOrderRequest.js +1 -1
- package/dist/models/ConfirmOrderValidationError.d.ts +1 -1
- package/dist/models/ConfirmOrderValidationError.js +1 -1
- package/dist/models/ContactInformation.d.ts +1 -1
- package/dist/models/ContactInformation.js +1 -1
- package/dist/models/DeliveryEstimates.d.ts +1 -1
- package/dist/models/DeliveryEstimates.js +1 -1
- package/dist/models/Fulfillment.d.ts +1 -1
- package/dist/models/Fulfillment.js +1 -1
- package/dist/models/FulfillmentItem.d.ts +1 -1
- package/dist/models/FulfillmentItem.js +1 -1
- package/dist/models/Order.d.ts +1 -1
- package/dist/models/Order.js +1 -1
- package/dist/models/OrderItem.d.ts +1 -1
- package/dist/models/OrderItem.js +1 -1
- package/dist/models/OrderItemTaxPrice.d.ts +1 -1
- package/dist/models/OrderItemTaxPrice.js +1 -1
- package/dist/models/OrderTracking.d.ts +1 -1
- package/dist/models/OrderTracking.js +1 -1
- package/dist/models/OrdersResponse.d.ts +1 -1
- package/dist/models/OrdersResponse.js +1 -1
- package/dist/models/Origin.d.ts +1 -1
- package/dist/models/Origin.js +1 -1
- package/dist/models/Price.d.ts +1 -1
- package/dist/models/Price.js +1 -1
- package/dist/models/ShippingMethod.d.ts +1 -1
- package/dist/models/ShippingMethod.js +1 -1
- package/dist/models/Status.d.ts +1 -1
- package/dist/models/Status.js +1 -1
- package/dist/models/StatusHistoryItem.d.ts +1 -1
- package/dist/models/StatusHistoryItem.js +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/OrdersApi.ts +47 -14
- package/src/models/Address.ts +1 -1
- package/src/models/ApiError.ts +1 -1
- package/src/models/ConfirmOrderFulfillment.ts +1 -1
- package/src/models/ConfirmOrderRequest.ts +1 -1
- package/src/models/ConfirmOrderValidationError.ts +1 -1
- package/src/models/ContactInformation.ts +1 -1
- package/src/models/DeliveryEstimates.ts +1 -1
- package/src/models/Fulfillment.ts +1 -1
- package/src/models/FulfillmentItem.ts +1 -1
- package/src/models/Order.ts +1 -1
- package/src/models/OrderItem.ts +1 -1
- package/src/models/OrderItemTaxPrice.ts +1 -1
- package/src/models/OrderTracking.ts +1 -1
- package/src/models/OrdersResponse.ts +1 -1
- package/src/models/Origin.ts +1 -1
- package/src/models/Price.ts +1 -1
- package/src/models/ShippingMethod.ts +1 -1
- package/src/models/Status.ts +1 -1
- package/src/models/StatusHistoryItem.ts +1 -1
- package/src/runtime.ts +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.2.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/orders@1.
|
|
1
|
+
## @teemill/orders@1.2.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/orders@1.
|
|
39
|
+
npm install @teemill/orders@1.2.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/dist/apis/OrdersApi.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,27 +10,33 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ConfirmOrderRequest, Order, OrdersResponse } from '../models/index';
|
|
13
|
+
import type { ConfirmOrderRequest, Order, OrdersResponse, Status } from '../models/index';
|
|
14
14
|
export interface ConfirmOrderOperationRequest {
|
|
15
15
|
project: string;
|
|
16
16
|
orderId: string;
|
|
17
17
|
confirmOrderRequest: ConfirmOrderRequest;
|
|
18
|
+
fields?: string;
|
|
18
19
|
}
|
|
19
20
|
export interface CreateOrderRequest {
|
|
20
21
|
project: string;
|
|
21
22
|
order: Order;
|
|
23
|
+
fields?: string;
|
|
22
24
|
}
|
|
23
25
|
export interface GetOrderRequest {
|
|
24
26
|
project: string;
|
|
25
27
|
orderId: string;
|
|
28
|
+
fields?: string;
|
|
26
29
|
}
|
|
27
30
|
export interface GetOrdersRequest {
|
|
28
31
|
project: string;
|
|
32
|
+
fields?: string;
|
|
29
33
|
pageToken?: number;
|
|
30
34
|
pageSize?: number;
|
|
35
|
+
search?: string;
|
|
36
|
+
ids?: Array<string>;
|
|
37
|
+
statuses?: Array<Status>;
|
|
31
38
|
start?: Date;
|
|
32
39
|
end?: Date;
|
|
33
|
-
search?: string;
|
|
34
40
|
}
|
|
35
41
|
/**
|
|
36
42
|
*
|
|
@@ -45,7 +51,7 @@ export declare class OrdersApi extends runtime.BaseAPI {
|
|
|
45
51
|
* Confirms and order, and submits it as ready to take payment and begin processing.
|
|
46
52
|
* Confirm order
|
|
47
53
|
*/
|
|
48
|
-
confirmOrder(project: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
|
|
54
|
+
confirmOrder(project: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest, fields?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
|
|
49
55
|
/**
|
|
50
56
|
* Creates a new order for the provided variants.
|
|
51
57
|
* Create order
|
|
@@ -55,7 +61,7 @@ export declare class OrdersApi extends runtime.BaseAPI {
|
|
|
55
61
|
* Creates a new order for the provided variants.
|
|
56
62
|
* Create order
|
|
57
63
|
*/
|
|
58
|
-
createOrder(project: string, order: Order, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
|
|
64
|
+
createOrder(project: string, order: Order, fields?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
|
|
59
65
|
/**
|
|
60
66
|
* Get an order
|
|
61
67
|
* Get order
|
|
@@ -65,7 +71,7 @@ export declare class OrdersApi extends runtime.BaseAPI {
|
|
|
65
71
|
* Get an order
|
|
66
72
|
* Get order
|
|
67
73
|
*/
|
|
68
|
-
getOrder(project: string, orderId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
|
|
74
|
+
getOrder(project: string, orderId: string, fields?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
|
|
69
75
|
/**
|
|
70
76
|
* Lists all orders available paginated into chunks
|
|
71
77
|
* List orders
|
|
@@ -75,5 +81,5 @@ export declare class OrdersApi extends runtime.BaseAPI {
|
|
|
75
81
|
* Lists all orders available paginated into chunks
|
|
76
82
|
* List orders
|
|
77
83
|
*/
|
|
78
|
-
getOrders(project: string, pageToken?: number, pageSize?: number,
|
|
84
|
+
getOrders(project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: Date, end?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrdersResponse>;
|
|
79
85
|
}
|
package/dist/apis/OrdersApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -98,6 +98,9 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
98
98
|
if (requestParameters.project !== undefined) {
|
|
99
99
|
queryParameters['project'] = requestParameters.project;
|
|
100
100
|
}
|
|
101
|
+
if (requestParameters.fields !== undefined) {
|
|
102
|
+
queryParameters['fields'] = requestParameters.fields;
|
|
103
|
+
}
|
|
101
104
|
headerParameters = {};
|
|
102
105
|
headerParameters['Content-Type'] = 'application/json';
|
|
103
106
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
@@ -131,12 +134,12 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
131
134
|
* Confirms and order, and submits it as ready to take payment and begin processing.
|
|
132
135
|
* Confirm order
|
|
133
136
|
*/
|
|
134
|
-
OrdersApi.prototype.confirmOrder = function (project, orderId, confirmOrderRequest, initOverrides) {
|
|
137
|
+
OrdersApi.prototype.confirmOrder = function (project, orderId, confirmOrderRequest, fields, initOverrides) {
|
|
135
138
|
return __awaiter(this, void 0, void 0, function () {
|
|
136
139
|
var response;
|
|
137
140
|
return __generator(this, function (_a) {
|
|
138
141
|
switch (_a.label) {
|
|
139
|
-
case 0: return [4 /*yield*/, this.confirmOrderRaw({ project: project, orderId: orderId, confirmOrderRequest: confirmOrderRequest }, initOverrides)];
|
|
142
|
+
case 0: return [4 /*yield*/, this.confirmOrderRaw({ project: project, orderId: orderId, confirmOrderRequest: confirmOrderRequest, fields: fields }, initOverrides)];
|
|
140
143
|
case 1:
|
|
141
144
|
response = _a.sent();
|
|
142
145
|
return [4 /*yield*/, response.value()];
|
|
@@ -165,6 +168,9 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
165
168
|
if (requestParameters.project !== undefined) {
|
|
166
169
|
queryParameters['project'] = requestParameters.project;
|
|
167
170
|
}
|
|
171
|
+
if (requestParameters.fields !== undefined) {
|
|
172
|
+
queryParameters['fields'] = requestParameters.fields;
|
|
173
|
+
}
|
|
168
174
|
headerParameters = {};
|
|
169
175
|
headerParameters['Content-Type'] = 'application/json';
|
|
170
176
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
@@ -198,12 +204,12 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
198
204
|
* Creates a new order for the provided variants.
|
|
199
205
|
* Create order
|
|
200
206
|
*/
|
|
201
|
-
OrdersApi.prototype.createOrder = function (project, order, initOverrides) {
|
|
207
|
+
OrdersApi.prototype.createOrder = function (project, order, fields, initOverrides) {
|
|
202
208
|
return __awaiter(this, void 0, void 0, function () {
|
|
203
209
|
var response;
|
|
204
210
|
return __generator(this, function (_a) {
|
|
205
211
|
switch (_a.label) {
|
|
206
|
-
case 0: return [4 /*yield*/, this.createOrderRaw({ project: project, order: order }, initOverrides)];
|
|
212
|
+
case 0: return [4 /*yield*/, this.createOrderRaw({ project: project, order: order, fields: fields }, initOverrides)];
|
|
207
213
|
case 1:
|
|
208
214
|
response = _a.sent();
|
|
209
215
|
return [4 /*yield*/, response.value()];
|
|
@@ -232,6 +238,9 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
232
238
|
if (requestParameters.project !== undefined) {
|
|
233
239
|
queryParameters['project'] = requestParameters.project;
|
|
234
240
|
}
|
|
241
|
+
if (requestParameters.fields !== undefined) {
|
|
242
|
+
queryParameters['fields'] = requestParameters.fields;
|
|
243
|
+
}
|
|
235
244
|
headerParameters = {};
|
|
236
245
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
237
246
|
// oauth required
|
|
@@ -263,12 +272,12 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
263
272
|
* Get an order
|
|
264
273
|
* Get order
|
|
265
274
|
*/
|
|
266
|
-
OrdersApi.prototype.getOrder = function (project, orderId, initOverrides) {
|
|
275
|
+
OrdersApi.prototype.getOrder = function (project, orderId, fields, initOverrides) {
|
|
267
276
|
return __awaiter(this, void 0, void 0, function () {
|
|
268
277
|
var response;
|
|
269
278
|
return __generator(this, function (_a) {
|
|
270
279
|
switch (_a.label) {
|
|
271
|
-
case 0: return [4 /*yield*/, this.getOrderRaw({ project: project, orderId: orderId }, initOverrides)];
|
|
280
|
+
case 0: return [4 /*yield*/, this.getOrderRaw({ project: project, orderId: orderId, fields: fields }, initOverrides)];
|
|
272
281
|
case 1:
|
|
273
282
|
response = _a.sent();
|
|
274
283
|
return [4 /*yield*/, response.value()];
|
|
@@ -294,21 +303,30 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
294
303
|
if (requestParameters.project !== undefined) {
|
|
295
304
|
queryParameters['project'] = requestParameters.project;
|
|
296
305
|
}
|
|
306
|
+
if (requestParameters.fields !== undefined) {
|
|
307
|
+
queryParameters['fields'] = requestParameters.fields;
|
|
308
|
+
}
|
|
297
309
|
if (requestParameters.pageToken !== undefined) {
|
|
298
310
|
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
299
311
|
}
|
|
300
312
|
if (requestParameters.pageSize !== undefined) {
|
|
301
313
|
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
302
314
|
}
|
|
315
|
+
if (requestParameters.search !== undefined) {
|
|
316
|
+
queryParameters['search'] = requestParameters.search;
|
|
317
|
+
}
|
|
318
|
+
if (requestParameters.ids) {
|
|
319
|
+
queryParameters['ids'] = requestParameters.ids;
|
|
320
|
+
}
|
|
321
|
+
if (requestParameters.statuses) {
|
|
322
|
+
queryParameters['statuses'] = requestParameters.statuses;
|
|
323
|
+
}
|
|
303
324
|
if (requestParameters.start !== undefined) {
|
|
304
325
|
queryParameters['start'] = requestParameters.start.toISOString();
|
|
305
326
|
}
|
|
306
327
|
if (requestParameters.end !== undefined) {
|
|
307
328
|
queryParameters['end'] = requestParameters.end.toISOString();
|
|
308
329
|
}
|
|
309
|
-
if (requestParameters.search !== undefined) {
|
|
310
|
-
queryParameters['search'] = requestParameters.search;
|
|
311
|
-
}
|
|
312
330
|
headerParameters = {};
|
|
313
331
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
314
332
|
// oauth required
|
|
@@ -340,12 +358,12 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
340
358
|
* Lists all orders available paginated into chunks
|
|
341
359
|
* List orders
|
|
342
360
|
*/
|
|
343
|
-
OrdersApi.prototype.getOrders = function (project, pageToken, pageSize, start, end,
|
|
361
|
+
OrdersApi.prototype.getOrders = function (project, fields, pageToken, pageSize, search, ids, statuses, start, end, initOverrides) {
|
|
344
362
|
return __awaiter(this, void 0, void 0, function () {
|
|
345
363
|
var response;
|
|
346
364
|
return __generator(this, function (_a) {
|
|
347
365
|
switch (_a.label) {
|
|
348
|
-
case 0: return [4 /*yield*/, this.getOrdersRaw({ project: project, pageToken: pageToken, pageSize: pageSize, start: start, end: end
|
|
366
|
+
case 0: return [4 /*yield*/, this.getOrdersRaw({ project: project, fields: fields, pageToken: pageToken, pageSize: pageSize, search: search, ids: ids, statuses: statuses, start: start, end: end }, initOverrides)];
|
|
349
367
|
case 1:
|
|
350
368
|
response = _a.sent();
|
|
351
369
|
return [4 /*yield*/, response.value()];
|
package/dist/models/Address.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Address.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/ApiError.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Order.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Order.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/OrderItem.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Origin.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Origin.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Price.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Price.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Status.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/models/Status.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/runtime.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Orders API
|
|
3
3
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/runtime.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Orders API
|
|
6
6
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
package/src/apis/OrdersApi.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
ConfirmOrderValidationError,
|
|
21
21
|
Order,
|
|
22
22
|
OrdersResponse,
|
|
23
|
+
Status,
|
|
23
24
|
} from '../models/index';
|
|
24
25
|
import {
|
|
25
26
|
ApiErrorFromJSON,
|
|
@@ -32,31 +33,39 @@ import {
|
|
|
32
33
|
OrderToJSON,
|
|
33
34
|
OrdersResponseFromJSON,
|
|
34
35
|
OrdersResponseToJSON,
|
|
36
|
+
StatusFromJSON,
|
|
37
|
+
StatusToJSON,
|
|
35
38
|
} from '../models/index';
|
|
36
39
|
|
|
37
40
|
export interface ConfirmOrderOperationRequest {
|
|
38
41
|
project: string;
|
|
39
42
|
orderId: string;
|
|
40
43
|
confirmOrderRequest: ConfirmOrderRequest;
|
|
44
|
+
fields?: string;
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
export interface CreateOrderRequest {
|
|
44
48
|
project: string;
|
|
45
49
|
order: Order;
|
|
50
|
+
fields?: string;
|
|
46
51
|
}
|
|
47
52
|
|
|
48
53
|
export interface GetOrderRequest {
|
|
49
54
|
project: string;
|
|
50
55
|
orderId: string;
|
|
56
|
+
fields?: string;
|
|
51
57
|
}
|
|
52
58
|
|
|
53
59
|
export interface GetOrdersRequest {
|
|
54
60
|
project: string;
|
|
61
|
+
fields?: string;
|
|
55
62
|
pageToken?: number;
|
|
56
63
|
pageSize?: number;
|
|
64
|
+
search?: string;
|
|
65
|
+
ids?: Array<string>;
|
|
66
|
+
statuses?: Array<Status>;
|
|
57
67
|
start?: Date;
|
|
58
68
|
end?: Date;
|
|
59
|
-
search?: string;
|
|
60
69
|
}
|
|
61
70
|
|
|
62
71
|
/**
|
|
@@ -87,6 +96,10 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
87
96
|
queryParameters['project'] = requestParameters.project;
|
|
88
97
|
}
|
|
89
98
|
|
|
99
|
+
if (requestParameters.fields !== undefined) {
|
|
100
|
+
queryParameters['fields'] = requestParameters.fields;
|
|
101
|
+
}
|
|
102
|
+
|
|
90
103
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
91
104
|
|
|
92
105
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -115,8 +128,8 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
115
128
|
* Confirms and order, and submits it as ready to take payment and begin processing.
|
|
116
129
|
* Confirm order
|
|
117
130
|
*/
|
|
118
|
-
async confirmOrder(project: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order> {
|
|
119
|
-
const response = await this.confirmOrderRaw({ project: project, orderId: orderId, confirmOrderRequest: confirmOrderRequest }, initOverrides);
|
|
131
|
+
async confirmOrder(project: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest, fields?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order> {
|
|
132
|
+
const response = await this.confirmOrderRaw({ project: project, orderId: orderId, confirmOrderRequest: confirmOrderRequest, fields: fields }, initOverrides);
|
|
120
133
|
return await response.value();
|
|
121
134
|
}
|
|
122
135
|
|
|
@@ -139,6 +152,10 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
139
152
|
queryParameters['project'] = requestParameters.project;
|
|
140
153
|
}
|
|
141
154
|
|
|
155
|
+
if (requestParameters.fields !== undefined) {
|
|
156
|
+
queryParameters['fields'] = requestParameters.fields;
|
|
157
|
+
}
|
|
158
|
+
|
|
142
159
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
143
160
|
|
|
144
161
|
headerParameters['Content-Type'] = 'application/json';
|
|
@@ -167,8 +184,8 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
167
184
|
* Creates a new order for the provided variants.
|
|
168
185
|
* Create order
|
|
169
186
|
*/
|
|
170
|
-
async createOrder(project: string, order: Order, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order> {
|
|
171
|
-
const response = await this.createOrderRaw({ project: project, order: order }, initOverrides);
|
|
187
|
+
async createOrder(project: string, order: Order, fields?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order> {
|
|
188
|
+
const response = await this.createOrderRaw({ project: project, order: order, fields: fields }, initOverrides);
|
|
172
189
|
return await response.value();
|
|
173
190
|
}
|
|
174
191
|
|
|
@@ -191,6 +208,10 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
191
208
|
queryParameters['project'] = requestParameters.project;
|
|
192
209
|
}
|
|
193
210
|
|
|
211
|
+
if (requestParameters.fields !== undefined) {
|
|
212
|
+
queryParameters['fields'] = requestParameters.fields;
|
|
213
|
+
}
|
|
214
|
+
|
|
194
215
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
195
216
|
|
|
196
217
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -216,8 +237,8 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
216
237
|
* Get an order
|
|
217
238
|
* Get order
|
|
218
239
|
*/
|
|
219
|
-
async getOrder(project: string, orderId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order> {
|
|
220
|
-
const response = await this.getOrderRaw({ project: project, orderId: orderId }, initOverrides);
|
|
240
|
+
async getOrder(project: string, orderId: string, fields?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order> {
|
|
241
|
+
const response = await this.getOrderRaw({ project: project, orderId: orderId, fields: fields }, initOverrides);
|
|
221
242
|
return await response.value();
|
|
222
243
|
}
|
|
223
244
|
|
|
@@ -236,6 +257,10 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
236
257
|
queryParameters['project'] = requestParameters.project;
|
|
237
258
|
}
|
|
238
259
|
|
|
260
|
+
if (requestParameters.fields !== undefined) {
|
|
261
|
+
queryParameters['fields'] = requestParameters.fields;
|
|
262
|
+
}
|
|
263
|
+
|
|
239
264
|
if (requestParameters.pageToken !== undefined) {
|
|
240
265
|
queryParameters['pageToken'] = requestParameters.pageToken;
|
|
241
266
|
}
|
|
@@ -244,6 +269,18 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
244
269
|
queryParameters['pageSize'] = requestParameters.pageSize;
|
|
245
270
|
}
|
|
246
271
|
|
|
272
|
+
if (requestParameters.search !== undefined) {
|
|
273
|
+
queryParameters['search'] = requestParameters.search;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (requestParameters.ids) {
|
|
277
|
+
queryParameters['ids'] = requestParameters.ids;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
if (requestParameters.statuses) {
|
|
281
|
+
queryParameters['statuses'] = requestParameters.statuses;
|
|
282
|
+
}
|
|
283
|
+
|
|
247
284
|
if (requestParameters.start !== undefined) {
|
|
248
285
|
queryParameters['start'] = (requestParameters.start as any).toISOString();
|
|
249
286
|
}
|
|
@@ -252,10 +289,6 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
252
289
|
queryParameters['end'] = (requestParameters.end as any).toISOString();
|
|
253
290
|
}
|
|
254
291
|
|
|
255
|
-
if (requestParameters.search !== undefined) {
|
|
256
|
-
queryParameters['search'] = requestParameters.search;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
292
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
260
293
|
|
|
261
294
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -281,8 +314,8 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
281
314
|
* Lists all orders available paginated into chunks
|
|
282
315
|
* List orders
|
|
283
316
|
*/
|
|
284
|
-
async getOrders(project: string, pageToken?: number, pageSize?: number,
|
|
285
|
-
const response = await this.getOrdersRaw({ project: project, pageToken: pageToken, pageSize: pageSize, start: start, end: end
|
|
317
|
+
async getOrders(project: string, fields?: string, pageToken?: number, pageSize?: number, search?: string, ids?: Array<string>, statuses?: Array<Status>, start?: Date, end?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrdersResponse> {
|
|
318
|
+
const response = await this.getOrdersRaw({ project: project, fields: fields, pageToken: pageToken, pageSize: pageSize, search: search, ids: ids, statuses: statuses, start: start, end: end }, initOverrides);
|
|
286
319
|
return await response.value();
|
|
287
320
|
}
|
|
288
321
|
|
package/src/models/Address.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/ApiError.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/Order.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/OrderItem.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/Origin.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/Price.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/models/Status.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/src/runtime.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Orders API
|
|
5
5
|
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.2.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|