@teemill/orders 1.5.5 → 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 -100
- package/dist/apis/OrdersApi.js +0 -464
- 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 -68
- package/dist/models/ApiError.d.ts +0 -37
- package/dist/models/ApiError.js +0 -53
- package/dist/models/ConfirmOrderFulfillment.d.ts +0 -37
- package/dist/models/ConfirmOrderFulfillment.js +0 -53
- package/dist/models/ConfirmOrderRequest.d.ts +0 -32
- package/dist/models/ConfirmOrderRequest.js +0 -51
- package/dist/models/ConfirmOrderValidationError.d.ts +0 -47
- package/dist/models/ConfirmOrderValidationError.js +0 -62
- package/dist/models/ContactInformation.d.ts +0 -37
- package/dist/models/ContactInformation.js +0 -53
- package/dist/models/DeliveryEstimates.d.ts +0 -37
- package/dist/models/DeliveryEstimates.js +0 -52
- package/dist/models/ExportOrders202Response.d.ts +0 -31
- package/dist/models/ExportOrders202Response.js +0 -50
- package/dist/models/Fulfillment.d.ts +0 -71
- package/dist/models/Fulfillment.js +0 -66
- package/dist/models/FulfillmentItem.d.ts +0 -43
- package/dist/models/FulfillmentItem.js +0 -54
- package/dist/models/Order.d.ts +0 -135
- package/dist/models/Order.js +0 -92
- package/dist/models/OrderItem.d.ts +0 -75
- package/dist/models/OrderItem.js +0 -64
- package/dist/models/OrderItemTaxPrice.d.ts +0 -37
- package/dist/models/OrderItemTaxPrice.js +0 -52
- package/dist/models/OrderTracking.d.ts +0 -43
- package/dist/models/OrderTracking.js +0 -54
- package/dist/models/OrdersResponse.d.ts +0 -38
- package/dist/models/OrdersResponse.js +0 -53
- package/dist/models/Origin.d.ts +0 -37
- package/dist/models/Origin.js +0 -52
- package/dist/models/Price.d.ts +0 -37
- package/dist/models/Price.js +0 -52
- package/dist/models/ShippingMethod.d.ts +0 -75
- package/dist/models/ShippingMethod.js +0 -66
- package/dist/models/Status.js +0 -39
- package/dist/models/StatusHistoryItem.d.ts +0 -38
- package/dist/models/StatusHistoryItem.js +0 -53
- 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 -443
- package/src/apis/index.ts +0 -3
- package/src/index.ts +0 -5
- package/src/models/Address.ts +0 -125
- package/src/models/ApiError.ts +0 -74
- package/src/models/ConfirmOrderFulfillment.ts +0 -75
- package/src/models/ConfirmOrderRequest.ts +0 -73
- package/src/models/ConfirmOrderValidationError.ts +0 -88
- package/src/models/ContactInformation.ts +0 -74
- package/src/models/DeliveryEstimates.ts +0 -73
- package/src/models/ExportOrders202Response.ts +0 -65
- package/src/models/Fulfillment.ts +0 -138
- package/src/models/FulfillmentItem.ts +0 -81
- package/src/models/Order.ts +0 -244
- package/src/models/OrderItem.ts +0 -132
- package/src/models/OrderItemTaxPrice.ts +0 -73
- package/src/models/OrderTracking.ts +0 -81
- package/src/models/OrdersResponse.ts +0 -80
- package/src/models/Origin.ts +0 -73
- package/src/models/Price.ts +0 -73
- package/src/models/ShippingMethod.ts +0 -134
- package/src/models/StatusHistoryItem.ts +0 -80
- package/src/models/index.ts +0 -22
- package/src/runtime.ts +0 -441
package/dist/models/Address.d.ts
DELETED
|
@@ -1,73 +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.5.5
|
|
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
|
-
* A person's address.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Address
|
|
16
|
-
*/
|
|
17
|
-
export interface Address {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Address
|
|
22
|
-
*/
|
|
23
|
-
contactName: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Address
|
|
28
|
-
*/
|
|
29
|
-
company?: string;
|
|
30
|
-
/**
|
|
31
|
-
* First line of the address.
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Address
|
|
34
|
-
*/
|
|
35
|
-
line1: string;
|
|
36
|
-
/**
|
|
37
|
-
* Second line of the address.
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof Address
|
|
40
|
-
*/
|
|
41
|
-
line2?: string;
|
|
42
|
-
/**
|
|
43
|
-
* City of the address.
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof Address
|
|
46
|
-
*/
|
|
47
|
-
city: string;
|
|
48
|
-
/**
|
|
49
|
-
* Postal code of the address.
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof Address
|
|
52
|
-
*/
|
|
53
|
-
postalCode?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Country of the address (ISO 3166-1 alpha-2).
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof Address
|
|
58
|
-
*/
|
|
59
|
-
country: string;
|
|
60
|
-
/**
|
|
61
|
-
* State of the address.
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof Address
|
|
64
|
-
*/
|
|
65
|
-
state?: string;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Check if a given object implements the Address interface.
|
|
69
|
-
*/
|
|
70
|
-
export declare function instanceOfAddress(value: object): boolean;
|
|
71
|
-
export declare function AddressFromJSON(json: any): Address;
|
|
72
|
-
export declare function AddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): Address;
|
|
73
|
-
export declare function AddressToJSON(value?: Address | null): any;
|
package/dist/models/Address.js
DELETED
|
@@ -1,68 +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.5.5
|
|
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
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the Address interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfAddress(value) {
|
|
22
|
-
var isInstance = true;
|
|
23
|
-
isInstance = isInstance && "contactName" in value;
|
|
24
|
-
isInstance = isInstance && "line1" in value;
|
|
25
|
-
isInstance = isInstance && "city" in value;
|
|
26
|
-
isInstance = isInstance && "country" in value;
|
|
27
|
-
return isInstance;
|
|
28
|
-
}
|
|
29
|
-
exports.instanceOfAddress = instanceOfAddress;
|
|
30
|
-
function AddressFromJSON(json) {
|
|
31
|
-
return AddressFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
exports.AddressFromJSON = AddressFromJSON;
|
|
34
|
-
function AddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if ((json === undefined) || (json === null)) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'contactName': json['contactName'],
|
|
40
|
-
'company': !(0, runtime_1.exists)(json, 'company') ? undefined : json['company'],
|
|
41
|
-
'line1': json['line1'],
|
|
42
|
-
'line2': !(0, runtime_1.exists)(json, 'line2') ? undefined : json['line2'],
|
|
43
|
-
'city': json['city'],
|
|
44
|
-
'postalCode': !(0, runtime_1.exists)(json, 'postalCode') ? undefined : json['postalCode'],
|
|
45
|
-
'country': json['country'],
|
|
46
|
-
'state': !(0, runtime_1.exists)(json, 'state') ? undefined : json['state'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
exports.AddressFromJSONTyped = AddressFromJSONTyped;
|
|
50
|
-
function AddressToJSON(value) {
|
|
51
|
-
if (value === undefined) {
|
|
52
|
-
return undefined;
|
|
53
|
-
}
|
|
54
|
-
if (value === null) {
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
'contactName': value.contactName,
|
|
59
|
-
'company': value.company,
|
|
60
|
-
'line1': value.line1,
|
|
61
|
-
'line2': value.line2,
|
|
62
|
-
'city': value.city,
|
|
63
|
-
'postalCode': value.postalCode,
|
|
64
|
-
'country': value.country,
|
|
65
|
-
'state': value.state,
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
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.5.5
|
|
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,53 +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.5.5
|
|
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
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the ApiError interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfApiError(value) {
|
|
22
|
-
var isInstance = true;
|
|
23
|
-
isInstance = isInstance && "message" in value;
|
|
24
|
-
return isInstance;
|
|
25
|
-
}
|
|
26
|
-
exports.instanceOfApiError = instanceOfApiError;
|
|
27
|
-
function ApiErrorFromJSON(json) {
|
|
28
|
-
return ApiErrorFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
exports.ApiErrorFromJSON = ApiErrorFromJSON;
|
|
31
|
-
function ApiErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if ((json === undefined) || (json === null)) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
|
|
37
|
-
'message': json['message'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
exports.ApiErrorFromJSONTyped = ApiErrorFromJSONTyped;
|
|
41
|
-
function ApiErrorToJSON(value) {
|
|
42
|
-
if (value === undefined) {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'code': value.code,
|
|
50
|
-
'message': value.message,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
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.5.5
|
|
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,53 +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.5.5
|
|
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
|
-
var isInstance = true;
|
|
22
|
-
isInstance = isInstance && "fulfillmentId" in value;
|
|
23
|
-
isInstance = isInstance && "shippingMethodId" in value;
|
|
24
|
-
return isInstance;
|
|
25
|
-
}
|
|
26
|
-
exports.instanceOfConfirmOrderFulfillment = instanceOfConfirmOrderFulfillment;
|
|
27
|
-
function ConfirmOrderFulfillmentFromJSON(json) {
|
|
28
|
-
return ConfirmOrderFulfillmentFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
exports.ConfirmOrderFulfillmentFromJSON = ConfirmOrderFulfillmentFromJSON;
|
|
31
|
-
function ConfirmOrderFulfillmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if ((json === undefined) || (json === null)) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'fulfillmentId': json['fulfillmentId'],
|
|
37
|
-
'shippingMethodId': json['shippingMethodId'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
exports.ConfirmOrderFulfillmentFromJSONTyped = ConfirmOrderFulfillmentFromJSONTyped;
|
|
41
|
-
function ConfirmOrderFulfillmentToJSON(value) {
|
|
42
|
-
if (value === undefined) {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'fulfillmentId': value.fulfillmentId,
|
|
50
|
-
'shippingMethodId': value.shippingMethodId,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
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.5.5
|
|
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,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.5.5
|
|
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
|
-
var isInstance = true;
|
|
23
|
-
isInstance = isInstance && "fulfillments" in value;
|
|
24
|
-
return isInstance;
|
|
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 === undefined) || (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 === undefined) {
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'fulfillments': (value.fulfillments.map(ConfirmOrderFulfillment_1.ConfirmOrderFulfillmentToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
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.5.5
|
|
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,62 +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.5.5
|
|
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
|
-
var isInstance = true;
|
|
31
|
-
isInstance = isInstance && "code" in value;
|
|
32
|
-
isInstance = isInstance && "message" in value;
|
|
33
|
-
return isInstance;
|
|
34
|
-
}
|
|
35
|
-
exports.instanceOfConfirmOrderValidationError = instanceOfConfirmOrderValidationError;
|
|
36
|
-
function ConfirmOrderValidationErrorFromJSON(json) {
|
|
37
|
-
return ConfirmOrderValidationErrorFromJSONTyped(json, false);
|
|
38
|
-
}
|
|
39
|
-
exports.ConfirmOrderValidationErrorFromJSON = ConfirmOrderValidationErrorFromJSON;
|
|
40
|
-
function ConfirmOrderValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
-
if ((json === undefined) || (json === null)) {
|
|
42
|
-
return json;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'code': json['code'],
|
|
46
|
-
'message': json['message'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
exports.ConfirmOrderValidationErrorFromJSONTyped = ConfirmOrderValidationErrorFromJSONTyped;
|
|
50
|
-
function ConfirmOrderValidationErrorToJSON(value) {
|
|
51
|
-
if (value === undefined) {
|
|
52
|
-
return undefined;
|
|
53
|
-
}
|
|
54
|
-
if (value === null) {
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
'code': value.code,
|
|
59
|
-
'message': value.message,
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
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.5.5
|
|
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 | null;
|
|
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,53 +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.5.5
|
|
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
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the ContactInformation interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfContactInformation(value) {
|
|
22
|
-
var isInstance = true;
|
|
23
|
-
isInstance = isInstance && "email" in value;
|
|
24
|
-
return isInstance;
|
|
25
|
-
}
|
|
26
|
-
exports.instanceOfContactInformation = instanceOfContactInformation;
|
|
27
|
-
function ContactInformationFromJSON(json) {
|
|
28
|
-
return ContactInformationFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
exports.ContactInformationFromJSON = ContactInformationFromJSON;
|
|
31
|
-
function ContactInformationFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if ((json === undefined) || (json === null)) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'email': json['email'],
|
|
37
|
-
'phone': !(0, runtime_1.exists)(json, 'phone') ? undefined : json['phone'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
exports.ContactInformationFromJSONTyped = ContactInformationFromJSONTyped;
|
|
41
|
-
function ContactInformationToJSON(value) {
|
|
42
|
-
if (value === undefined) {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'email': value.email,
|
|
50
|
-
'phone': value.phone,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
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.5.5
|
|
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;
|