@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.
Files changed (103) hide show
  1. package/.openapi-generator/FILES +7 -25
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/api.ts +1526 -0
  5. package/base.ts +86 -0
  6. package/common.ts +150 -0
  7. package/configuration.ts +110 -0
  8. package/dist/api.d.ts +1103 -0
  9. package/dist/api.js +632 -0
  10. package/dist/base.d.ts +66 -0
  11. package/dist/base.js +65 -0
  12. package/dist/common.d.ts +65 -0
  13. package/dist/common.js +161 -0
  14. package/dist/configuration.d.ts +91 -0
  15. package/dist/configuration.js +43 -0
  16. package/dist/esm/api.d.ts +1103 -0
  17. package/dist/esm/api.js +625 -0
  18. package/dist/esm/base.d.ts +66 -0
  19. package/dist/esm/base.js +60 -0
  20. package/dist/esm/common.d.ts +65 -0
  21. package/dist/esm/common.js +149 -0
  22. package/dist/esm/configuration.d.ts +91 -0
  23. package/dist/esm/configuration.js +39 -0
  24. package/dist/{models/Status.d.ts → esm/index.d.ts} +3 -16
  25. package/dist/esm/index.js +15 -0
  26. package/dist/index.d.ts +13 -3
  27. package/dist/index.js +15 -5
  28. package/git_push.sh +57 -0
  29. package/{src/models/Status.ts → index.ts} +3 -26
  30. package/package.json +18 -4
  31. package/tsconfig.esm.json +7 -0
  32. package/tsconfig.json +4 -6
  33. package/dist/apis/OrdersApi.d.ts +0 -100
  34. package/dist/apis/OrdersApi.js +0 -464
  35. package/dist/apis/index.d.ts +0 -1
  36. package/dist/apis/index.js +0 -19
  37. package/dist/models/Address.d.ts +0 -73
  38. package/dist/models/Address.js +0 -68
  39. package/dist/models/ApiError.d.ts +0 -37
  40. package/dist/models/ApiError.js +0 -53
  41. package/dist/models/ConfirmOrderFulfillment.d.ts +0 -37
  42. package/dist/models/ConfirmOrderFulfillment.js +0 -53
  43. package/dist/models/ConfirmOrderRequest.d.ts +0 -32
  44. package/dist/models/ConfirmOrderRequest.js +0 -51
  45. package/dist/models/ConfirmOrderValidationError.d.ts +0 -47
  46. package/dist/models/ConfirmOrderValidationError.js +0 -62
  47. package/dist/models/ContactInformation.d.ts +0 -37
  48. package/dist/models/ContactInformation.js +0 -53
  49. package/dist/models/DeliveryEstimates.d.ts +0 -37
  50. package/dist/models/DeliveryEstimates.js +0 -52
  51. package/dist/models/ExportOrders202Response.d.ts +0 -31
  52. package/dist/models/ExportOrders202Response.js +0 -50
  53. package/dist/models/Fulfillment.d.ts +0 -71
  54. package/dist/models/Fulfillment.js +0 -66
  55. package/dist/models/FulfillmentItem.d.ts +0 -43
  56. package/dist/models/FulfillmentItem.js +0 -54
  57. package/dist/models/Order.d.ts +0 -135
  58. package/dist/models/Order.js +0 -92
  59. package/dist/models/OrderItem.d.ts +0 -75
  60. package/dist/models/OrderItem.js +0 -64
  61. package/dist/models/OrderItemTaxPrice.d.ts +0 -37
  62. package/dist/models/OrderItemTaxPrice.js +0 -52
  63. package/dist/models/OrderTracking.d.ts +0 -43
  64. package/dist/models/OrderTracking.js +0 -54
  65. package/dist/models/OrdersResponse.d.ts +0 -38
  66. package/dist/models/OrdersResponse.js +0 -53
  67. package/dist/models/Origin.d.ts +0 -37
  68. package/dist/models/Origin.js +0 -52
  69. package/dist/models/Price.d.ts +0 -37
  70. package/dist/models/Price.js +0 -52
  71. package/dist/models/ShippingMethod.d.ts +0 -75
  72. package/dist/models/ShippingMethod.js +0 -66
  73. package/dist/models/Status.js +0 -39
  74. package/dist/models/StatusHistoryItem.d.ts +0 -38
  75. package/dist/models/StatusHistoryItem.js +0 -53
  76. package/dist/models/index.d.ts +0 -20
  77. package/dist/models/index.js +0 -38
  78. package/dist/runtime.d.ts +0 -187
  79. package/dist/runtime.js +0 -565
  80. package/src/apis/OrdersApi.ts +0 -443
  81. package/src/apis/index.ts +0 -3
  82. package/src/index.ts +0 -5
  83. package/src/models/Address.ts +0 -125
  84. package/src/models/ApiError.ts +0 -74
  85. package/src/models/ConfirmOrderFulfillment.ts +0 -75
  86. package/src/models/ConfirmOrderRequest.ts +0 -73
  87. package/src/models/ConfirmOrderValidationError.ts +0 -88
  88. package/src/models/ContactInformation.ts +0 -74
  89. package/src/models/DeliveryEstimates.ts +0 -73
  90. package/src/models/ExportOrders202Response.ts +0 -65
  91. package/src/models/Fulfillment.ts +0 -138
  92. package/src/models/FulfillmentItem.ts +0 -81
  93. package/src/models/Order.ts +0 -244
  94. package/src/models/OrderItem.ts +0 -132
  95. package/src/models/OrderItemTaxPrice.ts +0 -73
  96. package/src/models/OrderTracking.ts +0 -81
  97. package/src/models/OrdersResponse.ts +0 -80
  98. package/src/models/Origin.ts +0 -73
  99. package/src/models/Price.ts +0 -73
  100. package/src/models/ShippingMethod.ts +0 -134
  101. package/src/models/StatusHistoryItem.ts +0 -80
  102. package/src/models/index.ts +0 -22
  103. package/src/runtime.ts +0 -441
@@ -1,64 +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.OrderItemToJSON = exports.OrderItemFromJSONTyped = exports.OrderItemFromJSON = exports.instanceOfOrderItem = void 0;
17
- var runtime_1 = require("../runtime");
18
- var OrderItemTaxPrice_1 = require("./OrderItemTaxPrice");
19
- var Price_1 = require("./Price");
20
- /**
21
- * Check if a given object implements the OrderItem interface.
22
- */
23
- function instanceOfOrderItem(value) {
24
- var isInstance = true;
25
- isInstance = isInstance && "variantRef" in value;
26
- isInstance = isInstance && "quantity" in value;
27
- return isInstance;
28
- }
29
- exports.instanceOfOrderItem = instanceOfOrderItem;
30
- function OrderItemFromJSON(json) {
31
- return OrderItemFromJSONTyped(json, false);
32
- }
33
- exports.OrderItemFromJSON = OrderItemFromJSON;
34
- function OrderItemFromJSONTyped(json, ignoreDiscriminator) {
35
- if ((json === undefined) || (json === null)) {
36
- return json;
37
- }
38
- return {
39
- 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
40
- 'variantRef': json['variantRef'],
41
- 'quantity': json['quantity'],
42
- 'totalPrice': !(0, runtime_1.exists)(json, 'totalPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['totalPrice']),
43
- 'taxPrice': !(0, runtime_1.exists)(json, 'taxPrice') ? undefined : (0, OrderItemTaxPrice_1.OrderItemTaxPriceFromJSON)(json['taxPrice']),
44
- 'subtotalPrice': !(0, runtime_1.exists)(json, 'subtotalPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['subtotalPrice']),
45
- 'discountPrice': !(0, runtime_1.exists)(json, 'discountPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['discountPrice']),
46
- 'recipientCost': !(0, runtime_1.exists)(json, 'recipientCost') ? undefined : (0, Price_1.PriceFromJSON)(json['recipientCost']),
47
- };
48
- }
49
- exports.OrderItemFromJSONTyped = OrderItemFromJSONTyped;
50
- function OrderItemToJSON(value) {
51
- if (value === undefined) {
52
- return undefined;
53
- }
54
- if (value === null) {
55
- return null;
56
- }
57
- return {
58
- 'variantRef': value.variantRef,
59
- 'quantity': value.quantity,
60
- 'taxPrice': (0, OrderItemTaxPrice_1.OrderItemTaxPriceToJSON)(value.taxPrice),
61
- 'recipientCost': (0, Price_1.PriceToJSON)(value.recipientCost),
62
- };
63
- }
64
- exports.OrderItemToJSON = OrderItemToJSON;
@@ -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
- * This is an estimate until the order has been confirmed
14
- * @export
15
- * @interface OrderItemTaxPrice
16
- */
17
- export interface OrderItemTaxPrice {
18
- /**
19
- * Price including tax in the specified currency.
20
- * @type {string}
21
- * @memberof OrderItemTaxPrice
22
- */
23
- amount?: string;
24
- /**
25
- * Currency code for the currency the price is valued in.
26
- * @type {string}
27
- * @memberof OrderItemTaxPrice
28
- */
29
- currencyCode?: string;
30
- }
31
- /**
32
- * Check if a given object implements the OrderItemTaxPrice interface.
33
- */
34
- export declare function instanceOfOrderItemTaxPrice(value: object): boolean;
35
- export declare function OrderItemTaxPriceFromJSON(json: any): OrderItemTaxPrice;
36
- export declare function OrderItemTaxPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderItemTaxPrice;
37
- export declare function OrderItemTaxPriceToJSON(value?: OrderItemTaxPrice | null): any;
@@ -1,52 +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.OrderItemTaxPriceToJSON = exports.OrderItemTaxPriceFromJSONTyped = exports.OrderItemTaxPriceFromJSON = exports.instanceOfOrderItemTaxPrice = void 0;
17
- var runtime_1 = require("../runtime");
18
- /**
19
- * Check if a given object implements the OrderItemTaxPrice interface.
20
- */
21
- function instanceOfOrderItemTaxPrice(value) {
22
- var isInstance = true;
23
- return isInstance;
24
- }
25
- exports.instanceOfOrderItemTaxPrice = instanceOfOrderItemTaxPrice;
26
- function OrderItemTaxPriceFromJSON(json) {
27
- return OrderItemTaxPriceFromJSONTyped(json, false);
28
- }
29
- exports.OrderItemTaxPriceFromJSON = OrderItemTaxPriceFromJSON;
30
- function OrderItemTaxPriceFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
32
- return json;
33
- }
34
- return {
35
- 'amount': !(0, runtime_1.exists)(json, 'amount') ? undefined : json['amount'],
36
- 'currencyCode': !(0, runtime_1.exists)(json, 'currencyCode') ? undefined : json['currencyCode'],
37
- };
38
- }
39
- exports.OrderItemTaxPriceFromJSONTyped = OrderItemTaxPriceFromJSONTyped;
40
- function OrderItemTaxPriceToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
46
- }
47
- return {
48
- 'amount': value.amount,
49
- 'currencyCode': value.currencyCode,
50
- };
51
- }
52
- 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.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 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,54 +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.OrderTrackingToJSON = exports.OrderTrackingFromJSONTyped = exports.OrderTrackingFromJSON = exports.instanceOfOrderTracking = void 0;
17
- var runtime_1 = require("../runtime");
18
- /**
19
- * Check if a given object implements the OrderTracking interface.
20
- */
21
- function instanceOfOrderTracking(value) {
22
- var isInstance = true;
23
- return isInstance;
24
- }
25
- exports.instanceOfOrderTracking = instanceOfOrderTracking;
26
- function OrderTrackingFromJSON(json) {
27
- return OrderTrackingFromJSONTyped(json, false);
28
- }
29
- exports.OrderTrackingFromJSON = OrderTrackingFromJSON;
30
- function OrderTrackingFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
32
- return json;
33
- }
34
- return {
35
- 'courier': !(0, runtime_1.exists)(json, 'courier') ? undefined : json['courier'],
36
- 'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
37
- 'url': !(0, runtime_1.exists)(json, 'url') ? undefined : json['url'],
38
- };
39
- }
40
- exports.OrderTrackingFromJSONTyped = OrderTrackingFromJSONTyped;
41
- function OrderTrackingToJSON(value) {
42
- if (value === undefined) {
43
- return undefined;
44
- }
45
- if (value === null) {
46
- return null;
47
- }
48
- return {
49
- 'courier': value.courier,
50
- 'code': value.code,
51
- 'url': value.url,
52
- };
53
- }
54
- 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.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 { 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,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.OrdersResponseToJSON = exports.OrdersResponseFromJSONTyped = exports.OrdersResponseFromJSON = exports.instanceOfOrdersResponse = void 0;
17
- var runtime_1 = require("../runtime");
18
- var Order_1 = require("./Order");
19
- /**
20
- * Check if a given object implements the OrdersResponse interface.
21
- */
22
- function instanceOfOrdersResponse(value) {
23
- var isInstance = true;
24
- return isInstance;
25
- }
26
- exports.instanceOfOrdersResponse = instanceOfOrdersResponse;
27
- function OrdersResponseFromJSON(json) {
28
- return OrdersResponseFromJSONTyped(json, false);
29
- }
30
- exports.OrdersResponseFromJSON = OrdersResponseFromJSON;
31
- function OrdersResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if ((json === undefined) || (json === null)) {
33
- return json;
34
- }
35
- return {
36
- 'orders': !(0, runtime_1.exists)(json, 'orders') ? undefined : (json['orders'].map(Order_1.OrderFromJSON)),
37
- 'nextPageToken': !(0, runtime_1.exists)(json, 'nextPageToken') ? undefined : json['nextPageToken'],
38
- };
39
- }
40
- exports.OrdersResponseFromJSONTyped = OrdersResponseFromJSONTyped;
41
- function OrdersResponseToJSON(value) {
42
- if (value === undefined) {
43
- return undefined;
44
- }
45
- if (value === null) {
46
- return null;
47
- }
48
- return {
49
- 'orders': value.orders === undefined ? undefined : (value.orders.map(Order_1.OrderToJSON)),
50
- 'nextPageToken': value.nextPageToken,
51
- };
52
- }
53
- exports.OrdersResponseToJSON = OrdersResponseToJSON;
@@ -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 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;
@@ -1,52 +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.OriginToJSON = exports.OriginFromJSONTyped = exports.OriginFromJSON = exports.instanceOfOrigin = void 0;
17
- var runtime_1 = require("../runtime");
18
- /**
19
- * Check if a given object implements the Origin interface.
20
- */
21
- function instanceOfOrigin(value) {
22
- var isInstance = true;
23
- return isInstance;
24
- }
25
- exports.instanceOfOrigin = instanceOfOrigin;
26
- function OriginFromJSON(json) {
27
- return OriginFromJSONTyped(json, false);
28
- }
29
- exports.OriginFromJSON = OriginFromJSON;
30
- function OriginFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
32
- return json;
33
- }
34
- return {
35
- 'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
36
- 'isPaid': !(0, runtime_1.exists)(json, 'isPaid') ? undefined : json['isPaid'],
37
- };
38
- }
39
- exports.OriginFromJSONTyped = OriginFromJSONTyped;
40
- function OriginToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
46
- }
47
- return {
48
- 'code': value.code,
49
- 'isPaid': value.isPaid,
50
- };
51
- }
52
- exports.OriginToJSON = OriginToJSON;
@@ -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
- * 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;
@@ -1,52 +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.PriceToJSON = exports.PriceFromJSONTyped = exports.PriceFromJSON = exports.instanceOfPrice = void 0;
17
- var runtime_1 = require("../runtime");
18
- /**
19
- * Check if a given object implements the Price interface.
20
- */
21
- function instanceOfPrice(value) {
22
- var isInstance = true;
23
- return isInstance;
24
- }
25
- exports.instanceOfPrice = instanceOfPrice;
26
- function PriceFromJSON(json) {
27
- return PriceFromJSONTyped(json, false);
28
- }
29
- exports.PriceFromJSON = PriceFromJSON;
30
- function PriceFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
32
- return json;
33
- }
34
- return {
35
- 'amount': !(0, runtime_1.exists)(json, 'amount') ? undefined : json['amount'],
36
- 'currencyCode': !(0, runtime_1.exists)(json, 'currencyCode') ? undefined : json['currencyCode'],
37
- };
38
- }
39
- exports.PriceFromJSONTyped = PriceFromJSONTyped;
40
- function PriceToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
46
- }
47
- return {
48
- 'amount': value.amount,
49
- 'currencyCode': value.currencyCode,
50
- };
51
- }
52
- 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.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 { 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,66 +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.ShippingMethodToJSON = exports.ShippingMethodFromJSONTyped = exports.ShippingMethodFromJSON = exports.instanceOfShippingMethod = void 0;
17
- var runtime_1 = require("../runtime");
18
- var DeliveryEstimates_1 = require("./DeliveryEstimates");
19
- var Price_1 = require("./Price");
20
- /**
21
- * Check if a given object implements the ShippingMethod interface.
22
- */
23
- function instanceOfShippingMethod(value) {
24
- var isInstance = true;
25
- return isInstance;
26
- }
27
- exports.instanceOfShippingMethod = instanceOfShippingMethod;
28
- function ShippingMethodFromJSON(json) {
29
- return ShippingMethodFromJSONTyped(json, false);
30
- }
31
- exports.ShippingMethodFromJSON = ShippingMethodFromJSON;
32
- function ShippingMethodFromJSONTyped(json, ignoreDiscriminator) {
33
- if ((json === undefined) || (json === null)) {
34
- return json;
35
- }
36
- return {
37
- 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
38
- 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
39
- 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
40
- 'deliveryEstimates': !(0, runtime_1.exists)(json, 'deliveryEstimates') ? undefined : (0, DeliveryEstimates_1.DeliveryEstimatesFromJSON)(json['deliveryEstimates']),
41
- 'totalPrice': !(0, runtime_1.exists)(json, 'totalPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['totalPrice']),
42
- 'taxPrice': !(0, runtime_1.exists)(json, 'taxPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['taxPrice']),
43
- 'subtotalPrice': !(0, runtime_1.exists)(json, 'subtotalPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['subtotalPrice']),
44
- 'discountPrice': !(0, runtime_1.exists)(json, 'discountPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['discountPrice']),
45
- };
46
- }
47
- exports.ShippingMethodFromJSONTyped = ShippingMethodFromJSONTyped;
48
- function ShippingMethodToJSON(value) {
49
- if (value === undefined) {
50
- return undefined;
51
- }
52
- if (value === null) {
53
- return null;
54
- }
55
- return {
56
- 'id': value.id,
57
- 'name': value.name,
58
- 'description': value.description,
59
- 'deliveryEstimates': (0, DeliveryEstimates_1.DeliveryEstimatesToJSON)(value.deliveryEstimates),
60
- 'totalPrice': (0, Price_1.PriceToJSON)(value.totalPrice),
61
- 'taxPrice': (0, Price_1.PriceToJSON)(value.taxPrice),
62
- 'subtotalPrice': (0, Price_1.PriceToJSON)(value.subtotalPrice),
63
- 'discountPrice': (0, Price_1.PriceToJSON)(value.discountPrice),
64
- };
65
- }
66
- exports.ShippingMethodToJSON = ShippingMethodToJSON;