@teemill/orders 1.0.0 → 1.0.3

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 (90) hide show
  1. package/.openapi-generator/FILES +24 -6
  2. package/README.md +3 -3
  3. package/dist/apis/OrdersApi.d.ts +79 -0
  4. package/dist/apis/OrdersApi.js +319 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +19 -0
  7. package/dist/index.d.ts +3 -13
  8. package/dist/index.js +5 -15
  9. package/dist/models/Address.d.ts +73 -0
  10. package/dist/models/Address.js +68 -0
  11. package/dist/models/ApiError.d.ts +37 -0
  12. package/dist/models/ApiError.js +53 -0
  13. package/dist/models/ConfirmOrderFulfillment.d.ts +37 -0
  14. package/dist/models/ConfirmOrderFulfillment.js +53 -0
  15. package/dist/models/ConfirmOrderRequest.d.ts +32 -0
  16. package/dist/models/ConfirmOrderRequest.js +51 -0
  17. package/dist/models/ConfirmOrderValidationError.d.ts +47 -0
  18. package/dist/models/ConfirmOrderValidationError.js +62 -0
  19. package/dist/models/ContactInformation.d.ts +37 -0
  20. package/dist/models/ContactInformation.js +53 -0
  21. package/dist/models/DeliveryEstimates.d.ts +37 -0
  22. package/dist/models/DeliveryEstimates.js +52 -0
  23. package/dist/models/Fulfillment.d.ts +71 -0
  24. package/dist/models/Fulfillment.js +66 -0
  25. package/dist/models/FulfillmentItem.d.ts +43 -0
  26. package/dist/models/FulfillmentItem.js +54 -0
  27. package/dist/models/Order.d.ts +135 -0
  28. package/dist/models/Order.js +92 -0
  29. package/dist/models/OrderItem.d.ts +75 -0
  30. package/dist/models/OrderItem.js +64 -0
  31. package/dist/models/OrderItemTaxPrice.d.ts +37 -0
  32. package/dist/models/OrderItemTaxPrice.js +52 -0
  33. package/dist/models/OrderTracking.d.ts +43 -0
  34. package/dist/models/OrderTracking.js +54 -0
  35. package/dist/models/OrdersResponse.d.ts +38 -0
  36. package/dist/models/OrdersResponse.js +53 -0
  37. package/dist/models/Origin.d.ts +37 -0
  38. package/dist/models/Origin.js +52 -0
  39. package/dist/models/Price.d.ts +37 -0
  40. package/dist/models/Price.js +52 -0
  41. package/dist/models/ShippingMethod.d.ts +75 -0
  42. package/dist/models/ShippingMethod.js +66 -0
  43. package/dist/models/Status.d.ts +26 -0
  44. package/dist/models/Status.js +39 -0
  45. package/dist/models/StatusHistoryItem.d.ts +38 -0
  46. package/dist/models/StatusHistoryItem.js +53 -0
  47. package/dist/models/index.d.ts +19 -0
  48. package/dist/models/index.js +37 -0
  49. package/dist/runtime.d.ts +182 -0
  50. package/dist/runtime.js +562 -0
  51. package/package.json +3 -15
  52. package/src/apis/OrdersApi.ts +269 -0
  53. package/src/apis/index.ts +3 -0
  54. package/src/index.ts +5 -0
  55. package/src/models/Address.ts +125 -0
  56. package/src/models/ApiError.ts +74 -0
  57. package/src/models/ConfirmOrderFulfillment.ts +75 -0
  58. package/src/models/ConfirmOrderRequest.ts +73 -0
  59. package/src/models/ConfirmOrderValidationError.ts +88 -0
  60. package/src/models/ContactInformation.ts +74 -0
  61. package/src/models/DeliveryEstimates.ts +73 -0
  62. package/src/models/Fulfillment.ts +138 -0
  63. package/src/models/FulfillmentItem.ts +81 -0
  64. package/src/models/Order.ts +244 -0
  65. package/src/models/OrderItem.ts +132 -0
  66. package/src/models/OrderItemTaxPrice.ts +73 -0
  67. package/src/models/OrderTracking.ts +81 -0
  68. package/src/models/OrdersResponse.ts +80 -0
  69. package/src/models/Origin.ts +73 -0
  70. package/src/models/Price.ts +73 -0
  71. package/src/models/ShippingMethod.ts +134 -0
  72. package/src/models/Status.ts +41 -0
  73. package/src/models/StatusHistoryItem.ts +80 -0
  74. package/src/models/index.ts +21 -0
  75. package/src/runtime.ts +431 -0
  76. package/tsconfig.json +2 -3
  77. package/api.ts +0 -988
  78. package/base.ts +0 -72
  79. package/common.ts +0 -150
  80. package/configuration.ts +0 -101
  81. package/dist/api.d.ts +0 -750
  82. package/dist/api.js +0 -560
  83. package/dist/base.d.ts +0 -54
  84. package/dist/base.js +0 -80
  85. package/dist/common.d.ts +0 -65
  86. package/dist/common.js +0 -252
  87. package/dist/configuration.d.ts +0 -83
  88. package/dist/configuration.js +0 -44
  89. package/git_push.sh +0 -57
  90. package/index.ts +0 -18
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Orders API
6
+ * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.3
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;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Orders API
3
+ * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.3
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;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Orders API
6
+ * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.3
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;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Orders API
3
+ * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.3
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;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Orders API
6
+ * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.3
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;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Orders API
3
+ * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.3
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;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Orders API
6
+ * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.3
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;
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Orders API
3
+ * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.3
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;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Orders API
6
+ * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.3
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;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Orders API
3
+ * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.3
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
+ */
16
+ export declare const Status: {
17
+ readonly New: "new";
18
+ readonly Paid: "paid";
19
+ readonly Processing: "processing";
20
+ readonly Complete: "complete";
21
+ readonly Refunded: "refunded";
22
+ };
23
+ export type Status = typeof Status[keyof typeof Status];
24
+ export declare function StatusFromJSON(json: any): Status;
25
+ export declare function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): Status;
26
+ export declare function StatusToJSON(value?: Status | null): any;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Orders API
6
+ * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.3
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;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Orders API
3
+ * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.3
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;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Orders API
6
+ * Manage Teemill Orders For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.3
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 runtime_1 = require("../runtime");
18
+ var Status_1 = require("./Status");
19
+ /**
20
+ * Check if a given object implements the StatusHistoryItem interface.
21
+ */
22
+ function instanceOfStatusHistoryItem(value) {
23
+ var isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfStatusHistoryItem = instanceOfStatusHistoryItem;
27
+ function StatusHistoryItemFromJSON(json) {
28
+ return StatusHistoryItemFromJSONTyped(json, false);
29
+ }
30
+ exports.StatusHistoryItemFromJSON = StatusHistoryItemFromJSON;
31
+ function StatusHistoryItemFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'status': !(0, runtime_1.exists)(json, 'status') ? undefined : (0, Status_1.StatusFromJSON)(json['status']),
37
+ 'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
38
+ };
39
+ }
40
+ exports.StatusHistoryItemFromJSONTyped = StatusHistoryItemFromJSONTyped;
41
+ function StatusHistoryItemToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'status': (0, Status_1.StatusToJSON)(value.status),
50
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
51
+ };
52
+ }
53
+ exports.StatusHistoryItemToJSON = StatusHistoryItemToJSON;
@@ -0,0 +1,19 @@
1
+ export * from './Address';
2
+ export * from './ApiError';
3
+ export * from './ConfirmOrderFulfillment';
4
+ export * from './ConfirmOrderRequest';
5
+ export * from './ConfirmOrderValidationError';
6
+ export * from './ContactInformation';
7
+ export * from './DeliveryEstimates';
8
+ export * from './Fulfillment';
9
+ export * from './FulfillmentItem';
10
+ export * from './Order';
11
+ export * from './OrderItem';
12
+ export * from './OrderItemTaxPrice';
13
+ export * from './OrderTracking';
14
+ export * from './OrdersResponse';
15
+ export * from './Origin';
16
+ export * from './Price';
17
+ export * from './ShippingMethod';
18
+ export * from './Status';
19
+ export * from './StatusHistoryItem';