@teemill/orders 1.5.4 → 1.6.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 (69) hide show
  1. package/.openapi-generator/VERSION +1 -1
  2. package/README.md +2 -2
  3. package/dist/apis/OrdersApi.d.ts +16 -1
  4. package/dist/apis/OrdersApi.js +68 -1
  5. package/dist/models/Address.d.ts +1 -1
  6. package/dist/models/Address.js +25 -26
  7. package/dist/models/ApiError.d.ts +1 -1
  8. package/dist/models/ApiError.js +10 -14
  9. package/dist/models/ConfirmOrderFulfillment.d.ts +1 -1
  10. package/dist/models/ConfirmOrderFulfillment.js +11 -13
  11. package/dist/models/ConfirmOrderRequest.d.ts +1 -1
  12. package/dist/models/ConfirmOrderRequest.js +8 -11
  13. package/dist/models/ConfirmOrderValidationError.d.ts +1 -1
  14. package/dist/models/ConfirmOrderValidationError.js +11 -13
  15. package/dist/models/ContactInformation.d.ts +2 -2
  16. package/dist/models/ContactInformation.js +10 -14
  17. package/dist/models/DeliveryEstimates.d.ts +1 -1
  18. package/dist/models/DeliveryEstimates.js +9 -14
  19. package/dist/models/ExportOrders202Response.d.ts +1 -1
  20. package/dist/models/ExportOrders202Response.js +7 -12
  21. package/dist/models/Fulfillment.d.ts +4 -4
  22. package/dist/models/Fulfillment.js +19 -24
  23. package/dist/models/FulfillmentItem.d.ts +3 -3
  24. package/dist/models/FulfillmentItem.js +11 -16
  25. package/dist/models/Order.d.ts +2 -2
  26. package/dist/models/Order.js +41 -43
  27. package/dist/models/OrderItem.d.ts +3 -3
  28. package/dist/models/OrderItem.js +19 -22
  29. package/dist/models/OrderItemTaxPrice.d.ts +1 -1
  30. package/dist/models/OrderItemTaxPrice.js +9 -14
  31. package/dist/models/OrderTracking.d.ts +1 -1
  32. package/dist/models/OrderTracking.js +11 -16
  33. package/dist/models/OrdersResponse.d.ts +1 -1
  34. package/dist/models/OrdersResponse.js +9 -14
  35. package/dist/models/Origin.d.ts +1 -1
  36. package/dist/models/Origin.js +9 -14
  37. package/dist/models/Price.d.ts +1 -1
  38. package/dist/models/Price.js +9 -14
  39. package/dist/models/ShippingMethod.d.ts +1 -1
  40. package/dist/models/ShippingMethod.js +21 -26
  41. package/dist/models/Status.d.ts +1 -1
  42. package/dist/models/Status.js +1 -1
  43. package/dist/models/StatusHistoryItem.d.ts +1 -1
  44. package/dist/models/StatusHistoryItem.js +9 -14
  45. package/dist/runtime.d.ts +1 -1
  46. package/dist/runtime.js +1 -1
  47. package/package.json +1 -1
  48. package/src/apis/OrdersApi.ts +69 -1
  49. package/src/models/Address.ts +22 -27
  50. package/src/models/ApiError.ts +10 -15
  51. package/src/models/ConfirmOrderFulfillment.ts +10 -15
  52. package/src/models/ConfirmOrderRequest.ts +8 -13
  53. package/src/models/ConfirmOrderValidationError.ts +10 -15
  54. package/src/models/ContactInformation.ts +11 -16
  55. package/src/models/DeliveryEstimates.ts +10 -15
  56. package/src/models/ExportOrders202Response.ts +8 -13
  57. package/src/models/Fulfillment.ts +23 -28
  58. package/src/models/FulfillmentItem.ts +14 -19
  59. package/src/models/Order.ts +40 -45
  60. package/src/models/OrderItem.ts +20 -25
  61. package/src/models/OrderItemTaxPrice.ts +10 -15
  62. package/src/models/OrderTracking.ts +12 -17
  63. package/src/models/OrdersResponse.ts +10 -15
  64. package/src/models/Origin.ts +10 -15
  65. package/src/models/Price.ts +10 -15
  66. package/src/models/ShippingMethod.ts +22 -27
  67. package/src/models/Status.ts +1 -1
  68. package/src/models/StatusHistoryItem.ts +10 -15
  69. package/src/runtime.ts +1 -1
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.4
7
+ * The version of the OpenAPI document: 1.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  * A person's address.
18
18
  * @export
@@ -73,13 +73,11 @@ export interface Address {
73
73
  * Check if a given object implements the Address interface.
74
74
  */
75
75
  export function instanceOfAddress(value: object): boolean {
76
- let isInstance = true;
77
- isInstance = isInstance && "contactName" in value;
78
- isInstance = isInstance && "line1" in value;
79
- isInstance = isInstance && "city" in value;
80
- isInstance = isInstance && "country" in value;
81
-
82
- return isInstance;
76
+ if (!('contactName' in value)) return false;
77
+ if (!('line1' in value)) return false;
78
+ if (!('city' in value)) return false;
79
+ if (!('country' in value)) return false;
80
+ return true;
83
81
  }
84
82
 
85
83
  export function AddressFromJSON(json: any): Address {
@@ -87,39 +85,36 @@ export function AddressFromJSON(json: any): Address {
87
85
  }
88
86
 
89
87
  export function AddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): Address {
90
- if ((json === undefined) || (json === null)) {
88
+ if (json == null) {
91
89
  return json;
92
90
  }
93
91
  return {
94
92
 
95
93
  'contactName': json['contactName'],
96
- 'company': !exists(json, 'company') ? undefined : json['company'],
94
+ 'company': json['company'] == null ? undefined : json['company'],
97
95
  'line1': json['line1'],
98
- 'line2': !exists(json, 'line2') ? undefined : json['line2'],
96
+ 'line2': json['line2'] == null ? undefined : json['line2'],
99
97
  'city': json['city'],
100
- 'postalCode': !exists(json, 'postalCode') ? undefined : json['postalCode'],
98
+ 'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
101
99
  'country': json['country'],
102
- 'state': !exists(json, 'state') ? undefined : json['state'],
100
+ 'state': json['state'] == null ? undefined : json['state'],
103
101
  };
104
102
  }
105
103
 
106
104
  export function AddressToJSON(value?: Address | null): any {
107
- if (value === undefined) {
108
- return undefined;
109
- }
110
- if (value === null) {
111
- return null;
105
+ if (value == null) {
106
+ return value;
112
107
  }
113
108
  return {
114
109
 
115
- 'contactName': value.contactName,
116
- 'company': value.company,
117
- 'line1': value.line1,
118
- 'line2': value.line2,
119
- 'city': value.city,
120
- 'postalCode': value.postalCode,
121
- 'country': value.country,
122
- 'state': value.state,
110
+ 'contactName': value['contactName'],
111
+ 'company': value['company'],
112
+ 'line1': value['line1'],
113
+ 'line2': value['line2'],
114
+ 'city': value['city'],
115
+ 'postalCode': value['postalCode'],
116
+ 'country': value['country'],
117
+ 'state': value['state'],
123
118
  };
124
119
  }
125
120
 
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.4
7
+ * The version of the OpenAPI document: 1.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -37,10 +37,8 @@ export interface ApiError {
37
37
  * Check if a given object implements the ApiError interface.
38
38
  */
39
39
  export function instanceOfApiError(value: object): boolean {
40
- let isInstance = true;
41
- isInstance = isInstance && "message" in value;
42
-
43
- return isInstance;
40
+ if (!('message' in value)) return false;
41
+ return true;
44
42
  }
45
43
 
46
44
  export function ApiErrorFromJSON(json: any): ApiError {
@@ -48,27 +46,24 @@ export function ApiErrorFromJSON(json: any): ApiError {
48
46
  }
49
47
 
50
48
  export function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError {
51
- if ((json === undefined) || (json === null)) {
49
+ if (json == null) {
52
50
  return json;
53
51
  }
54
52
  return {
55
53
 
56
- 'code': !exists(json, 'code') ? undefined : json['code'],
54
+ 'code': json['code'] == null ? undefined : json['code'],
57
55
  'message': json['message'],
58
56
  };
59
57
  }
60
58
 
61
59
  export function ApiErrorToJSON(value?: ApiError | null): any {
62
- if (value === undefined) {
63
- return undefined;
64
- }
65
- if (value === null) {
66
- return null;
60
+ if (value == null) {
61
+ return value;
67
62
  }
68
63
  return {
69
64
 
70
- 'code': value.code,
71
- 'message': value.message,
65
+ 'code': value['code'],
66
+ 'message': value['message'],
72
67
  };
73
68
  }
74
69
 
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.4
7
+ * The version of the OpenAPI document: 1.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -37,11 +37,9 @@ export interface ConfirmOrderFulfillment {
37
37
  * Check if a given object implements the ConfirmOrderFulfillment interface.
38
38
  */
39
39
  export function instanceOfConfirmOrderFulfillment(value: object): boolean {
40
- let isInstance = true;
41
- isInstance = isInstance && "fulfillmentId" in value;
42
- isInstance = isInstance && "shippingMethodId" in value;
43
-
44
- return isInstance;
40
+ if (!('fulfillmentId' in value)) return false;
41
+ if (!('shippingMethodId' in value)) return false;
42
+ return true;
45
43
  }
46
44
 
47
45
  export function ConfirmOrderFulfillmentFromJSON(json: any): ConfirmOrderFulfillment {
@@ -49,7 +47,7 @@ export function ConfirmOrderFulfillmentFromJSON(json: any): ConfirmOrderFulfillm
49
47
  }
50
48
 
51
49
  export function ConfirmOrderFulfillmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmOrderFulfillment {
52
- if ((json === undefined) || (json === null)) {
50
+ if (json == null) {
53
51
  return json;
54
52
  }
55
53
  return {
@@ -60,16 +58,13 @@ export function ConfirmOrderFulfillmentFromJSONTyped(json: any, ignoreDiscrimina
60
58
  }
61
59
 
62
60
  export function ConfirmOrderFulfillmentToJSON(value?: ConfirmOrderFulfillment | null): any {
63
- if (value === undefined) {
64
- return undefined;
65
- }
66
- if (value === null) {
67
- return null;
61
+ if (value == null) {
62
+ return value;
68
63
  }
69
64
  return {
70
65
 
71
- 'fulfillmentId': value.fulfillmentId,
72
- 'shippingMethodId': value.shippingMethodId,
66
+ 'fulfillmentId': value['fulfillmentId'],
67
+ 'shippingMethodId': value['shippingMethodId'],
73
68
  };
74
69
  }
75
70
 
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.4
7
+ * The version of the OpenAPI document: 1.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { ConfirmOrderFulfillment } from './ConfirmOrderFulfillment';
17
17
  import {
18
18
  ConfirmOrderFulfillmentFromJSON,
@@ -38,10 +38,8 @@ export interface ConfirmOrderRequest {
38
38
  * Check if a given object implements the ConfirmOrderRequest interface.
39
39
  */
40
40
  export function instanceOfConfirmOrderRequest(value: object): boolean {
41
- let isInstance = true;
42
- isInstance = isInstance && "fulfillments" in value;
43
-
44
- return isInstance;
41
+ if (!('fulfillments' in value)) return false;
42
+ return true;
45
43
  }
46
44
 
47
45
  export function ConfirmOrderRequestFromJSON(json: any): ConfirmOrderRequest {
@@ -49,7 +47,7 @@ export function ConfirmOrderRequestFromJSON(json: any): ConfirmOrderRequest {
49
47
  }
50
48
 
51
49
  export function ConfirmOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmOrderRequest {
52
- if ((json === undefined) || (json === null)) {
50
+ if (json == null) {
53
51
  return json;
54
52
  }
55
53
  return {
@@ -59,15 +57,12 @@ export function ConfirmOrderRequestFromJSONTyped(json: any, ignoreDiscriminator:
59
57
  }
60
58
 
61
59
  export function ConfirmOrderRequestToJSON(value?: ConfirmOrderRequest | null): any {
62
- if (value === undefined) {
63
- return undefined;
64
- }
65
- if (value === null) {
66
- return null;
60
+ if (value == null) {
61
+ return value;
67
62
  }
68
63
  return {
69
64
 
70
- 'fulfillments': ((value.fulfillments as Array<any>).map(ConfirmOrderFulfillmentToJSON)),
65
+ 'fulfillments': ((value['fulfillments'] as Array<any>).map(ConfirmOrderFulfillmentToJSON)),
71
66
  };
72
67
  }
73
68
 
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.4
7
+ * The version of the OpenAPI document: 1.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -50,11 +50,9 @@ export type ConfirmOrderValidationErrorCodeEnum = typeof ConfirmOrderValidationE
50
50
  * Check if a given object implements the ConfirmOrderValidationError interface.
51
51
  */
52
52
  export function instanceOfConfirmOrderValidationError(value: object): boolean {
53
- let isInstance = true;
54
- isInstance = isInstance && "code" in value;
55
- isInstance = isInstance && "message" in value;
56
-
57
- return isInstance;
53
+ if (!('code' in value)) return false;
54
+ if (!('message' in value)) return false;
55
+ return true;
58
56
  }
59
57
 
60
58
  export function ConfirmOrderValidationErrorFromJSON(json: any): ConfirmOrderValidationError {
@@ -62,7 +60,7 @@ export function ConfirmOrderValidationErrorFromJSON(json: any): ConfirmOrderVali
62
60
  }
63
61
 
64
62
  export function ConfirmOrderValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmOrderValidationError {
65
- if ((json === undefined) || (json === null)) {
63
+ if (json == null) {
66
64
  return json;
67
65
  }
68
66
  return {
@@ -73,16 +71,13 @@ export function ConfirmOrderValidationErrorFromJSONTyped(json: any, ignoreDiscri
73
71
  }
74
72
 
75
73
  export function ConfirmOrderValidationErrorToJSON(value?: ConfirmOrderValidationError | null): any {
76
- if (value === undefined) {
77
- return undefined;
78
- }
79
- if (value === null) {
80
- return null;
74
+ if (value == null) {
75
+ return value;
81
76
  }
82
77
  return {
83
78
 
84
- 'code': value.code,
85
- 'message': value.message,
79
+ 'code': value['code'],
80
+ 'message': value['message'],
86
81
  };
87
82
  }
88
83
 
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.4
7
+ * The version of the OpenAPI document: 1.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  * Order recipient contact information, used only for courier tracking/updates.
18
18
  * @export
@@ -30,17 +30,15 @@ export interface ContactInformation {
30
30
  * @type {string}
31
31
  * @memberof ContactInformation
32
32
  */
33
- phone?: string | null;
33
+ phone?: string;
34
34
  }
35
35
 
36
36
  /**
37
37
  * Check if a given object implements the ContactInformation interface.
38
38
  */
39
39
  export function instanceOfContactInformation(value: object): boolean {
40
- let isInstance = true;
41
- isInstance = isInstance && "email" in value;
42
-
43
- return isInstance;
40
+ if (!('email' in value)) return false;
41
+ return true;
44
42
  }
45
43
 
46
44
  export function ContactInformationFromJSON(json: any): ContactInformation {
@@ -48,27 +46,24 @@ export function ContactInformationFromJSON(json: any): ContactInformation {
48
46
  }
49
47
 
50
48
  export function ContactInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactInformation {
51
- if ((json === undefined) || (json === null)) {
49
+ if (json == null) {
52
50
  return json;
53
51
  }
54
52
  return {
55
53
 
56
54
  'email': json['email'],
57
- 'phone': !exists(json, 'phone') ? undefined : json['phone'],
55
+ 'phone': json['phone'] == null ? undefined : json['phone'],
58
56
  };
59
57
  }
60
58
 
61
59
  export function ContactInformationToJSON(value?: ContactInformation | null): any {
62
- if (value === undefined) {
63
- return undefined;
64
- }
65
- if (value === null) {
66
- return null;
60
+ if (value == null) {
61
+ return value;
67
62
  }
68
63
  return {
69
64
 
70
- 'email': value.email,
71
- 'phone': value.phone,
65
+ 'email': value['email'],
66
+ 'phone': value['phone'],
72
67
  };
73
68
  }
74
69
 
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.4
7
+ * The version of the OpenAPI document: 1.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -37,9 +37,7 @@ export interface DeliveryEstimates {
37
37
  * Check if a given object implements the DeliveryEstimates interface.
38
38
  */
39
39
  export function instanceOfDeliveryEstimates(value: object): boolean {
40
- let isInstance = true;
41
-
42
- return isInstance;
40
+ return true;
43
41
  }
44
42
 
45
43
  export function DeliveryEstimatesFromJSON(json: any): DeliveryEstimates {
@@ -47,27 +45,24 @@ export function DeliveryEstimatesFromJSON(json: any): DeliveryEstimates {
47
45
  }
48
46
 
49
47
  export function DeliveryEstimatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryEstimates {
50
- if ((json === undefined) || (json === null)) {
48
+ if (json == null) {
51
49
  return json;
52
50
  }
53
51
  return {
54
52
 
55
- 'min': !exists(json, 'min') ? undefined : (new Date(json['min'])),
56
- 'max': !exists(json, 'max') ? undefined : (new Date(json['max'])),
53
+ 'min': json['min'] == null ? undefined : (new Date(json['min'])),
54
+ 'max': json['max'] == null ? undefined : (new Date(json['max'])),
57
55
  };
58
56
  }
59
57
 
60
58
  export function DeliveryEstimatesToJSON(value?: DeliveryEstimates | null): any {
61
- if (value === undefined) {
62
- return undefined;
63
- }
64
- if (value === null) {
65
- return null;
59
+ if (value == null) {
60
+ return value;
66
61
  }
67
62
  return {
68
63
 
69
- 'min': value.min === undefined ? undefined : (value.min.toISOString()),
70
- 'max': value.max === undefined ? undefined : (value.max.toISOString()),
64
+ 'min': value['min'] == null ? undefined : ((value['min']).toISOString()),
65
+ 'max': value['max'] == null ? undefined : ((value['max']).toISOString()),
71
66
  };
72
67
  }
73
68
 
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.4
7
+ * The version of the OpenAPI document: 1.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -31,9 +31,7 @@ export interface ExportOrders202Response {
31
31
  * Check if a given object implements the ExportOrders202Response interface.
32
32
  */
33
33
  export function instanceOfExportOrders202Response(value: object): boolean {
34
- let isInstance = true;
35
-
36
- return isInstance;
34
+ return true;
37
35
  }
38
36
 
39
37
  export function ExportOrders202ResponseFromJSON(json: any): ExportOrders202Response {
@@ -41,25 +39,22 @@ export function ExportOrders202ResponseFromJSON(json: any): ExportOrders202Respo
41
39
  }
42
40
 
43
41
  export function ExportOrders202ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportOrders202Response {
44
- if ((json === undefined) || (json === null)) {
42
+ if (json == null) {
45
43
  return json;
46
44
  }
47
45
  return {
48
46
 
49
- 'message': !exists(json, 'message') ? undefined : json['message'],
47
+ 'message': json['message'] == null ? undefined : json['message'],
50
48
  };
51
49
  }
52
50
 
53
51
  export function ExportOrders202ResponseToJSON(value?: ExportOrders202Response | null): any {
54
- if (value === undefined) {
55
- return undefined;
56
- }
57
- if (value === null) {
58
- return null;
52
+ if (value == null) {
53
+ return value;
59
54
  }
60
55
  return {
61
56
 
62
- 'message': value.message,
57
+ 'message': value['message'],
63
58
  };
64
59
  }
65
60
 
@@ -4,7 +4,7 @@
4
4
  * Orders API
5
5
  * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
6
6
  *
7
- * The version of the OpenAPI document: 1.5.4
7
+ * The version of the OpenAPI document: 1.6.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
- import { exists, mapValues } from '../runtime';
15
+ import { mapValues } from '../runtime';
16
16
  import type { FulfillmentItem } from './FulfillmentItem';
17
17
  import {
18
18
  FulfillmentItemFromJSON,
@@ -45,7 +45,7 @@ import {
45
45
  */
46
46
  export interface Fulfillment {
47
47
  /**
48
- * Unique object identifier
48
+ * Unique fulfillment id
49
49
  * @type {string}
50
50
  * @memberof Fulfillment
51
51
  */
@@ -67,9 +67,9 @@ export interface Fulfillment {
67
67
  * @type {OrderTracking}
68
68
  * @memberof Fulfillment
69
69
  */
70
- tracking?: OrderTracking | null;
70
+ tracking?: OrderTracking;
71
71
  /**
72
- *
72
+ * Shipping method currently set
73
73
  * @type {ShippingMethod}
74
74
  * @memberof Fulfillment
75
75
  */
@@ -92,9 +92,7 @@ export interface Fulfillment {
92
92
  * Check if a given object implements the Fulfillment interface.
93
93
  */
94
94
  export function instanceOfFulfillment(value: object): boolean {
95
- let isInstance = true;
96
-
97
- return isInstance;
95
+ return true;
98
96
  }
99
97
 
100
98
  export function FulfillmentFromJSON(json: any): Fulfillment {
@@ -102,37 +100,34 @@ export function FulfillmentFromJSON(json: any): Fulfillment {
102
100
  }
103
101
 
104
102
  export function FulfillmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fulfillment {
105
- if ((json === undefined) || (json === null)) {
103
+ if (json == null) {
106
104
  return json;
107
105
  }
108
106
  return {
109
107
 
110
- 'id': !exists(json, 'id') ? undefined : json['id'],
111
- 'status': !exists(json, 'status') ? undefined : StatusFromJSON(json['status']),
112
- 'items': !exists(json, 'items') ? undefined : ((json['items'] as Array<any>).map(FulfillmentItemFromJSON)),
113
- 'tracking': !exists(json, 'tracking') ? undefined : OrderTrackingFromJSON(json['tracking']),
114
- 'shippingMethod': !exists(json, 'shippingMethod') ? undefined : ShippingMethodFromJSON(json['shippingMethod']),
115
- 'availableShippingMethods': !exists(json, 'availableShippingMethods') ? undefined : ((json['availableShippingMethods'] as Array<any>).map(ShippingMethodFromJSON)),
116
- 'packageWeight': !exists(json, 'packageWeight') ? undefined : json['packageWeight'],
108
+ 'id': json['id'] == null ? undefined : json['id'],
109
+ 'status': json['status'] == null ? undefined : StatusFromJSON(json['status']),
110
+ 'items': json['items'] == null ? undefined : ((json['items'] as Array<any>).map(FulfillmentItemFromJSON)),
111
+ 'tracking': json['tracking'] == null ? undefined : OrderTrackingFromJSON(json['tracking']),
112
+ 'shippingMethod': json['shippingMethod'] == null ? undefined : ShippingMethodFromJSON(json['shippingMethod']),
113
+ 'availableShippingMethods': json['availableShippingMethods'] == null ? undefined : ((json['availableShippingMethods'] as Array<any>).map(ShippingMethodFromJSON)),
114
+ 'packageWeight': json['packageWeight'] == null ? undefined : json['packageWeight'],
117
115
  };
118
116
  }
119
117
 
120
118
  export function FulfillmentToJSON(value?: Fulfillment | null): any {
121
- if (value === undefined) {
122
- return undefined;
123
- }
124
- if (value === null) {
125
- return null;
119
+ if (value == null) {
120
+ return value;
126
121
  }
127
122
  return {
128
123
 
129
- 'id': value.id,
130
- 'status': StatusToJSON(value.status),
131
- 'items': value.items === undefined ? undefined : ((value.items as Array<any>).map(FulfillmentItemToJSON)),
132
- 'tracking': OrderTrackingToJSON(value.tracking),
133
- 'shippingMethod': ShippingMethodToJSON(value.shippingMethod),
134
- 'availableShippingMethods': value.availableShippingMethods === undefined ? undefined : ((value.availableShippingMethods as Array<any>).map(ShippingMethodToJSON)),
135
- 'packageWeight': value.packageWeight,
124
+ 'id': value['id'],
125
+ 'status': StatusToJSON(value['status']),
126
+ 'items': value['items'] == null ? undefined : ((value['items'] as Array<any>).map(FulfillmentItemToJSON)),
127
+ 'tracking': OrderTrackingToJSON(value['tracking']),
128
+ 'shippingMethod': ShippingMethodToJSON(value['shippingMethod']),
129
+ 'availableShippingMethods': value['availableShippingMethods'] == null ? undefined : ((value['availableShippingMethods'] as Array<any>).map(ShippingMethodToJSON)),
130
+ 'packageWeight': value['packageWeight'],
136
131
  };
137
132
  }
138
133