@digital8/lighting-illusions-ts-sdk 0.0.2124 → 0.0.2125
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.
- package/.openapi-generator/FILES +14 -0
- package/README.md +9 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +6 -2
- package/dist/models/AdminOrderLineItemResource.d.ts +1 -8
- package/dist/models/AdminOrderLineItemResource.js +1 -8
- package/dist/models/CartCouponLiteResource.d.ts +56 -0
- package/dist/models/CartCouponLiteResource.js +67 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.js +50 -0
- package/dist/models/FrontendCartResource.d.ts +138 -0
- package/dist/models/FrontendCartResource.js +119 -0
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
- package/dist/models/FrontendCartResourceCouponsInner.d.ts +56 -0
- package/dist/models/FrontendCartResourceCouponsInner.js +57 -0
- package/dist/models/FrontendLineItemResource.d.ts +81 -0
- package/dist/models/FrontendLineItemResource.js +82 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.js +50 -0
- package/dist/models/OrderFulfillmentResource.d.ts +3 -3
- package/dist/models/OrderFulfillmentResource.js +6 -4
- package/dist/models/OrderListResource.d.ts +2 -8
- package/dist/models/OrderListResource.js +3 -7
- package/dist/models/OrderStatusId.d.ts +5 -2
- package/dist/models/OrderStatusId.js +5 -2
- package/dist/models/ProductChildLineItemLiteResource.d.ts +18 -0
- package/dist/models/ProductChildLineItemLiteResource.js +12 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/docs/AdminOrderLineItemResource.md +0 -2
- package/docs/CartCouponLiteResource.md +42 -0
- package/docs/CartCouponLiteResourceArrayResponse.md +34 -0
- package/docs/FrontendCartResource.md +68 -0
- package/docs/FrontendCartResourceArrayResponse.md +34 -0
- package/docs/FrontendCartResourceCouponsInner.md +42 -0
- package/docs/FrontendLineItemResource.md +50 -0
- package/docs/FrontendLineItemResourceArrayResponse.md +34 -0
- package/docs/OrderListResource.md +2 -4
- package/docs/ProductChildLineItemLiteResource.md +6 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +6 -4
- package/src/models/AdminOrderLineItemResource.ts +2 -19
- package/src/models/CartCouponLiteResource.ts +102 -0
- package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/FrontendCartResource.ts +246 -0
- package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
- package/src/models/FrontendCartResourceCouponsInner.ts +97 -0
- package/src/models/FrontendLineItemResource.ts +145 -0
- package/src/models/FrontendLineItemResourceArrayResponse.ts +73 -0
- package/src/models/OrderFulfillmentResource.ts +8 -7
- package/src/models/OrderListResource.ts +5 -14
- package/src/models/OrderStatusId.ts +5 -2
- package/src/models/ProductChildLineItemLiteResource.ts +27 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +5 -5
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/index.ts +7 -0
|
@@ -14,16 +14,19 @@
|
|
|
14
14
|
* @export
|
|
15
15
|
*/
|
|
16
16
|
export declare const OrderStatusId: {
|
|
17
|
-
readonly _1: "1";
|
|
18
17
|
readonly _2: "2";
|
|
19
18
|
readonly _3: "3";
|
|
20
19
|
readonly _4: "4";
|
|
21
|
-
readonly
|
|
20
|
+
readonly _6: "6";
|
|
22
21
|
readonly _7: "7";
|
|
23
22
|
readonly _9: "9";
|
|
23
|
+
readonly _10: "10";
|
|
24
24
|
readonly _11: "11";
|
|
25
|
+
readonly _12: "12";
|
|
25
26
|
readonly _13: "13";
|
|
26
27
|
readonly _14: "14";
|
|
28
|
+
readonly _15: "15";
|
|
29
|
+
readonly _16: "16";
|
|
27
30
|
readonly _17: "17";
|
|
28
31
|
};
|
|
29
32
|
export type OrderStatusId = typeof OrderStatusId[keyof typeof OrderStatusId];
|
|
@@ -24,16 +24,19 @@ exports.OrderStatusIdToJSONTyped = OrderStatusIdToJSONTyped;
|
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
26
26
|
exports.OrderStatusId = {
|
|
27
|
-
_1: '1',
|
|
28
27
|
_2: '2',
|
|
29
28
|
_3: '3',
|
|
30
29
|
_4: '4',
|
|
31
|
-
|
|
30
|
+
_6: '6',
|
|
32
31
|
_7: '7',
|
|
33
32
|
_9: '9',
|
|
33
|
+
_10: '10',
|
|
34
34
|
_11: '11',
|
|
35
|
+
_12: '12',
|
|
35
36
|
_13: '13',
|
|
36
37
|
_14: '14',
|
|
38
|
+
_15: '15',
|
|
39
|
+
_16: '16',
|
|
37
40
|
_17: '17'
|
|
38
41
|
};
|
|
39
42
|
function instanceOfOrderStatusId(value) {
|
|
@@ -53,6 +53,24 @@ export interface ProductChildLineItemLiteResource {
|
|
|
53
53
|
* @memberof ProductChildLineItemLiteResource
|
|
54
54
|
*/
|
|
55
55
|
name: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ProductChildLineItemLiteResource
|
|
60
|
+
*/
|
|
61
|
+
parentName: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ProductChildLineItemLiteResource
|
|
66
|
+
*/
|
|
67
|
+
variantName: string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof ProductChildLineItemLiteResource
|
|
72
|
+
*/
|
|
73
|
+
slug: string;
|
|
56
74
|
/**
|
|
57
75
|
*
|
|
58
76
|
* @type {number}
|
|
@@ -36,6 +36,12 @@ function instanceOfProductChildLineItemLiteResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('name' in value) || value['name'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('parentName' in value) || value['parentName'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('variantName' in value) || value['variantName'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
44
|
+
return false;
|
|
39
45
|
if (!('stock' in value) || value['stock'] === undefined)
|
|
40
46
|
return false;
|
|
41
47
|
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
@@ -60,6 +66,9 @@ function ProductChildLineItemLiteResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
60
66
|
'model': json['model'],
|
|
61
67
|
'modelNumber': json['modelNumber'],
|
|
62
68
|
'name': json['name'],
|
|
69
|
+
'parentName': json['parentName'],
|
|
70
|
+
'variantName': json['variantName'],
|
|
71
|
+
'slug': json['slug'],
|
|
63
72
|
'stock': json['stock'],
|
|
64
73
|
'salePrice': json['salePrice'],
|
|
65
74
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
@@ -81,6 +90,9 @@ function ProductChildLineItemLiteResourceToJSONTyped(value, ignoreDiscriminator)
|
|
|
81
90
|
'model': value['model'],
|
|
82
91
|
'modelNumber': value['modelNumber'],
|
|
83
92
|
'name': value['name'],
|
|
93
|
+
'parentName': value['parentName'],
|
|
94
|
+
'variantName': value['variantName'],
|
|
95
|
+
'slug': value['slug'],
|
|
84
96
|
'stock': value['stock'],
|
|
85
97
|
'salePrice': value['salePrice'],
|
|
86
98
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
@@ -28,6 +28,8 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
@@ -54,7 +56,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'siteId': json['siteId'],
|
|
55
57
|
'name': json['name'],
|
|
56
58
|
'email': json['email'],
|
|
57
|
-
'website': json['website']
|
|
59
|
+
'website': json['website'],
|
|
58
60
|
'phone': json['phone'],
|
|
59
61
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
62
|
'latitude': json['latitude'],
|
|
@@ -33,6 +33,8 @@ function instanceOfStoreListResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
37
39
|
return false;
|
|
38
40
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -57,7 +59,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
59
|
'phone': json['phone'],
|
|
58
60
|
'longitude': json['longitude'],
|
|
59
61
|
'latitude': json['latitude'],
|
|
60
|
-
'tagLine': json['tagLine']
|
|
62
|
+
'tagLine': json['tagLine'],
|
|
61
63
|
'email': json['email'],
|
|
62
64
|
'website': json['website'],
|
|
63
65
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -60,7 +60,7 @@ export interface StoreResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof StoreResource
|
|
62
62
|
*/
|
|
63
|
-
tagLine
|
|
63
|
+
tagLine: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -72,7 +72,7 @@ export interface StoreResource {
|
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof StoreResource
|
|
74
74
|
*/
|
|
75
|
-
website
|
|
75
|
+
website?: string | null;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {number}
|
|
@@ -36,9 +36,9 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('
|
|
39
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
-
if (!('
|
|
41
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
42
42
|
return false;
|
|
43
43
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
44
44
|
return false;
|
|
@@ -66,9 +66,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
66
|
'phone': json['phone'],
|
|
67
67
|
'longitude': json['longitude'],
|
|
68
68
|
'latitude': json['latitude'],
|
|
69
|
-
'tagLine': json['tagLine']
|
|
69
|
+
'tagLine': json['tagLine'],
|
|
70
70
|
'email': json['email'],
|
|
71
|
-
'website': json['website'],
|
|
71
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
72
72
|
'netsuiteId': json['netsuiteId'],
|
|
73
73
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
74
74
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {object}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date: object;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ export * from './BlogFrontendResource';
|
|
|
59
59
|
export * from './BlogFrontendResourceArrayResponse';
|
|
60
60
|
export * from './BlogResource';
|
|
61
61
|
export * from './BlogResourceArrayResponse';
|
|
62
|
+
export * from './CartCouponLiteResource';
|
|
63
|
+
export * from './CartCouponLiteResourceArrayResponse';
|
|
62
64
|
export * from './CartCouponResource';
|
|
63
65
|
export * from './CartCouponResourceArrayResponse';
|
|
64
66
|
export * from './CartListResource';
|
|
@@ -164,10 +166,15 @@ export * from './ExternalApiLogResource';
|
|
|
164
166
|
export * from './ExternalApiLogResourceArrayResponse';
|
|
165
167
|
export * from './ExternalApiProvider';
|
|
166
168
|
export * from './ExternalApiSyncStatus';
|
|
169
|
+
export * from './FrontendCartResource';
|
|
170
|
+
export * from './FrontendCartResourceArrayResponse';
|
|
171
|
+
export * from './FrontendCartResourceCouponsInner';
|
|
167
172
|
export * from './FrontendComponentLiteResource';
|
|
168
173
|
export * from './FrontendComponentLiteResourceArrayResponse';
|
|
169
174
|
export * from './FrontendComponentResource';
|
|
170
175
|
export * from './FrontendComponentResourceArrayResponse';
|
|
176
|
+
export * from './FrontendLineItemResource';
|
|
177
|
+
export * from './FrontendLineItemResourceArrayResponse';
|
|
171
178
|
export * from './GenericResponse';
|
|
172
179
|
export * from './GetUniqueEndpointsRequest';
|
|
173
180
|
export * from './GlobalSearchCategoryResource';
|
package/dist/models/index.js
CHANGED
|
@@ -77,6 +77,8 @@ __exportStar(require("./BlogFrontendResource"), exports);
|
|
|
77
77
|
__exportStar(require("./BlogFrontendResourceArrayResponse"), exports);
|
|
78
78
|
__exportStar(require("./BlogResource"), exports);
|
|
79
79
|
__exportStar(require("./BlogResourceArrayResponse"), exports);
|
|
80
|
+
__exportStar(require("./CartCouponLiteResource"), exports);
|
|
81
|
+
__exportStar(require("./CartCouponLiteResourceArrayResponse"), exports);
|
|
80
82
|
__exportStar(require("./CartCouponResource"), exports);
|
|
81
83
|
__exportStar(require("./CartCouponResourceArrayResponse"), exports);
|
|
82
84
|
__exportStar(require("./CartListResource"), exports);
|
|
@@ -182,10 +184,15 @@ __exportStar(require("./ExternalApiLogResource"), exports);
|
|
|
182
184
|
__exportStar(require("./ExternalApiLogResourceArrayResponse"), exports);
|
|
183
185
|
__exportStar(require("./ExternalApiProvider"), exports);
|
|
184
186
|
__exportStar(require("./ExternalApiSyncStatus"), exports);
|
|
187
|
+
__exportStar(require("./FrontendCartResource"), exports);
|
|
188
|
+
__exportStar(require("./FrontendCartResourceArrayResponse"), exports);
|
|
189
|
+
__exportStar(require("./FrontendCartResourceCouponsInner"), exports);
|
|
185
190
|
__exportStar(require("./FrontendComponentLiteResource"), exports);
|
|
186
191
|
__exportStar(require("./FrontendComponentLiteResourceArrayResponse"), exports);
|
|
187
192
|
__exportStar(require("./FrontendComponentResource"), exports);
|
|
188
193
|
__exportStar(require("./FrontendComponentResourceArrayResponse"), exports);
|
|
194
|
+
__exportStar(require("./FrontendLineItemResource"), exports);
|
|
195
|
+
__exportStar(require("./FrontendLineItemResourceArrayResponse"), exports);
|
|
189
196
|
__exportStar(require("./GenericResponse"), exports);
|
|
190
197
|
__exportStar(require("./GetUniqueEndpointsRequest"), exports);
|
|
191
198
|
__exportStar(require("./GlobalSearchCategoryResource"), exports);
|
|
@@ -10,7 +10,6 @@ Name | Type
|
|
|
10
10
|
`quantity` | number
|
|
11
11
|
`productPrice` | number
|
|
12
12
|
`labelId` | number
|
|
13
|
-
`label` | [LabelLiteResource](LabelLiteResource.md)
|
|
14
13
|
`productDiscount` | number
|
|
15
14
|
`totalDiscount` | number
|
|
16
15
|
`lineSubtotal` | number
|
|
@@ -34,7 +33,6 @@ const example = {
|
|
|
34
33
|
"quantity": null,
|
|
35
34
|
"productPrice": null,
|
|
36
35
|
"labelId": null,
|
|
37
|
-
"label": null,
|
|
38
36
|
"productDiscount": null,
|
|
39
37
|
"totalDiscount": null,
|
|
40
38
|
"lineSubtotal": null,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# CartCouponLiteResource
|
|
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 { CartCouponLiteResource } 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 CartCouponLiteResource
|
|
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 CartCouponLiteResource
|
|
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,34 @@
|
|
|
1
|
+
|
|
2
|
+
# CartCouponLiteResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<CartCouponLiteResource>](CartCouponLiteResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { CartCouponLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies CartCouponLiteResourceArrayResponse
|
|
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 CartCouponLiteResourceArrayResponse
|
|
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,68 @@
|
|
|
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
|
+
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
14
|
+
`shippingType` | string
|
|
15
|
+
`shippingAddress` | [AddressResource](AddressResource.md)
|
|
16
|
+
`billingAddress` | [AddressResource](AddressResource.md)
|
|
17
|
+
`lineItems` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
|
|
18
|
+
`coupons` | [Array<FrontendCartResourceCouponsInner>](FrontendCartResourceCouponsInner.md)
|
|
19
|
+
`subtotal` | number
|
|
20
|
+
`promotionalDiscount` | number
|
|
21
|
+
`couponSubtotalDiscount` | number
|
|
22
|
+
`couponShippingDiscount` | number
|
|
23
|
+
`shipping` | number
|
|
24
|
+
`transitInsurance` | number
|
|
25
|
+
`gst` | number
|
|
26
|
+
`grandTotal` | number
|
|
27
|
+
|
|
28
|
+
## Example
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import type { FrontendCartResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
32
|
+
|
|
33
|
+
// TODO: Update the object below with actual values
|
|
34
|
+
const example = {
|
|
35
|
+
"id": null,
|
|
36
|
+
"lifecycleStatus": null,
|
|
37
|
+
"siteId": null,
|
|
38
|
+
"sessionToken": null,
|
|
39
|
+
"customer": null,
|
|
40
|
+
"shippingType": null,
|
|
41
|
+
"shippingAddress": null,
|
|
42
|
+
"billingAddress": null,
|
|
43
|
+
"lineItems": null,
|
|
44
|
+
"coupons": null,
|
|
45
|
+
"subtotal": null,
|
|
46
|
+
"promotionalDiscount": null,
|
|
47
|
+
"couponSubtotalDiscount": null,
|
|
48
|
+
"couponShippingDiscount": null,
|
|
49
|
+
"shipping": null,
|
|
50
|
+
"transitInsurance": null,
|
|
51
|
+
"gst": null,
|
|
52
|
+
"grandTotal": null,
|
|
53
|
+
} satisfies FrontendCartResource
|
|
54
|
+
|
|
55
|
+
console.log(example)
|
|
56
|
+
|
|
57
|
+
// Convert the instance to a JSON string
|
|
58
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
59
|
+
console.log(exampleJSON)
|
|
60
|
+
|
|
61
|
+
// Parse the JSON string back to an object
|
|
62
|
+
const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResource
|
|
63
|
+
console.log(exampleParsed)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
67
|
+
|
|
68
|
+
|
|
@@ -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
|
+
|
|
@@ -17,8 +17,7 @@ Name | Type
|
|
|
17
17
|
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
18
18
|
`status` | [OrderStatusLiteResource](OrderStatusLiteResource.md)
|
|
19
19
|
`lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
|
|
20
|
-
`
|
|
21
|
-
`transactionsCount` | number
|
|
20
|
+
`transactions` | [Array<TransactionLiteResource>](TransactionLiteResource.md)
|
|
22
21
|
|
|
23
22
|
## Example
|
|
24
23
|
|
|
@@ -38,8 +37,7 @@ const example = {
|
|
|
38
37
|
"customer": null,
|
|
39
38
|
"status": null,
|
|
40
39
|
"lineItems": null,
|
|
41
|
-
"
|
|
42
|
-
"transactionsCount": null,
|
|
40
|
+
"transactions": null,
|
|
43
41
|
} satisfies OrderListResource
|
|
44
42
|
|
|
45
43
|
console.log(example)
|
|
@@ -12,6 +12,9 @@ Name | Type
|
|
|
12
12
|
`model` | string
|
|
13
13
|
`modelNumber` | string
|
|
14
14
|
`name` | string
|
|
15
|
+
`parentName` | string
|
|
16
|
+
`variantName` | string
|
|
17
|
+
`slug` | string
|
|
15
18
|
`stock` | number
|
|
16
19
|
`salePrice` | number
|
|
17
20
|
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
@@ -30,6 +33,9 @@ const example = {
|
|
|
30
33
|
"model": null,
|
|
31
34
|
"modelNumber": null,
|
|
32
35
|
"name": null,
|
|
36
|
+
"parentName": null,
|
|
37
|
+
"variantName": null,
|
|
38
|
+
"slug": null,
|
|
33
39
|
"stock": null,
|
|
34
40
|
"salePrice": null,
|
|
35
41
|
"thumbnail": null,
|