@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,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.DeliveryEstimatesToJSON = exports.DeliveryEstimatesFromJSONTyped = exports.DeliveryEstimatesFromJSON = exports.instanceOfDeliveryEstimates = void 0;
17
- var runtime_1 = require("../runtime");
18
- /**
19
- * Check if a given object implements the DeliveryEstimates interface.
20
- */
21
- function instanceOfDeliveryEstimates(value) {
22
- var isInstance = true;
23
- return isInstance;
24
- }
25
- exports.instanceOfDeliveryEstimates = instanceOfDeliveryEstimates;
26
- function DeliveryEstimatesFromJSON(json) {
27
- return DeliveryEstimatesFromJSONTyped(json, false);
28
- }
29
- exports.DeliveryEstimatesFromJSON = DeliveryEstimatesFromJSON;
30
- function DeliveryEstimatesFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
32
- return json;
33
- }
34
- return {
35
- 'min': !(0, runtime_1.exists)(json, 'min') ? undefined : (new Date(json['min'])),
36
- 'max': !(0, runtime_1.exists)(json, 'max') ? undefined : (new Date(json['max'])),
37
- };
38
- }
39
- exports.DeliveryEstimatesFromJSONTyped = DeliveryEstimatesFromJSONTyped;
40
- function DeliveryEstimatesToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
46
- }
47
- return {
48
- 'min': value.min === undefined ? undefined : (value.min.toISOString()),
49
- 'max': value.max === undefined ? undefined : (value.max.toISOString()),
50
- };
51
- }
52
- exports.DeliveryEstimatesToJSON = DeliveryEstimatesToJSON;
@@ -1,31 +0,0 @@
1
- /**
2
- * Orders API
3
- * Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
4
- *
5
- * The version of the OpenAPI document: 1.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 ExportOrders202Response
16
- */
17
- export interface ExportOrders202Response {
18
- /**
19
- * A message describing the export status
20
- * @type {string}
21
- * @memberof ExportOrders202Response
22
- */
23
- message?: string;
24
- }
25
- /**
26
- * Check if a given object implements the ExportOrders202Response interface.
27
- */
28
- export declare function instanceOfExportOrders202Response(value: object): boolean;
29
- export declare function ExportOrders202ResponseFromJSON(json: any): ExportOrders202Response;
30
- export declare function ExportOrders202ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportOrders202Response;
31
- export declare function ExportOrders202ResponseToJSON(value?: ExportOrders202Response | null): any;
@@ -1,50 +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.ExportOrders202ResponseToJSON = exports.ExportOrders202ResponseFromJSONTyped = exports.ExportOrders202ResponseFromJSON = exports.instanceOfExportOrders202Response = void 0;
17
- var runtime_1 = require("../runtime");
18
- /**
19
- * Check if a given object implements the ExportOrders202Response interface.
20
- */
21
- function instanceOfExportOrders202Response(value) {
22
- var isInstance = true;
23
- return isInstance;
24
- }
25
- exports.instanceOfExportOrders202Response = instanceOfExportOrders202Response;
26
- function ExportOrders202ResponseFromJSON(json) {
27
- return ExportOrders202ResponseFromJSONTyped(json, false);
28
- }
29
- exports.ExportOrders202ResponseFromJSON = ExportOrders202ResponseFromJSON;
30
- function ExportOrders202ResponseFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
32
- return json;
33
- }
34
- return {
35
- 'message': !(0, runtime_1.exists)(json, 'message') ? undefined : json['message'],
36
- };
37
- }
38
- exports.ExportOrders202ResponseFromJSONTyped = ExportOrders202ResponseFromJSONTyped;
39
- function ExportOrders202ResponseToJSON(value) {
40
- if (value === undefined) {
41
- return undefined;
42
- }
43
- if (value === null) {
44
- return null;
45
- }
46
- return {
47
- 'message': value.message,
48
- };
49
- }
50
- exports.ExportOrders202ResponseToJSON = ExportOrders202ResponseToJSON;
@@ -1,71 +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 { FulfillmentItem } from './FulfillmentItem';
13
- import type { OrderTracking } from './OrderTracking';
14
- import type { ShippingMethod } from './ShippingMethod';
15
- import type { Status } from './Status';
16
- /**
17
- *
18
- * @export
19
- * @interface Fulfillment
20
- */
21
- export interface Fulfillment {
22
- /**
23
- * Unique object identifier
24
- * @type {string}
25
- * @memberof Fulfillment
26
- */
27
- id?: string;
28
- /**
29
- *
30
- * @type {Status}
31
- * @memberof Fulfillment
32
- */
33
- status?: Status;
34
- /**
35
- *
36
- * @type {Array<FulfillmentItem>}
37
- * @memberof Fulfillment
38
- */
39
- items?: Array<FulfillmentItem>;
40
- /**
41
- *
42
- * @type {OrderTracking}
43
- * @memberof Fulfillment
44
- */
45
- tracking?: OrderTracking | null;
46
- /**
47
- *
48
- * @type {ShippingMethod}
49
- * @memberof Fulfillment
50
- */
51
- shippingMethod?: ShippingMethod;
52
- /**
53
- * Shipping methods available for this fulfillment. One of these should be used to confirm the fulfillment.
54
- * @type {Array<ShippingMethod>}
55
- * @memberof Fulfillment
56
- */
57
- availableShippingMethods?: Array<ShippingMethod>;
58
- /**
59
- * Weight of the package being shipped in grams
60
- * @type {number}
61
- * @memberof Fulfillment
62
- */
63
- packageWeight?: number;
64
- }
65
- /**
66
- * Check if a given object implements the Fulfillment interface.
67
- */
68
- export declare function instanceOfFulfillment(value: object): boolean;
69
- export declare function FulfillmentFromJSON(json: any): Fulfillment;
70
- export declare function FulfillmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fulfillment;
71
- export declare function FulfillmentToJSON(value?: Fulfillment | 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.FulfillmentToJSON = exports.FulfillmentFromJSONTyped = exports.FulfillmentFromJSON = exports.instanceOfFulfillment = void 0;
17
- var runtime_1 = require("../runtime");
18
- var FulfillmentItem_1 = require("./FulfillmentItem");
19
- var OrderTracking_1 = require("./OrderTracking");
20
- var ShippingMethod_1 = require("./ShippingMethod");
21
- var Status_1 = require("./Status");
22
- /**
23
- * Check if a given object implements the Fulfillment interface.
24
- */
25
- function instanceOfFulfillment(value) {
26
- var isInstance = true;
27
- return isInstance;
28
- }
29
- exports.instanceOfFulfillment = instanceOfFulfillment;
30
- function FulfillmentFromJSON(json) {
31
- return FulfillmentFromJSONTyped(json, false);
32
- }
33
- exports.FulfillmentFromJSON = FulfillmentFromJSON;
34
- function FulfillmentFromJSONTyped(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
- 'status': !(0, runtime_1.exists)(json, 'status') ? undefined : (0, Status_1.StatusFromJSON)(json['status']),
41
- 'items': !(0, runtime_1.exists)(json, 'items') ? undefined : (json['items'].map(FulfillmentItem_1.FulfillmentItemFromJSON)),
42
- 'tracking': !(0, runtime_1.exists)(json, 'tracking') ? undefined : (0, OrderTracking_1.OrderTrackingFromJSON)(json['tracking']),
43
- 'shippingMethod': !(0, runtime_1.exists)(json, 'shippingMethod') ? undefined : (0, ShippingMethod_1.ShippingMethodFromJSON)(json['shippingMethod']),
44
- 'availableShippingMethods': !(0, runtime_1.exists)(json, 'availableShippingMethods') ? undefined : (json['availableShippingMethods'].map(ShippingMethod_1.ShippingMethodFromJSON)),
45
- 'packageWeight': !(0, runtime_1.exists)(json, 'packageWeight') ? undefined : json['packageWeight'],
46
- };
47
- }
48
- exports.FulfillmentFromJSONTyped = FulfillmentFromJSONTyped;
49
- function FulfillmentToJSON(value) {
50
- if (value === undefined) {
51
- return undefined;
52
- }
53
- if (value === null) {
54
- return null;
55
- }
56
- return {
57
- 'id': value.id,
58
- 'status': (0, Status_1.StatusToJSON)(value.status),
59
- 'items': value.items === undefined ? undefined : (value.items.map(FulfillmentItem_1.FulfillmentItemToJSON)),
60
- 'tracking': (0, OrderTracking_1.OrderTrackingToJSON)(value.tracking),
61
- 'shippingMethod': (0, ShippingMethod_1.ShippingMethodToJSON)(value.shippingMethod),
62
- 'availableShippingMethods': value.availableShippingMethods === undefined ? undefined : (value.availableShippingMethods.map(ShippingMethod_1.ShippingMethodToJSON)),
63
- 'packageWeight': value.packageWeight,
64
- };
65
- }
66
- exports.FulfillmentToJSON = FulfillmentToJSON;
@@ -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 FulfillmentItem
16
- */
17
- export interface FulfillmentItem {
18
- /**
19
- * Unique object identifier
20
- * @type {string}
21
- * @memberof FulfillmentItem
22
- */
23
- id?: string;
24
- /**
25
- * Unique object identifier
26
- * @type {string}
27
- * @memberof FulfillmentItem
28
- */
29
- itemId?: string;
30
- /**
31
- * Number of this item being fulfilled
32
- * @type {number}
33
- * @memberof FulfillmentItem
34
- */
35
- quantity?: number;
36
- }
37
- /**
38
- * Check if a given object implements the FulfillmentItem interface.
39
- */
40
- export declare function instanceOfFulfillmentItem(value: object): boolean;
41
- export declare function FulfillmentItemFromJSON(json: any): FulfillmentItem;
42
- export declare function FulfillmentItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): FulfillmentItem;
43
- export declare function FulfillmentItemToJSON(value?: FulfillmentItem | 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.FulfillmentItemToJSON = exports.FulfillmentItemFromJSONTyped = exports.FulfillmentItemFromJSON = exports.instanceOfFulfillmentItem = void 0;
17
- var runtime_1 = require("../runtime");
18
- /**
19
- * Check if a given object implements the FulfillmentItem interface.
20
- */
21
- function instanceOfFulfillmentItem(value) {
22
- var isInstance = true;
23
- return isInstance;
24
- }
25
- exports.instanceOfFulfillmentItem = instanceOfFulfillmentItem;
26
- function FulfillmentItemFromJSON(json) {
27
- return FulfillmentItemFromJSONTyped(json, false);
28
- }
29
- exports.FulfillmentItemFromJSON = FulfillmentItemFromJSON;
30
- function FulfillmentItemFromJSONTyped(json, ignoreDiscriminator) {
31
- if ((json === undefined) || (json === null)) {
32
- return json;
33
- }
34
- return {
35
- 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
36
- 'itemId': !(0, runtime_1.exists)(json, 'itemId') ? undefined : json['itemId'],
37
- 'quantity': !(0, runtime_1.exists)(json, 'quantity') ? undefined : json['quantity'],
38
- };
39
- }
40
- exports.FulfillmentItemFromJSONTyped = FulfillmentItemFromJSONTyped;
41
- function FulfillmentItemToJSON(value) {
42
- if (value === undefined) {
43
- return undefined;
44
- }
45
- if (value === null) {
46
- return null;
47
- }
48
- return {
49
- 'id': value.id,
50
- 'itemId': value.itemId,
51
- 'quantity': value.quantity,
52
- };
53
- }
54
- exports.FulfillmentItemToJSON = FulfillmentItemToJSON;
@@ -1,135 +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 { Address } from './Address';
13
- import type { ContactInformation } from './ContactInformation';
14
- import type { Fulfillment } from './Fulfillment';
15
- import type { OrderItem } from './OrderItem';
16
- import type { Origin } from './Origin';
17
- import type { Price } from './Price';
18
- import type { Status } from './Status';
19
- import type { StatusHistoryItem } from './StatusHistoryItem';
20
- /**
21
- *
22
- * @export
23
- * @interface Order
24
- */
25
- export interface Order {
26
- /**
27
- * Unique object identifier
28
- * @type {string}
29
- * @memberof Order
30
- */
31
- id?: string;
32
- /**
33
- * A reference to the resource location
34
- * @type {string}
35
- * @memberof Order
36
- */
37
- ref?: string;
38
- /**
39
- *
40
- * @type {Status}
41
- * @memberof Order
42
- */
43
- status?: Status;
44
- /**
45
- *
46
- * @type {ContactInformation}
47
- * @memberof Order
48
- */
49
- contactInformation: ContactInformation;
50
- /**
51
- *
52
- * @type {Address}
53
- * @memberof Order
54
- */
55
- shippingAddress: Address;
56
- /**
57
- * ISO 8601 Timestamp
58
- * @type {Date}
59
- * @memberof Order
60
- */
61
- createdAt?: Date;
62
- /**
63
- * ISO 8601 Timestamp
64
- * @type {Date}
65
- * @memberof Order
66
- */
67
- updatedAt?: Date;
68
- /**
69
- * A custom reference to the merchant's order that will be displayed on the shipping label.
70
- * @type {string}
71
- * @memberof Order
72
- */
73
- merchantReference?: string | null;
74
- /**
75
- *
76
- * @type {Array<Fulfillment>}
77
- * @memberof Order
78
- */
79
- readonly fulfillments?: Array<Fulfillment>;
80
- /**
81
- *
82
- * @type {Array<OrderItem>}
83
- * @memberof Order
84
- */
85
- items: Array<OrderItem>;
86
- /**
87
- *
88
- * @type {Price}
89
- * @memberof Order
90
- */
91
- totalPrice?: Price;
92
- /**
93
- *
94
- * @type {Price}
95
- * @memberof Order
96
- */
97
- taxPrice?: Price;
98
- /**
99
- *
100
- * @type {Price}
101
- * @memberof Order
102
- */
103
- subtotalPrice?: Price;
104
- /**
105
- *
106
- * @type {Price}
107
- * @memberof Order
108
- */
109
- discountPrice?: Price;
110
- /**
111
- *
112
- * @type {Price}
113
- * @memberof Order
114
- */
115
- shippingPrice?: Price;
116
- /**
117
- *
118
- * @type {Origin}
119
- * @memberof Order
120
- */
121
- origin?: Origin;
122
- /**
123
- *
124
- * @type {Array<StatusHistoryItem>}
125
- * @memberof Order
126
- */
127
- statusHistory?: Array<StatusHistoryItem>;
128
- }
129
- /**
130
- * Check if a given object implements the Order interface.
131
- */
132
- export declare function instanceOfOrder(value: object): boolean;
133
- export declare function OrderFromJSON(json: any): Order;
134
- export declare function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Order;
135
- export declare function OrderToJSON(value?: Order | null): any;
@@ -1,92 +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.OrderToJSON = exports.OrderFromJSONTyped = exports.OrderFromJSON = exports.instanceOfOrder = void 0;
17
- var runtime_1 = require("../runtime");
18
- var Address_1 = require("./Address");
19
- var ContactInformation_1 = require("./ContactInformation");
20
- var Fulfillment_1 = require("./Fulfillment");
21
- var OrderItem_1 = require("./OrderItem");
22
- var Origin_1 = require("./Origin");
23
- var Price_1 = require("./Price");
24
- var Status_1 = require("./Status");
25
- var StatusHistoryItem_1 = require("./StatusHistoryItem");
26
- /**
27
- * Check if a given object implements the Order interface.
28
- */
29
- function instanceOfOrder(value) {
30
- var isInstance = true;
31
- isInstance = isInstance && "contactInformation" in value;
32
- isInstance = isInstance && "shippingAddress" in value;
33
- isInstance = isInstance && "items" in value;
34
- return isInstance;
35
- }
36
- exports.instanceOfOrder = instanceOfOrder;
37
- function OrderFromJSON(json) {
38
- return OrderFromJSONTyped(json, false);
39
- }
40
- exports.OrderFromJSON = OrderFromJSON;
41
- function OrderFromJSONTyped(json, ignoreDiscriminator) {
42
- if ((json === undefined) || (json === null)) {
43
- return json;
44
- }
45
- return {
46
- 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
47
- 'ref': !(0, runtime_1.exists)(json, 'ref') ? undefined : json['ref'],
48
- 'status': !(0, runtime_1.exists)(json, 'status') ? undefined : (0, Status_1.StatusFromJSON)(json['status']),
49
- 'contactInformation': (0, ContactInformation_1.ContactInformationFromJSON)(json['contactInformation']),
50
- 'shippingAddress': (0, Address_1.AddressFromJSON)(json['shippingAddress']),
51
- 'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
52
- 'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
53
- 'merchantReference': !(0, runtime_1.exists)(json, 'merchantReference') ? undefined : json['merchantReference'],
54
- 'fulfillments': !(0, runtime_1.exists)(json, 'fulfillments') ? undefined : (json['fulfillments'].map(Fulfillment_1.FulfillmentFromJSON)),
55
- 'items': (json['items'].map(OrderItem_1.OrderItemFromJSON)),
56
- 'totalPrice': !(0, runtime_1.exists)(json, 'totalPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['totalPrice']),
57
- 'taxPrice': !(0, runtime_1.exists)(json, 'taxPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['taxPrice']),
58
- 'subtotalPrice': !(0, runtime_1.exists)(json, 'subtotalPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['subtotalPrice']),
59
- 'discountPrice': !(0, runtime_1.exists)(json, 'discountPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['discountPrice']),
60
- 'shippingPrice': !(0, runtime_1.exists)(json, 'shippingPrice') ? undefined : (0, Price_1.PriceFromJSON)(json['shippingPrice']),
61
- 'origin': !(0, runtime_1.exists)(json, 'origin') ? undefined : (0, Origin_1.OriginFromJSON)(json['origin']),
62
- 'statusHistory': !(0, runtime_1.exists)(json, 'statusHistory') ? undefined : (json['statusHistory'].map(StatusHistoryItem_1.StatusHistoryItemFromJSON)),
63
- };
64
- }
65
- exports.OrderFromJSONTyped = OrderFromJSONTyped;
66
- function OrderToJSON(value) {
67
- if (value === undefined) {
68
- return undefined;
69
- }
70
- if (value === null) {
71
- return null;
72
- }
73
- return {
74
- 'id': value.id,
75
- 'ref': value.ref,
76
- 'status': (0, Status_1.StatusToJSON)(value.status),
77
- 'contactInformation': (0, ContactInformation_1.ContactInformationToJSON)(value.contactInformation),
78
- 'shippingAddress': (0, Address_1.AddressToJSON)(value.shippingAddress),
79
- 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
80
- 'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
81
- 'merchantReference': value.merchantReference,
82
- 'items': (value.items.map(OrderItem_1.OrderItemToJSON)),
83
- 'totalPrice': (0, Price_1.PriceToJSON)(value.totalPrice),
84
- 'taxPrice': (0, Price_1.PriceToJSON)(value.taxPrice),
85
- 'subtotalPrice': (0, Price_1.PriceToJSON)(value.subtotalPrice),
86
- 'discountPrice': (0, Price_1.PriceToJSON)(value.discountPrice),
87
- 'shippingPrice': (0, Price_1.PriceToJSON)(value.shippingPrice),
88
- 'origin': (0, Origin_1.OriginToJSON)(value.origin),
89
- 'statusHistory': value.statusHistory === undefined ? undefined : (value.statusHistory.map(StatusHistoryItem_1.StatusHistoryItemToJSON)),
90
- };
91
- }
92
- exports.OrderToJSON = OrderToJSON;
@@ -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 { OrderItemTaxPrice } from './OrderItemTaxPrice';
13
- import type { Price } from './Price';
14
- /**
15
- *
16
- * @export
17
- * @interface OrderItem
18
- */
19
- export interface OrderItem {
20
- /**
21
- * Unique object identifier
22
- * @type {string}
23
- * @memberof OrderItem
24
- */
25
- readonly id?: string;
26
- /**
27
- * A reference to the resource location
28
- * @type {string}
29
- * @memberof OrderItem
30
- */
31
- variantRef: string;
32
- /**
33
- *
34
- * @type {number}
35
- * @memberof OrderItem
36
- */
37
- quantity: number;
38
- /**
39
- *
40
- * @type {Price}
41
- * @memberof OrderItem
42
- */
43
- readonly totalPrice?: Price;
44
- /**
45
- *
46
- * @type {OrderItemTaxPrice}
47
- * @memberof OrderItem
48
- */
49
- taxPrice?: OrderItemTaxPrice;
50
- /**
51
- *
52
- * @type {Price}
53
- * @memberof OrderItem
54
- */
55
- readonly subtotalPrice?: Price;
56
- /**
57
- *
58
- * @type {Price}
59
- * @memberof OrderItem
60
- */
61
- readonly discountPrice?: Price;
62
- /**
63
- *
64
- * @type {Price}
65
- * @memberof OrderItem
66
- */
67
- recipientCost?: Price;
68
- }
69
- /**
70
- * Check if a given object implements the OrderItem interface.
71
- */
72
- export declare function instanceOfOrderItem(value: object): boolean;
73
- export declare function OrderItemFromJSON(json: any): OrderItem;
74
- export declare function OrderItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderItem;
75
- export declare function OrderItemToJSON(value?: OrderItem | null): any;