@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
|
@@ -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.OrderItemTaxPriceToJSON = exports.OrderItemTaxPriceFromJSONTyped = exports.OrderItemTaxPriceFromJSON = exports.instanceOfOrderItemTaxPrice = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the OrderItemTaxPrice interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfOrderItemTaxPrice(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfOrderItemTaxPrice = instanceOfOrderItemTaxPrice;
|
|
24
|
-
function OrderItemTaxPriceFromJSON(json) {
|
|
25
|
-
return OrderItemTaxPriceFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.OrderItemTaxPriceFromJSON = OrderItemTaxPriceFromJSON;
|
|
28
|
-
function OrderItemTaxPriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
34
|
-
'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
exports.OrderItemTaxPriceFromJSONTyped = OrderItemTaxPriceFromJSONTyped;
|
|
38
|
-
function OrderItemTaxPriceToJSON(value) {
|
|
39
|
-
if (value == null) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'amount': value['amount'],
|
|
44
|
-
'currencyCode': value['currencyCode'],
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
exports.OrderItemTaxPriceToJSON = OrderItemTaxPriceToJSON;
|
|
@@ -1,43 +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 OrderTracking
|
|
16
|
-
*/
|
|
17
|
-
export interface OrderTracking {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof OrderTracking
|
|
22
|
-
*/
|
|
23
|
-
courier?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof OrderTracking
|
|
28
|
-
*/
|
|
29
|
-
code?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof OrderTracking
|
|
34
|
-
*/
|
|
35
|
-
url?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the OrderTracking interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfOrderTracking(value: object): boolean;
|
|
41
|
-
export declare function OrderTrackingFromJSON(json: any): OrderTracking;
|
|
42
|
-
export declare function OrderTrackingFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderTracking;
|
|
43
|
-
export declare function OrderTrackingToJSON(value?: OrderTracking | 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.OrderTrackingToJSON = exports.OrderTrackingFromJSONTyped = exports.OrderTrackingFromJSON = exports.instanceOfOrderTracking = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the OrderTracking interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfOrderTracking(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfOrderTracking = instanceOfOrderTracking;
|
|
24
|
-
function OrderTrackingFromJSON(json) {
|
|
25
|
-
return OrderTrackingFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.OrderTrackingFromJSON = OrderTrackingFromJSON;
|
|
28
|
-
function OrderTrackingFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'courier': json['courier'] == null ? undefined : json['courier'],
|
|
34
|
-
'code': json['code'] == null ? undefined : json['code'],
|
|
35
|
-
'url': json['url'] == null ? undefined : json['url'],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
exports.OrderTrackingFromJSONTyped = OrderTrackingFromJSONTyped;
|
|
39
|
-
function OrderTrackingToJSON(value) {
|
|
40
|
-
if (value == null) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'courier': value['courier'],
|
|
45
|
-
'code': value['code'],
|
|
46
|
-
'url': value['url'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
exports.OrderTrackingToJSON = OrderTrackingToJSON;
|
|
@@ -1,38 +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 { Order } from './Order';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface OrdersResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface OrdersResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<Order>}
|
|
22
|
-
* @memberof OrdersResponse
|
|
23
|
-
*/
|
|
24
|
-
orders?: Array<Order>;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof OrdersResponse
|
|
29
|
-
*/
|
|
30
|
-
nextPageToken?: number;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the OrdersResponse interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfOrdersResponse(value: object): boolean;
|
|
36
|
-
export declare function OrdersResponseFromJSON(json: any): OrdersResponse;
|
|
37
|
-
export declare function OrdersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrdersResponse;
|
|
38
|
-
export declare function OrdersResponseToJSON(value?: OrdersResponse | 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.OrdersResponseToJSON = exports.OrdersResponseFromJSONTyped = exports.OrdersResponseFromJSON = exports.instanceOfOrdersResponse = void 0;
|
|
17
|
-
var Order_1 = require("./Order");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the OrdersResponse interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfOrdersResponse(value) {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
exports.instanceOfOrdersResponse = instanceOfOrdersResponse;
|
|
25
|
-
function OrdersResponseFromJSON(json) {
|
|
26
|
-
return OrdersResponseFromJSONTyped(json, false);
|
|
27
|
-
}
|
|
28
|
-
exports.OrdersResponseFromJSON = OrdersResponseFromJSON;
|
|
29
|
-
function OrdersResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
-
if (json == null) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
'orders': json['orders'] == null ? undefined : (json['orders'].map(Order_1.OrderFromJSON)),
|
|
35
|
-
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
exports.OrdersResponseFromJSONTyped = OrdersResponseFromJSONTyped;
|
|
39
|
-
function OrdersResponseToJSON(value) {
|
|
40
|
-
if (value == null) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'orders': value['orders'] == null ? undefined : (value['orders'].map(Order_1.OrderToJSON)),
|
|
45
|
-
'nextPageToken': value['nextPageToken'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
exports.OrdersResponseToJSON = OrdersResponseToJSON;
|
package/dist/models/Origin.d.ts
DELETED
|
@@ -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 Origin
|
|
16
|
-
*/
|
|
17
|
-
export interface Origin {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Origin
|
|
22
|
-
*/
|
|
23
|
-
code?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {boolean}
|
|
27
|
-
* @memberof Origin
|
|
28
|
-
*/
|
|
29
|
-
isPaid?: boolean;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the Origin interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfOrigin(value: object): boolean;
|
|
35
|
-
export declare function OriginFromJSON(json: any): Origin;
|
|
36
|
-
export declare function OriginFromJSONTyped(json: any, ignoreDiscriminator: boolean): Origin;
|
|
37
|
-
export declare function OriginToJSON(value?: Origin | null): any;
|
package/dist/models/Origin.js
DELETED
|
@@ -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.OriginToJSON = exports.OriginFromJSONTyped = exports.OriginFromJSON = exports.instanceOfOrigin = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the Origin interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfOrigin(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfOrigin = instanceOfOrigin;
|
|
24
|
-
function OriginFromJSON(json) {
|
|
25
|
-
return OriginFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.OriginFromJSON = OriginFromJSON;
|
|
28
|
-
function OriginFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'code': json['code'] == null ? undefined : json['code'],
|
|
34
|
-
'isPaid': json['isPaid'] == null ? undefined : json['isPaid'],
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
exports.OriginFromJSONTyped = OriginFromJSONTyped;
|
|
38
|
-
function OriginToJSON(value) {
|
|
39
|
-
if (value == null) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'code': value['code'],
|
|
44
|
-
'isPaid': value['isPaid'],
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
exports.OriginToJSON = OriginToJSON;
|
package/dist/models/Price.d.ts
DELETED
|
@@ -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
|
-
* Standard price definition that defines the amount and currency.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface Price
|
|
16
|
-
*/
|
|
17
|
-
export interface Price {
|
|
18
|
-
/**
|
|
19
|
-
* Price including tax in the specified currency.
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof Price
|
|
22
|
-
*/
|
|
23
|
-
amount?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Currency code for the currency the price is valued in.
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof Price
|
|
28
|
-
*/
|
|
29
|
-
currencyCode?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the Price interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfPrice(value: object): boolean;
|
|
35
|
-
export declare function PriceFromJSON(json: any): Price;
|
|
36
|
-
export declare function PriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Price;
|
|
37
|
-
export declare function PriceToJSON(value?: Price | null): any;
|
package/dist/models/Price.js
DELETED
|
@@ -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.PriceToJSON = exports.PriceFromJSONTyped = exports.PriceFromJSON = exports.instanceOfPrice = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the Price interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfPrice(value) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
exports.instanceOfPrice = instanceOfPrice;
|
|
24
|
-
function PriceFromJSON(json) {
|
|
25
|
-
return PriceFromJSONTyped(json, false);
|
|
26
|
-
}
|
|
27
|
-
exports.PriceFromJSON = PriceFromJSON;
|
|
28
|
-
function PriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
-
if (json == null) {
|
|
30
|
-
return json;
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
34
|
-
'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
exports.PriceFromJSONTyped = PriceFromJSONTyped;
|
|
38
|
-
function PriceToJSON(value) {
|
|
39
|
-
if (value == null) {
|
|
40
|
-
return value;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'amount': value['amount'],
|
|
44
|
-
'currencyCode': value['currencyCode'],
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
exports.PriceToJSON = PriceToJSON;
|
|
@@ -1,75 +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 { DeliveryEstimates } from './DeliveryEstimates';
|
|
13
|
-
import type { Price } from './Price';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface ShippingMethod
|
|
18
|
-
*/
|
|
19
|
-
export interface ShippingMethod {
|
|
20
|
-
/**
|
|
21
|
-
* Unique object identifier
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof ShippingMethod
|
|
24
|
-
*/
|
|
25
|
-
id?: string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof ShippingMethod
|
|
30
|
-
*/
|
|
31
|
-
name?: string;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof ShippingMethod
|
|
36
|
-
*/
|
|
37
|
-
description?: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {DeliveryEstimates}
|
|
41
|
-
* @memberof ShippingMethod
|
|
42
|
-
*/
|
|
43
|
-
deliveryEstimates?: DeliveryEstimates;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {Price}
|
|
47
|
-
* @memberof ShippingMethod
|
|
48
|
-
*/
|
|
49
|
-
totalPrice?: Price;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {Price}
|
|
53
|
-
* @memberof ShippingMethod
|
|
54
|
-
*/
|
|
55
|
-
taxPrice?: Price;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {Price}
|
|
59
|
-
* @memberof ShippingMethod
|
|
60
|
-
*/
|
|
61
|
-
subtotalPrice?: Price;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {Price}
|
|
65
|
-
* @memberof ShippingMethod
|
|
66
|
-
*/
|
|
67
|
-
discountPrice?: Price;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Check if a given object implements the ShippingMethod interface.
|
|
71
|
-
*/
|
|
72
|
-
export declare function instanceOfShippingMethod(value: object): boolean;
|
|
73
|
-
export declare function ShippingMethodFromJSON(json: any): ShippingMethod;
|
|
74
|
-
export declare function ShippingMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShippingMethod;
|
|
75
|
-
export declare function ShippingMethodToJSON(value?: ShippingMethod | null): any;
|
|
@@ -1,61 +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.ShippingMethodToJSON = exports.ShippingMethodFromJSONTyped = exports.ShippingMethodFromJSON = exports.instanceOfShippingMethod = void 0;
|
|
17
|
-
var DeliveryEstimates_1 = require("./DeliveryEstimates");
|
|
18
|
-
var Price_1 = require("./Price");
|
|
19
|
-
/**
|
|
20
|
-
* Check if a given object implements the ShippingMethod interface.
|
|
21
|
-
*/
|
|
22
|
-
function instanceOfShippingMethod(value) {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfShippingMethod = instanceOfShippingMethod;
|
|
26
|
-
function ShippingMethodFromJSON(json) {
|
|
27
|
-
return ShippingMethodFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.ShippingMethodFromJSON = ShippingMethodFromJSON;
|
|
30
|
-
function ShippingMethodFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
-
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
38
|
-
'deliveryEstimates': json['deliveryEstimates'] == null ? undefined : (0, DeliveryEstimates_1.DeliveryEstimatesFromJSON)(json['deliveryEstimates']),
|
|
39
|
-
'totalPrice': json['totalPrice'] == null ? undefined : (0, Price_1.PriceFromJSON)(json['totalPrice']),
|
|
40
|
-
'taxPrice': json['taxPrice'] == null ? undefined : (0, Price_1.PriceFromJSON)(json['taxPrice']),
|
|
41
|
-
'subtotalPrice': json['subtotalPrice'] == null ? undefined : (0, Price_1.PriceFromJSON)(json['subtotalPrice']),
|
|
42
|
-
'discountPrice': json['discountPrice'] == null ? undefined : (0, Price_1.PriceFromJSON)(json['discountPrice']),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
exports.ShippingMethodFromJSONTyped = ShippingMethodFromJSONTyped;
|
|
46
|
-
function ShippingMethodToJSON(value) {
|
|
47
|
-
if (value == null) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'id': value['id'],
|
|
52
|
-
'name': value['name'],
|
|
53
|
-
'description': value['description'],
|
|
54
|
-
'deliveryEstimates': (0, DeliveryEstimates_1.DeliveryEstimatesToJSON)(value['deliveryEstimates']),
|
|
55
|
-
'totalPrice': (0, Price_1.PriceToJSON)(value['totalPrice']),
|
|
56
|
-
'taxPrice': (0, Price_1.PriceToJSON)(value['taxPrice']),
|
|
57
|
-
'subtotalPrice': (0, Price_1.PriceToJSON)(value['subtotalPrice']),
|
|
58
|
-
'discountPrice': (0, Price_1.PriceToJSON)(value['discountPrice']),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
exports.ShippingMethodToJSON = ShippingMethodToJSON;
|
package/dist/models/Status.js
DELETED
|
@@ -1,39 +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.StatusToJSON = exports.StatusFromJSONTyped = exports.StatusFromJSON = exports.Status = void 0;
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
*/
|
|
21
|
-
exports.Status = {
|
|
22
|
-
New: 'new',
|
|
23
|
-
Paid: 'paid',
|
|
24
|
-
Processing: 'processing',
|
|
25
|
-
Complete: 'complete',
|
|
26
|
-
Refunded: 'refunded'
|
|
27
|
-
};
|
|
28
|
-
function StatusFromJSON(json) {
|
|
29
|
-
return StatusFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
exports.StatusFromJSON = StatusFromJSON;
|
|
32
|
-
function StatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
exports.StatusFromJSONTyped = StatusFromJSONTyped;
|
|
36
|
-
function StatusToJSON(value) {
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
exports.StatusToJSON = StatusToJSON;
|
|
@@ -1,38 +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 { Status } from './Status';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface StatusHistoryItem
|
|
17
|
-
*/
|
|
18
|
-
export interface StatusHistoryItem {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Status}
|
|
22
|
-
* @memberof StatusHistoryItem
|
|
23
|
-
*/
|
|
24
|
-
status?: Status;
|
|
25
|
-
/**
|
|
26
|
-
* ISO 8601 Timestamp
|
|
27
|
-
* @type {Date}
|
|
28
|
-
* @memberof StatusHistoryItem
|
|
29
|
-
*/
|
|
30
|
-
createdAt?: Date;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the StatusHistoryItem interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfStatusHistoryItem(value: object): boolean;
|
|
36
|
-
export declare function StatusHistoryItemFromJSON(json: any): StatusHistoryItem;
|
|
37
|
-
export declare function StatusHistoryItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusHistoryItem;
|
|
38
|
-
export declare function StatusHistoryItemToJSON(value?: StatusHistoryItem | 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.StatusHistoryItemToJSON = exports.StatusHistoryItemFromJSONTyped = exports.StatusHistoryItemFromJSON = exports.instanceOfStatusHistoryItem = void 0;
|
|
17
|
-
var Status_1 = require("./Status");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the StatusHistoryItem interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfStatusHistoryItem(value) {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
exports.instanceOfStatusHistoryItem = instanceOfStatusHistoryItem;
|
|
25
|
-
function StatusHistoryItemFromJSON(json) {
|
|
26
|
-
return StatusHistoryItemFromJSONTyped(json, false);
|
|
27
|
-
}
|
|
28
|
-
exports.StatusHistoryItemFromJSON = StatusHistoryItemFromJSON;
|
|
29
|
-
function StatusHistoryItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
-
if (json == null) {
|
|
31
|
-
return json;
|
|
32
|
-
}
|
|
33
|
-
return {
|
|
34
|
-
'status': json['status'] == null ? undefined : (0, Status_1.StatusFromJSON)(json['status']),
|
|
35
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
exports.StatusHistoryItemFromJSONTyped = StatusHistoryItemFromJSONTyped;
|
|
39
|
-
function StatusHistoryItemToJSON(value) {
|
|
40
|
-
if (value == null) {
|
|
41
|
-
return value;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'status': (0, Status_1.StatusToJSON)(value['status']),
|
|
45
|
-
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
exports.StatusHistoryItemToJSON = StatusHistoryItemToJSON;
|