@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.
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/OrdersApi.d.ts +16 -1
- package/dist/apis/OrdersApi.js +68 -1
- package/dist/models/Address.d.ts +1 -1
- package/dist/models/Address.js +25 -26
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +10 -14
- package/dist/models/ConfirmOrderFulfillment.d.ts +1 -1
- package/dist/models/ConfirmOrderFulfillment.js +11 -13
- package/dist/models/ConfirmOrderRequest.d.ts +1 -1
- package/dist/models/ConfirmOrderRequest.js +8 -11
- package/dist/models/ConfirmOrderValidationError.d.ts +1 -1
- package/dist/models/ConfirmOrderValidationError.js +11 -13
- package/dist/models/ContactInformation.d.ts +2 -2
- package/dist/models/ContactInformation.js +10 -14
- package/dist/models/DeliveryEstimates.d.ts +1 -1
- package/dist/models/DeliveryEstimates.js +9 -14
- package/dist/models/ExportOrders202Response.d.ts +1 -1
- package/dist/models/ExportOrders202Response.js +7 -12
- package/dist/models/Fulfillment.d.ts +4 -4
- package/dist/models/Fulfillment.js +19 -24
- package/dist/models/FulfillmentItem.d.ts +3 -3
- package/dist/models/FulfillmentItem.js +11 -16
- package/dist/models/Order.d.ts +2 -2
- package/dist/models/Order.js +41 -43
- package/dist/models/OrderItem.d.ts +3 -3
- package/dist/models/OrderItem.js +19 -22
- package/dist/models/OrderItemTaxPrice.d.ts +1 -1
- package/dist/models/OrderItemTaxPrice.js +9 -14
- package/dist/models/OrderTracking.d.ts +1 -1
- package/dist/models/OrderTracking.js +11 -16
- package/dist/models/OrdersResponse.d.ts +1 -1
- package/dist/models/OrdersResponse.js +9 -14
- package/dist/models/Origin.d.ts +1 -1
- package/dist/models/Origin.js +9 -14
- package/dist/models/Price.d.ts +1 -1
- package/dist/models/Price.js +9 -14
- package/dist/models/ShippingMethod.d.ts +1 -1
- package/dist/models/ShippingMethod.js +21 -26
- package/dist/models/Status.d.ts +1 -1
- package/dist/models/Status.js +1 -1
- package/dist/models/StatusHistoryItem.d.ts +1 -1
- package/dist/models/StatusHistoryItem.js +9 -14
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/OrdersApi.ts +69 -1
- package/src/models/Address.ts +22 -27
- package/src/models/ApiError.ts +10 -15
- package/src/models/ConfirmOrderFulfillment.ts +10 -15
- package/src/models/ConfirmOrderRequest.ts +8 -13
- package/src/models/ConfirmOrderValidationError.ts +10 -15
- package/src/models/ContactInformation.ts +11 -16
- package/src/models/DeliveryEstimates.ts +10 -15
- package/src/models/ExportOrders202Response.ts +8 -13
- package/src/models/Fulfillment.ts +23 -28
- package/src/models/FulfillmentItem.ts +14 -19
- package/src/models/Order.ts +40 -45
- package/src/models/OrderItem.ts +20 -25
- package/src/models/OrderItemTaxPrice.ts +10 -15
- package/src/models/OrderTracking.ts +12 -17
- package/src/models/OrdersResponse.ts +10 -15
- package/src/models/Origin.ts +10 -15
- package/src/models/Price.ts +10 -15
- package/src/models/ShippingMethod.ts +22 -27
- package/src/models/Status.ts +1 -1
- package/src/models/StatusHistoryItem.ts +10 -15
- package/src/runtime.ts +1 -1
package/src/models/Address.ts
CHANGED
|
@@ -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.
|
|
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 {
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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 (
|
|
88
|
+
if (json == null) {
|
|
91
89
|
return json;
|
|
92
90
|
}
|
|
93
91
|
return {
|
|
94
92
|
|
|
95
93
|
'contactName': json['contactName'],
|
|
96
|
-
'company':
|
|
94
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
97
95
|
'line1': json['line1'],
|
|
98
|
-
'line2':
|
|
96
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
99
97
|
'city': json['city'],
|
|
100
|
-
'postalCode':
|
|
98
|
+
'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
|
|
101
99
|
'country': json['country'],
|
|
102
|
-
'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
|
|
108
|
-
return
|
|
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
|
|
116
|
-
'company': value
|
|
117
|
-
'line1': value
|
|
118
|
-
'line2': value
|
|
119
|
-
'city': value
|
|
120
|
-
'postalCode': value
|
|
121
|
-
'country': value
|
|
122
|
-
'state': value
|
|
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
|
|
package/src/models/ApiError.ts
CHANGED
|
@@ -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.
|
|
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 {
|
|
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
|
-
|
|
41
|
-
|
|
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 (
|
|
49
|
+
if (json == null) {
|
|
52
50
|
return json;
|
|
53
51
|
}
|
|
54
52
|
return {
|
|
55
53
|
|
|
56
|
-
'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
|
|
63
|
-
return
|
|
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
|
|
71
|
-
'message': value
|
|
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.
|
|
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 {
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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 (
|
|
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
|
|
64
|
-
return
|
|
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
|
|
72
|
-
'shippingMethodId': value
|
|
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.
|
|
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 {
|
|
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
|
-
|
|
42
|
-
|
|
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 (
|
|
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
|
|
63
|
-
return
|
|
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
|
|
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.
|
|
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 {
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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 (
|
|
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
|
|
77
|
-
return
|
|
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
|
|
85
|
-
'message': value
|
|
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.
|
|
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 {
|
|
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
|
|
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
|
-
|
|
41
|
-
|
|
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 (
|
|
49
|
+
if (json == null) {
|
|
52
50
|
return json;
|
|
53
51
|
}
|
|
54
52
|
return {
|
|
55
53
|
|
|
56
54
|
'email': json['email'],
|
|
57
|
-
'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
|
|
63
|
-
return
|
|
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
|
|
71
|
-
'phone': value
|
|
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.
|
|
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 {
|
|
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
|
-
|
|
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 (
|
|
48
|
+
if (json == null) {
|
|
51
49
|
return json;
|
|
52
50
|
}
|
|
53
51
|
return {
|
|
54
52
|
|
|
55
|
-
'min':
|
|
56
|
-
'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
|
|
62
|
-
return
|
|
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
|
|
70
|
-
'max': value
|
|
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.
|
|
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 {
|
|
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
|
-
|
|
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 (
|
|
42
|
+
if (json == null) {
|
|
45
43
|
return json;
|
|
46
44
|
}
|
|
47
45
|
return {
|
|
48
46
|
|
|
49
|
-
'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
|
|
55
|
-
return
|
|
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
|
|
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.
|
|
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 {
|
|
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
|
|
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
|
|
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
|
-
|
|
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 (
|
|
103
|
+
if (json == null) {
|
|
106
104
|
return json;
|
|
107
105
|
}
|
|
108
106
|
return {
|
|
109
107
|
|
|
110
|
-
'id':
|
|
111
|
-
'status':
|
|
112
|
-
'items':
|
|
113
|
-
'tracking':
|
|
114
|
-
'shippingMethod':
|
|
115
|
-
'availableShippingMethods':
|
|
116
|
-
'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
|
|
122
|
-
return
|
|
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
|
|
130
|
-
'status': StatusToJSON(value
|
|
131
|
-
'items': value
|
|
132
|
-
'tracking': OrderTrackingToJSON(value
|
|
133
|
-
'shippingMethod': ShippingMethodToJSON(value
|
|
134
|
-
'availableShippingMethods': value
|
|
135
|
-
'packageWeight': value
|
|
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
|
|