@teemill/orders 1.6.0 → 1.6.2
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 +1539 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1116 -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 +1116 -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/dist/models/Address.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Orders API
|
|
6
|
-
* 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)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.6.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.AddressToJSON = exports.AddressFromJSONTyped = exports.AddressFromJSON = exports.instanceOfAddress = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the Address interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfAddress(value) {
|
|
21
|
-
if (!('contactName' in value))
|
|
22
|
-
return false;
|
|
23
|
-
if (!('line1' in value))
|
|
24
|
-
return false;
|
|
25
|
-
if (!('city' in value))
|
|
26
|
-
return false;
|
|
27
|
-
if (!('country' in value))
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
exports.instanceOfAddress = instanceOfAddress;
|
|
32
|
-
function AddressFromJSON(json) {
|
|
33
|
-
return AddressFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
exports.AddressFromJSON = AddressFromJSON;
|
|
36
|
-
function AddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'contactName': json['contactName'],
|
|
42
|
-
'company': json['company'] == null ? undefined : json['company'],
|
|
43
|
-
'line1': json['line1'],
|
|
44
|
-
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
45
|
-
'city': json['city'],
|
|
46
|
-
'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
|
|
47
|
-
'country': json['country'],
|
|
48
|
-
'state': json['state'] == null ? undefined : json['state'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.AddressFromJSONTyped = AddressFromJSONTyped;
|
|
52
|
-
function AddressToJSON(value) {
|
|
53
|
-
if (value == null) {
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
'contactName': value['contactName'],
|
|
58
|
-
'company': value['company'],
|
|
59
|
-
'line1': value['line1'],
|
|
60
|
-
'line2': value['line2'],
|
|
61
|
-
'city': value['city'],
|
|
62
|
-
'postalCode': value['postalCode'],
|
|
63
|
-
'country': value['country'],
|
|
64
|
-
'state': value['state'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
exports.AddressToJSON = AddressToJSON;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Orders API
|
|
3
|
-
* 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)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.6.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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ApiError
|
|
16
|
-
*/
|
|
17
|
-
export interface ApiError {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ApiError
|
|
22
|
-
*/
|
|
23
|
-
code?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ApiError
|
|
28
|
-
*/
|
|
29
|
-
message: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the ApiError interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfApiError(value: object): boolean;
|
|
35
|
-
export declare function ApiErrorFromJSON(json: any): ApiError;
|
|
36
|
-
export declare function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError;
|
|
37
|
-
export declare function ApiErrorToJSON(value?: ApiError | null): any;
|
package/dist/models/ApiError.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Orders API
|
|
6
|
-
* 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)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.6.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.ApiErrorToJSON = exports.ApiErrorFromJSONTyped = exports.ApiErrorFromJSON = exports.instanceOfApiError = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the ApiError interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfApiError(value) {
|
|
21
|
-
if (!('message' in value))
|
|
22
|
-
return false;
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfApiError = instanceOfApiError;
|
|
26
|
-
function ApiErrorFromJSON(json) {
|
|
27
|
-
return ApiErrorFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.ApiErrorFromJSON = ApiErrorFromJSON;
|
|
30
|
-
function ApiErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'code': json['code'] == null ? undefined : json['code'],
|
|
36
|
-
'message': json['message'],
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
exports.ApiErrorFromJSONTyped = ApiErrorFromJSONTyped;
|
|
40
|
-
function ApiErrorToJSON(value) {
|
|
41
|
-
if (value == null) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'code': value['code'],
|
|
46
|
-
'message': value['message'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
exports.ApiErrorToJSON = ApiErrorToJSON;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Orders API
|
|
3
|
-
* 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)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.6.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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ConfirmOrderFulfillment
|
|
16
|
-
*/
|
|
17
|
-
export interface ConfirmOrderFulfillment {
|
|
18
|
-
/**
|
|
19
|
-
* Unique object identifier
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ConfirmOrderFulfillment
|
|
22
|
-
*/
|
|
23
|
-
fulfillmentId: string;
|
|
24
|
-
/**
|
|
25
|
-
* Unique object identifier
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ConfirmOrderFulfillment
|
|
28
|
-
*/
|
|
29
|
-
shippingMethodId: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the ConfirmOrderFulfillment interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfConfirmOrderFulfillment(value: object): boolean;
|
|
35
|
-
export declare function ConfirmOrderFulfillmentFromJSON(json: any): ConfirmOrderFulfillment;
|
|
36
|
-
export declare function ConfirmOrderFulfillmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmOrderFulfillment;
|
|
37
|
-
export declare function ConfirmOrderFulfillmentToJSON(value?: ConfirmOrderFulfillment | null): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Orders API
|
|
6
|
-
* 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)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.6.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.ConfirmOrderFulfillmentToJSON = exports.ConfirmOrderFulfillmentFromJSONTyped = exports.ConfirmOrderFulfillmentFromJSON = exports.instanceOfConfirmOrderFulfillment = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the ConfirmOrderFulfillment interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfConfirmOrderFulfillment(value) {
|
|
21
|
-
if (!('fulfillmentId' in value))
|
|
22
|
-
return false;
|
|
23
|
-
if (!('shippingMethodId' in value))
|
|
24
|
-
return false;
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
exports.instanceOfConfirmOrderFulfillment = instanceOfConfirmOrderFulfillment;
|
|
28
|
-
function ConfirmOrderFulfillmentFromJSON(json) {
|
|
29
|
-
return ConfirmOrderFulfillmentFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
exports.ConfirmOrderFulfillmentFromJSON = ConfirmOrderFulfillmentFromJSON;
|
|
32
|
-
function ConfirmOrderFulfillmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'fulfillmentId': json['fulfillmentId'],
|
|
38
|
-
'shippingMethodId': json['shippingMethodId'],
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
exports.ConfirmOrderFulfillmentFromJSONTyped = ConfirmOrderFulfillmentFromJSONTyped;
|
|
42
|
-
function ConfirmOrderFulfillmentToJSON(value) {
|
|
43
|
-
if (value == null) {
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'fulfillmentId': value['fulfillmentId'],
|
|
48
|
-
'shippingMethodId': value['shippingMethodId'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.ConfirmOrderFulfillmentToJSON = ConfirmOrderFulfillmentToJSON;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Orders API
|
|
3
|
-
* 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)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.6.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 { ConfirmOrderFulfillment } from './ConfirmOrderFulfillment';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ConfirmOrderRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface ConfirmOrderRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<ConfirmOrderFulfillment>}
|
|
22
|
-
* @memberof ConfirmOrderRequest
|
|
23
|
-
*/
|
|
24
|
-
fulfillments: Array<ConfirmOrderFulfillment>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the ConfirmOrderRequest interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfConfirmOrderRequest(value: object): boolean;
|
|
30
|
-
export declare function ConfirmOrderRequestFromJSON(json: any): ConfirmOrderRequest;
|
|
31
|
-
export declare function ConfirmOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmOrderRequest;
|
|
32
|
-
export declare function ConfirmOrderRequestToJSON(value?: ConfirmOrderRequest | null): any;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Orders API
|
|
6
|
-
* 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)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.6.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.ConfirmOrderRequestToJSON = exports.ConfirmOrderRequestFromJSONTyped = exports.ConfirmOrderRequestFromJSON = exports.instanceOfConfirmOrderRequest = void 0;
|
|
17
|
-
var ConfirmOrderFulfillment_1 = require("./ConfirmOrderFulfillment");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the ConfirmOrderRequest interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfConfirmOrderRequest(value) {
|
|
22
|
-
if (!('fulfillments' in value))
|
|
23
|
-
return false;
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
exports.instanceOfConfirmOrderRequest = instanceOfConfirmOrderRequest;
|
|
27
|
-
function ConfirmOrderRequestFromJSON(json) {
|
|
28
|
-
return ConfirmOrderRequestFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
exports.ConfirmOrderRequestFromJSON = ConfirmOrderRequestFromJSON;
|
|
31
|
-
function ConfirmOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'fulfillments': (json['fulfillments'].map(ConfirmOrderFulfillment_1.ConfirmOrderFulfillmentFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
exports.ConfirmOrderRequestFromJSONTyped = ConfirmOrderRequestFromJSONTyped;
|
|
40
|
-
function ConfirmOrderRequestToJSON(value) {
|
|
41
|
-
if (value == null) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'fulfillments': (value['fulfillments'].map(ConfirmOrderFulfillment_1.ConfirmOrderFulfillmentToJSON)),
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
exports.ConfirmOrderRequestToJSON = ConfirmOrderRequestToJSON;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Orders API
|
|
3
|
-
* 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)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.6.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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ConfirmOrderValidationError
|
|
16
|
-
*/
|
|
17
|
-
export interface ConfirmOrderValidationError {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ConfirmOrderValidationError
|
|
22
|
-
*/
|
|
23
|
-
code: ConfirmOrderValidationErrorCodeEnum;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ConfirmOrderValidationError
|
|
28
|
-
*/
|
|
29
|
-
message: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
export declare const ConfirmOrderValidationErrorCodeEnum: {
|
|
35
|
-
readonly BadRequest: "BAD_REQUEST";
|
|
36
|
-
readonly PaymentFailed: "PAYMENT_FAILED";
|
|
37
|
-
readonly Conflict: "CONFLICT";
|
|
38
|
-
readonly ActionRequired: "ACTION_REQUIRED";
|
|
39
|
-
};
|
|
40
|
-
export type ConfirmOrderValidationErrorCodeEnum = typeof ConfirmOrderValidationErrorCodeEnum[keyof typeof ConfirmOrderValidationErrorCodeEnum];
|
|
41
|
-
/**
|
|
42
|
-
* Check if a given object implements the ConfirmOrderValidationError interface.
|
|
43
|
-
*/
|
|
44
|
-
export declare function instanceOfConfirmOrderValidationError(value: object): boolean;
|
|
45
|
-
export declare function ConfirmOrderValidationErrorFromJSON(json: any): ConfirmOrderValidationError;
|
|
46
|
-
export declare function ConfirmOrderValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfirmOrderValidationError;
|
|
47
|
-
export declare function ConfirmOrderValidationErrorToJSON(value?: ConfirmOrderValidationError | null): any;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Orders API
|
|
6
|
-
* 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)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.6.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.ConfirmOrderValidationErrorToJSON = exports.ConfirmOrderValidationErrorFromJSONTyped = exports.ConfirmOrderValidationErrorFromJSON = exports.instanceOfConfirmOrderValidationError = exports.ConfirmOrderValidationErrorCodeEnum = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
exports.ConfirmOrderValidationErrorCodeEnum = {
|
|
21
|
-
BadRequest: 'BAD_REQUEST',
|
|
22
|
-
PaymentFailed: 'PAYMENT_FAILED',
|
|
23
|
-
Conflict: 'CONFLICT',
|
|
24
|
-
ActionRequired: 'ACTION_REQUIRED'
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the ConfirmOrderValidationError interface.
|
|
28
|
-
*/
|
|
29
|
-
function instanceOfConfirmOrderValidationError(value) {
|
|
30
|
-
if (!('code' in value))
|
|
31
|
-
return false;
|
|
32
|
-
if (!('message' in value))
|
|
33
|
-
return false;
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
exports.instanceOfConfirmOrderValidationError = instanceOfConfirmOrderValidationError;
|
|
37
|
-
function ConfirmOrderValidationErrorFromJSON(json) {
|
|
38
|
-
return ConfirmOrderValidationErrorFromJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
exports.ConfirmOrderValidationErrorFromJSON = ConfirmOrderValidationErrorFromJSON;
|
|
41
|
-
function ConfirmOrderValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
-
if (json == null) {
|
|
43
|
-
return json;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
'code': json['code'],
|
|
47
|
-
'message': json['message'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
exports.ConfirmOrderValidationErrorFromJSONTyped = ConfirmOrderValidationErrorFromJSONTyped;
|
|
51
|
-
function ConfirmOrderValidationErrorToJSON(value) {
|
|
52
|
-
if (value == null) {
|
|
53
|
-
return value;
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
'code': value['code'],
|
|
57
|
-
'message': value['message'],
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
exports.ConfirmOrderValidationErrorToJSON = ConfirmOrderValidationErrorToJSON;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Orders API
|
|
3
|
-
* 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)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.6.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
|
-
/**
|
|
13
|
-
* Order recipient contact information, used only for courier tracking/updates.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ContactInformation
|
|
16
|
-
*/
|
|
17
|
-
export interface ContactInformation {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ContactInformation
|
|
22
|
-
*/
|
|
23
|
-
email: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ContactInformation
|
|
28
|
-
*/
|
|
29
|
-
phone?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the ContactInformation interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfContactInformation(value: object): boolean;
|
|
35
|
-
export declare function ContactInformationFromJSON(json: any): ContactInformation;
|
|
36
|
-
export declare function ContactInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactInformation;
|
|
37
|
-
export declare function ContactInformationToJSON(value?: ContactInformation | null): any;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Orders API
|
|
6
|
-
* 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)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.6.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.ContactInformationToJSON = exports.ContactInformationFromJSONTyped = exports.ContactInformationFromJSON = exports.instanceOfContactInformation = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the ContactInformation interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfContactInformation(value) {
|
|
21
|
-
if (!('email' in value))
|
|
22
|
-
return false;
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfContactInformation = instanceOfContactInformation;
|
|
26
|
-
function ContactInformationFromJSON(json) {
|
|
27
|
-
return ContactInformationFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.ContactInformationFromJSON = ContactInformationFromJSON;
|
|
30
|
-
function ContactInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'email': json['email'],
|
|
36
|
-
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
exports.ContactInformationFromJSONTyped = ContactInformationFromJSONTyped;
|
|
40
|
-
function ContactInformationToJSON(value) {
|
|
41
|
-
if (value == null) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'email': value['email'],
|
|
46
|
-
'phone': value['phone'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
exports.ContactInformationToJSON = ContactInformationToJSON;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Orders API
|
|
3
|
-
* 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)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.6.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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface DeliveryEstimates
|
|
16
|
-
*/
|
|
17
|
-
export interface DeliveryEstimates {
|
|
18
|
-
/**
|
|
19
|
-
* ISO 8601 Timestamp
|
|
20
|
-
* @type {Date}
|
|
21
|
-
* @memberof DeliveryEstimates
|
|
22
|
-
*/
|
|
23
|
-
min?: Date;
|
|
24
|
-
/**
|
|
25
|
-
* ISO 8601 Timestamp
|
|
26
|
-
* @type {Date}
|
|
27
|
-
* @memberof DeliveryEstimates
|
|
28
|
-
*/
|
|
29
|
-
max?: Date;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the DeliveryEstimates interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfDeliveryEstimates(value: object): boolean;
|
|
35
|
-
export declare function DeliveryEstimatesFromJSON(json: any): DeliveryEstimates;
|
|
36
|
-
export declare function DeliveryEstimatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryEstimates;
|
|
37
|
-
export declare function DeliveryEstimatesToJSON(value?: DeliveryEstimates | null): any;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Orders API
|
|
6
|
-
* 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)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.6.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.DeliveryEstimatesToJSON = exports.DeliveryEstimatesFromJSONTyped = exports.DeliveryEstimatesFromJSON = exports.instanceOfDeliveryEstimates = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the DeliveryEstimates interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfDeliveryEstimates(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfDeliveryEstimates = instanceOfDeliveryEstimates;
|
|
24
|
-
function DeliveryEstimatesFromJSON(json) {
|
|
25
|
-
return DeliveryEstimatesFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.DeliveryEstimatesFromJSON = DeliveryEstimatesFromJSON;
|
|
28
|
-
function DeliveryEstimatesFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'min': json['min'] == null ? undefined : (new Date(json['min'])),
|
|
34
|
-
'max': json['max'] == null ? undefined : (new Date(json['max'])),
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
exports.DeliveryEstimatesFromJSONTyped = DeliveryEstimatesFromJSONTyped;
|
|
38
|
-
function DeliveryEstimatesToJSON(value) {
|
|
39
|
-
if (value == null) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'min': value['min'] == null ? undefined : ((value['min']).toISOString()),
|
|
44
|
-
'max': value['max'] == null ? undefined : ((value['max']).toISOString()),
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
exports.DeliveryEstimatesToJSON = DeliveryEstimatesToJSON;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Orders API
|
|
3
|
-
* 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)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.6.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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface ExportOrders202Response
|
|
16
|
-
*/
|
|
17
|
-
export interface ExportOrders202Response {
|
|
18
|
-
/**
|
|
19
|
-
* A message describing the export status
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ExportOrders202Response
|
|
22
|
-
*/
|
|
23
|
-
message?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the ExportOrders202Response interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfExportOrders202Response(value: object): boolean;
|
|
29
|
-
export declare function ExportOrders202ResponseFromJSON(json: any): ExportOrders202Response;
|
|
30
|
-
export declare function ExportOrders202ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportOrders202Response;
|
|
31
|
-
export declare function ExportOrders202ResponseToJSON(value?: ExportOrders202Response | null): any;
|