@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
@@ -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).
@@ -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;
@@ -16,3 +16,4 @@ export * from './Origin';
16
16
  export * from './Price';
17
17
  export * from './ShippingMethod';
18
18
  export * from './Status';
19
+ export * from './StatusHistoryItem';
@@ -34,3 +34,4 @@ __exportStar(require("./Origin"), exports);
34
34
  __exportStar(require("./Price"), exports);
35
35
  __exportStar(require("./ShippingMethod"), exports);
36
36
  __exportStar(require("./Status"), exports);
37
+ __exportStar(require("./StatusHistoryItem"), exports);
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.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).
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.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).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/orders",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "OpenAPI client for @teemill/orders",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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.2
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(requestParameters: ConfirmOrderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order> {
114
- const response = await this.confirmOrderRaw(requestParameters, initOverrides);
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(requestParameters: CreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order> {
161
- const response = await this.createOrderRaw(requestParameters, initOverrides);
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(requestParameters: GetOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Order> {
205
- const response = await this.getOrderRaw(requestParameters, initOverrides);
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(requestParameters: GetOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrdersResponse> {
265
- const response = await this.getOrdersRaw(requestParameters, initOverrides);
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
 
@@ -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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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
 
@@ -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.2
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.2
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.2
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.2
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.2
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.2
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.2
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.2
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
+
@@ -18,3 +18,4 @@ export * from './Origin';
18
18
  export * from './Price';
19
19
  export * from './ShippingMethod';
20
20
  export * from './Status';
21
+ export * from './StatusHistoryItem';
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.2
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).