@teemill/orders 1.0.2 → 1.1.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 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/OrdersApi.d.ts +5 -5
- package/dist/apis/OrdersApi.js +69 -29
- 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 +8 -1
- package/dist/models/Order.js +4 -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 +38 -0
- package/dist/models/StatusHistoryItem.js +53 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/OrdersApi.ts +29 -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 +15 -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 +80 -0
- package/src/models/index.ts +1 -0
- package/src/runtime.ts +1 -1
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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.1.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orders API
|
|
3
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.1.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Status } from './Status';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface StatusHistoryItem
|
|
17
|
+
*/
|
|
18
|
+
export interface StatusHistoryItem {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Status}
|
|
22
|
+
* @memberof StatusHistoryItem
|
|
23
|
+
*/
|
|
24
|
+
status?: Status;
|
|
25
|
+
/**
|
|
26
|
+
* ISO 8601 Timestamp
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof StatusHistoryItem
|
|
29
|
+
*/
|
|
30
|
+
createdAt?: Date;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the StatusHistoryItem interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfStatusHistoryItem(value: object): boolean;
|
|
36
|
+
export declare function StatusHistoryItemFromJSON(json: any): StatusHistoryItem;
|
|
37
|
+
export declare function StatusHistoryItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusHistoryItem;
|
|
38
|
+
export declare function StatusHistoryItemToJSON(value?: StatusHistoryItem | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Orders API
|
|
6
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.1.0
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.StatusHistoryItemToJSON = exports.StatusHistoryItemFromJSONTyped = exports.StatusHistoryItemFromJSON = exports.instanceOfStatusHistoryItem = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var Status_1 = require("./Status");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the StatusHistoryItem interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfStatusHistoryItem(value) {
|
|
23
|
+
var isInstance = true;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfStatusHistoryItem = instanceOfStatusHistoryItem;
|
|
27
|
+
function StatusHistoryItemFromJSON(json) {
|
|
28
|
+
return StatusHistoryItemFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.StatusHistoryItemFromJSON = StatusHistoryItemFromJSON;
|
|
31
|
+
function StatusHistoryItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'status': !(0, runtime_1.exists)(json, 'status') ? undefined : (0, Status_1.StatusFromJSON)(json['status']),
|
|
37
|
+
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.StatusHistoryItemFromJSONTyped = StatusHistoryItemFromJSONTyped;
|
|
41
|
+
function StatusHistoryItemToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'status': (0, Status_1.StatusToJSON)(value.status),
|
|
50
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.StatusHistoryItemToJSON = StatusHistoryItemToJSON;
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
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.0
|
|
5
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
8
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -91,6 +91,11 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
91
91
|
|
|
92
92
|
headerParameters['Content-Type'] = 'application/json';
|
|
93
93
|
|
|
94
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
95
|
+
// oauth required
|
|
96
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
97
|
+
}
|
|
98
|
+
|
|
94
99
|
if (this.configuration && this.configuration.apiKey) {
|
|
95
100
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
96
101
|
}
|
|
@@ -110,8 +115,8 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
110
115
|
* Confirms and order, and submits it as ready to take payment and begin processing.
|
|
111
116
|
* Confirm order
|
|
112
117
|
*/
|
|
113
|
-
async confirmOrder(
|
|
114
|
-
const response = await this.confirmOrderRaw(
|
|
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);
|
|
115
120
|
return await response.value();
|
|
116
121
|
}
|
|
117
122
|
|
|
@@ -138,6 +143,11 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
138
143
|
|
|
139
144
|
headerParameters['Content-Type'] = 'application/json';
|
|
140
145
|
|
|
146
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
147
|
+
// oauth required
|
|
148
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
149
|
+
}
|
|
150
|
+
|
|
141
151
|
if (this.configuration && this.configuration.apiKey) {
|
|
142
152
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
143
153
|
}
|
|
@@ -157,8 +167,8 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
157
167
|
* Creates a new order for the provided variants.
|
|
158
168
|
* Create order
|
|
159
169
|
*/
|
|
160
|
-
async createOrder(
|
|
161
|
-
const response = await this.createOrderRaw(
|
|
170
|
+
async createOrder(project: string, order: Order, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order> {
|
|
171
|
+
const response = await this.createOrderRaw({ project: project, order: order }, initOverrides);
|
|
162
172
|
return await response.value();
|
|
163
173
|
}
|
|
164
174
|
|
|
@@ -183,6 +193,11 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
183
193
|
|
|
184
194
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
185
195
|
|
|
196
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
197
|
+
// oauth required
|
|
198
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
199
|
+
}
|
|
200
|
+
|
|
186
201
|
if (this.configuration && this.configuration.apiKey) {
|
|
187
202
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
188
203
|
}
|
|
@@ -201,8 +216,8 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
201
216
|
* Get an order
|
|
202
217
|
* Get order
|
|
203
218
|
*/
|
|
204
|
-
async getOrder(
|
|
205
|
-
const response = await this.getOrderRaw(
|
|
219
|
+
async getOrder(project: string, orderId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order> {
|
|
220
|
+
const response = await this.getOrderRaw({ project: project, orderId: orderId }, initOverrides);
|
|
206
221
|
return await response.value();
|
|
207
222
|
}
|
|
208
223
|
|
|
@@ -243,6 +258,11 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
243
258
|
|
|
244
259
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
245
260
|
|
|
261
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
262
|
+
// oauth required
|
|
263
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
264
|
+
}
|
|
265
|
+
|
|
246
266
|
if (this.configuration && this.configuration.apiKey) {
|
|
247
267
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
248
268
|
}
|
|
@@ -261,8 +281,8 @@ export class OrdersApi extends runtime.BaseAPI {
|
|
|
261
281
|
* Lists all orders available paginated into chunks
|
|
262
282
|
* List orders
|
|
263
283
|
*/
|
|
264
|
-
async getOrders(
|
|
265
|
-
const response = await this.getOrdersRaw(
|
|
284
|
+
async getOrders(project: string, pageToken?: number, pageSize?: number, start?: Date, end?: Date, search?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrdersResponse> {
|
|
285
|
+
const response = await this.getOrdersRaw({ project: project, pageToken: pageToken, pageSize: pageSize, start: start, end: end, search: search }, initOverrides);
|
|
266
286
|
return await response.value();
|
|
267
287
|
}
|
|
268
288
|
|
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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -55,6 +55,12 @@ import {
|
|
|
55
55
|
StatusFromJSONTyped,
|
|
56
56
|
StatusToJSON,
|
|
57
57
|
} from './Status';
|
|
58
|
+
import type { StatusHistoryItem } from './StatusHistoryItem';
|
|
59
|
+
import {
|
|
60
|
+
StatusHistoryItemFromJSON,
|
|
61
|
+
StatusHistoryItemFromJSONTyped,
|
|
62
|
+
StatusHistoryItemToJSON,
|
|
63
|
+
} from './StatusHistoryItem';
|
|
58
64
|
|
|
59
65
|
/**
|
|
60
66
|
*
|
|
@@ -158,6 +164,12 @@ export interface Order {
|
|
|
158
164
|
* @memberof Order
|
|
159
165
|
*/
|
|
160
166
|
origin?: Origin;
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @type {Array<StatusHistoryItem>}
|
|
170
|
+
* @memberof Order
|
|
171
|
+
*/
|
|
172
|
+
statusHistory?: Array<StatusHistoryItem>;
|
|
161
173
|
}
|
|
162
174
|
|
|
163
175
|
/**
|
|
@@ -198,6 +210,7 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
|
|
|
198
210
|
'discountPrice': !exists(json, 'discountPrice') ? undefined : PriceFromJSON(json['discountPrice']),
|
|
199
211
|
'shippingPrice': !exists(json, 'shippingPrice') ? undefined : PriceFromJSON(json['shippingPrice']),
|
|
200
212
|
'origin': !exists(json, 'origin') ? undefined : OriginFromJSON(json['origin']),
|
|
213
|
+
'statusHistory': !exists(json, 'statusHistory') ? undefined : ((json['statusHistory'] as Array<any>).map(StatusHistoryItemFromJSON)),
|
|
201
214
|
};
|
|
202
215
|
}
|
|
203
216
|
|
|
@@ -225,6 +238,7 @@ export function OrderToJSON(value?: Order | null): any {
|
|
|
225
238
|
'discountPrice': PriceToJSON(value.discountPrice),
|
|
226
239
|
'shippingPrice': PriceToJSON(value.shippingPrice),
|
|
227
240
|
'origin': OriginToJSON(value.origin),
|
|
241
|
+
'statusHistory': value.statusHistory === undefined ? undefined : ((value.statusHistory as Array<any>).map(StatusHistoryItemToJSON)),
|
|
228
242
|
};
|
|
229
243
|
}
|
|
230
244
|
|
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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Orders API
|
|
5
|
+
* Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { Status } from './Status';
|
|
17
|
+
import {
|
|
18
|
+
StatusFromJSON,
|
|
19
|
+
StatusFromJSONTyped,
|
|
20
|
+
StatusToJSON,
|
|
21
|
+
} from './Status';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface StatusHistoryItem
|
|
27
|
+
*/
|
|
28
|
+
export interface StatusHistoryItem {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Status}
|
|
32
|
+
* @memberof StatusHistoryItem
|
|
33
|
+
*/
|
|
34
|
+
status?: Status;
|
|
35
|
+
/**
|
|
36
|
+
* ISO 8601 Timestamp
|
|
37
|
+
* @type {Date}
|
|
38
|
+
* @memberof StatusHistoryItem
|
|
39
|
+
*/
|
|
40
|
+
createdAt?: Date;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the StatusHistoryItem interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfStatusHistoryItem(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
|
|
49
|
+
return isInstance;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function StatusHistoryItemFromJSON(json: any): StatusHistoryItem {
|
|
53
|
+
return StatusHistoryItemFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function StatusHistoryItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusHistoryItem {
|
|
57
|
+
if ((json === undefined) || (json === null)) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'status': !exists(json, 'status') ? undefined : StatusFromJSON(json['status']),
|
|
63
|
+
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function StatusHistoryItemToJSON(value?: StatusHistoryItem | null): any {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'status': StatusToJSON(value.status),
|
|
77
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
package/src/models/index.ts
CHANGED
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.0
|
|
7
|
+
* The version of the OpenAPI document: 1.1.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|