@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.
Files changed (70) hide show
  1. package/.openapi-generator/FILES +1 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/OrdersApi.d.ts +5 -5
  5. package/dist/apis/OrdersApi.js +69 -29
  6. package/dist/models/Address.d.ts +1 -1
  7. package/dist/models/Address.js +1 -1
  8. package/dist/models/ApiError.d.ts +1 -1
  9. package/dist/models/ApiError.js +1 -1
  10. package/dist/models/ConfirmOrderFulfillment.d.ts +1 -1
  11. package/dist/models/ConfirmOrderFulfillment.js +1 -1
  12. package/dist/models/ConfirmOrderRequest.d.ts +1 -1
  13. package/dist/models/ConfirmOrderRequest.js +1 -1
  14. package/dist/models/ConfirmOrderValidationError.d.ts +1 -1
  15. package/dist/models/ConfirmOrderValidationError.js +1 -1
  16. package/dist/models/ContactInformation.d.ts +1 -1
  17. package/dist/models/ContactInformation.js +1 -1
  18. package/dist/models/DeliveryEstimates.d.ts +1 -1
  19. package/dist/models/DeliveryEstimates.js +1 -1
  20. package/dist/models/Fulfillment.d.ts +1 -1
  21. package/dist/models/Fulfillment.js +1 -1
  22. package/dist/models/FulfillmentItem.d.ts +1 -1
  23. package/dist/models/FulfillmentItem.js +1 -1
  24. package/dist/models/Order.d.ts +8 -1
  25. package/dist/models/Order.js +4 -1
  26. package/dist/models/OrderItem.d.ts +1 -1
  27. package/dist/models/OrderItem.js +1 -1
  28. package/dist/models/OrderItemTaxPrice.d.ts +1 -1
  29. package/dist/models/OrderItemTaxPrice.js +1 -1
  30. package/dist/models/OrderTracking.d.ts +1 -1
  31. package/dist/models/OrderTracking.js +1 -1
  32. package/dist/models/OrdersResponse.d.ts +1 -1
  33. package/dist/models/OrdersResponse.js +1 -1
  34. package/dist/models/Origin.d.ts +1 -1
  35. package/dist/models/Origin.js +1 -1
  36. package/dist/models/Price.d.ts +1 -1
  37. package/dist/models/Price.js +1 -1
  38. package/dist/models/ShippingMethod.d.ts +1 -1
  39. package/dist/models/ShippingMethod.js +1 -1
  40. package/dist/models/Status.d.ts +1 -1
  41. package/dist/models/Status.js +1 -1
  42. package/dist/models/StatusHistoryItem.d.ts +38 -0
  43. package/dist/models/StatusHistoryItem.js +53 -0
  44. package/dist/models/index.d.ts +1 -0
  45. package/dist/models/index.js +1 -0
  46. package/dist/runtime.d.ts +1 -1
  47. package/dist/runtime.js +1 -1
  48. package/package.json +1 -1
  49. package/src/apis/OrdersApi.ts +29 -9
  50. package/src/models/Address.ts +1 -1
  51. package/src/models/ApiError.ts +1 -1
  52. package/src/models/ConfirmOrderFulfillment.ts +1 -1
  53. package/src/models/ConfirmOrderRequest.ts +1 -1
  54. package/src/models/ConfirmOrderValidationError.ts +1 -1
  55. package/src/models/ContactInformation.ts +1 -1
  56. package/src/models/DeliveryEstimates.ts +1 -1
  57. package/src/models/Fulfillment.ts +1 -1
  58. package/src/models/FulfillmentItem.ts +1 -1
  59. package/src/models/Order.ts +15 -1
  60. package/src/models/OrderItem.ts +1 -1
  61. package/src/models/OrderItemTaxPrice.ts +1 -1
  62. package/src/models/OrderTracking.ts +1 -1
  63. package/src/models/OrdersResponse.ts +1 -1
  64. package/src/models/Origin.ts +1 -1
  65. package/src/models/Price.ts +1 -1
  66. package/src/models/ShippingMethod.ts +1 -1
  67. package/src/models/Status.ts +1 -1
  68. package/src/models/StatusHistoryItem.ts +80 -0
  69. package/src/models/index.ts +1 -0
  70. package/src/runtime.ts +1 -1
@@ -1,6 +1,5 @@
1
1
  .gitignore
2
2
  .npmignore
3
- .openapi-generator-ignore
4
3
  README.md
5
4
  package.json
6
5
  src/apis/OrdersApi.ts
@@ -24,6 +23,7 @@ src/models/Origin.ts
24
23
  src/models/Price.ts
25
24
  src/models/ShippingMethod.ts
26
25
  src/models/Status.ts
26
+ src/models/StatusHistoryItem.ts
27
27
  src/models/index.ts
28
28
  src/runtime.ts
29
29
  tsconfig.json
@@ -1 +1 @@
1
- 7.1.0-SNAPSHOT
1
+ 7.1.0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/orders@1.0.2
1
+ ## @teemill/orders@1.1.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.0.2 --save
39
+ npm install @teemill/orders@1.1.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -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.2
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).
@@ -45,7 +45,7 @@ export declare class OrdersApi extends runtime.BaseAPI {
45
45
  * Confirms and order, and submits it as ready to take payment and begin processing.
46
46
  * Confirm order
47
47
  */
48
- confirmOrder(requestParameters: ConfirmOrderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
48
+ confirmOrder(project: string, orderId: string, confirmOrderRequest: ConfirmOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
49
49
  /**
50
50
  * Creates a new order for the provided variants.
51
51
  * Create order
@@ -55,7 +55,7 @@ export declare class OrdersApi extends runtime.BaseAPI {
55
55
  * Creates a new order for the provided variants.
56
56
  * Create order
57
57
  */
58
- createOrder(requestParameters: CreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
58
+ createOrder(project: string, order: Order, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
59
59
  /**
60
60
  * Get an order
61
61
  * Get order
@@ -65,7 +65,7 @@ export declare class OrdersApi extends runtime.BaseAPI {
65
65
  * Get an order
66
66
  * Get order
67
67
  */
68
- getOrder(requestParameters: GetOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
68
+ getOrder(project: string, orderId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order>;
69
69
  /**
70
70
  * Lists all orders available paginated into chunks
71
71
  * List orders
@@ -75,5 +75,5 @@ export declare class OrdersApi extends runtime.BaseAPI {
75
75
  * Lists all orders available paginated into chunks
76
76
  * List orders
77
77
  */
78
- getOrders(requestParameters: GetOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrdersResponse>;
78
+ getOrders(project: string, pageToken?: number, pageSize?: number, start?: Date, end?: Date, search?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrdersResponse>;
79
79
  }
@@ -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.2
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).
@@ -81,9 +81,9 @@ var OrdersApi = /** @class */ (function (_super) {
81
81
  */
82
82
  OrdersApi.prototype.confirmOrderRaw = function (requestParameters, initOverrides) {
83
83
  return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, response;
85
- return __generator(this, function (_a) {
86
- switch (_a.label) {
84
+ var queryParameters, headerParameters, _a, _b, response;
85
+ return __generator(this, function (_c) {
86
+ switch (_c.label) {
87
87
  case 0:
88
88
  if (requestParameters.project === null || requestParameters.project === undefined) {
89
89
  throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling confirmOrder.');
@@ -100,6 +100,16 @@ var OrdersApi = /** @class */ (function (_super) {
100
100
  }
101
101
  headerParameters = {};
102
102
  headerParameters['Content-Type'] = 'application/json';
103
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
104
+ // oauth required
105
+ _a = headerParameters;
106
+ _b = "Authorization";
107
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
108
+ case 1:
109
+ // oauth required
110
+ _a[_b] = _c.sent();
111
+ _c.label = 2;
112
+ case 2:
103
113
  if (this.configuration && this.configuration.apiKey) {
104
114
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
105
115
  }
@@ -110,8 +120,8 @@ var OrdersApi = /** @class */ (function (_super) {
110
120
  query: queryParameters,
111
121
  body: (0, index_1.ConfirmOrderRequestToJSON)(requestParameters.confirmOrderRequest),
112
122
  }, initOverrides)];
113
- case 1:
114
- response = _a.sent();
123
+ case 3:
124
+ response = _c.sent();
115
125
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.OrderFromJSON)(jsonValue); })];
116
126
  }
117
127
  });
@@ -121,12 +131,12 @@ var OrdersApi = /** @class */ (function (_super) {
121
131
  * Confirms and order, and submits it as ready to take payment and begin processing.
122
132
  * Confirm order
123
133
  */
124
- OrdersApi.prototype.confirmOrder = function (requestParameters, initOverrides) {
134
+ OrdersApi.prototype.confirmOrder = function (project, orderId, confirmOrderRequest, initOverrides) {
125
135
  return __awaiter(this, void 0, void 0, function () {
126
136
  var response;
127
137
  return __generator(this, function (_a) {
128
138
  switch (_a.label) {
129
- case 0: return [4 /*yield*/, this.confirmOrderRaw(requestParameters, initOverrides)];
139
+ case 0: return [4 /*yield*/, this.confirmOrderRaw({ project: project, orderId: orderId, confirmOrderRequest: confirmOrderRequest }, initOverrides)];
130
140
  case 1:
131
141
  response = _a.sent();
132
142
  return [4 /*yield*/, response.value()];
@@ -141,9 +151,9 @@ var OrdersApi = /** @class */ (function (_super) {
141
151
  */
142
152
  OrdersApi.prototype.createOrderRaw = function (requestParameters, initOverrides) {
143
153
  return __awaiter(this, void 0, void 0, function () {
144
- var queryParameters, headerParameters, response;
145
- return __generator(this, function (_a) {
146
- switch (_a.label) {
154
+ var queryParameters, headerParameters, _a, _b, response;
155
+ return __generator(this, function (_c) {
156
+ switch (_c.label) {
147
157
  case 0:
148
158
  if (requestParameters.project === null || requestParameters.project === undefined) {
149
159
  throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling createOrder.');
@@ -157,6 +167,16 @@ var OrdersApi = /** @class */ (function (_super) {
157
167
  }
158
168
  headerParameters = {};
159
169
  headerParameters['Content-Type'] = 'application/json';
170
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
171
+ // oauth required
172
+ _a = headerParameters;
173
+ _b = "Authorization";
174
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
175
+ case 1:
176
+ // oauth required
177
+ _a[_b] = _c.sent();
178
+ _c.label = 2;
179
+ case 2:
160
180
  if (this.configuration && this.configuration.apiKey) {
161
181
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
162
182
  }
@@ -167,8 +187,8 @@ var OrdersApi = /** @class */ (function (_super) {
167
187
  query: queryParameters,
168
188
  body: (0, index_1.OrderToJSON)(requestParameters.order),
169
189
  }, initOverrides)];
170
- case 1:
171
- response = _a.sent();
190
+ case 3:
191
+ response = _c.sent();
172
192
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.OrderFromJSON)(jsonValue); })];
173
193
  }
174
194
  });
@@ -178,12 +198,12 @@ var OrdersApi = /** @class */ (function (_super) {
178
198
  * Creates a new order for the provided variants.
179
199
  * Create order
180
200
  */
181
- OrdersApi.prototype.createOrder = function (requestParameters, initOverrides) {
201
+ OrdersApi.prototype.createOrder = function (project, order, initOverrides) {
182
202
  return __awaiter(this, void 0, void 0, function () {
183
203
  var response;
184
204
  return __generator(this, function (_a) {
185
205
  switch (_a.label) {
186
- case 0: return [4 /*yield*/, this.createOrderRaw(requestParameters, initOverrides)];
206
+ case 0: return [4 /*yield*/, this.createOrderRaw({ project: project, order: order }, initOverrides)];
187
207
  case 1:
188
208
  response = _a.sent();
189
209
  return [4 /*yield*/, response.value()];
@@ -198,9 +218,9 @@ var OrdersApi = /** @class */ (function (_super) {
198
218
  */
199
219
  OrdersApi.prototype.getOrderRaw = function (requestParameters, initOverrides) {
200
220
  return __awaiter(this, void 0, void 0, function () {
201
- var queryParameters, headerParameters, response;
202
- return __generator(this, function (_a) {
203
- switch (_a.label) {
221
+ var queryParameters, headerParameters, _a, _b, response;
222
+ return __generator(this, function (_c) {
223
+ switch (_c.label) {
204
224
  case 0:
205
225
  if (requestParameters.project === null || requestParameters.project === undefined) {
206
226
  throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getOrder.');
@@ -213,6 +233,16 @@ var OrdersApi = /** @class */ (function (_super) {
213
233
  queryParameters['project'] = requestParameters.project;
214
234
  }
215
235
  headerParameters = {};
236
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
237
+ // oauth required
238
+ _a = headerParameters;
239
+ _b = "Authorization";
240
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
241
+ case 1:
242
+ // oauth required
243
+ _a[_b] = _c.sent();
244
+ _c.label = 2;
245
+ case 2:
216
246
  if (this.configuration && this.configuration.apiKey) {
217
247
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
218
248
  }
@@ -222,8 +252,8 @@ var OrdersApi = /** @class */ (function (_super) {
222
252
  headers: headerParameters,
223
253
  query: queryParameters,
224
254
  }, initOverrides)];
225
- case 1:
226
- response = _a.sent();
255
+ case 3:
256
+ response = _c.sent();
227
257
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.OrderFromJSON)(jsonValue); })];
228
258
  }
229
259
  });
@@ -233,12 +263,12 @@ var OrdersApi = /** @class */ (function (_super) {
233
263
  * Get an order
234
264
  * Get order
235
265
  */
236
- OrdersApi.prototype.getOrder = function (requestParameters, initOverrides) {
266
+ OrdersApi.prototype.getOrder = function (project, orderId, initOverrides) {
237
267
  return __awaiter(this, void 0, void 0, function () {
238
268
  var response;
239
269
  return __generator(this, function (_a) {
240
270
  switch (_a.label) {
241
- case 0: return [4 /*yield*/, this.getOrderRaw(requestParameters, initOverrides)];
271
+ case 0: return [4 /*yield*/, this.getOrderRaw({ project: project, orderId: orderId }, initOverrides)];
242
272
  case 1:
243
273
  response = _a.sent();
244
274
  return [4 /*yield*/, response.value()];
@@ -253,9 +283,9 @@ var OrdersApi = /** @class */ (function (_super) {
253
283
  */
254
284
  OrdersApi.prototype.getOrdersRaw = function (requestParameters, initOverrides) {
255
285
  return __awaiter(this, void 0, void 0, function () {
256
- var queryParameters, headerParameters, response;
257
- return __generator(this, function (_a) {
258
- switch (_a.label) {
286
+ var queryParameters, headerParameters, _a, _b, response;
287
+ return __generator(this, function (_c) {
288
+ switch (_c.label) {
259
289
  case 0:
260
290
  if (requestParameters.project === null || requestParameters.project === undefined) {
261
291
  throw new runtime.RequiredError('project', 'Required parameter requestParameters.project was null or undefined when calling getOrders.');
@@ -280,6 +310,16 @@ var OrdersApi = /** @class */ (function (_super) {
280
310
  queryParameters['search'] = requestParameters.search;
281
311
  }
282
312
  headerParameters = {};
313
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
314
+ // oauth required
315
+ _a = headerParameters;
316
+ _b = "Authorization";
317
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
318
+ case 1:
319
+ // oauth required
320
+ _a[_b] = _c.sent();
321
+ _c.label = 2;
322
+ case 2:
283
323
  if (this.configuration && this.configuration.apiKey) {
284
324
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
285
325
  }
@@ -289,8 +329,8 @@ var OrdersApi = /** @class */ (function (_super) {
289
329
  headers: headerParameters,
290
330
  query: queryParameters,
291
331
  }, initOverrides)];
292
- case 1:
293
- response = _a.sent();
332
+ case 3:
333
+ response = _c.sent();
294
334
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.OrdersResponseFromJSON)(jsonValue); })];
295
335
  }
296
336
  });
@@ -300,12 +340,12 @@ var OrdersApi = /** @class */ (function (_super) {
300
340
  * Lists all orders available paginated into chunks
301
341
  * List orders
302
342
  */
303
- OrdersApi.prototype.getOrders = function (requestParameters, initOverrides) {
343
+ OrdersApi.prototype.getOrders = function (project, pageToken, pageSize, start, end, search, initOverrides) {
304
344
  return __awaiter(this, void 0, void 0, function () {
305
345
  var response;
306
346
  return __generator(this, function (_a) {
307
347
  switch (_a.label) {
308
- case 0: return [4 /*yield*/, this.getOrdersRaw(requestParameters, initOverrides)];
348
+ case 0: return [4 /*yield*/, this.getOrdersRaw({ project: project, pageToken: pageToken, pageSize: pageSize, start: start, end: end, search: search }, initOverrides)];
309
349
  case 1:
310
350
  response = _a.sent();
311
351
  return [4 /*yield*/, response.value()];
@@ -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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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).
@@ -16,6 +16,7 @@ import type { OrderItem } from './OrderItem';
16
16
  import type { Origin } from './Origin';
17
17
  import type { Price } from './Price';
18
18
  import type { Status } from './Status';
19
+ import type { StatusHistoryItem } from './StatusHistoryItem';
19
20
  /**
20
21
  *
21
22
  * @export
@@ -118,6 +119,12 @@ export interface Order {
118
119
  * @memberof Order
119
120
  */
120
121
  origin?: Origin;
122
+ /**
123
+ *
124
+ * @type {Array<StatusHistoryItem>}
125
+ * @memberof Order
126
+ */
127
+ statusHistory?: Array<StatusHistoryItem>;
121
128
  }
122
129
  /**
123
130
  * Check if a given object implements the Order interface.
@@ -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.2
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).
@@ -22,6 +22,7 @@ var OrderItem_1 = require("./OrderItem");
22
22
  var Origin_1 = require("./Origin");
23
23
  var Price_1 = require("./Price");
24
24
  var Status_1 = require("./Status");
25
+ var StatusHistoryItem_1 = require("./StatusHistoryItem");
25
26
  /**
26
27
  * Check if a given object implements the Order interface.
27
28
  */
@@ -58,6 +59,7 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
58
59
  'discountPrice': !(0, runtime_1.exists)(json, 'discountPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['discountPrice']),
59
60
  'shippingPrice': !(0, runtime_1.exists)(json, 'shippingPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['shippingPrice']),
60
61
  'origin': !(0, runtime_1.exists)(json, 'origin') ? undefined : (0, Origin_1.OriginFromJSON)(json['origin']),
62
+ 'statusHistory': !(0, runtime_1.exists)(json, 'statusHistory') ? undefined : (json['statusHistory'].map(StatusHistoryItem_1.StatusHistoryItemFromJSON)),
61
63
  };
62
64
  }
63
65
  exports.OrderFromJSONTyped = OrderFromJSONTyped;
@@ -84,6 +86,7 @@ function OrderToJSON(value) {
84
86
  'discountPrice': (0, Price_1.PriceToJSON)(value.discountPrice),
85
87
  'shippingPrice': (0, Price_1.PriceToJSON)(value.shippingPrice),
86
88
  'origin': (0, Origin_1.OriginToJSON)(value.origin),
89
+ 'statusHistory': value.statusHistory === undefined ? undefined : (value.statusHistory.map(StatusHistoryItem_1.StatusHistoryItemToJSON)),
87
90
  };
88
91
  }
89
92
  exports.OrderToJSON = OrderToJSON;
@@ -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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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).