@teemill/orders 1.2.0 → 1.4.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 +0 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/OrdersApi.d.ts +20 -5
- package/dist/apis/OrdersApi.js +94 -9
- 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 +6 -1
- package/dist/runtime.js +6 -3
- package/package.json +1 -1
- package/src/apis/OrdersApi.ts +125 -9
- 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 +13 -3
package/.openapi-generator/FILES
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.3.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/orders@1.
|
|
1
|
+
## @teemill/orders@1.4.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.4.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.4.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,6 +22,11 @@ export interface CreateOrderRequest {
|
|
|
22
22
|
order: Order;
|
|
23
23
|
fields?: string;
|
|
24
24
|
}
|
|
25
|
+
export interface ExportOrdersRequest {
|
|
26
|
+
project: string;
|
|
27
|
+
start: Date;
|
|
28
|
+
end?: Date;
|
|
29
|
+
}
|
|
25
30
|
export interface GetOrderRequest {
|
|
26
31
|
project: string;
|
|
27
32
|
orderId: string;
|
|
@@ -51,7 +56,7 @@ export declare class OrdersApi extends runtime.BaseAPI {
|
|
|
51
56
|
* Confirms and order, and submits it as ready to take payment and begin processing.
|
|
52
57
|
* Confirm order
|
|
53
58
|
*/
|
|
54
|
-
confirmOrder(project: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest,
|
|
59
|
+
confirmOrder(project: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest, optionalParameters?: runtime.OptionalOnly<ConfirmOrderOperationRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
|
|
55
60
|
/**
|
|
56
61
|
* Creates a new order for the provided variants.
|
|
57
62
|
* Create order
|
|
@@ -61,7 +66,17 @@ export declare class OrdersApi extends runtime.BaseAPI {
|
|
|
61
66
|
* Creates a new order for the provided variants.
|
|
62
67
|
* Create order
|
|
63
68
|
*/
|
|
64
|
-
createOrder(project: string, order: Order,
|
|
69
|
+
createOrder(project: string, order: Order, optionalParameters?: runtime.OptionalOnly<CreateOrderRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
|
|
70
|
+
/**
|
|
71
|
+
* Initiates a CSV export of orders. The export will be available for download from a notification within Teemill Dashboard.
|
|
72
|
+
* Export orders
|
|
73
|
+
*/
|
|
74
|
+
exportOrdersRaw(requestParameters: ExportOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
75
|
+
/**
|
|
76
|
+
* Initiates a CSV export of orders. The export will be available for download from a notification within Teemill Dashboard.
|
|
77
|
+
* Export orders
|
|
78
|
+
*/
|
|
79
|
+
exportOrders(project: string, start: Date, optionalParameters?: runtime.OptionalOnly<ExportOrdersRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
65
80
|
/**
|
|
66
81
|
* Get an order
|
|
67
82
|
* Get order
|
|
@@ -71,7 +86,7 @@ export declare class OrdersApi extends runtime.BaseAPI {
|
|
|
71
86
|
* Get an order
|
|
72
87
|
* Get order
|
|
73
88
|
*/
|
|
74
|
-
getOrder(project: string, orderId: string,
|
|
89
|
+
getOrder(project: string, orderId: string, optionalParameters?: runtime.OptionalOnly<GetOrderRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
|
|
75
90
|
/**
|
|
76
91
|
* Lists all orders available paginated into chunks
|
|
77
92
|
* List orders
|
|
@@ -81,5 +96,5 @@ export declare class OrdersApi extends runtime.BaseAPI {
|
|
|
81
96
|
* Lists all orders available paginated into chunks
|
|
82
97
|
* List orders
|
|
83
98
|
*/
|
|
84
|
-
getOrders(project: string,
|
|
99
|
+
getOrders(project: string, optionalParameters?: runtime.OptionalOnly<GetOrdersRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrdersResponse>;
|
|
85
100
|
}
|
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.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -27,6 +27,17 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
27
27
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
28
|
};
|
|
29
29
|
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
30
41
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
42
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
43
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -134,12 +145,13 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
134
145
|
* Confirms and order, and submits it as ready to take payment and begin processing.
|
|
135
146
|
* Confirm order
|
|
136
147
|
*/
|
|
137
|
-
OrdersApi.prototype.confirmOrder = function (project, orderId, confirmOrderRequest,
|
|
148
|
+
OrdersApi.prototype.confirmOrder = function (project, orderId, confirmOrderRequest, optionalParameters, initOverrides) {
|
|
149
|
+
if (optionalParameters === void 0) { optionalParameters = {}; }
|
|
138
150
|
return __awaiter(this, void 0, void 0, function () {
|
|
139
151
|
var response;
|
|
140
152
|
return __generator(this, function (_a) {
|
|
141
153
|
switch (_a.label) {
|
|
142
|
-
case 0: return [4 /*yield*/, this.confirmOrderRaw({ project: project, orderId: orderId, confirmOrderRequest: confirmOrderRequest
|
|
154
|
+
case 0: return [4 /*yield*/, this.confirmOrderRaw(__assign({ project: project, orderId: orderId, confirmOrderRequest: confirmOrderRequest }, optionalParameters), initOverrides)];
|
|
143
155
|
case 1:
|
|
144
156
|
response = _a.sent();
|
|
145
157
|
return [4 /*yield*/, response.value()];
|
|
@@ -204,12 +216,13 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
204
216
|
* Creates a new order for the provided variants.
|
|
205
217
|
* Create order
|
|
206
218
|
*/
|
|
207
|
-
OrdersApi.prototype.createOrder = function (project, order,
|
|
219
|
+
OrdersApi.prototype.createOrder = function (project, order, optionalParameters, initOverrides) {
|
|
220
|
+
if (optionalParameters === void 0) { optionalParameters = {}; }
|
|
208
221
|
return __awaiter(this, void 0, void 0, function () {
|
|
209
222
|
var response;
|
|
210
223
|
return __generator(this, function (_a) {
|
|
211
224
|
switch (_a.label) {
|
|
212
|
-
case 0: return [4 /*yield*/, this.createOrderRaw({ project: project, order: order
|
|
225
|
+
case 0: return [4 /*yield*/, this.createOrderRaw(__assign({ project: project, order: order }, optionalParameters), initOverrides)];
|
|
213
226
|
case 1:
|
|
214
227
|
response = _a.sent();
|
|
215
228
|
return [4 /*yield*/, response.value()];
|
|
@@ -218,6 +231,76 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
218
231
|
});
|
|
219
232
|
});
|
|
220
233
|
};
|
|
234
|
+
/**
|
|
235
|
+
* Initiates a CSV export of orders. The export will be available for download from a notification within Teemill Dashboard.
|
|
236
|
+
* Export orders
|
|
237
|
+
*/
|
|
238
|
+
OrdersApi.prototype.exportOrdersRaw = function (requestParameters, initOverrides) {
|
|
239
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
240
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
241
|
+
return __generator(this, function (_c) {
|
|
242
|
+
switch (_c.label) {
|
|
243
|
+
case 0:
|
|
244
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
245
|
+
throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling exportOrders.');
|
|
246
|
+
}
|
|
247
|
+
if (requestParameters.start === null || requestParameters.start === undefined) {
|
|
248
|
+
throw new runtime.RequiredError('start', 'Required parameter requestParameters.start was null or undefined when calling exportOrders.');
|
|
249
|
+
}
|
|
250
|
+
queryParameters = {};
|
|
251
|
+
if (requestParameters.project !== undefined) {
|
|
252
|
+
queryParameters['project'] = requestParameters.project;
|
|
253
|
+
}
|
|
254
|
+
if (requestParameters.start !== undefined) {
|
|
255
|
+
queryParameters['start'] = requestParameters.start.toISOString();
|
|
256
|
+
}
|
|
257
|
+
if (requestParameters.end !== undefined) {
|
|
258
|
+
queryParameters['end'] = requestParameters.end.toISOString();
|
|
259
|
+
}
|
|
260
|
+
headerParameters = {};
|
|
261
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
262
|
+
// oauth required
|
|
263
|
+
_a = headerParameters;
|
|
264
|
+
_b = "Authorization";
|
|
265
|
+
return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
|
|
266
|
+
case 1:
|
|
267
|
+
// oauth required
|
|
268
|
+
_a[_b] = _c.sent();
|
|
269
|
+
_c.label = 2;
|
|
270
|
+
case 2:
|
|
271
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
272
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
273
|
+
}
|
|
274
|
+
return [4 /*yield*/, this.request({
|
|
275
|
+
path: "/v1/orders/export",
|
|
276
|
+
method: 'GET',
|
|
277
|
+
headers: headerParameters,
|
|
278
|
+
query: queryParameters,
|
|
279
|
+
}, initOverrides)];
|
|
280
|
+
case 3:
|
|
281
|
+
response = _c.sent();
|
|
282
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* Initiates a CSV export of orders. The export will be available for download from a notification within Teemill Dashboard.
|
|
289
|
+
* Export orders
|
|
290
|
+
*/
|
|
291
|
+
OrdersApi.prototype.exportOrders = function (project, start, optionalParameters, initOverrides) {
|
|
292
|
+
if (optionalParameters === void 0) { optionalParameters = {}; }
|
|
293
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
294
|
+
return __generator(this, function (_a) {
|
|
295
|
+
switch (_a.label) {
|
|
296
|
+
case 0: return [4 /*yield*/, this.exportOrdersRaw(__assign({ project: project, start: start }, optionalParameters), initOverrides)];
|
|
297
|
+
case 1:
|
|
298
|
+
_a.sent();
|
|
299
|
+
return [2 /*return*/];
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
};
|
|
221
304
|
/**
|
|
222
305
|
* Get an order
|
|
223
306
|
* Get order
|
|
@@ -272,12 +355,13 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
272
355
|
* Get an order
|
|
273
356
|
* Get order
|
|
274
357
|
*/
|
|
275
|
-
OrdersApi.prototype.getOrder = function (project, orderId,
|
|
358
|
+
OrdersApi.prototype.getOrder = function (project, orderId, optionalParameters, initOverrides) {
|
|
359
|
+
if (optionalParameters === void 0) { optionalParameters = {}; }
|
|
276
360
|
return __awaiter(this, void 0, void 0, function () {
|
|
277
361
|
var response;
|
|
278
362
|
return __generator(this, function (_a) {
|
|
279
363
|
switch (_a.label) {
|
|
280
|
-
case 0: return [4 /*yield*/, this.getOrderRaw({ project: project, orderId: orderId
|
|
364
|
+
case 0: return [4 /*yield*/, this.getOrderRaw(__assign({ project: project, orderId: orderId }, optionalParameters), initOverrides)];
|
|
281
365
|
case 1:
|
|
282
366
|
response = _a.sent();
|
|
283
367
|
return [4 /*yield*/, response.value()];
|
|
@@ -358,12 +442,13 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
358
442
|
* Lists all orders available paginated into chunks
|
|
359
443
|
* List orders
|
|
360
444
|
*/
|
|
361
|
-
OrdersApi.prototype.getOrders = function (project,
|
|
445
|
+
OrdersApi.prototype.getOrders = function (project, optionalParameters, initOverrides) {
|
|
446
|
+
if (optionalParameters === void 0) { optionalParameters = {}; }
|
|
362
447
|
return __awaiter(this, void 0, void 0, function () {
|
|
363
448
|
var response;
|
|
364
449
|
return __generator(this, function (_a) {
|
|
365
450
|
switch (_a.label) {
|
|
366
|
-
case 0: return [4 /*yield*/, this.getOrdersRaw({ project: project
|
|
451
|
+
case 0: return [4 /*yield*/, this.getOrdersRaw(__assign({ project: project }, optionalParameters), initOverrides)];
|
|
367
452
|
case 1:
|
|
368
453
|
response = _a.sent();
|
|
369
454
|
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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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,13 +2,17 @@
|
|
|
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.4.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
export type OptionalProperties<T> = {
|
|
13
|
+
[K in keyof T]-?: undefined extends T[K] ? K : never;
|
|
14
|
+
}[keyof T];
|
|
15
|
+
export type OptionalOnly<T> = Partial<Pick<T, OptionalProperties<T>>>;
|
|
12
16
|
export declare const BASE_PATH: string;
|
|
13
17
|
export interface ConfigurationParameters {
|
|
14
18
|
basePath?: string;
|
|
@@ -46,6 +50,7 @@ export declare class BaseAPI {
|
|
|
46
50
|
private static readonly jsonRegex;
|
|
47
51
|
private middleware;
|
|
48
52
|
constructor(configuration?: Configuration);
|
|
53
|
+
isResponseError(error: any): error is ResponseError;
|
|
49
54
|
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
50
55
|
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
51
56
|
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
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.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -266,6 +266,9 @@ var BaseAPI = /** @class */ (function () {
|
|
|
266
266
|
}); };
|
|
267
267
|
this.middleware = configuration.middleware;
|
|
268
268
|
}
|
|
269
|
+
BaseAPI.prototype.isResponseError = function (error) {
|
|
270
|
+
return error instanceof Error && error.name === 'ResponseError';
|
|
271
|
+
};
|
|
269
272
|
BaseAPI.prototype.withMiddleware = function () {
|
|
270
273
|
var _a;
|
|
271
274
|
var middlewares = [];
|
|
@@ -456,8 +459,8 @@ function querystringSingleKey(key, value, keyPrefix) {
|
|
|
456
459
|
var fullKey = keyPrefix + (keyPrefix.length ? "[".concat(key, "]") : key);
|
|
457
460
|
if (value instanceof Array) {
|
|
458
461
|
var multiValue = value.map(function (singleValue) { return encodeURIComponent(String(singleValue)); })
|
|
459
|
-
.join("&".concat(encodeURIComponent(fullKey), "="));
|
|
460
|
-
return "".concat(encodeURIComponent(fullKey), "=").concat(multiValue);
|
|
462
|
+
.join("&".concat(encodeURIComponent(fullKey), "[]="));
|
|
463
|
+
return "".concat(encodeURIComponent(fullKey), "[]=").concat(multiValue);
|
|
461
464
|
}
|
|
462
465
|
if (value instanceof Set) {
|
|
463
466
|
var valueAsArray = Array.from(value);
|
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.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -50,6 +50,12 @@ export interface CreateOrderRequest {
|
|
|
50
50
|
fields?: string;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
export interface ExportOrdersRequest {
|
|
54
|
+
project: string;
|
|
55
|
+
start: Date;
|
|
56
|
+
end?: Date;
|
|
57
|
+
}
|
|
58
|
+
|
|
53
59
|
export interface GetOrderRequest {
|
|
54
60
|
project: string;
|
|
55
61
|
orderId: string;
|
|
@@ -128,8 +134,19 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
128
134
|
* Confirms and order, and submits it as ready to take payment and begin processing.
|
|
129
135
|
* Confirm order
|
|
130
136
|
*/
|
|
131
|
-
async confirmOrder(
|
|
132
|
-
|
|
137
|
+
async confirmOrder(
|
|
138
|
+
project: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest,
|
|
139
|
+
optionalParameters: runtime.OptionalOnly<ConfirmOrderOperationRequest> = {},
|
|
140
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
141
|
+
): Promise<Order> {
|
|
142
|
+
const response = await this.confirmOrderRaw(
|
|
143
|
+
{
|
|
144
|
+
project: project,orderId: orderId,confirmOrderRequest: confirmOrderRequest,
|
|
145
|
+
...optionalParameters,
|
|
146
|
+
},
|
|
147
|
+
initOverrides
|
|
148
|
+
);
|
|
149
|
+
|
|
133
150
|
return await response.value();
|
|
134
151
|
}
|
|
135
152
|
|
|
@@ -184,11 +201,88 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
184
201
|
* Creates a new order for the provided variants.
|
|
185
202
|
* Create order
|
|
186
203
|
*/
|
|
187
|
-
async createOrder(
|
|
188
|
-
|
|
204
|
+
async createOrder(
|
|
205
|
+
project: string, order: Order,
|
|
206
|
+
optionalParameters: runtime.OptionalOnly<CreateOrderRequest> = {},
|
|
207
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
208
|
+
): Promise<Order> {
|
|
209
|
+
const response = await this.createOrderRaw(
|
|
210
|
+
{
|
|
211
|
+
project: project,order: order,
|
|
212
|
+
...optionalParameters,
|
|
213
|
+
},
|
|
214
|
+
initOverrides
|
|
215
|
+
);
|
|
216
|
+
|
|
189
217
|
return await response.value();
|
|
190
218
|
}
|
|
191
219
|
|
|
220
|
+
/**
|
|
221
|
+
* Initiates a CSV export of orders. The export will be available for download from a notification within Teemill Dashboard.
|
|
222
|
+
* Export orders
|
|
223
|
+
*/
|
|
224
|
+
async exportOrdersRaw(requestParameters: ExportOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
225
|
+
if (requestParameters.project === null || requestParameters.project === undefined) {
|
|
226
|
+
throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling exportOrders.');
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
if (requestParameters.start === null || requestParameters.start === undefined) {
|
|
230
|
+
throw new runtime.RequiredError('start','Required parameter requestParameters.start was null or undefined when calling exportOrders.');
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
const queryParameters: any = {};
|
|
234
|
+
|
|
235
|
+
if (requestParameters.project !== undefined) {
|
|
236
|
+
queryParameters['project'] = requestParameters.project;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (requestParameters.start !== undefined) {
|
|
240
|
+
queryParameters['start'] = (requestParameters.start as any).toISOString();
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if (requestParameters.end !== undefined) {
|
|
244
|
+
queryParameters['end'] = (requestParameters.end as any).toISOString();
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
248
|
+
|
|
249
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
250
|
+
// oauth required
|
|
251
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
255
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
const response = await this.request({
|
|
259
|
+
path: `/v1/orders/export`,
|
|
260
|
+
method: 'GET',
|
|
261
|
+
headers: headerParameters,
|
|
262
|
+
query: queryParameters,
|
|
263
|
+
}, initOverrides);
|
|
264
|
+
|
|
265
|
+
return new runtime.VoidApiResponse(response);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Initiates a CSV export of orders. The export will be available for download from a notification within Teemill Dashboard.
|
|
270
|
+
* Export orders
|
|
271
|
+
*/
|
|
272
|
+
async exportOrders(
|
|
273
|
+
project: string, start: Date,
|
|
274
|
+
optionalParameters: runtime.OptionalOnly<ExportOrdersRequest> = {},
|
|
275
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
276
|
+
): Promise<void> {
|
|
277
|
+
await this.exportOrdersRaw(
|
|
278
|
+
{
|
|
279
|
+
project: project,start: start,
|
|
280
|
+
...optionalParameters,
|
|
281
|
+
},
|
|
282
|
+
initOverrides
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
|
|
192
286
|
/**
|
|
193
287
|
* Get an order
|
|
194
288
|
* Get order
|
|
@@ -237,8 +331,19 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
237
331
|
* Get an order
|
|
238
332
|
* Get order
|
|
239
333
|
*/
|
|
240
|
-
async getOrder(
|
|
241
|
-
|
|
334
|
+
async getOrder(
|
|
335
|
+
project: string, orderId: string,
|
|
336
|
+
optionalParameters: runtime.OptionalOnly<GetOrderRequest> = {},
|
|
337
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
338
|
+
): Promise<Order> {
|
|
339
|
+
const response = await this.getOrderRaw(
|
|
340
|
+
{
|
|
341
|
+
project: project,orderId: orderId,
|
|
342
|
+
...optionalParameters,
|
|
343
|
+
},
|
|
344
|
+
initOverrides
|
|
345
|
+
);
|
|
346
|
+
|
|
242
347
|
return await response.value();
|
|
243
348
|
}
|
|
244
349
|
|
|
@@ -314,8 +419,19 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
314
419
|
* Lists all orders available paginated into chunks
|
|
315
420
|
* List orders
|
|
316
421
|
*/
|
|
317
|
-
async getOrders(
|
|
318
|
-
|
|
422
|
+
async getOrders(
|
|
423
|
+
project: string,
|
|
424
|
+
optionalParameters: runtime.OptionalOnly<GetOrdersRequest> = {},
|
|
425
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
426
|
+
): Promise<OrdersResponse> {
|
|
427
|
+
const response = await this.getOrdersRaw(
|
|
428
|
+
{
|
|
429
|
+
project: project,
|
|
430
|
+
...optionalParameters,
|
|
431
|
+
},
|
|
432
|
+
initOverrides
|
|
433
|
+
);
|
|
434
|
+
|
|
319
435
|
return await response.value();
|
|
320
436
|
}
|
|
321
437
|
|
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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.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.4.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
export type OptionalProperties<T> = {
|
|
17
|
+
[K in keyof T]-?: undefined extends T[K] ? K : never
|
|
18
|
+
}[keyof T];
|
|
19
|
+
|
|
20
|
+
export type OptionalOnly<T> = Partial<Pick<T, OptionalProperties<T>>>;
|
|
21
|
+
|
|
16
22
|
export const BASE_PATH = "https://api.localhost:8080".replace(/\/+$/, "");
|
|
17
23
|
|
|
18
24
|
export interface ConfigurationParameters {
|
|
@@ -98,6 +104,10 @@ export class BaseAPI {
|
|
|
98
104
|
this.middleware = configuration.middleware;
|
|
99
105
|
}
|
|
100
106
|
|
|
107
|
+
isResponseError(error: any): error is ResponseError {
|
|
108
|
+
return error instanceof Error && error.name === 'ResponseError';
|
|
109
|
+
}
|
|
110
|
+
|
|
101
111
|
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {
|
|
102
112
|
const next = this.clone<T>();
|
|
103
113
|
next.middleware = next.middleware.concat(...middlewares);
|
|
@@ -326,8 +336,8 @@ function querystringSingleKey(key: string, value: string | number | null | undef
|
|
|
326
336
|
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
327
337
|
if (value instanceof Array) {
|
|
328
338
|
const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
|
|
329
|
-
.join(`&${encodeURIComponent(fullKey)}=`);
|
|
330
|
-
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
339
|
+
.join(`&${encodeURIComponent(fullKey)}[]=`);
|
|
340
|
+
return `${encodeURIComponent(fullKey)}[]=${multiValue}`;
|
|
331
341
|
}
|
|
332
342
|
if (value instanceof Set) {
|
|
333
343
|
const valueAsArray = Array.from(value);
|