@digital8/lighting-illusions-ts-sdk 0.0.1862 → 0.0.1863

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 (214) hide show
  1. package/.openapi-generator/FILES +2 -78
  2. package/README.md +3 -54
  3. package/dist/apis/index.d.ts +0 -2
  4. package/dist/apis/index.js +0 -2
  5. package/dist/models/AddressFrontendResource.d.ts +2 -2
  6. package/dist/models/AddressFrontendResource.js +2 -6
  7. package/dist/models/AddressResource.d.ts +0 -6
  8. package/dist/models/AddressResource.js +0 -2
  9. package/dist/models/IndexExternalApiLogRequest.d.ts +0 -6
  10. package/dist/models/IndexExternalApiLogRequest.js +0 -2
  11. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
  12. package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
  13. package/dist/models/SitePaymentConfigResource.d.ts +0 -6
  14. package/dist/models/SitePaymentConfigResource.js +0 -4
  15. package/dist/models/StoreFrontendResource.d.ts +1 -1
  16. package/dist/models/StoreFrontendResource.js +1 -3
  17. package/dist/models/StoreListResource.d.ts +13 -1
  18. package/dist/models/StoreListResource.js +12 -6
  19. package/dist/models/StoreResource.d.ts +13 -1
  20. package/dist/models/StoreResource.js +14 -8
  21. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  22. package/dist/models/StoreSpecialDateResource.js +5 -7
  23. package/dist/models/StoreStockType.d.ts +25 -0
  24. package/dist/models/StoreStockType.js +51 -0
  25. package/dist/models/StoreStoreRequest.d.ts +12 -0
  26. package/dist/models/StoreStoreRequest.js +4 -0
  27. package/dist/models/UpdateSiteRequest.d.ts +0 -6
  28. package/dist/models/UpdateSiteRequest.js +0 -4
  29. package/dist/models/UpdateStoreRequest.d.ts +12 -0
  30. package/dist/models/UpdateStoreRequest.js +4 -0
  31. package/dist/models/index.d.ts +1 -37
  32. package/dist/models/index.js +1 -37
  33. package/docs/AddressResource.md +0 -2
  34. package/docs/IndexExternalApiLogRequest.md +0 -2
  35. package/docs/ProductChildSiteDetailLiteResource.md +0 -2
  36. package/docs/SitePaymentConfigResource.md +0 -2
  37. package/docs/StoreListResource.md +4 -0
  38. package/docs/StoreResource.md +4 -0
  39. package/docs/StoreSpecialDateResource.md +1 -1
  40. package/docs/{AddressType.md → StoreStockType.md} +4 -4
  41. package/docs/StoreStoreRequest.md +4 -0
  42. package/docs/UpdateSiteRequest.md +0 -2
  43. package/docs/UpdateStoreRequest.md +4 -0
  44. package/package.json +1 -1
  45. package/src/apis/index.ts +0 -2
  46. package/src/models/AddressFrontendResource.ts +4 -6
  47. package/src/models/AddressResource.ts +0 -8
  48. package/src/models/IndexExternalApiLogRequest.ts +0 -8
  49. package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
  50. package/src/models/SitePaymentConfigResource.ts +0 -9
  51. package/src/models/StoreFrontendResource.ts +2 -3
  52. package/src/models/StoreListResource.ts +24 -7
  53. package/src/models/StoreResource.ts +26 -9
  54. package/src/models/StoreSpecialDateResource.ts +7 -8
  55. package/src/models/StoreStockType.ts +53 -0
  56. package/src/models/StoreStoreRequest.ts +16 -0
  57. package/src/models/UpdateSiteRequest.ts +0 -9
  58. package/src/models/UpdateStoreRequest.ts +16 -0
  59. package/src/models/index.ts +1 -37
  60. package/dist/apis/CartsApi.d.ts +0 -190
  61. package/dist/apis/CartsApi.js +0 -745
  62. package/dist/apis/CustomersApi.d.ts +0 -79
  63. package/dist/apis/CustomersApi.js +0 -316
  64. package/dist/models/AddressType.d.ts +0 -25
  65. package/dist/models/AddressType.js +0 -51
  66. package/dist/models/AttachCouponCartRequest.d.ts +0 -32
  67. package/dist/models/AttachCouponCartRequest.js +0 -51
  68. package/dist/models/AttachItemCartRequest.d.ts +0 -44
  69. package/dist/models/AttachItemCartRequest.js +0 -57
  70. package/dist/models/CartListResource.d.ts +0 -149
  71. package/dist/models/CartListResource.js +0 -112
  72. package/dist/models/CartListResourceArrayResponse.d.ts +0 -33
  73. package/dist/models/CartListResourceArrayResponse.js +0 -50
  74. package/dist/models/CartOrderSource.d.ts +0 -29
  75. package/dist/models/CartOrderSource.js +0 -55
  76. package/dist/models/CartResource.d.ts +0 -240
  77. package/dist/models/CartResource.js +0 -171
  78. package/dist/models/CartResourceArrayResponse.d.ts +0 -33
  79. package/dist/models/CartResourceArrayResponse.js +0 -50
  80. package/dist/models/CartStatus.d.ts +0 -26
  81. package/dist/models/CartStatus.js +0 -52
  82. package/dist/models/CustomerListResource.d.ts +0 -76
  83. package/dist/models/CustomerListResource.js +0 -77
  84. package/dist/models/CustomerListResourceArrayResponse.d.ts +0 -33
  85. package/dist/models/CustomerListResourceArrayResponse.js +0 -50
  86. package/dist/models/CustomerResource.d.ts +0 -76
  87. package/dist/models/CustomerResource.js +0 -77
  88. package/dist/models/CustomerResourceArrayResponse.d.ts +0 -33
  89. package/dist/models/CustomerResourceArrayResponse.js +0 -50
  90. package/dist/models/DetachCouponCartRequest.d.ts +0 -32
  91. package/dist/models/DetachCouponCartRequest.js +0 -51
  92. package/dist/models/DiscountType.d.ts +0 -26
  93. package/dist/models/DiscountType.js +0 -52
  94. package/dist/models/DiscountValueType.d.ts +0 -25
  95. package/dist/models/DiscountValueType.js +0 -51
  96. package/dist/models/IndexCartRequest.d.ts +0 -154
  97. package/dist/models/IndexCartRequest.js +0 -105
  98. package/dist/models/IndexCustomerRequest.d.ts +0 -99
  99. package/dist/models/IndexCustomerRequest.js +0 -83
  100. package/dist/models/LiAddressResource.d.ts +0 -86
  101. package/dist/models/LiAddressResource.js +0 -83
  102. package/dist/models/LiAddressResourceArrayResponse.d.ts +0 -33
  103. package/dist/models/LiAddressResourceArrayResponse.js +0 -50
  104. package/dist/models/LineItemDiscountResource.d.ts +0 -44
  105. package/dist/models/LineItemDiscountResource.js +0 -59
  106. package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +0 -33
  107. package/dist/models/LineItemDiscountResourceArrayResponse.js +0 -50
  108. package/dist/models/LineItemListResource.d.ts +0 -75
  109. package/dist/models/LineItemListResource.js +0 -78
  110. package/dist/models/LineItemListResourceArrayResponse.d.ts +0 -33
  111. package/dist/models/LineItemListResourceArrayResponse.js +0 -50
  112. package/dist/models/PaginatedCartListResourceResponse.d.ts +0 -40
  113. package/dist/models/PaginatedCartListResourceResponse.js +0 -57
  114. package/dist/models/PaginatedCustomerListResourceResponse.d.ts +0 -40
  115. package/dist/models/PaginatedCustomerListResourceResponse.js +0 -57
  116. package/dist/models/ProductChildCartLiteResource.d.ts +0 -70
  117. package/dist/models/ProductChildCartLiteResource.js +0 -77
  118. package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
  119. package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
  120. package/dist/models/ShippingType.d.ts +0 -28
  121. package/dist/models/ShippingType.js +0 -54
  122. package/dist/models/StoreCartRequest.d.ts +0 -160
  123. package/dist/models/StoreCartRequest.js +0 -112
  124. package/dist/models/StoreCartRequestCustomer.d.ts +0 -50
  125. package/dist/models/StoreCartRequestCustomer.js +0 -55
  126. package/dist/models/StoreCartRequestItemsInner.d.ts +0 -44
  127. package/dist/models/StoreCartRequestItemsInner.js +0 -57
  128. package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -68
  129. package/dist/models/StoreCartRequestShippingAddress.js +0 -61
  130. package/dist/models/StoreCustomerRequest.d.ts +0 -56
  131. package/dist/models/StoreCustomerRequest.js +0 -65
  132. package/dist/models/UpdateCartRequest.d.ts +0 -135
  133. package/dist/models/UpdateCartRequest.js +0 -99
  134. package/dist/models/UpdateCustomerRequest.d.ts +0 -56
  135. package/dist/models/UpdateCustomerRequest.js +0 -63
  136. package/dist/models/UpdateItemCartRequest.d.ts +0 -38
  137. package/dist/models/UpdateItemCartRequest.js +0 -53
  138. package/docs/AttachCouponCartRequest.md +0 -34
  139. package/docs/AttachItemCartRequest.md +0 -38
  140. package/docs/CartListResource.md +0 -72
  141. package/docs/CartListResourceArrayResponse.md +0 -34
  142. package/docs/CartOrderSource.md +0 -32
  143. package/docs/CartResource.md +0 -102
  144. package/docs/CartResourceArrayResponse.md +0 -34
  145. package/docs/CartStatus.md +0 -32
  146. package/docs/CartsApi.md +0 -755
  147. package/docs/CustomerListResource.md +0 -48
  148. package/docs/CustomerListResourceArrayResponse.md +0 -34
  149. package/docs/CustomerResource.md +0 -48
  150. package/docs/CustomerResourceArrayResponse.md +0 -34
  151. package/docs/CustomersApi.md +0 -275
  152. package/docs/DetachCouponCartRequest.md +0 -34
  153. package/docs/DiscountType.md +0 -32
  154. package/docs/DiscountValueType.md +0 -32
  155. package/docs/IndexCartRequest.md +0 -66
  156. package/docs/IndexCustomerRequest.md +0 -50
  157. package/docs/LiAddressResource.md +0 -52
  158. package/docs/LiAddressResourceArrayResponse.md +0 -34
  159. package/docs/LineItemDiscountResource.md +0 -38
  160. package/docs/LineItemDiscountResourceArrayResponse.md +0 -34
  161. package/docs/LineItemListResource.md +0 -48
  162. package/docs/LineItemListResourceArrayResponse.md +0 -34
  163. package/docs/PaginatedCartListResourceResponse.md +0 -36
  164. package/docs/PaginatedCustomerListResourceResponse.md +0 -36
  165. package/docs/ProductChildCartLiteResource.md +0 -46
  166. package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
  167. package/docs/ShippingType.md +0 -32
  168. package/docs/StoreCartRequest.md +0 -68
  169. package/docs/StoreCartRequestCustomer.md +0 -40
  170. package/docs/StoreCartRequestItemsInner.md +0 -38
  171. package/docs/StoreCartRequestShippingAddress.md +0 -46
  172. package/docs/StoreCustomerRequest.md +0 -42
  173. package/docs/UpdateCartRequest.md +0 -60
  174. package/docs/UpdateCustomerRequest.md +0 -42
  175. package/docs/UpdateItemCartRequest.md +0 -36
  176. package/src/apis/CartsApi.ts +0 -624
  177. package/src/apis/CustomersApi.ts +0 -232
  178. package/src/models/AddressType.ts +0 -53
  179. package/src/models/AttachCouponCartRequest.ts +0 -66
  180. package/src/models/AttachItemCartRequest.ts +0 -83
  181. package/src/models/CartListResource.ts +0 -250
  182. package/src/models/CartListResourceArrayResponse.ts +0 -73
  183. package/src/models/CartOrderSource.ts +0 -57
  184. package/src/models/CartResource.ts +0 -391
  185. package/src/models/CartResourceArrayResponse.ts +0 -73
  186. package/src/models/CartStatus.ts +0 -54
  187. package/src/models/CustomerListResource.ts +0 -142
  188. package/src/models/CustomerListResourceArrayResponse.ts +0 -73
  189. package/src/models/CustomerResource.ts +0 -142
  190. package/src/models/CustomerResourceArrayResponse.ts +0 -73
  191. package/src/models/DetachCouponCartRequest.ts +0 -66
  192. package/src/models/DiscountType.ts +0 -54
  193. package/src/models/DiscountValueType.ts +0 -53
  194. package/src/models/IndexCartRequest.ts +0 -224
  195. package/src/models/IndexCustomerRequest.ts +0 -152
  196. package/src/models/LiAddressResource.ts +0 -145
  197. package/src/models/LiAddressResourceArrayResponse.ts +0 -73
  198. package/src/models/LineItemDiscountResource.ts +0 -84
  199. package/src/models/LineItemDiscountResourceArrayResponse.ts +0 -73
  200. package/src/models/LineItemListResource.ts +0 -136
  201. package/src/models/LineItemListResourceArrayResponse.ts +0 -73
  202. package/src/models/PaginatedCartListResourceResponse.ts +0 -90
  203. package/src/models/PaginatedCustomerListResourceResponse.ts +0 -90
  204. package/src/models/ProductChildCartLiteResource.ts +0 -135
  205. package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
  206. package/src/models/ShippingType.ts +0 -56
  207. package/src/models/StoreCartRequest.ts +0 -252
  208. package/src/models/StoreCartRequestCustomer.ts +0 -89
  209. package/src/models/StoreCartRequestItemsInner.ts +0 -83
  210. package/src/models/StoreCartRequestShippingAddress.ts +0 -113
  211. package/src/models/StoreCustomerRequest.ts +0 -101
  212. package/src/models/UpdateCartRequest.ts +0 -211
  213. package/src/models/UpdateCustomerRequest.ts +0 -100
  214. 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,391 +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 { LineItemListResource } from './LineItemListResource';
24
- import {
25
- LineItemListResourceFromJSON,
26
- LineItemListResourceFromJSONTyped,
27
- LineItemListResourceToJSON,
28
- LineItemListResourceToJSONTyped,
29
- } from './LineItemListResource';
30
- import type { CustomerListResource } from './CustomerListResource';
31
- import {
32
- CustomerListResourceFromJSON,
33
- CustomerListResourceFromJSONTyped,
34
- CustomerListResourceToJSON,
35
- CustomerListResourceToJSONTyped,
36
- } from './CustomerListResource';
37
- import type { AddressResource } from './AddressResource';
38
- import {
39
- AddressResourceFromJSON,
40
- AddressResourceFromJSONTyped,
41
- AddressResourceToJSON,
42
- AddressResourceToJSONTyped,
43
- } from './AddressResource';
44
-
45
- /**
46
- *
47
- * @export
48
- * @interface CartResource
49
- */
50
- export interface CartResource {
51
- /**
52
- *
53
- * @type {number}
54
- * @memberof CartResource
55
- */
56
- id?: number | null;
57
- /**
58
- *
59
- * @type {number}
60
- * @memberof CartResource
61
- */
62
- siteId: number;
63
- /**
64
- *
65
- * @type {number}
66
- * @memberof CartResource
67
- */
68
- customerId?: number | null;
69
- /**
70
- *
71
- * @type {string}
72
- * @memberof CartResource
73
- */
74
- guestEmail?: string | null;
75
- /**
76
- *
77
- * @type {string}
78
- * @memberof CartResource
79
- */
80
- source: string;
81
- /**
82
- *
83
- * @type {string}
84
- * @memberof CartResource
85
- */
86
- sessionToken?: string | null;
87
- /**
88
- *
89
- * @type {string}
90
- * @memberof CartResource
91
- */
92
- paymentToken?: string | null;
93
- /**
94
- *
95
- * @type {Date}
96
- * @memberof CartResource
97
- */
98
- expiryDate: Date;
99
- /**
100
- *
101
- * @type {Date}
102
- * @memberof CartResource
103
- */
104
- checkoutCompletedAt?: Date | null;
105
- /**
106
- *
107
- * @type {Date}
108
- * @memberof CartResource
109
- */
110
- createdAt?: Date | null;
111
- /**
112
- *
113
- * @type {Date}
114
- * @memberof CartResource
115
- */
116
- updatedAt?: Date | null;
117
- /**
118
- *
119
- * @type {number}
120
- * @memberof CartResource
121
- */
122
- adminId?: number | null;
123
- /**
124
- *
125
- * @type {string}
126
- * @memberof CartResource
127
- */
128
- shippingType: string;
129
- /**
130
- *
131
- * @type {number}
132
- * @memberof CartResource
133
- */
134
- shippingSubtotal?: number | null;
135
- /**
136
- *
137
- * @type {boolean}
138
- * @memberof CartResource
139
- */
140
- overrideShipping: boolean;
141
- /**
142
- *
143
- * @type {number}
144
- * @memberof CartResource
145
- */
146
- insuranceAmount: number;
147
- /**
148
- *
149
- * @type {boolean}
150
- * @memberof CartResource
151
- */
152
- overrideInsurance: boolean;
153
- /**
154
- *
155
- * @type {boolean}
156
- * @memberof CartResource
157
- */
158
- useAsBillingAddress: boolean;
159
- /**
160
- *
161
- * @type {object}
162
- * @memberof CartResource
163
- */
164
- admin: object;
165
- /**
166
- *
167
- * @type {SiteLiteResource}
168
- * @memberof CartResource
169
- */
170
- site: SiteLiteResource | null;
171
- /**
172
- *
173
- * @type {CustomerListResource}
174
- * @memberof CartResource
175
- */
176
- customer: CustomerListResource | null;
177
- /**
178
- *
179
- * @type {Array<LineItemListResource>}
180
- * @memberof CartResource
181
- */
182
- lineItems: Array<LineItemListResource> | null;
183
- /**
184
- *
185
- * @type {object}
186
- * @memberof CartResource
187
- */
188
- coupons: object;
189
- /**
190
- *
191
- * @type {AddressResource}
192
- * @memberof CartResource
193
- */
194
- shippingAddress: AddressResource | null;
195
- /**
196
- *
197
- * @type {AddressResource}
198
- * @memberof CartResource
199
- */
200
- billingAddress: AddressResource | null;
201
- /**
202
- *
203
- * @type {number}
204
- * @memberof CartResource
205
- */
206
- discountPreview: number;
207
- /**
208
- *
209
- * @type {number}
210
- * @memberof CartResource
211
- */
212
- subtotal: number;
213
- /**
214
- *
215
- * @type {number}
216
- * @memberof CartResource
217
- */
218
- shippingAmount: number;
219
- /**
220
- *
221
- * @type {number}
222
- * @memberof CartResource
223
- */
224
- total: number;
225
- /**
226
- *
227
- * @type {number}
228
- * @memberof CartResource
229
- */
230
- discountAmount: number;
231
- /**
232
- *
233
- * @type {number}
234
- * @memberof CartResource
235
- */
236
- productDiscountAmount: number;
237
- /**
238
- *
239
- * @type {number}
240
- * @memberof CartResource
241
- */
242
- shippingDiscountAmount: number;
243
- /**
244
- *
245
- * @type {number}
246
- * @memberof CartResource
247
- */
248
- cartDiscountAmount: number;
249
- /**
250
- *
251
- * @type {number}
252
- * @memberof CartResource
253
- */
254
- finalTotalAmount: number;
255
- /**
256
- *
257
- * @type {string}
258
- * @memberof CartResource
259
- */
260
- status: string;
261
- }
262
-
263
- /**
264
- * Check if a given object implements the CartResource interface.
265
- */
266
- export function instanceOfCartResource(value: object): value is CartResource {
267
- if (!('siteId' in value) || value['siteId'] === undefined) return false;
268
- if (!('source' in value) || value['source'] === undefined) return false;
269
- if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
270
- if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
271
- if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
272
- if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined) return false;
273
- if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined) return false;
274
- if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
275
- if (!('admin' in value) || value['admin'] === undefined) return false;
276
- if (!('site' in value) || value['site'] === undefined) return false;
277
- if (!('customer' in value) || value['customer'] === undefined) return false;
278
- if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
279
- if (!('coupons' in value) || value['coupons'] === undefined) return false;
280
- if (!('shippingAddress' in value) || value['shippingAddress'] === undefined) return false;
281
- if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
282
- if (!('discountPreview' in value) || value['discountPreview'] === undefined) return false;
283
- if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
284
- if (!('shippingAmount' in value) || value['shippingAmount'] === undefined) return false;
285
- if (!('total' in value) || value['total'] === undefined) return false;
286
- if (!('discountAmount' in value) || value['discountAmount'] === undefined) return false;
287
- if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined) return false;
288
- if (!('shippingDiscountAmount' in value) || value['shippingDiscountAmount'] === undefined) return false;
289
- if (!('cartDiscountAmount' in value) || value['cartDiscountAmount'] === undefined) return false;
290
- if (!('finalTotalAmount' in value) || value['finalTotalAmount'] === undefined) return false;
291
- if (!('status' in value) || value['status'] === undefined) return false;
292
- return true;
293
- }
294
-
295
- export function CartResourceFromJSON(json: any): CartResource {
296
- return CartResourceFromJSONTyped(json, false);
297
- }
298
-
299
- export function CartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartResource {
300
- if (json == null) {
301
- return json;
302
- }
303
- return {
304
-
305
- 'id': json['id'] == null ? undefined : json['id'],
306
- 'siteId': json['site_id'],
307
- 'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
308
- 'guestEmail': json['guest_email'] == null ? undefined : json['guest_email'],
309
- 'source': json['source'],
310
- 'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
311
- 'paymentToken': json['payment_token'] == null ? undefined : json['payment_token'],
312
- 'expiryDate': (new Date(json['expiry_date'])),
313
- 'checkoutCompletedAt': json['checkout_completed_at'] == null ? undefined : (new Date(json['checkout_completed_at'])),
314
- 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
315
- 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
316
- 'adminId': json['admin_id'] == null ? undefined : json['admin_id'],
317
- 'shippingType': json['shipping_type'],
318
- 'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
319
- 'overrideShipping': json['override_shipping'],
320
- 'insuranceAmount': json['insurance_amount'],
321
- 'overrideInsurance': json['override_insurance'],
322
- 'useAsBillingAddress': json['use_as_billing_address'],
323
- 'admin': json['admin'],
324
- 'site': SiteLiteResourceFromJSON(json['site']),
325
- 'customer': CustomerListResourceFromJSON(json['customer']),
326
- 'lineItems': (json['line_items'] == null ? null : (json['line_items'] as Array<any>).map(LineItemListResourceFromJSON)),
327
- 'coupons': json['coupons'],
328
- 'shippingAddress': AddressResourceFromJSON(json['shipping_address']),
329
- 'billingAddress': AddressResourceFromJSON(json['billing_address']),
330
- 'discountPreview': json['discount_preview'],
331
- 'subtotal': json['subtotal'],
332
- 'shippingAmount': json['shipping_amount'],
333
- 'total': json['total'],
334
- 'discountAmount': json['discount_amount'],
335
- 'productDiscountAmount': json['product_discount_amount'],
336
- 'shippingDiscountAmount': json['shipping_discount_amount'],
337
- 'cartDiscountAmount': json['cart_discount_amount'],
338
- 'finalTotalAmount': json['final_total_amount'],
339
- 'status': json['status'],
340
- };
341
- }
342
-
343
- export function CartResourceToJSON(json: any): CartResource {
344
- return CartResourceToJSONTyped(json, false);
345
- }
346
-
347
- export function CartResourceToJSONTyped(value?: CartResource | null, ignoreDiscriminator: boolean = false): any {
348
- if (value == null) {
349
- return value;
350
- }
351
-
352
- return {
353
-
354
- 'id': value['id'],
355
- 'site_id': value['siteId'],
356
- 'customer_id': value['customerId'],
357
- 'guest_email': value['guestEmail'],
358
- 'source': value['source'],
359
- 'session_token': value['sessionToken'],
360
- 'payment_token': value['paymentToken'],
361
- 'expiry_date': value['expiryDate'].toISOString(),
362
- 'checkout_completed_at': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
363
- 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
364
- 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
365
- 'admin_id': value['adminId'],
366
- 'shipping_type': value['shippingType'],
367
- 'shipping_subtotal': value['shippingSubtotal'],
368
- 'override_shipping': value['overrideShipping'],
369
- 'insurance_amount': value['insuranceAmount'],
370
- 'override_insurance': value['overrideInsurance'],
371
- 'use_as_billing_address': value['useAsBillingAddress'],
372
- 'admin': value['admin'],
373
- 'site': SiteLiteResourceToJSON(value['site']),
374
- 'customer': CustomerListResourceToJSON(value['customer']),
375
- 'line_items': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
376
- 'coupons': value['coupons'],
377
- 'shipping_address': AddressResourceToJSON(value['shippingAddress']),
378
- 'billing_address': AddressResourceToJSON(value['billingAddress']),
379
- 'discount_preview': value['discountPreview'],
380
- 'subtotal': value['subtotal'],
381
- 'shipping_amount': value['shippingAmount'],
382
- 'total': value['total'],
383
- 'discount_amount': value['discountAmount'],
384
- 'product_discount_amount': value['productDiscountAmount'],
385
- 'shipping_discount_amount': value['shippingDiscountAmount'],
386
- 'cart_discount_amount': value['cartDiscountAmount'],
387
- 'final_total_amount': value['finalTotalAmount'],
388
- 'status': value['status'],
389
- };
390
- }
391
-
@@ -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
-