@digital8/lighting-illusions-ts-sdk 0.0.2056 → 0.0.2057

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 (176) hide show
  1. package/.openapi-generator/FILES +36 -16
  2. package/README.md +24 -13
  3. package/dist/apis/CartsApi.d.ts +8 -8
  4. package/dist/apis/CartsApi.js +8 -8
  5. package/dist/apis/CustomersApi.d.ts +17 -0
  6. package/dist/apis/CustomersApi.js +62 -0
  7. package/dist/apis/OrdersApi.d.ts +23 -8
  8. package/dist/apis/OrdersApi.js +69 -10
  9. package/dist/apis/ProductApi.d.ts +0 -16
  10. package/dist/apis/ProductApi.js +0 -59
  11. package/dist/apis/TransactionsApi.d.ts +3 -3
  12. package/dist/apis/TransactionsApi.js +2 -2
  13. package/dist/models/AddressResource.d.ts +0 -6
  14. package/dist/models/AddressResource.js +0 -2
  15. package/dist/models/AdminNoteResource.d.ts +12 -0
  16. package/dist/models/AdminNoteResource.js +8 -0
  17. package/dist/models/AdminOrderResource.d.ts +22 -4
  18. package/dist/models/AdminOrderResource.js +18 -6
  19. package/dist/models/AttachCartCouponRequest.d.ts +32 -0
  20. package/dist/models/AttachCartCouponRequest.js +51 -0
  21. package/dist/models/AttachCartItemRequest.d.ts +44 -0
  22. package/dist/models/{AttachLineItemRequest.js → AttachCartItemRequest.js} +13 -13
  23. package/dist/models/AttachOrderCouponRequest.d.ts +32 -0
  24. package/dist/models/AttachOrderCouponRequest.js +51 -0
  25. package/dist/models/AttachOrderLineItemRequest.d.ts +44 -0
  26. package/dist/models/AttachOrderLineItemRequest.js +57 -0
  27. package/dist/models/CartCouponLiteResource.d.ts +56 -0
  28. package/dist/models/CartCouponLiteResource.js +67 -0
  29. package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/CartCouponLiteResourceArrayResponse.js +50 -0
  31. package/dist/models/CartListResource.d.ts +48 -0
  32. package/dist/models/CartListResource.js +26 -0
  33. package/dist/models/CartResource.d.ts +5 -5
  34. package/dist/models/CartResource.js +5 -5
  35. package/dist/models/CreateTransactionRequest.d.ts +0 -6
  36. package/dist/models/CreateTransactionRequest.js +0 -2
  37. package/dist/models/CustomerListResource.d.ts +7 -0
  38. package/dist/models/CustomerListResource.js +5 -0
  39. package/dist/models/DetachCartCouponRequest.d.ts +32 -0
  40. package/dist/models/DetachCartCouponRequest.js +51 -0
  41. package/dist/models/DetachOrderCouponRequest.d.ts +32 -0
  42. package/dist/models/DetachOrderCouponRequest.js +51 -0
  43. package/dist/models/FrontendCartResource.d.ts +144 -0
  44. package/dist/models/FrontendCartResource.js +121 -0
  45. package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
  46. package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
  47. package/dist/models/FrontendCartResourceCouponsInner.d.ts +56 -0
  48. package/dist/models/FrontendCartResourceCouponsInner.js +57 -0
  49. package/dist/models/FrontendLineItemResource.d.ts +81 -0
  50. package/dist/models/FrontendLineItemResource.js +82 -0
  51. package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +33 -0
  52. package/dist/models/FrontendLineItemResourceArrayResponse.js +50 -0
  53. package/dist/models/FrontendOrderResource.d.ts +174 -0
  54. package/dist/models/FrontendOrderResource.js +139 -0
  55. package/dist/models/FrontendOrderResourceArrayResponse.d.ts +33 -0
  56. package/dist/models/FrontendOrderResourceArrayResponse.js +50 -0
  57. package/dist/models/PaymentSource.d.ts +1 -0
  58. package/dist/models/PaymentSource.js +2 -1
  59. package/dist/models/ProductChildLineItemLiteResource.d.ts +18 -0
  60. package/dist/models/ProductChildLineItemLiteResource.js +12 -0
  61. package/dist/models/SearchCartsRequest.d.ts +0 -1
  62. package/dist/models/SearchCartsRequest.js +1 -2
  63. package/dist/models/StoreFrontendResource.d.ts +2 -2
  64. package/dist/models/StoreFrontendResource.js +4 -4
  65. package/dist/models/StoreResource.d.ts +1 -1
  66. package/dist/models/StoreResource.js +1 -3
  67. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  68. package/dist/models/StoreSpecialDateResource.js +3 -1
  69. package/dist/models/TransactionLiteResource.d.ts +0 -12
  70. package/dist/models/TransactionLiteResource.js +0 -4
  71. package/dist/models/UpdateCartItemRequest.d.ts +38 -0
  72. package/dist/models/{UpdateLineItemRequest.js → UpdateCartItemRequest.js} +13 -13
  73. package/dist/models/UpdateCustomerRequest.d.ts +56 -0
  74. package/dist/models/UpdateCustomerRequest.js +63 -0
  75. package/dist/models/UpdateOrderLineItemRequest.d.ts +38 -0
  76. package/dist/models/UpdateOrderLineItemRequest.js +53 -0
  77. package/dist/models/UpdateOrderRequest.d.ts +0 -6
  78. package/dist/models/UpdateOrderRequest.js +0 -2
  79. package/dist/models/index.d.ts +18 -8
  80. package/dist/models/index.js +18 -8
  81. package/docs/AddressResource.md +0 -2
  82. package/docs/AdminNoteResource.md +4 -0
  83. package/docs/AdminOrderResource.md +9 -3
  84. package/docs/{AttachCouponRequest.md → AttachCartCouponRequest.md} +4 -4
  85. package/docs/{AttachLineItemRequest.md → AttachCartItemRequest.md} +4 -4
  86. package/docs/{SkuSearchProductChildRequest.md → AttachOrderCouponRequest.md} +6 -8
  87. package/docs/AttachOrderLineItemRequest.md +38 -0
  88. package/docs/CartCouponLiteResource.md +42 -0
  89. package/docs/{TransactionListResourceArrayResponse.md → CartCouponLiteResourceArrayResponse.md} +5 -5
  90. package/docs/CartListResource.md +16 -0
  91. package/docs/CartResource.md +3 -3
  92. package/docs/CartsApi.md +16 -16
  93. package/docs/CreateTransactionRequest.md +0 -2
  94. package/docs/CustomerListResource.md +2 -0
  95. package/docs/CustomersApi.md +69 -0
  96. package/docs/{DetachCouponRequest.md → DetachCartCouponRequest.md} +4 -4
  97. package/docs/DetachOrderCouponRequest.md +34 -0
  98. package/docs/FrontendCartResource.md +70 -0
  99. package/docs/FrontendCartResourceArrayResponse.md +34 -0
  100. package/docs/FrontendCartResourceCouponsInner.md +42 -0
  101. package/docs/FrontendLineItemResource.md +50 -0
  102. package/docs/FrontendLineItemResourceArrayResponse.md +34 -0
  103. package/docs/FrontendOrderResource.md +80 -0
  104. package/docs/FrontendOrderResourceArrayResponse.md +34 -0
  105. package/docs/OrdersApi.md +84 -18
  106. package/docs/ProductApi.md +0 -66
  107. package/docs/ProductChildLineItemLiteResource.md +6 -0
  108. package/docs/StoreSpecialDateResource.md +1 -1
  109. package/docs/TransactionLiteResource.md +0 -4
  110. package/docs/TransactionsApi.md +3 -3
  111. package/docs/{UpdateLineItemRequest.md → UpdateCartItemRequest.md} +4 -4
  112. package/docs/UpdateCustomerRequest.md +42 -0
  113. package/docs/UpdateOrderLineItemRequest.md +36 -0
  114. package/docs/UpdateOrderRequest.md +0 -2
  115. package/package.json +1 -1
  116. package/src/apis/CartsApi.ts +25 -25
  117. package/src/apis/CustomersApi.ts +58 -0
  118. package/src/apis/OrdersApi.ts +75 -26
  119. package/src/apis/ProductApi.ts +0 -49
  120. package/src/apis/TransactionsApi.ts +7 -7
  121. package/src/models/AddressResource.ts +0 -8
  122. package/src/models/AdminNoteResource.ts +18 -0
  123. package/src/models/AdminOrderResource.ts +42 -15
  124. package/src/models/AttachCartCouponRequest.ts +66 -0
  125. package/src/models/{AttachLineItemRequest.ts → AttachCartItemRequest.ts} +13 -13
  126. package/src/models/AttachOrderCouponRequest.ts +66 -0
  127. package/src/models/AttachOrderLineItemRequest.ts +83 -0
  128. package/src/models/CartCouponLiteResource.ts +102 -0
  129. package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
  130. package/src/models/CartListResource.ts +69 -0
  131. package/src/models/CartResource.ts +15 -15
  132. package/src/models/CreateTransactionRequest.ts +0 -8
  133. package/src/models/CustomerListResource.ts +16 -0
  134. package/src/models/DetachCartCouponRequest.ts +66 -0
  135. package/src/models/DetachOrderCouponRequest.ts +66 -0
  136. package/src/models/FrontendCartResource.ts +254 -0
  137. package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
  138. package/src/models/FrontendCartResourceCouponsInner.ts +97 -0
  139. package/src/models/FrontendLineItemResource.ts +145 -0
  140. package/src/models/FrontendLineItemResourceArrayResponse.ts +73 -0
  141. package/src/models/FrontendOrderResource.ts +298 -0
  142. package/src/models/FrontendOrderResourceArrayResponse.ts +73 -0
  143. package/src/models/PaymentSource.ts +2 -1
  144. package/src/models/ProductChildLineItemLiteResource.ts +27 -0
  145. package/src/models/SearchCartsRequest.ts +1 -2
  146. package/src/models/StoreFrontendResource.ts +5 -5
  147. package/src/models/StoreResource.ts +2 -3
  148. package/src/models/StoreSpecialDateResource.ts +4 -3
  149. package/src/models/TransactionLiteResource.ts +0 -16
  150. package/src/models/{UpdateLineItemRequest.ts → UpdateCartItemRequest.ts} +12 -12
  151. package/src/models/UpdateCustomerRequest.ts +100 -0
  152. package/src/models/UpdateOrderLineItemRequest.ts +74 -0
  153. package/src/models/UpdateOrderRequest.ts +0 -8
  154. package/src/models/index.ts +18 -8
  155. package/dist/models/AttachCouponRequest.d.ts +0 -32
  156. package/dist/models/AttachCouponRequest.js +0 -51
  157. package/dist/models/AttachLineItemRequest.d.ts +0 -44
  158. package/dist/models/DetachCouponRequest.d.ts +0 -32
  159. package/dist/models/DetachCouponRequest.js +0 -51
  160. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
  161. package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
  162. package/dist/models/SkuSearchProductChildRequest.d.ts +0 -38
  163. package/dist/models/SkuSearchProductChildRequest.js +0 -55
  164. package/dist/models/TransactionListResource.d.ts +0 -116
  165. package/dist/models/TransactionListResource.js +0 -97
  166. package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
  167. package/dist/models/TransactionListResourceArrayResponse.js +0 -50
  168. package/dist/models/UpdateLineItemRequest.d.ts +0 -38
  169. package/docs/PaginatedTransactionListResourceResponse.md +0 -36
  170. package/docs/TransactionListResource.md +0 -62
  171. package/src/models/AttachCouponRequest.ts +0 -66
  172. package/src/models/DetachCouponRequest.ts +0 -66
  173. package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
  174. package/src/models/SkuSearchProductChildRequest.ts +0 -75
  175. package/src/models/TransactionListResource.ts +0 -187
  176. package/src/models/TransactionListResourceArrayResponse.ts +0 -73
package/docs/CartsApi.md CHANGED
@@ -21,7 +21,7 @@ All URIs are relative to *http://localhost/api*
21
21
 
22
22
  ## attachCouponCart
23
23
 
24
- > CartResource attachCouponCart(cart, attachCouponRequest)
24
+ > CartResource attachCouponCart(cart, attachCartCouponRequest)
25
25
 
26
26
  Auto-generated: attachCouponCart
27
27
 
@@ -41,8 +41,8 @@ async function example() {
41
41
  const body = {
42
42
  // number | The id of the cart
43
43
  cart: 56,
44
- // AttachCouponRequest (optional)
45
- attachCouponRequest: ...,
44
+ // AttachCartCouponRequest (optional)
45
+ attachCartCouponRequest: ...,
46
46
  } satisfies AttachCouponCartRequest;
47
47
 
48
48
  try {
@@ -63,7 +63,7 @@ example().catch(console.error);
63
63
  | Name | Type | Description | Notes |
64
64
  |------------- | ------------- | ------------- | -------------|
65
65
  | **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
66
- | **attachCouponRequest** | [AttachCouponRequest](AttachCouponRequest.md) | | [Optional] |
66
+ | **attachCartCouponRequest** | [AttachCartCouponRequest](AttachCartCouponRequest.md) | | [Optional] |
67
67
 
68
68
  ### Return type
69
69
 
@@ -89,7 +89,7 @@ No authorization required
89
89
 
90
90
  ## attachItemCart
91
91
 
92
- > CartResource attachItemCart(cart, attachLineItemRequest)
92
+ > CartResource attachItemCart(cart, attachCartItemRequest)
93
93
 
94
94
  Auto-generated: attachItemCart
95
95
 
@@ -109,8 +109,8 @@ async function example() {
109
109
  const body = {
110
110
  // number | The id of the cart
111
111
  cart: 56,
112
- // AttachLineItemRequest (optional)
113
- attachLineItemRequest: ...,
112
+ // AttachCartItemRequest (optional)
113
+ attachCartItemRequest: ...,
114
114
  } satisfies AttachItemCartRequest;
115
115
 
116
116
  try {
@@ -131,7 +131,7 @@ example().catch(console.error);
131
131
  | Name | Type | Description | Notes |
132
132
  |------------- | ------------- | ------------- | -------------|
133
133
  | **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
134
- | **attachLineItemRequest** | [AttachLineItemRequest](AttachLineItemRequest.md) | | [Optional] |
134
+ | **attachCartItemRequest** | [AttachCartItemRequest](AttachCartItemRequest.md) | | [Optional] |
135
135
 
136
136
  ### Return type
137
137
 
@@ -222,7 +222,7 @@ No authorization required
222
222
 
223
223
  ## detachCouponCart
224
224
 
225
- > CartResource detachCouponCart(cart, detachCouponRequest)
225
+ > CartResource detachCouponCart(cart, detachCartCouponRequest)
226
226
 
227
227
  Auto-generated: detachCouponCart
228
228
 
@@ -242,8 +242,8 @@ async function example() {
242
242
  const body = {
243
243
  // number | The id of the cart
244
244
  cart: 56,
245
- // DetachCouponRequest (optional)
246
- detachCouponRequest: ...,
245
+ // DetachCartCouponRequest (optional)
246
+ detachCartCouponRequest: ...,
247
247
  } satisfies DetachCouponCartRequest;
248
248
 
249
249
  try {
@@ -264,7 +264,7 @@ example().catch(console.error);
264
264
  | Name | Type | Description | Notes |
265
265
  |------------- | ------------- | ------------- | -------------|
266
266
  | **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
267
- | **detachCouponRequest** | [DetachCouponRequest](DetachCouponRequest.md) | | [Optional] |
267
+ | **detachCartCouponRequest** | [DetachCartCouponRequest](DetachCartCouponRequest.md) | | [Optional] |
268
268
 
269
269
  ### Return type
270
270
 
@@ -751,7 +751,7 @@ No authorization required
751
751
 
752
752
  ## updateItemCart
753
753
 
754
- > CartResource updateItemCart(cart, lineItem, updateLineItemRequest)
754
+ > CartResource updateItemCart(cart, lineItem, updateCartItemRequest)
755
755
 
756
756
  Auto-generated: updateItemCart
757
757
 
@@ -773,8 +773,8 @@ async function example() {
773
773
  cart: 56,
774
774
  // number | The id of the lineItem
775
775
  lineItem: 56,
776
- // UpdateLineItemRequest (optional)
777
- updateLineItemRequest: ...,
776
+ // UpdateCartItemRequest (optional)
777
+ updateCartItemRequest: ...,
778
778
  } satisfies UpdateItemCartRequest;
779
779
 
780
780
  try {
@@ -796,7 +796,7 @@ example().catch(console.error);
796
796
  |------------- | ------------- | ------------- | -------------|
797
797
  | **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
798
798
  | **lineItem** | `number` | The id of the lineItem | [Defaults to `undefined`] |
799
- | **updateLineItemRequest** | [UpdateLineItemRequest](UpdateLineItemRequest.md) | | [Optional] |
799
+ | **updateCartItemRequest** | [UpdateCartItemRequest](UpdateCartItemRequest.md) | | [Optional] |
800
800
 
801
801
  ### Return type
802
802
 
@@ -11,7 +11,6 @@ Name | Type
11
11
  `amount` | number
12
12
  `surcharge` | number
13
13
  `paymentMethod` | string
14
- `description` | string
15
14
  `nonce` | string
16
15
  `deviceData` | string
17
16
 
@@ -27,7 +26,6 @@ const example = {
27
26
  "amount": null,
28
27
  "surcharge": null,
29
28
  "paymentMethod": null,
30
- "description": null,
31
29
  "nonce": null,
32
30
  "deviceData": null,
33
31
  } satisfies CreateTransactionRequest
@@ -12,6 +12,7 @@ Name | Type
12
12
  `email` | string
13
13
  `phone` | string
14
14
  `site` | [SiteLiteResource](SiteLiteResource.md)
15
+ `addresses` | [Array<LiAddressResource>](LiAddressResource.md)
15
16
 
16
17
  ## Example
17
18
 
@@ -26,6 +27,7 @@ const example = {
26
27
  "email": null,
27
28
  "phone": null,
28
29
  "site": null,
30
+ "addresses": null,
29
31
  } satisfies CustomerListResource
30
32
 
31
33
  console.log(example)
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost/api*
7
7
  | [**indexCustomer**](CustomersApi.md#indexcustomer) | **POST** /admin-api/customers/list | Auto-generated: indexCustomer |
8
8
  | [**showCustomer**](CustomersApi.md#showcustomer) | **GET** /admin-api/customers/{customer} | Auto-generated: showCustomer |
9
9
  | [**storeCustomer**](CustomersApi.md#storecustomer) | **POST** /admin-api/customers/create | Auto-generated: storeCustomer |
10
+ | [**updateCustomer**](CustomersApi.md#updatecustomeroperation) | **PUT** /admin-api/customers/{customer}/update | Auto-generated: updateCustomer |
10
11
 
11
12
 
12
13
 
@@ -204,3 +205,71 @@ No authorization required
204
205
 
205
206
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
206
207
 
208
+
209
+ ## updateCustomer
210
+
211
+ > CustomerResource updateCustomer(customer, updateCustomerRequest)
212
+
213
+ Auto-generated: updateCustomer
214
+
215
+ ### Example
216
+
217
+ ```ts
218
+ import {
219
+ Configuration,
220
+ CustomersApi,
221
+ } from '@digital8/lighting-illusions-ts-sdk';
222
+ import type { UpdateCustomerOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
223
+
224
+ async function example() {
225
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
226
+ const api = new CustomersApi();
227
+
228
+ const body = {
229
+ // number | The id of the customer
230
+ customer: 56,
231
+ // UpdateCustomerRequest (optional)
232
+ updateCustomerRequest: ...,
233
+ } satisfies UpdateCustomerOperationRequest;
234
+
235
+ try {
236
+ const data = await api.updateCustomer(body);
237
+ console.log(data);
238
+ } catch (error) {
239
+ console.error(error);
240
+ }
241
+ }
242
+
243
+ // Run the test
244
+ example().catch(console.error);
245
+ ```
246
+
247
+ ### Parameters
248
+
249
+
250
+ | Name | Type | Description | Notes |
251
+ |------------- | ------------- | ------------- | -------------|
252
+ | **customer** | `number` | The id of the customer | [Defaults to `undefined`] |
253
+ | **updateCustomerRequest** | [UpdateCustomerRequest](UpdateCustomerRequest.md) | | [Optional] |
254
+
255
+ ### Return type
256
+
257
+ [**CustomerResource**](CustomerResource.md)
258
+
259
+ ### Authorization
260
+
261
+ No authorization required
262
+
263
+ ### HTTP request headers
264
+
265
+ - **Content-Type**: `application/json`
266
+ - **Accept**: `application/json`
267
+
268
+
269
+ ### HTTP response details
270
+ | Status code | Description | Response headers |
271
+ |-------------|-------------|------------------|
272
+ | **200** | Successful resource response | - |
273
+
274
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
275
+
@@ -1,5 +1,5 @@
1
1
 
2
- # DetachCouponRequest
2
+ # DetachCartCouponRequest
3
3
 
4
4
 
5
5
  ## Properties
@@ -11,12 +11,12 @@ Name | Type
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import type { DetachCouponRequest } from '@digital8/lighting-illusions-ts-sdk'
14
+ import type { DetachCartCouponRequest } from '@digital8/lighting-illusions-ts-sdk'
15
15
 
16
16
  // TODO: Update the object below with actual values
17
17
  const example = {
18
18
  "couponIds": null,
19
- } satisfies DetachCouponRequest
19
+ } satisfies DetachCartCouponRequest
20
20
 
21
21
  console.log(example)
22
22
 
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
25
25
  console.log(exampleJSON)
26
26
 
27
27
  // Parse the JSON string back to an object
28
- const exampleParsed = JSON.parse(exampleJSON) as DetachCouponRequest
28
+ const exampleParsed = JSON.parse(exampleJSON) as DetachCartCouponRequest
29
29
  console.log(exampleParsed)
30
30
  ```
31
31
 
@@ -0,0 +1,34 @@
1
+
2
+ # DetachOrderCouponRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `couponId` | number
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { DetachOrderCouponRequest } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "couponId": null,
19
+ } satisfies DetachOrderCouponRequest
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as DetachOrderCouponRequest
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,70 @@
1
+
2
+ # FrontendCartResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `lifecycleStatus` | string
11
+ `siteId` | number
12
+ `sessionToken` | string
13
+ `guestEmail` | string
14
+ `customer` | [CustomerListResource](CustomerListResource.md)
15
+ `shippingType` | string
16
+ `shippingAddress` | [AddressResource](AddressResource.md)
17
+ `billingAddress` | [AddressResource](AddressResource.md)
18
+ `lineItems` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
19
+ `coupons` | [Array<FrontendCartResourceCouponsInner>](FrontendCartResourceCouponsInner.md)
20
+ `subtotal` | number
21
+ `promotionalDiscount` | number
22
+ `couponSubtotalDiscount` | number
23
+ `couponShippingDiscount` | number
24
+ `shipping` | number
25
+ `transitInsurance` | number
26
+ `gst` | number
27
+ `grandTotal` | number
28
+
29
+ ## Example
30
+
31
+ ```typescript
32
+ import type { FrontendCartResource } from '@digital8/lighting-illusions-ts-sdk'
33
+
34
+ // TODO: Update the object below with actual values
35
+ const example = {
36
+ "id": null,
37
+ "lifecycleStatus": null,
38
+ "siteId": null,
39
+ "sessionToken": null,
40
+ "guestEmail": null,
41
+ "customer": null,
42
+ "shippingType": null,
43
+ "shippingAddress": null,
44
+ "billingAddress": null,
45
+ "lineItems": null,
46
+ "coupons": null,
47
+ "subtotal": null,
48
+ "promotionalDiscount": null,
49
+ "couponSubtotalDiscount": null,
50
+ "couponShippingDiscount": null,
51
+ "shipping": null,
52
+ "transitInsurance": null,
53
+ "gst": null,
54
+ "grandTotal": null,
55
+ } satisfies FrontendCartResource
56
+
57
+ console.log(example)
58
+
59
+ // Convert the instance to a JSON string
60
+ const exampleJSON: string = JSON.stringify(example)
61
+ console.log(exampleJSON)
62
+
63
+ // Parse the JSON string back to an object
64
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResource
65
+ console.log(exampleParsed)
66
+ ```
67
+
68
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
69
+
70
+
@@ -0,0 +1,34 @@
1
+
2
+ # FrontendCartResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<FrontendCartResource>](FrontendCartResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { FrontendCartResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies FrontendCartResourceArrayResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResourceArrayResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,42 @@
1
+
2
+ # FrontendCartResourceCouponsInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `code` | string
11
+ `name` | string
12
+ `discount` | number
13
+ `appliesTo` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { FrontendCartResourceCouponsInner } from '@digital8/lighting-illusions-ts-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "id": null,
23
+ "code": null,
24
+ "name": null,
25
+ "discount": null,
26
+ "appliesTo": null,
27
+ } satisfies FrontendCartResourceCouponsInner
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResourceCouponsInner
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,50 @@
1
+
2
+ # FrontendLineItemResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `quantity` | number
11
+ `productPrice` | number
12
+ `subtotalAmount` | number
13
+ `totalAmount` | number
14
+ `promotionalSaving` | number
15
+ `isAvailable` | boolean
16
+ `isInStock` | boolean
17
+ `productChild` | [ProductChildLineItemLiteResource](ProductChildLineItemLiteResource.md)
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { FrontendLineItemResource } from '@digital8/lighting-illusions-ts-sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "id": null,
27
+ "quantity": null,
28
+ "productPrice": null,
29
+ "subtotalAmount": null,
30
+ "totalAmount": null,
31
+ "promotionalSaving": null,
32
+ "isAvailable": null,
33
+ "isInStock": null,
34
+ "productChild": null,
35
+ } satisfies FrontendLineItemResource
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendLineItemResource
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
+
50
+
@@ -0,0 +1,34 @@
1
+
2
+ # FrontendLineItemResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { FrontendLineItemResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies FrontendLineItemResourceArrayResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendLineItemResourceArrayResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,80 @@
1
+
2
+ # FrontendOrderResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `cartId` | number
11
+ `siteId` | number
12
+ `placedAt` | Date
13
+ `source` | string
14
+ `paymentToken` | string
15
+ `accessToken` | string
16
+ `shippingType` | string
17
+ `customer` | [CustomerListResource](CustomerListResource.md)
18
+ `status` | object
19
+ `shippingAddress` | [AddressResource](AddressResource.md)
20
+ `billingAddress` | [AddressResource](AddressResource.md)
21
+ `lineItems` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
22
+ `coupons` | [Array<CartCouponLiteResource>](CartCouponLiteResource.md)
23
+ `subtotal` | number
24
+ `promotionalDiscount` | number
25
+ `couponSubtotalDiscount` | number
26
+ `couponShippingDiscount` | number
27
+ `shipping` | number
28
+ `transitInsurance` | number
29
+ `gst` | number
30
+ `grandTotal` | number
31
+ `amountPaid` | number
32
+ `amountDue` | number
33
+
34
+ ## Example
35
+
36
+ ```typescript
37
+ import type { FrontendOrderResource } from '@digital8/lighting-illusions-ts-sdk'
38
+
39
+ // TODO: Update the object below with actual values
40
+ const example = {
41
+ "id": null,
42
+ "cartId": null,
43
+ "siteId": null,
44
+ "placedAt": null,
45
+ "source": null,
46
+ "paymentToken": null,
47
+ "accessToken": null,
48
+ "shippingType": null,
49
+ "customer": null,
50
+ "status": null,
51
+ "shippingAddress": null,
52
+ "billingAddress": null,
53
+ "lineItems": null,
54
+ "coupons": null,
55
+ "subtotal": null,
56
+ "promotionalDiscount": null,
57
+ "couponSubtotalDiscount": null,
58
+ "couponShippingDiscount": null,
59
+ "shipping": null,
60
+ "transitInsurance": null,
61
+ "gst": null,
62
+ "grandTotal": null,
63
+ "amountPaid": null,
64
+ "amountDue": null,
65
+ } satisfies FrontendOrderResource
66
+
67
+ console.log(example)
68
+
69
+ // Convert the instance to a JSON string
70
+ const exampleJSON: string = JSON.stringify(example)
71
+ console.log(exampleJSON)
72
+
73
+ // Parse the JSON string back to an object
74
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendOrderResource
75
+ console.log(exampleParsed)
76
+ ```
77
+
78
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
79
+
80
+
@@ -0,0 +1,34 @@
1
+
2
+ # FrontendOrderResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<FrontendOrderResource>](FrontendOrderResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { FrontendOrderResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies FrontendOrderResourceArrayResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendOrderResourceArrayResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+