@teemill/orders 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +7 -25
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/api.ts +1526 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1103 -0
- package/dist/api.js +632 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api.d.ts +1103 -0
- package/dist/esm/api.js +625 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/{models/Status.d.ts → esm/index.d.ts} +3 -16
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -3
- package/dist/index.js +15 -5
- package/git_push.sh +57 -0
- package/{src/models/Status.ts → index.ts} +3 -26
- package/package.json +18 -4
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +4 -6
- package/dist/apis/OrdersApi.d.ts +0 -115
- package/dist/apis/OrdersApi.js +0 -531
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -19
- package/dist/models/Address.d.ts +0 -73
- package/dist/models/Address.js +0 -67
- package/dist/models/ApiError.d.ts +0 -37
- package/dist/models/ApiError.js +0 -49
- package/dist/models/ConfirmOrderFulfillment.d.ts +0 -37
- package/dist/models/ConfirmOrderFulfillment.js +0 -51
- package/dist/models/ConfirmOrderRequest.d.ts +0 -32
- package/dist/models/ConfirmOrderRequest.js +0 -48
- package/dist/models/ConfirmOrderValidationError.d.ts +0 -47
- package/dist/models/ConfirmOrderValidationError.js +0 -60
- package/dist/models/ContactInformation.d.ts +0 -37
- package/dist/models/ContactInformation.js +0 -49
- package/dist/models/DeliveryEstimates.d.ts +0 -37
- package/dist/models/DeliveryEstimates.js +0 -47
- package/dist/models/ExportOrders202Response.d.ts +0 -31
- package/dist/models/ExportOrders202Response.js +0 -45
- package/dist/models/Fulfillment.d.ts +0 -71
- package/dist/models/Fulfillment.js +0 -61
- package/dist/models/FulfillmentItem.d.ts +0 -43
- package/dist/models/FulfillmentItem.js +0 -49
- package/dist/models/Order.d.ts +0 -135
- package/dist/models/Order.js +0 -90
- package/dist/models/OrderItem.d.ts +0 -75
- package/dist/models/OrderItem.js +0 -61
- package/dist/models/OrderItemTaxPrice.d.ts +0 -37
- package/dist/models/OrderItemTaxPrice.js +0 -47
- package/dist/models/OrderTracking.d.ts +0 -43
- package/dist/models/OrderTracking.js +0 -49
- package/dist/models/OrdersResponse.d.ts +0 -38
- package/dist/models/OrdersResponse.js +0 -48
- package/dist/models/Origin.d.ts +0 -37
- package/dist/models/Origin.js +0 -47
- package/dist/models/Price.d.ts +0 -37
- package/dist/models/Price.js +0 -47
- package/dist/models/ShippingMethod.d.ts +0 -75
- package/dist/models/ShippingMethod.js +0 -61
- package/dist/models/Status.js +0 -39
- package/dist/models/StatusHistoryItem.d.ts +0 -38
- package/dist/models/StatusHistoryItem.js +0 -48
- package/dist/models/index.d.ts +0 -20
- package/dist/models/index.js +0 -38
- package/dist/runtime.d.ts +0 -187
- package/dist/runtime.js +0 -565
- package/src/apis/OrdersApi.ts +0 -511
- package/src/apis/index.ts +0 -3
- package/src/index.ts +0 -5
- package/src/models/Address.ts +0 -120
- package/src/models/ApiError.ts +0 -69
- package/src/models/ConfirmOrderFulfillment.ts +0 -70
- package/src/models/ConfirmOrderRequest.ts +0 -68
- package/src/models/ConfirmOrderValidationError.ts +0 -83
- package/src/models/ContactInformation.ts +0 -69
- package/src/models/DeliveryEstimates.ts +0 -68
- package/src/models/ExportOrders202Response.ts +0 -60
- package/src/models/Fulfillment.ts +0 -133
- package/src/models/FulfillmentItem.ts +0 -76
- package/src/models/Order.ts +0 -239
- package/src/models/OrderItem.ts +0 -127
- package/src/models/OrderItemTaxPrice.ts +0 -68
- package/src/models/OrderTracking.ts +0 -76
- package/src/models/OrdersResponse.ts +0 -75
- package/src/models/Origin.ts +0 -68
- package/src/models/Price.ts +0 -68
- package/src/models/ShippingMethod.ts +0 -129
- package/src/models/StatusHistoryItem.ts +0 -75
- package/src/models/index.ts +0 -22
- package/src/runtime.ts +0 -441
package/src/models/ApiError.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Orders API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.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 { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ApiError
|
|
20
|
-
*/
|
|
21
|
-
export interface ApiError {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ApiError
|
|
26
|
-
*/
|
|
27
|
-
code?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ApiError
|
|
32
|
-
*/
|
|
33
|
-
message: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the ApiError interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfApiError(value: object): boolean {
|
|
40
|
-
if (!('message' in value)) return false;
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function ApiErrorFromJSON(json: any): ApiError {
|
|
45
|
-
return ApiErrorFromJSONTyped(json, false);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError {
|
|
49
|
-
if (json == null) {
|
|
50
|
-
return json;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
|
|
54
|
-
'code': json['code'] == null ? undefined : json['code'],
|
|
55
|
-
'message': json['message'],
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function ApiErrorToJSON(value?: ApiError | null): any {
|
|
60
|
-
if (value == null) {
|
|
61
|
-
return value;
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
|
|
65
|
-
'code': value['code'],
|
|
66
|
-
'message': value['message'],
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Orders API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.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 { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ConfirmOrderFulfillment
|
|
20
|
-
*/
|
|
21
|
-
export interface ConfirmOrderFulfillment {
|
|
22
|
-
/**
|
|
23
|
-
* Unique object identifier
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ConfirmOrderFulfillment
|
|
26
|
-
*/
|
|
27
|
-
fulfillmentId: string;
|
|
28
|
-
/**
|
|
29
|
-
* Unique object identifier
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ConfirmOrderFulfillment
|
|
32
|
-
*/
|
|
33
|
-
shippingMethodId: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the ConfirmOrderFulfillment interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfConfirmOrderFulfillment(value: object): boolean {
|
|
40
|
-
if (!('fulfillmentId' in value)) return false;
|
|
41
|
-
if (!('shippingMethodId' in value)) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function ConfirmOrderFulfillmentFromJSON(json: any): ConfirmOrderFulfillment {
|
|
46
|
-
return ConfirmOrderFulfillmentFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function ConfirmOrderFulfillmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmOrderFulfillment {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'fulfillmentId': json['fulfillmentId'],
|
|
56
|
-
'shippingMethodId': json['shippingMethodId'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function ConfirmOrderFulfillmentToJSON(value?: ConfirmOrderFulfillment | null): any {
|
|
61
|
-
if (value == null) {
|
|
62
|
-
return value;
|
|
63
|
-
}
|
|
64
|
-
return {
|
|
65
|
-
|
|
66
|
-
'fulfillmentId': value['fulfillmentId'],
|
|
67
|
-
'shippingMethodId': value['shippingMethodId'],
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Orders API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.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 { mapValues } from '../runtime';
|
|
16
|
-
import type { ConfirmOrderFulfillment } from './ConfirmOrderFulfillment';
|
|
17
|
-
import {
|
|
18
|
-
ConfirmOrderFulfillmentFromJSON,
|
|
19
|
-
ConfirmOrderFulfillmentFromJSONTyped,
|
|
20
|
-
ConfirmOrderFulfillmentToJSON,
|
|
21
|
-
} from './ConfirmOrderFulfillment';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface ConfirmOrderRequest
|
|
27
|
-
*/
|
|
28
|
-
export interface ConfirmOrderRequest {
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {Array<ConfirmOrderFulfillment>}
|
|
32
|
-
* @memberof ConfirmOrderRequest
|
|
33
|
-
*/
|
|
34
|
-
fulfillments: Array<ConfirmOrderFulfillment>;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the ConfirmOrderRequest interface.
|
|
39
|
-
*/
|
|
40
|
-
export function instanceOfConfirmOrderRequest(value: object): boolean {
|
|
41
|
-
if (!('fulfillments' in value)) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function ConfirmOrderRequestFromJSON(json: any): ConfirmOrderRequest {
|
|
46
|
-
return ConfirmOrderRequestFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function ConfirmOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmOrderRequest {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'fulfillments': ((json['fulfillments'] as Array<any>).map(ConfirmOrderFulfillmentFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function ConfirmOrderRequestToJSON(value?: ConfirmOrderRequest | null): any {
|
|
60
|
-
if (value == null) {
|
|
61
|
-
return value;
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
|
|
65
|
-
'fulfillments': ((value['fulfillments'] as Array<any>).map(ConfirmOrderFulfillmentToJSON)),
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Orders API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.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 { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ConfirmOrderValidationError
|
|
20
|
-
*/
|
|
21
|
-
export interface ConfirmOrderValidationError {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ConfirmOrderValidationError
|
|
26
|
-
*/
|
|
27
|
-
code: ConfirmOrderValidationErrorCodeEnum;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ConfirmOrderValidationError
|
|
32
|
-
*/
|
|
33
|
-
message: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
export const ConfirmOrderValidationErrorCodeEnum = {
|
|
41
|
-
BadRequest: 'BAD_REQUEST',
|
|
42
|
-
PaymentFailed: 'PAYMENT_FAILED',
|
|
43
|
-
Conflict: 'CONFLICT',
|
|
44
|
-
ActionRequired: 'ACTION_REQUIRED'
|
|
45
|
-
} as const;
|
|
46
|
-
export type ConfirmOrderValidationErrorCodeEnum = typeof ConfirmOrderValidationErrorCodeEnum[keyof typeof ConfirmOrderValidationErrorCodeEnum];
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Check if a given object implements the ConfirmOrderValidationError interface.
|
|
51
|
-
*/
|
|
52
|
-
export function instanceOfConfirmOrderValidationError(value: object): boolean {
|
|
53
|
-
if (!('code' in value)) return false;
|
|
54
|
-
if (!('message' in value)) return false;
|
|
55
|
-
return true;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function ConfirmOrderValidationErrorFromJSON(json: any): ConfirmOrderValidationError {
|
|
59
|
-
return ConfirmOrderValidationErrorFromJSONTyped(json, false);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function ConfirmOrderValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmOrderValidationError {
|
|
63
|
-
if (json == null) {
|
|
64
|
-
return json;
|
|
65
|
-
}
|
|
66
|
-
return {
|
|
67
|
-
|
|
68
|
-
'code': json['code'],
|
|
69
|
-
'message': json['message'],
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function ConfirmOrderValidationErrorToJSON(value?: ConfirmOrderValidationError | null): any {
|
|
74
|
-
if (value == null) {
|
|
75
|
-
return value;
|
|
76
|
-
}
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'code': value['code'],
|
|
80
|
-
'message': value['message'],
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Orders API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.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 { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
* Order recipient contact information, used only for courier tracking/updates.
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ContactInformation
|
|
20
|
-
*/
|
|
21
|
-
export interface ContactInformation {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ContactInformation
|
|
26
|
-
*/
|
|
27
|
-
email: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ContactInformation
|
|
32
|
-
*/
|
|
33
|
-
phone?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the ContactInformation interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfContactInformation(value: object): boolean {
|
|
40
|
-
if (!('email' in value)) return false;
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function ContactInformationFromJSON(json: any): ContactInformation {
|
|
45
|
-
return ContactInformationFromJSONTyped(json, false);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function ContactInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactInformation {
|
|
49
|
-
if (json == null) {
|
|
50
|
-
return json;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
|
|
54
|
-
'email': json['email'],
|
|
55
|
-
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function ContactInformationToJSON(value?: ContactInformation | null): any {
|
|
60
|
-
if (value == null) {
|
|
61
|
-
return value;
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
|
|
65
|
-
'email': value['email'],
|
|
66
|
-
'phone': value['phone'],
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Orders API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.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 { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface DeliveryEstimates
|
|
20
|
-
*/
|
|
21
|
-
export interface DeliveryEstimates {
|
|
22
|
-
/**
|
|
23
|
-
* ISO 8601 Timestamp
|
|
24
|
-
* @type {Date}
|
|
25
|
-
* @memberof DeliveryEstimates
|
|
26
|
-
*/
|
|
27
|
-
min?: Date;
|
|
28
|
-
/**
|
|
29
|
-
* ISO 8601 Timestamp
|
|
30
|
-
* @type {Date}
|
|
31
|
-
* @memberof DeliveryEstimates
|
|
32
|
-
*/
|
|
33
|
-
max?: Date;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the DeliveryEstimates interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfDeliveryEstimates(value: object): boolean {
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function DeliveryEstimatesFromJSON(json: any): DeliveryEstimates {
|
|
44
|
-
return DeliveryEstimatesFromJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function DeliveryEstimatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryEstimates {
|
|
48
|
-
if (json == null) {
|
|
49
|
-
return json;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
|
|
53
|
-
'min': json['min'] == null ? undefined : (new Date(json['min'])),
|
|
54
|
-
'max': json['max'] == null ? undefined : (new Date(json['max'])),
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function DeliveryEstimatesToJSON(value?: DeliveryEstimates | null): any {
|
|
59
|
-
if (value == null) {
|
|
60
|
-
return value;
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
|
|
64
|
-
'min': value['min'] == null ? undefined : ((value['min']).toISOString()),
|
|
65
|
-
'max': value['max'] == null ? undefined : ((value['max']).toISOString()),
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Orders API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.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 { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ExportOrders202Response
|
|
20
|
-
*/
|
|
21
|
-
export interface ExportOrders202Response {
|
|
22
|
-
/**
|
|
23
|
-
* A message describing the export status
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ExportOrders202Response
|
|
26
|
-
*/
|
|
27
|
-
message?: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the ExportOrders202Response interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfExportOrders202Response(value: object): boolean {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function ExportOrders202ResponseFromJSON(json: any): ExportOrders202Response {
|
|
38
|
-
return ExportOrders202ResponseFromJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function ExportOrders202ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportOrders202Response {
|
|
42
|
-
if (json == null) {
|
|
43
|
-
return json;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
|
|
47
|
-
'message': json['message'] == null ? undefined : json['message'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function ExportOrders202ResponseToJSON(value?: ExportOrders202Response | null): any {
|
|
52
|
-
if (value == null) {
|
|
53
|
-
return value;
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
|
|
57
|
-
'message': value['message'],
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Orders API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.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 { mapValues } from '../runtime';
|
|
16
|
-
import type { FulfillmentItem } from './FulfillmentItem';
|
|
17
|
-
import {
|
|
18
|
-
FulfillmentItemFromJSON,
|
|
19
|
-
FulfillmentItemFromJSONTyped,
|
|
20
|
-
FulfillmentItemToJSON,
|
|
21
|
-
} from './FulfillmentItem';
|
|
22
|
-
import type { OrderTracking } from './OrderTracking';
|
|
23
|
-
import {
|
|
24
|
-
OrderTrackingFromJSON,
|
|
25
|
-
OrderTrackingFromJSONTyped,
|
|
26
|
-
OrderTrackingToJSON,
|
|
27
|
-
} from './OrderTracking';
|
|
28
|
-
import type { ShippingMethod } from './ShippingMethod';
|
|
29
|
-
import {
|
|
30
|
-
ShippingMethodFromJSON,
|
|
31
|
-
ShippingMethodFromJSONTyped,
|
|
32
|
-
ShippingMethodToJSON,
|
|
33
|
-
} from './ShippingMethod';
|
|
34
|
-
import type { Status } from './Status';
|
|
35
|
-
import {
|
|
36
|
-
StatusFromJSON,
|
|
37
|
-
StatusFromJSONTyped,
|
|
38
|
-
StatusToJSON,
|
|
39
|
-
} from './Status';
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @export
|
|
44
|
-
* @interface Fulfillment
|
|
45
|
-
*/
|
|
46
|
-
export interface Fulfillment {
|
|
47
|
-
/**
|
|
48
|
-
* Unique fulfillment id
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof Fulfillment
|
|
51
|
-
*/
|
|
52
|
-
id?: string;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {Status}
|
|
56
|
-
* @memberof Fulfillment
|
|
57
|
-
*/
|
|
58
|
-
status?: Status;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {Array<FulfillmentItem>}
|
|
62
|
-
* @memberof Fulfillment
|
|
63
|
-
*/
|
|
64
|
-
items?: Array<FulfillmentItem>;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {OrderTracking}
|
|
68
|
-
* @memberof Fulfillment
|
|
69
|
-
*/
|
|
70
|
-
tracking?: OrderTracking;
|
|
71
|
-
/**
|
|
72
|
-
* Shipping method currently set
|
|
73
|
-
* @type {ShippingMethod}
|
|
74
|
-
* @memberof Fulfillment
|
|
75
|
-
*/
|
|
76
|
-
shippingMethod?: ShippingMethod;
|
|
77
|
-
/**
|
|
78
|
-
* Shipping methods available for this fulfillment. One of these should be used to confirm the fulfillment.
|
|
79
|
-
* @type {Array<ShippingMethod>}
|
|
80
|
-
* @memberof Fulfillment
|
|
81
|
-
*/
|
|
82
|
-
availableShippingMethods?: Array<ShippingMethod>;
|
|
83
|
-
/**
|
|
84
|
-
* Weight of the package being shipped in grams
|
|
85
|
-
* @type {number}
|
|
86
|
-
* @memberof Fulfillment
|
|
87
|
-
*/
|
|
88
|
-
packageWeight?: number;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Check if a given object implements the Fulfillment interface.
|
|
93
|
-
*/
|
|
94
|
-
export function instanceOfFulfillment(value: object): boolean {
|
|
95
|
-
return true;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export function FulfillmentFromJSON(json: any): Fulfillment {
|
|
99
|
-
return FulfillmentFromJSONTyped(json, false);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export function FulfillmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fulfillment {
|
|
103
|
-
if (json == null) {
|
|
104
|
-
return json;
|
|
105
|
-
}
|
|
106
|
-
return {
|
|
107
|
-
|
|
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'],
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export function FulfillmentToJSON(value?: Fulfillment | null): any {
|
|
119
|
-
if (value == null) {
|
|
120
|
-
return value;
|
|
121
|
-
}
|
|
122
|
-
return {
|
|
123
|
-
|
|
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'],
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Orders API
|
|
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
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.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 { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface FulfillmentItem
|
|
20
|
-
*/
|
|
21
|
-
export interface FulfillmentItem {
|
|
22
|
-
/**
|
|
23
|
-
* Unique fulfillment item id
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof FulfillmentItem
|
|
26
|
-
*/
|
|
27
|
-
id?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Id of the order item being fulfilled
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof FulfillmentItem
|
|
32
|
-
*/
|
|
33
|
-
itemId?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Number of this item being fulfilled
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof FulfillmentItem
|
|
38
|
-
*/
|
|
39
|
-
quantity?: number;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the FulfillmentItem interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfFulfillmentItem(value: object): boolean {
|
|
46
|
-
return true;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function FulfillmentItemFromJSON(json: any): FulfillmentItem {
|
|
50
|
-
return FulfillmentItemFromJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function FulfillmentItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): FulfillmentItem {
|
|
54
|
-
if (json == null) {
|
|
55
|
-
return json;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
|
|
59
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
60
|
-
'itemId': json['itemId'] == null ? undefined : json['itemId'],
|
|
61
|
-
'quantity': json['quantity'] == null ? undefined : json['quantity'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function FulfillmentItemToJSON(value?: FulfillmentItem | null): any {
|
|
66
|
-
if (value == null) {
|
|
67
|
-
return value;
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'id': value['id'],
|
|
72
|
-
'itemId': value['itemId'],
|
|
73
|
-
'quantity': value['quantity'],
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
|