@digital8/lighting-illusions-ts-sdk 0.0.1775 → 0.0.1776

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 (137) hide show
  1. package/.openapi-generator/FILES +50 -0
  2. package/README.md +32 -2
  3. package/dist/apis/CartsApi.d.ts +94 -0
  4. package/dist/apis/CartsApi.js +375 -0
  5. package/dist/apis/CustomersApi.d.ts +48 -0
  6. package/dist/apis/CustomersApi.js +196 -0
  7. package/dist/apis/index.d.ts +2 -0
  8. package/dist/apis/index.js +2 -0
  9. package/dist/models/AddressFrontendResource.d.ts +2 -2
  10. package/dist/models/AddressFrontendResource.js +4 -4
  11. package/dist/models/AddressResource.d.ts +1 -1
  12. package/dist/models/AddressResource.js +3 -1
  13. package/dist/models/CartAddressType.d.ts +25 -0
  14. package/dist/models/CartAddressType.js +51 -0
  15. package/dist/models/CartItemListResource.d.ts +51 -0
  16. package/dist/models/CartItemListResource.js +62 -0
  17. package/dist/models/CartItemListResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/CartItemListResourceArrayResponse.js +50 -0
  19. package/dist/models/CartListResource.d.ts +101 -0
  20. package/dist/models/CartListResource.js +90 -0
  21. package/dist/models/CartListResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/CartListResourceArrayResponse.js +50 -0
  23. package/dist/models/CartOrderSource.d.ts +29 -0
  24. package/dist/models/CartOrderSource.js +55 -0
  25. package/dist/models/CartResource.d.ts +155 -0
  26. package/dist/models/CartResource.js +116 -0
  27. package/dist/models/CartResourceArrayResponse.d.ts +33 -0
  28. package/dist/models/CartResourceArrayResponse.js +50 -0
  29. package/dist/models/CartStatus.d.ts +26 -0
  30. package/dist/models/CartStatus.js +52 -0
  31. package/dist/models/CustomerListResource.d.ts +69 -0
  32. package/dist/models/CustomerListResource.js +72 -0
  33. package/dist/models/CustomerListResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/CustomerListResourceArrayResponse.js +50 -0
  35. package/dist/models/CustomerResource.d.ts +69 -0
  36. package/dist/models/CustomerResource.js +72 -0
  37. package/dist/models/CustomerResourceArrayResponse.d.ts +33 -0
  38. package/dist/models/CustomerResourceArrayResponse.js +50 -0
  39. package/dist/models/IndexCartRequest.d.ts +154 -0
  40. package/dist/models/IndexCartRequest.js +105 -0
  41. package/dist/models/IndexCustomerRequest.d.ts +99 -0
  42. package/dist/models/IndexCustomerRequest.js +83 -0
  43. package/dist/models/PaginatedCartListResourceResponse.d.ts +40 -0
  44. package/dist/models/PaginatedCartListResourceResponse.js +57 -0
  45. package/dist/models/PaginatedCustomerListResourceResponse.d.ts +40 -0
  46. package/dist/models/PaginatedCustomerListResourceResponse.js +57 -0
  47. package/dist/models/SitePaymentConfigResource.d.ts +6 -0
  48. package/dist/models/SitePaymentConfigResource.js +4 -0
  49. package/dist/models/StoreCartRequest.d.ts +95 -0
  50. package/dist/models/StoreCartRequest.js +90 -0
  51. package/dist/models/StoreCartRequestCustomer.d.ts +50 -0
  52. package/dist/models/StoreCartRequestCustomer.js +55 -0
  53. package/dist/models/StoreCartRequestItemsInner.d.ts +44 -0
  54. package/dist/models/StoreCartRequestItemsInner.js +57 -0
  55. package/dist/models/StoreCartRequestShippingAddress.d.ts +74 -0
  56. package/dist/models/StoreCartRequestShippingAddress.js +63 -0
  57. package/dist/models/StoreCustomerRequest.d.ts +56 -0
  58. package/dist/models/StoreCustomerRequest.js +65 -0
  59. package/dist/models/StoreListResource.d.ts +1 -1
  60. package/dist/models/StoreListResource.js +1 -3
  61. package/dist/models/StoreResource.d.ts +1 -1
  62. package/dist/models/StoreResource.js +3 -1
  63. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  64. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  65. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  66. package/dist/models/StoreSpecialDateResource.js +3 -1
  67. package/dist/models/UpdateCartRequest.d.ts +70 -0
  68. package/dist/models/UpdateCartRequest.js +75 -0
  69. package/dist/models/UpdateSiteRequest.d.ts +6 -0
  70. package/dist/models/UpdateSiteRequest.js +4 -0
  71. package/dist/models/index.d.ts +23 -0
  72. package/dist/models/index.js +23 -0
  73. package/docs/CartAddressType.md +32 -0
  74. package/docs/CartItemListResource.md +40 -0
  75. package/docs/CartItemListResourceArrayResponse.md +34 -0
  76. package/docs/CartListResource.md +56 -0
  77. package/docs/CartListResourceArrayResponse.md +34 -0
  78. package/docs/CartOrderSource.md +32 -0
  79. package/docs/CartResource.md +74 -0
  80. package/docs/CartResourceArrayResponse.md +34 -0
  81. package/docs/CartStatus.md +32 -0
  82. package/docs/CartsApi.md +341 -0
  83. package/docs/CustomerListResource.md +46 -0
  84. package/docs/CustomerListResourceArrayResponse.md +34 -0
  85. package/docs/CustomerResource.md +46 -0
  86. package/docs/CustomerResourceArrayResponse.md +34 -0
  87. package/docs/CustomersApi.md +140 -0
  88. package/docs/IndexCartRequest.md +66 -0
  89. package/docs/IndexCustomerRequest.md +50 -0
  90. package/docs/PaginatedCartListResourceResponse.md +36 -0
  91. package/docs/PaginatedCustomerListResourceResponse.md +36 -0
  92. package/docs/SitePaymentConfigResource.md +2 -0
  93. package/docs/StoreCartRequest.md +50 -0
  94. package/docs/StoreCartRequestCustomer.md +40 -0
  95. package/docs/StoreCartRequestItemsInner.md +38 -0
  96. package/docs/StoreCartRequestShippingAddress.md +48 -0
  97. package/docs/StoreCustomerRequest.md +42 -0
  98. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  99. package/docs/StoreSpecialDateResource.md +1 -1
  100. package/docs/UpdateCartRequest.md +42 -0
  101. package/docs/UpdateSiteRequest.md +2 -0
  102. package/package.json +1 -1
  103. package/src/apis/CartsApi.ts +284 -0
  104. package/src/apis/CustomersApi.ts +127 -0
  105. package/src/apis/index.ts +2 -0
  106. package/src/models/AddressFrontendResource.ts +5 -5
  107. package/src/models/AddressResource.ts +3 -2
  108. package/src/models/CartAddressType.ts +53 -0
  109. package/src/models/CartItemListResource.ts +100 -0
  110. package/src/models/CartItemListResourceArrayResponse.ts +73 -0
  111. package/src/models/CartListResource.ts +183 -0
  112. package/src/models/CartListResourceArrayResponse.ts +73 -0
  113. package/src/models/CartOrderSource.ts +57 -0
  114. package/src/models/CartResource.ts +259 -0
  115. package/src/models/CartResourceArrayResponse.ts +73 -0
  116. package/src/models/CartStatus.ts +54 -0
  117. package/src/models/CustomerListResource.ts +126 -0
  118. package/src/models/CustomerListResourceArrayResponse.ts +73 -0
  119. package/src/models/CustomerResource.ts +126 -0
  120. package/src/models/CustomerResourceArrayResponse.ts +73 -0
  121. package/src/models/IndexCartRequest.ts +224 -0
  122. package/src/models/IndexCustomerRequest.ts +152 -0
  123. package/src/models/PaginatedCartListResourceResponse.ts +90 -0
  124. package/src/models/PaginatedCustomerListResourceResponse.ts +90 -0
  125. package/src/models/SitePaymentConfigResource.ts +9 -0
  126. package/src/models/StoreCartRequest.ts +171 -0
  127. package/src/models/StoreCartRequestCustomer.ts +89 -0
  128. package/src/models/StoreCartRequestItemsInner.ts +83 -0
  129. package/src/models/StoreCartRequestShippingAddress.ts +121 -0
  130. package/src/models/StoreCustomerRequest.ts +101 -0
  131. package/src/models/StoreListResource.ts +2 -3
  132. package/src/models/StoreResource.ts +3 -2
  133. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  134. package/src/models/StoreSpecialDateResource.ts +4 -3
  135. package/src/models/UpdateCartRequest.ts +129 -0
  136. package/src/models/UpdateSiteRequest.ts +9 -0
  137. package/src/models/index.ts +23 -0
@@ -22,9 +22,9 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressFrontendResource interface.
23
23
  */
24
24
  function instanceOfAddressFrontendResource(value) {
25
- if (!('line1' in value) || value['line1'] === undefined)
25
+ if (!('company' in value) || value['company'] === undefined)
26
26
  return false;
27
- if (!('line2' in value) || value['line2'] === undefined)
27
+ if (!('line1' in value) || value['line1'] === undefined)
28
28
  return false;
29
29
  if (!('postcode' in value) || value['postcode'] === undefined)
30
30
  return false;
@@ -46,9 +46,9 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
46
46
  return json;
47
47
  }
48
48
  return {
49
- 'company': json['company'] == null ? undefined : json['company'],
49
+ 'company': json['company'],
50
50
  'line1': json['line1'],
51
- 'line2': json['line2'],
51
+ 'line2': json['line2'] == null ? undefined : json['line2'],
52
52
  'postcode': json['postcode'],
53
53
  'suburb': json['suburb'],
54
54
  'country': json['country'],
@@ -26,7 +26,7 @@ export interface AddressResource {
26
26
  * @type {string}
27
27
  * @memberof AddressResource
28
28
  */
29
- company?: string | null;
29
+ company: string;
30
30
  /**
31
31
  *
32
32
  * @type {string}
@@ -22,6 +22,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
22
22
  * Check if a given object implements the AddressResource interface.
23
23
  */
24
24
  function instanceOfAddressResource(value) {
25
+ if (!('company' in value) || value['company'] === undefined)
26
+ return false;
25
27
  if (!('line1' in value) || value['line1'] === undefined)
26
28
  return false;
27
29
  if (!('postcode' in value) || value['postcode'] === undefined)
@@ -45,7 +47,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
45
47
  }
46
48
  return {
47
49
  'id': json['id'] == null ? undefined : json['id'],
48
- 'company': json['company'] == null ? undefined : json['company'],
50
+ 'company': json['company'],
49
51
  'line1': json['line_1'],
50
52
  'line2': json['line_2'] == null ? undefined : json['line_2'],
51
53
  'postcode': json['postcode'],
@@ -0,0 +1,25 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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 CartAddressType: {
17
+ readonly Shipping: "shipping";
18
+ readonly Billing: "billing";
19
+ };
20
+ export type CartAddressType = typeof CartAddressType[keyof typeof CartAddressType];
21
+ export declare function instanceOfCartAddressType(value: any): boolean;
22
+ export declare function CartAddressTypeFromJSON(json: any): CartAddressType;
23
+ export declare function CartAddressTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartAddressType;
24
+ export declare function CartAddressTypeToJSON(value?: CartAddressType | null): any;
25
+ export declare function CartAddressTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CartAddressType;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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.CartAddressType = void 0;
17
+ exports.instanceOfCartAddressType = instanceOfCartAddressType;
18
+ exports.CartAddressTypeFromJSON = CartAddressTypeFromJSON;
19
+ exports.CartAddressTypeFromJSONTyped = CartAddressTypeFromJSONTyped;
20
+ exports.CartAddressTypeToJSON = CartAddressTypeToJSON;
21
+ exports.CartAddressTypeToJSONTyped = CartAddressTypeToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.CartAddressType = {
27
+ Shipping: 'shipping',
28
+ Billing: 'billing'
29
+ };
30
+ function instanceOfCartAddressType(value) {
31
+ for (var key in exports.CartAddressType) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.CartAddressType, key)) {
33
+ if (exports.CartAddressType[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function CartAddressTypeFromJSON(json) {
41
+ return CartAddressTypeFromJSONTyped(json, false);
42
+ }
43
+ function CartAddressTypeFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function CartAddressTypeToJSON(value) {
47
+ return value;
48
+ }
49
+ function CartAddressTypeToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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 { ProductChildListResource } from './ProductChildListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CartItemListResource
17
+ */
18
+ export interface CartItemListResource {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof CartItemListResource
23
+ */
24
+ id?: number | null;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof CartItemListResource
29
+ */
30
+ quantity: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof CartItemListResource
35
+ */
36
+ productPrice: number;
37
+ /**
38
+ *
39
+ * @type {ProductChildListResource}
40
+ * @memberof CartItemListResource
41
+ */
42
+ productChild: ProductChildListResource | null;
43
+ }
44
+ /**
45
+ * Check if a given object implements the CartItemListResource interface.
46
+ */
47
+ export declare function instanceOfCartItemListResource(value: object): value is CartItemListResource;
48
+ export declare function CartItemListResourceFromJSON(json: any): CartItemListResource;
49
+ export declare function CartItemListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartItemListResource;
50
+ export declare function CartItemListResourceToJSON(json: any): CartItemListResource;
51
+ export declare function CartItemListResourceToJSONTyped(value?: CartItemListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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.instanceOfCartItemListResource = instanceOfCartItemListResource;
17
+ exports.CartItemListResourceFromJSON = CartItemListResourceFromJSON;
18
+ exports.CartItemListResourceFromJSONTyped = CartItemListResourceFromJSONTyped;
19
+ exports.CartItemListResourceToJSON = CartItemListResourceToJSON;
20
+ exports.CartItemListResourceToJSONTyped = CartItemListResourceToJSONTyped;
21
+ var ProductChildListResource_1 = require("./ProductChildListResource");
22
+ /**
23
+ * Check if a given object implements the CartItemListResource interface.
24
+ */
25
+ function instanceOfCartItemListResource(value) {
26
+ if (!('quantity' in value) || value['quantity'] === undefined)
27
+ return false;
28
+ if (!('productPrice' in value) || value['productPrice'] === undefined)
29
+ return false;
30
+ if (!('productChild' in value) || value['productChild'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function CartItemListResourceFromJSON(json) {
35
+ return CartItemListResourceFromJSONTyped(json, false);
36
+ }
37
+ function CartItemListResourceFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'id': json['id'] == null ? undefined : json['id'],
43
+ 'quantity': json['quantity'],
44
+ 'productPrice': json['product_price'],
45
+ 'productChild': (0, ProductChildListResource_1.ProductChildListResourceFromJSON)(json['product_child']),
46
+ };
47
+ }
48
+ function CartItemListResourceToJSON(json) {
49
+ return CartItemListResourceToJSONTyped(json, false);
50
+ }
51
+ function CartItemListResourceToJSONTyped(value, ignoreDiscriminator) {
52
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'quantity': value['quantity'],
59
+ 'product_price': value['productPrice'],
60
+ 'product_child': (0, ProductChildListResource_1.ProductChildListResourceToJSON)(value['productChild']),
61
+ };
62
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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 { CartItemListResource } from './CartItemListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CartItemListResourceArrayResponse
17
+ */
18
+ export interface CartItemListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<CartItemListResource>}
22
+ * @memberof CartItemListResourceArrayResponse
23
+ */
24
+ data?: Array<CartItemListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CartItemListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfCartItemListResourceArrayResponse(value: object): value is CartItemListResourceArrayResponse;
30
+ export declare function CartItemListResourceArrayResponseFromJSON(json: any): CartItemListResourceArrayResponse;
31
+ export declare function CartItemListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartItemListResourceArrayResponse;
32
+ export declare function CartItemListResourceArrayResponseToJSON(json: any): CartItemListResourceArrayResponse;
33
+ export declare function CartItemListResourceArrayResponseToJSONTyped(value?: CartItemListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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.instanceOfCartItemListResourceArrayResponse = instanceOfCartItemListResourceArrayResponse;
17
+ exports.CartItemListResourceArrayResponseFromJSON = CartItemListResourceArrayResponseFromJSON;
18
+ exports.CartItemListResourceArrayResponseFromJSONTyped = CartItemListResourceArrayResponseFromJSONTyped;
19
+ exports.CartItemListResourceArrayResponseToJSON = CartItemListResourceArrayResponseToJSON;
20
+ exports.CartItemListResourceArrayResponseToJSONTyped = CartItemListResourceArrayResponseToJSONTyped;
21
+ var CartItemListResource_1 = require("./CartItemListResource");
22
+ /**
23
+ * Check if a given object implements the CartItemListResourceArrayResponse interface.
24
+ */
25
+ function instanceOfCartItemListResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function CartItemListResourceArrayResponseFromJSON(json) {
29
+ return CartItemListResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function CartItemListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(CartItemListResource_1.CartItemListResourceFromJSON)),
37
+ };
38
+ }
39
+ function CartItemListResourceArrayResponseToJSON(json) {
40
+ return CartItemListResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function CartItemListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(CartItemListResource_1.CartItemListResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,101 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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 { SiteLiteResource } from './SiteLiteResource';
13
+ import type { CartItemListResource } from './CartItemListResource';
14
+ import type { CustomerListResource } from './CustomerListResource';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface CartListResource
19
+ */
20
+ export interface CartListResource {
21
+ /**
22
+ *
23
+ * @type {number}
24
+ * @memberof CartListResource
25
+ */
26
+ id?: number | null;
27
+ /**
28
+ *
29
+ * @type {number}
30
+ * @memberof CartListResource
31
+ */
32
+ siteId: number;
33
+ /**
34
+ *
35
+ * @type {number}
36
+ * @memberof CartListResource
37
+ */
38
+ customerId?: number | null;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof CartListResource
43
+ */
44
+ source: string;
45
+ /**
46
+ *
47
+ * @type {Date}
48
+ * @memberof CartListResource
49
+ */
50
+ expiryDate: Date;
51
+ /**
52
+ *
53
+ * @type {Date}
54
+ * @memberof CartListResource
55
+ */
56
+ checkoutCompletedAt?: Date | null;
57
+ /**
58
+ *
59
+ * @type {Date}
60
+ * @memberof CartListResource
61
+ */
62
+ createdAt?: Date | null;
63
+ /**
64
+ *
65
+ * @type {SiteLiteResource}
66
+ * @memberof CartListResource
67
+ */
68
+ site: SiteLiteResource | null;
69
+ /**
70
+ *
71
+ * @type {CustomerListResource}
72
+ * @memberof CartListResource
73
+ */
74
+ customer: CustomerListResource | null;
75
+ /**
76
+ *
77
+ * @type {Array<CartItemListResource>}
78
+ * @memberof CartListResource
79
+ */
80
+ cartItems: Array<CartItemListResource> | null;
81
+ /**
82
+ *
83
+ * @type {number}
84
+ * @memberof CartListResource
85
+ */
86
+ subtotal: number;
87
+ /**
88
+ *
89
+ * @type {string}
90
+ * @memberof CartListResource
91
+ */
92
+ status: string;
93
+ }
94
+ /**
95
+ * Check if a given object implements the CartListResource interface.
96
+ */
97
+ export declare function instanceOfCartListResource(value: object): value is CartListResource;
98
+ export declare function CartListResourceFromJSON(json: any): CartListResource;
99
+ export declare function CartListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartListResource;
100
+ export declare function CartListResourceToJSON(json: any): CartListResource;
101
+ export declare function CartListResourceToJSONTyped(value?: CartListResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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.instanceOfCartListResource = instanceOfCartListResource;
17
+ exports.CartListResourceFromJSON = CartListResourceFromJSON;
18
+ exports.CartListResourceFromJSONTyped = CartListResourceFromJSONTyped;
19
+ exports.CartListResourceToJSON = CartListResourceToJSON;
20
+ exports.CartListResourceToJSONTyped = CartListResourceToJSONTyped;
21
+ var SiteLiteResource_1 = require("./SiteLiteResource");
22
+ var CartItemListResource_1 = require("./CartItemListResource");
23
+ var CustomerListResource_1 = require("./CustomerListResource");
24
+ /**
25
+ * Check if a given object implements the CartListResource interface.
26
+ */
27
+ function instanceOfCartListResource(value) {
28
+ if (!('siteId' in value) || value['siteId'] === undefined)
29
+ return false;
30
+ if (!('source' in value) || value['source'] === undefined)
31
+ return false;
32
+ if (!('expiryDate' in value) || value['expiryDate'] === undefined)
33
+ return false;
34
+ if (!('site' in value) || value['site'] === undefined)
35
+ return false;
36
+ if (!('customer' in value) || value['customer'] === undefined)
37
+ return false;
38
+ if (!('cartItems' in value) || value['cartItems'] === undefined)
39
+ return false;
40
+ if (!('subtotal' in value) || value['subtotal'] === undefined)
41
+ return false;
42
+ if (!('status' in value) || value['status'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function CartListResourceFromJSON(json) {
47
+ return CartListResourceFromJSONTyped(json, false);
48
+ }
49
+ function CartListResourceFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'id': json['id'] == null ? undefined : json['id'],
55
+ 'siteId': json['site_id'],
56
+ 'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
57
+ 'source': json['source'],
58
+ 'expiryDate': (new Date(json['expiry_date'])),
59
+ 'checkoutCompletedAt': json['checkout_completed_at'] == null ? undefined : (new Date(json['checkout_completed_at'])),
60
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
61
+ 'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
62
+ 'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
63
+ 'cartItems': (json['cart_items'] == null ? null : json['cart_items'].map(CartItemListResource_1.CartItemListResourceFromJSON)),
64
+ 'subtotal': json['subtotal'],
65
+ 'status': json['status'],
66
+ };
67
+ }
68
+ function CartListResourceToJSON(json) {
69
+ return CartListResourceToJSONTyped(json, false);
70
+ }
71
+ function CartListResourceToJSONTyped(value, ignoreDiscriminator) {
72
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'id': value['id'],
78
+ 'site_id': value['siteId'],
79
+ 'customer_id': value['customerId'],
80
+ 'source': value['source'],
81
+ 'expiry_date': value['expiryDate'].toISOString(),
82
+ 'checkout_completed_at': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
83
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
84
+ 'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
85
+ 'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
86
+ 'cart_items': (value['cartItems'] == null ? null : value['cartItems'].map(CartItemListResource_1.CartItemListResourceToJSON)),
87
+ 'subtotal': value['subtotal'],
88
+ 'status': value['status'],
89
+ };
90
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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 { CartListResource } from './CartListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CartListResourceArrayResponse
17
+ */
18
+ export interface CartListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<CartListResource>}
22
+ * @memberof CartListResourceArrayResponse
23
+ */
24
+ data?: Array<CartListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CartListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfCartListResourceArrayResponse(value: object): value is CartListResourceArrayResponse;
30
+ export declare function CartListResourceArrayResponseFromJSON(json: any): CartListResourceArrayResponse;
31
+ export declare function CartListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartListResourceArrayResponse;
32
+ export declare function CartListResourceArrayResponseToJSON(json: any): CartListResourceArrayResponse;
33
+ export declare function CartListResourceArrayResponseToJSONTyped(value?: CartListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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.instanceOfCartListResourceArrayResponse = instanceOfCartListResourceArrayResponse;
17
+ exports.CartListResourceArrayResponseFromJSON = CartListResourceArrayResponseFromJSON;
18
+ exports.CartListResourceArrayResponseFromJSONTyped = CartListResourceArrayResponseFromJSONTyped;
19
+ exports.CartListResourceArrayResponseToJSON = CartListResourceArrayResponseToJSON;
20
+ exports.CartListResourceArrayResponseToJSONTyped = CartListResourceArrayResponseToJSONTyped;
21
+ var CartListResource_1 = require("./CartListResource");
22
+ /**
23
+ * Check if a given object implements the CartListResourceArrayResponse interface.
24
+ */
25
+ function instanceOfCartListResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function CartListResourceArrayResponseFromJSON(json) {
29
+ return CartListResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function CartListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(CartListResource_1.CartListResourceFromJSON)),
37
+ };
38
+ }
39
+ function CartListResourceArrayResponseToJSON(json) {
40
+ return CartListResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function CartListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(CartListResource_1.CartListResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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 CartOrderSource: {
17
+ readonly Checkout: "checkout";
18
+ readonly Admin: "admin";
19
+ readonly Phone: "phone";
20
+ readonly Email: "email";
21
+ readonly Ebay: "ebay";
22
+ readonly InStore: "in_store";
23
+ };
24
+ export type CartOrderSource = typeof CartOrderSource[keyof typeof CartOrderSource];
25
+ export declare function instanceOfCartOrderSource(value: any): boolean;
26
+ export declare function CartOrderSourceFromJSON(json: any): CartOrderSource;
27
+ export declare function CartOrderSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartOrderSource;
28
+ export declare function CartOrderSourceToJSON(value?: CartOrderSource | null): any;
29
+ export declare function CartOrderSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): CartOrderSource;