@digital8/lighting-illusions-ts-sdk 0.0.1778 → 0.0.1779

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 (204) hide show
  1. package/.openapi-generator/FILES +0 -56
  2. package/README.md +2 -41
  3. package/dist/apis/index.d.ts +0 -2
  4. package/dist/apis/index.js +0 -2
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +1 -3
  7. package/dist/models/AssetFrontendResource.d.ts +12 -0
  8. package/dist/models/AssetFrontendResource.js +6 -0
  9. package/dist/models/AssetLiteResource.d.ts +14 -2
  10. package/dist/models/AssetLiteResource.js +6 -0
  11. package/dist/models/AssetResource.d.ts +14 -2
  12. package/dist/models/AssetResource.js +6 -0
  13. package/dist/models/AssetWithOverlayLinkResource.d.ts +14 -2
  14. package/dist/models/AssetWithOverlayLinkResource.js +6 -0
  15. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  16. package/dist/models/ExternalApiLogResource.js +3 -1
  17. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
  18. package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
  19. package/dist/models/SitePaymentConfigResource.d.ts +0 -6
  20. package/dist/models/SitePaymentConfigResource.js +0 -4
  21. package/dist/models/StoreAssetForAssetableRequest.d.ts +14 -2
  22. package/dist/models/StoreAssetForAssetableRequest.js +6 -6
  23. package/dist/models/StoreFrontendResource.d.ts +1 -1
  24. package/dist/models/StoreFrontendResource.js +1 -3
  25. package/dist/models/StoreListResource.d.ts +1 -1
  26. package/dist/models/StoreListResource.js +1 -3
  27. package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +14 -2
  28. package/dist/models/StoreOverlayTemplateAssetRequest.js +6 -6
  29. package/dist/models/StoreProductCategoryRequest.d.ts +12 -0
  30. package/dist/models/StoreProductCategoryRequest.js +4 -0
  31. package/dist/models/StoreProductChildRequestAssetsInner.d.ts +14 -2
  32. package/dist/models/StoreProductChildRequestAssetsInner.js +6 -6
  33. package/dist/models/StoreResource.d.ts +1 -1
  34. package/dist/models/StoreResource.js +3 -1
  35. package/dist/models/StoreSupplierRequest.d.ts +14 -2
  36. package/dist/models/StoreSupplierRequest.js +6 -6
  37. package/dist/models/UpdateAssetForAssetableRequest.d.ts +12 -0
  38. package/dist/models/UpdateAssetForAssetableRequest.js +4 -0
  39. package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +14 -2
  40. package/dist/models/UpdateOverlayTemplateAssetRequest.js +6 -6
  41. package/dist/models/UpdateProductCategoryRequest.d.ts +12 -0
  42. package/dist/models/UpdateProductCategoryRequest.js +4 -0
  43. package/dist/models/UpdateProductChildRequestAssetsInner.d.ts +14 -2
  44. package/dist/models/UpdateProductChildRequestAssetsInner.js +6 -6
  45. package/dist/models/UpdateSiteRequest.d.ts +0 -6
  46. package/dist/models/UpdateSiteRequest.js +0 -4
  47. package/dist/models/UpdateSupplierRequest.d.ts +14 -2
  48. package/dist/models/UpdateSupplierRequest.js +6 -6
  49. package/dist/models/index.d.ts +0 -26
  50. package/dist/models/index.js +0 -26
  51. package/docs/AssetFrontendResource.md +4 -0
  52. package/docs/AssetLiteResource.md +5 -1
  53. package/docs/AssetResource.md +5 -1
  54. package/docs/AssetWithOverlayLinkResource.md +5 -1
  55. package/docs/ProductChildSiteDetailLiteResource.md +0 -2
  56. package/docs/SitePaymentConfigResource.md +0 -2
  57. package/docs/StoreAssetForAssetableRequest.md +4 -0
  58. package/docs/StoreOverlayTemplateAssetRequest.md +4 -0
  59. package/docs/StoreProductCategoryRequest.md +4 -0
  60. package/docs/StoreProductChildRequestAssetsInner.md +4 -0
  61. package/docs/StoreSupplierRequest.md +4 -0
  62. package/docs/UpdateAssetForAssetableRequest.md +4 -0
  63. package/docs/UpdateOverlayTemplateAssetRequest.md +4 -0
  64. package/docs/UpdateProductCategoryRequest.md +4 -0
  65. package/docs/UpdateProductChildRequestAssetsInner.md +4 -0
  66. package/docs/UpdateSiteRequest.md +0 -2
  67. package/docs/UpdateSupplierRequest.md +4 -0
  68. package/package.json +1 -1
  69. package/src/apis/index.ts +0 -2
  70. package/src/models/AddressFrontendResource.ts +2 -3
  71. package/src/models/AssetFrontendResource.ts +17 -0
  72. package/src/models/AssetLiteResource.ts +19 -2
  73. package/src/models/AssetResource.ts +19 -2
  74. package/src/models/AssetWithOverlayLinkResource.ts +19 -2
  75. package/src/models/ExternalApiLogResource.ts +3 -2
  76. package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
  77. package/src/models/SitePaymentConfigResource.ts +0 -9
  78. package/src/models/StoreAssetForAssetableRequest.ts +20 -6
  79. package/src/models/StoreFrontendResource.ts +2 -3
  80. package/src/models/StoreListResource.ts +2 -3
  81. package/src/models/StoreOverlayTemplateAssetRequest.ts +20 -6
  82. package/src/models/StoreProductCategoryRequest.ts +16 -0
  83. package/src/models/StoreProductChildRequestAssetsInner.ts +20 -6
  84. package/src/models/StoreResource.ts +3 -2
  85. package/src/models/StoreSupplierRequest.ts +20 -6
  86. package/src/models/UpdateAssetForAssetableRequest.ts +16 -0
  87. package/src/models/UpdateOverlayTemplateAssetRequest.ts +20 -6
  88. package/src/models/UpdateProductCategoryRequest.ts +16 -0
  89. package/src/models/UpdateProductChildRequestAssetsInner.ts +20 -6
  90. package/src/models/UpdateSiteRequest.ts +0 -9
  91. package/src/models/UpdateSupplierRequest.ts +20 -6
  92. package/src/models/index.ts +0 -26
  93. package/dist/apis/CartsApi.d.ts +0 -190
  94. package/dist/apis/CartsApi.js +0 -747
  95. package/dist/apis/CustomersApi.d.ts +0 -48
  96. package/dist/apis/CustomersApi.js +0 -196
  97. package/dist/models/AttachCouponCartRequest.d.ts +0 -32
  98. package/dist/models/AttachCouponCartRequest.js +0 -51
  99. package/dist/models/AttachItemCartRequest.d.ts +0 -44
  100. package/dist/models/AttachItemCartRequest.js +0 -57
  101. package/dist/models/CartAddressType.d.ts +0 -25
  102. package/dist/models/CartAddressType.js +0 -51
  103. package/dist/models/CartItemListResource.d.ts +0 -51
  104. package/dist/models/CartItemListResource.js +0 -62
  105. package/dist/models/CartItemListResourceArrayResponse.d.ts +0 -33
  106. package/dist/models/CartItemListResourceArrayResponse.js +0 -50
  107. package/dist/models/CartListResource.d.ts +0 -101
  108. package/dist/models/CartListResource.js +0 -90
  109. package/dist/models/CartListResourceArrayResponse.d.ts +0 -33
  110. package/dist/models/CartListResourceArrayResponse.js +0 -50
  111. package/dist/models/CartOrderSource.d.ts +0 -29
  112. package/dist/models/CartOrderSource.js +0 -55
  113. package/dist/models/CartResource.d.ts +0 -155
  114. package/dist/models/CartResource.js +0 -118
  115. package/dist/models/CartResourceArrayResponse.d.ts +0 -33
  116. package/dist/models/CartResourceArrayResponse.js +0 -50
  117. package/dist/models/CartStatus.d.ts +0 -26
  118. package/dist/models/CartStatus.js +0 -52
  119. package/dist/models/CustomerListResource.d.ts +0 -69
  120. package/dist/models/CustomerListResource.js +0 -72
  121. package/dist/models/CustomerListResourceArrayResponse.d.ts +0 -33
  122. package/dist/models/CustomerListResourceArrayResponse.js +0 -50
  123. package/dist/models/CustomerResource.d.ts +0 -69
  124. package/dist/models/CustomerResource.js +0 -72
  125. package/dist/models/CustomerResourceArrayResponse.d.ts +0 -33
  126. package/dist/models/CustomerResourceArrayResponse.js +0 -50
  127. package/dist/models/IndexCartRequest.d.ts +0 -154
  128. package/dist/models/IndexCartRequest.js +0 -105
  129. package/dist/models/IndexCustomerRequest.d.ts +0 -99
  130. package/dist/models/IndexCustomerRequest.js +0 -83
  131. package/dist/models/PaginatedCartListResourceResponse.d.ts +0 -40
  132. package/dist/models/PaginatedCartListResourceResponse.js +0 -57
  133. package/dist/models/PaginatedCustomerListResourceResponse.d.ts +0 -40
  134. package/dist/models/PaginatedCustomerListResourceResponse.js +0 -57
  135. package/dist/models/StoreCartRequest.d.ts +0 -95
  136. package/dist/models/StoreCartRequest.js +0 -90
  137. package/dist/models/StoreCartRequestCustomer.d.ts +0 -50
  138. package/dist/models/StoreCartRequestCustomer.js +0 -55
  139. package/dist/models/StoreCartRequestItemsInner.d.ts +0 -44
  140. package/dist/models/StoreCartRequestItemsInner.js +0 -57
  141. package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -74
  142. package/dist/models/StoreCartRequestShippingAddress.js +0 -63
  143. package/dist/models/StoreCustomerRequest.d.ts +0 -56
  144. package/dist/models/StoreCustomerRequest.js +0 -65
  145. package/dist/models/UpdateCartRequest.d.ts +0 -70
  146. package/dist/models/UpdateCartRequest.js +0 -75
  147. package/dist/models/UpdateItemCartRequest.d.ts +0 -38
  148. package/dist/models/UpdateItemCartRequest.js +0 -53
  149. package/docs/AttachCouponCartRequest.md +0 -34
  150. package/docs/AttachItemCartRequest.md +0 -38
  151. package/docs/CartAddressType.md +0 -32
  152. package/docs/CartItemListResource.md +0 -40
  153. package/docs/CartItemListResourceArrayResponse.md +0 -34
  154. package/docs/CartListResource.md +0 -56
  155. package/docs/CartListResourceArrayResponse.md +0 -34
  156. package/docs/CartOrderSource.md +0 -32
  157. package/docs/CartResource.md +0 -74
  158. package/docs/CartResourceArrayResponse.md +0 -34
  159. package/docs/CartStatus.md +0 -32
  160. package/docs/CartsApi.md +0 -755
  161. package/docs/CustomerListResource.md +0 -46
  162. package/docs/CustomerListResourceArrayResponse.md +0 -34
  163. package/docs/CustomerResource.md +0 -46
  164. package/docs/CustomerResourceArrayResponse.md +0 -34
  165. package/docs/CustomersApi.md +0 -140
  166. package/docs/IndexCartRequest.md +0 -66
  167. package/docs/IndexCustomerRequest.md +0 -50
  168. package/docs/PaginatedCartListResourceResponse.md +0 -36
  169. package/docs/PaginatedCustomerListResourceResponse.md +0 -36
  170. package/docs/StoreCartRequest.md +0 -50
  171. package/docs/StoreCartRequestCustomer.md +0 -40
  172. package/docs/StoreCartRequestItemsInner.md +0 -38
  173. package/docs/StoreCartRequestShippingAddress.md +0 -48
  174. package/docs/StoreCustomerRequest.md +0 -42
  175. package/docs/UpdateCartRequest.md +0 -42
  176. package/docs/UpdateItemCartRequest.md +0 -36
  177. package/src/apis/CartsApi.ts +0 -626
  178. package/src/apis/CustomersApi.ts +0 -127
  179. package/src/models/AttachCouponCartRequest.ts +0 -66
  180. package/src/models/AttachItemCartRequest.ts +0 -83
  181. package/src/models/CartAddressType.ts +0 -53
  182. package/src/models/CartItemListResource.ts +0 -100
  183. package/src/models/CartItemListResourceArrayResponse.ts +0 -73
  184. package/src/models/CartListResource.ts +0 -183
  185. package/src/models/CartListResourceArrayResponse.ts +0 -73
  186. package/src/models/CartOrderSource.ts +0 -57
  187. package/src/models/CartResource.ts +0 -260
  188. package/src/models/CartResourceArrayResponse.ts +0 -73
  189. package/src/models/CartStatus.ts +0 -54
  190. package/src/models/CustomerListResource.ts +0 -126
  191. package/src/models/CustomerListResourceArrayResponse.ts +0 -73
  192. package/src/models/CustomerResource.ts +0 -126
  193. package/src/models/CustomerResourceArrayResponse.ts +0 -73
  194. package/src/models/IndexCartRequest.ts +0 -224
  195. package/src/models/IndexCustomerRequest.ts +0 -152
  196. package/src/models/PaginatedCartListResourceResponse.ts +0 -90
  197. package/src/models/PaginatedCustomerListResourceResponse.ts +0 -90
  198. package/src/models/StoreCartRequest.ts +0 -171
  199. package/src/models/StoreCartRequestCustomer.ts +0 -89
  200. package/src/models/StoreCartRequestItemsInner.ts +0 -83
  201. package/src/models/StoreCartRequestShippingAddress.ts +0 -121
  202. package/src/models/StoreCustomerRequest.ts +0 -101
  203. package/src/models/UpdateCartRequest.ts +0 -129
  204. package/src/models/UpdateItemCartRequest.ts +0 -74
@@ -1,73 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { CartListResource } from './CartListResource';
17
- import {
18
- CartListResourceFromJSON,
19
- CartListResourceFromJSONTyped,
20
- CartListResourceToJSON,
21
- CartListResourceToJSONTyped,
22
- } from './CartListResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface CartListResourceArrayResponse
28
- */
29
- export interface CartListResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<CartListResource>}
33
- * @memberof CartListResourceArrayResponse
34
- */
35
- data?: Array<CartListResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the CartListResourceArrayResponse interface.
40
- */
41
- export function instanceOfCartListResourceArrayResponse(value: object): value is CartListResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function CartListResourceArrayResponseFromJSON(json: any): CartListResourceArrayResponse {
46
- return CartListResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function CartListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartListResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CartListResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function CartListResourceArrayResponseToJSON(json: any): CartListResourceArrayResponse {
60
- return CartListResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function CartListResourceArrayResponseToJSONTyped(value?: CartListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(CartListResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,57 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- /**
17
- *
18
- * @export
19
- */
20
- export const CartOrderSource = {
21
- Checkout: 'checkout',
22
- Admin: 'admin',
23
- Phone: 'phone',
24
- Email: 'email',
25
- Ebay: 'ebay',
26
- InStore: 'in_store'
27
- } as const;
28
- export type CartOrderSource = typeof CartOrderSource[keyof typeof CartOrderSource];
29
-
30
-
31
- export function instanceOfCartOrderSource(value: any): boolean {
32
- for (const key in CartOrderSource) {
33
- if (Object.prototype.hasOwnProperty.call(CartOrderSource, key)) {
34
- if (CartOrderSource[key as keyof typeof CartOrderSource] === value) {
35
- return true;
36
- }
37
- }
38
- }
39
- return false;
40
- }
41
-
42
- export function CartOrderSourceFromJSON(json: any): CartOrderSource {
43
- return CartOrderSourceFromJSONTyped(json, false);
44
- }
45
-
46
- export function CartOrderSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartOrderSource {
47
- return json as CartOrderSource;
48
- }
49
-
50
- export function CartOrderSourceToJSON(value?: CartOrderSource | null): any {
51
- return value as any;
52
- }
53
-
54
- export function CartOrderSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): CartOrderSource {
55
- return value as CartOrderSource;
56
- }
57
-
@@ -1,260 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { SiteLiteResource } from './SiteLiteResource';
17
- import {
18
- SiteLiteResourceFromJSON,
19
- SiteLiteResourceFromJSONTyped,
20
- SiteLiteResourceToJSON,
21
- SiteLiteResourceToJSONTyped,
22
- } from './SiteLiteResource';
23
- import type { CartItemListResource } from './CartItemListResource';
24
- import {
25
- CartItemListResourceFromJSON,
26
- CartItemListResourceFromJSONTyped,
27
- CartItemListResourceToJSON,
28
- CartItemListResourceToJSONTyped,
29
- } from './CartItemListResource';
30
- import type { CustomerListResource } from './CustomerListResource';
31
- import {
32
- CustomerListResourceFromJSON,
33
- CustomerListResourceFromJSONTyped,
34
- CustomerListResourceToJSON,
35
- CustomerListResourceToJSONTyped,
36
- } from './CustomerListResource';
37
-
38
- /**
39
- *
40
- * @export
41
- * @interface CartResource
42
- */
43
- export interface CartResource {
44
- /**
45
- *
46
- * @type {number}
47
- * @memberof CartResource
48
- */
49
- id?: number | null;
50
- /**
51
- *
52
- * @type {number}
53
- * @memberof CartResource
54
- */
55
- siteId: number;
56
- /**
57
- *
58
- * @type {number}
59
- * @memberof CartResource
60
- */
61
- customerId?: number | null;
62
- /**
63
- *
64
- * @type {string}
65
- * @memberof CartResource
66
- */
67
- source: string;
68
- /**
69
- *
70
- * @type {string}
71
- * @memberof CartResource
72
- */
73
- sessionToken?: string | null;
74
- /**
75
- *
76
- * @type {string}
77
- * @memberof CartResource
78
- */
79
- paymentToken?: string | null;
80
- /**
81
- *
82
- * @type {Date}
83
- * @memberof CartResource
84
- */
85
- expiryDate: Date;
86
- /**
87
- *
88
- * @type {Date}
89
- * @memberof CartResource
90
- */
91
- checkoutCompletedAt?: Date | null;
92
- /**
93
- *
94
- * @type {Date}
95
- * @memberof CartResource
96
- */
97
- createdAt?: Date | null;
98
- /**
99
- *
100
- * @type {Date}
101
- * @memberof CartResource
102
- */
103
- updatedAt?: Date | null;
104
- /**
105
- *
106
- * @type {SiteLiteResource}
107
- * @memberof CartResource
108
- */
109
- site: SiteLiteResource | null;
110
- /**
111
- *
112
- * @type {CustomerListResource}
113
- * @memberof CartResource
114
- */
115
- customer: CustomerListResource | null;
116
- /**
117
- *
118
- * @type {Array<CartItemListResource>}
119
- * @memberof CartResource
120
- */
121
- cartItems: Array<CartItemListResource> | null;
122
- /**
123
- *
124
- * @type {object}
125
- * @memberof CartResource
126
- */
127
- coupons: object;
128
- /**
129
- *
130
- * @type {Array<string | null>}
131
- * @memberof CartResource
132
- */
133
- shippingAddress: Array<string | null>;
134
- /**
135
- *
136
- * @type {string}
137
- * @memberof CartResource
138
- */
139
- billingAddress?: string | null;
140
- /**
141
- *
142
- * @type {number}
143
- * @memberof CartResource
144
- */
145
- subtotal: number;
146
- /**
147
- *
148
- * @type {number}
149
- * @memberof CartResource
150
- */
151
- discountPreview: number;
152
- /**
153
- *
154
- * @type {number}
155
- * @memberof CartResource
156
- */
157
- shippingEstimate: number;
158
- /**
159
- *
160
- * @type {number}
161
- * @memberof CartResource
162
- */
163
- insuranceEstimate: number;
164
- /**
165
- *
166
- * @type {string}
167
- * @memberof CartResource
168
- */
169
- status: string;
170
- }
171
-
172
- /**
173
- * Check if a given object implements the CartResource interface.
174
- */
175
- export function instanceOfCartResource(value: object): value is CartResource {
176
- if (!('siteId' in value) || value['siteId'] === undefined) return false;
177
- if (!('source' in value) || value['source'] === undefined) return false;
178
- if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
179
- if (!('site' in value) || value['site'] === undefined) return false;
180
- if (!('customer' in value) || value['customer'] === undefined) return false;
181
- if (!('cartItems' in value) || value['cartItems'] === undefined) return false;
182
- if (!('coupons' in value) || value['coupons'] === undefined) return false;
183
- if (!('shippingAddress' in value) || value['shippingAddress'] === undefined) return false;
184
- if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
185
- if (!('discountPreview' in value) || value['discountPreview'] === undefined) return false;
186
- if (!('shippingEstimate' in value) || value['shippingEstimate'] === undefined) return false;
187
- if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined) return false;
188
- if (!('status' in value) || value['status'] === undefined) return false;
189
- return true;
190
- }
191
-
192
- export function CartResourceFromJSON(json: any): CartResource {
193
- return CartResourceFromJSONTyped(json, false);
194
- }
195
-
196
- export function CartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartResource {
197
- if (json == null) {
198
- return json;
199
- }
200
- return {
201
-
202
- 'id': json['id'] == null ? undefined : json['id'],
203
- 'siteId': json['site_id'],
204
- 'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
205
- 'source': json['source'],
206
- 'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
207
- 'paymentToken': json['payment_token'] == null ? undefined : json['payment_token'],
208
- 'expiryDate': (new Date(json['expiry_date'])),
209
- 'checkoutCompletedAt': json['checkout_completed_at'] == null ? undefined : (new Date(json['checkout_completed_at'])),
210
- 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
211
- 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
212
- 'site': SiteLiteResourceFromJSON(json['site']),
213
- 'customer': CustomerListResourceFromJSON(json['customer']),
214
- 'cartItems': (json['cart_items'] == null ? null : (json['cart_items'] as Array<any>).map(CartItemListResourceFromJSON)),
215
- 'coupons': json['coupons'],
216
- 'shippingAddress': json['shipping_address'],
217
- 'billingAddress': json['billing_address'] == null ? undefined : json['billing_address'],
218
- 'subtotal': json['subtotal'],
219
- 'discountPreview': json['discount_preview'],
220
- 'shippingEstimate': json['shipping_estimate'],
221
- 'insuranceEstimate': json['insurance_estimate'],
222
- 'status': json['status'],
223
- };
224
- }
225
-
226
- export function CartResourceToJSON(json: any): CartResource {
227
- return CartResourceToJSONTyped(json, false);
228
- }
229
-
230
- export function CartResourceToJSONTyped(value?: CartResource | null, ignoreDiscriminator: boolean = false): any {
231
- if (value == null) {
232
- return value;
233
- }
234
-
235
- return {
236
-
237
- 'id': value['id'],
238
- 'site_id': value['siteId'],
239
- 'customer_id': value['customerId'],
240
- 'source': value['source'],
241
- 'session_token': value['sessionToken'],
242
- 'payment_token': value['paymentToken'],
243
- 'expiry_date': value['expiryDate'].toISOString(),
244
- 'checkout_completed_at': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
245
- 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
246
- 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
247
- 'site': SiteLiteResourceToJSON(value['site']),
248
- 'customer': CustomerListResourceToJSON(value['customer']),
249
- 'cart_items': (value['cartItems'] == null ? null : (value['cartItems'] as Array<any>).map(CartItemListResourceToJSON)),
250
- 'coupons': value['coupons'],
251
- 'shipping_address': value['shippingAddress'],
252
- 'billing_address': value['billingAddress'],
253
- 'subtotal': value['subtotal'],
254
- 'discount_preview': value['discountPreview'],
255
- 'shipping_estimate': value['shippingEstimate'],
256
- 'insurance_estimate': value['insuranceEstimate'],
257
- 'status': value['status'],
258
- };
259
- }
260
-
@@ -1,73 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { CartResource } from './CartResource';
17
- import {
18
- CartResourceFromJSON,
19
- CartResourceFromJSONTyped,
20
- CartResourceToJSON,
21
- CartResourceToJSONTyped,
22
- } from './CartResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface CartResourceArrayResponse
28
- */
29
- export interface CartResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<CartResource>}
33
- * @memberof CartResourceArrayResponse
34
- */
35
- data?: Array<CartResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the CartResourceArrayResponse interface.
40
- */
41
- export function instanceOfCartResourceArrayResponse(value: object): value is CartResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function CartResourceArrayResponseFromJSON(json: any): CartResourceArrayResponse {
46
- return CartResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function CartResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CartResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function CartResourceArrayResponseToJSON(json: any): CartResourceArrayResponse {
60
- return CartResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function CartResourceArrayResponseToJSONTyped(value?: CartResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(CartResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,54 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- /**
17
- *
18
- * @export
19
- */
20
- export const CartStatus = {
21
- Completed: 'completed',
22
- Active: 'active',
23
- Expired: 'expired'
24
- } as const;
25
- export type CartStatus = typeof CartStatus[keyof typeof CartStatus];
26
-
27
-
28
- export function instanceOfCartStatus(value: any): boolean {
29
- for (const key in CartStatus) {
30
- if (Object.prototype.hasOwnProperty.call(CartStatus, key)) {
31
- if (CartStatus[key as keyof typeof CartStatus] === value) {
32
- return true;
33
- }
34
- }
35
- }
36
- return false;
37
- }
38
-
39
- export function CartStatusFromJSON(json: any): CartStatus {
40
- return CartStatusFromJSONTyped(json, false);
41
- }
42
-
43
- export function CartStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartStatus {
44
- return json as CartStatus;
45
- }
46
-
47
- export function CartStatusToJSON(value?: CartStatus | null): any {
48
- return value as any;
49
- }
50
-
51
- export function CartStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): CartStatus {
52
- return value as CartStatus;
53
- }
54
-
@@ -1,126 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { SiteLiteResource } from './SiteLiteResource';
17
- import {
18
- SiteLiteResourceFromJSON,
19
- SiteLiteResourceFromJSONTyped,
20
- SiteLiteResourceToJSON,
21
- SiteLiteResourceToJSONTyped,
22
- } from './SiteLiteResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface CustomerListResource
28
- */
29
- export interface CustomerListResource {
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof CustomerListResource
34
- */
35
- id?: number | null;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof CustomerListResource
40
- */
41
- firstName: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof CustomerListResource
46
- */
47
- lastName: string;
48
- /**
49
- *
50
- * @type {string}
51
- * @memberof CustomerListResource
52
- */
53
- email: string;
54
- /**
55
- *
56
- * @type {string}
57
- * @memberof CustomerListResource
58
- */
59
- phone: string;
60
- /**
61
- *
62
- * @type {string}
63
- * @memberof CustomerListResource
64
- */
65
- siteId?: string | null;
66
- /**
67
- *
68
- * @type {SiteLiteResource}
69
- * @memberof CustomerListResource
70
- */
71
- site: SiteLiteResource | null;
72
- }
73
-
74
- /**
75
- * Check if a given object implements the CustomerListResource interface.
76
- */
77
- export function instanceOfCustomerListResource(value: object): value is CustomerListResource {
78
- if (!('firstName' in value) || value['firstName'] === undefined) return false;
79
- if (!('lastName' in value) || value['lastName'] === undefined) return false;
80
- if (!('email' in value) || value['email'] === undefined) return false;
81
- if (!('phone' in value) || value['phone'] === undefined) return false;
82
- if (!('site' in value) || value['site'] === undefined) return false;
83
- return true;
84
- }
85
-
86
- export function CustomerListResourceFromJSON(json: any): CustomerListResource {
87
- return CustomerListResourceFromJSONTyped(json, false);
88
- }
89
-
90
- export function CustomerListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerListResource {
91
- if (json == null) {
92
- return json;
93
- }
94
- return {
95
-
96
- 'id': json['id'] == null ? undefined : json['id'],
97
- 'firstName': json['first_name'],
98
- 'lastName': json['last_name'],
99
- 'email': json['email'],
100
- 'phone': json['phone'],
101
- 'siteId': json['site_id'] == null ? undefined : json['site_id'],
102
- 'site': SiteLiteResourceFromJSON(json['site']),
103
- };
104
- }
105
-
106
- export function CustomerListResourceToJSON(json: any): CustomerListResource {
107
- return CustomerListResourceToJSONTyped(json, false);
108
- }
109
-
110
- export function CustomerListResourceToJSONTyped(value?: CustomerListResource | null, ignoreDiscriminator: boolean = false): any {
111
- if (value == null) {
112
- return value;
113
- }
114
-
115
- return {
116
-
117
- 'id': value['id'],
118
- 'first_name': value['firstName'],
119
- 'last_name': value['lastName'],
120
- 'email': value['email'],
121
- 'phone': value['phone'],
122
- 'site_id': value['siteId'],
123
- 'site': SiteLiteResourceToJSON(value['site']),
124
- };
125
- }
126
-