@digital8/lighting-illusions-ts-sdk 0.0.1902 → 0.0.1904
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 +12 -0
- package/README.md +8 -2
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AddressResource.d.ts +2 -8
- package/dist/models/AddressResource.js +2 -4
- package/dist/models/CartCouponLiteResource.d.ts +44 -0
- package/dist/models/CartCouponLiteResource.js +59 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.js +50 -0
- package/dist/models/CartListResource.d.ts +18 -0
- package/dist/models/CartListResource.js +8 -0
- package/dist/models/CartResource.d.ts +18 -0
- package/dist/models/CartResource.js +8 -0
- package/dist/models/CustomerListResource.d.ts +6 -0
- package/dist/models/CustomerListResource.js +2 -0
- package/dist/models/CustomerResource.d.ts +6 -0
- package/dist/models/CustomerResource.js +2 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- 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/FrontendLineItemResource.d.ts +63 -0
- package/dist/models/FrontendLineItemResource.js +70 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.js +50 -0
- package/dist/models/ProductChildCartLiteResource.d.ts +6 -0
- package/dist/models/ProductChildCartLiteResource.js +4 -0
- package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -6
- package/dist/models/StoreCartRequestShippingAddress.js +0 -2
- 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 +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/StoreStoreRequestAddress.d.ts +0 -6
- package/dist/models/StoreStoreRequestAddress.js +0 -2
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/AddressResource.md +1 -3
- package/docs/CartCouponLiteResource.md +38 -0
- package/docs/CartCouponLiteResourceArrayResponse.md +34 -0
- package/docs/CartListResource.md +6 -0
- package/docs/CartResource.md +6 -0
- package/docs/CustomerListResource.md +2 -0
- package/docs/CustomerResource.md +2 -0
- package/docs/FrontendCartResource.md +68 -0
- package/docs/FrontendCartResourceArrayResponse.md +34 -0
- package/docs/FrontendLineItemResource.md +44 -0
- package/docs/FrontendLineItemResourceArrayResponse.md +34 -0
- package/docs/ProductChildCartLiteResource.md +2 -0
- package/docs/StoreCartRequestShippingAddress.md +0 -2
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/StoreStoreRequestAddress.md +0 -2
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AddressResource.ts +4 -12
- package/src/models/CartCouponLiteResource.ts +84 -0
- package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/CartListResource.ts +25 -0
- package/src/models/CartResource.ts +25 -0
- package/src/models/CustomerListResource.ts +8 -0
- package/src/models/CustomerResource.ts +8 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/FrontendCartResource.ts +246 -0
- package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
- package/src/models/FrontendLineItemResource.ts +118 -0
- package/src/models/FrontendLineItemResourceArrayResponse.ts +73 -0
- package/src/models/ProductChildCartLiteResource.ts +9 -0
- package/src/models/StoreCartRequestShippingAddress.ts +0 -8
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/StoreStoreRequestAddress.ts +0 -8
- package/src/models/index.ts +6 -0
|
@@ -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
|
return true;
|
|
@@ -51,7 +53,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
53
|
'phone': json['phone'],
|
|
52
54
|
'longitude': json['longitude'],
|
|
53
55
|
'latitude': json['latitude'],
|
|
54
|
-
'tagLine': json['tag_line']
|
|
56
|
+
'tagLine': json['tag_line'],
|
|
55
57
|
'email': json['email'],
|
|
56
58
|
'website': json['website'] == null ? undefined : json['website'],
|
|
57
59
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
@@ -36,8 +36,6 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -64,7 +62,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
62
|
'phone': json['phone'],
|
|
65
63
|
'longitude': json['longitude'],
|
|
66
64
|
'latitude': json['latitude'],
|
|
67
|
-
'tagLine': json['tag_line'],
|
|
65
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
68
66
|
'email': json['email'],
|
|
69
67
|
'website': json['website'],
|
|
70
68
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,8 +26,6 @@ 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;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateResource(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;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['display_start_date'],
|
|
53
51
|
'displayEndDate': json['display_end_date'],
|
|
@@ -44,7 +44,6 @@ function StoreStoreRequestAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
return json;
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
|
-
'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
|
|
48
47
|
'company': json['company'],
|
|
49
48
|
'line1': json['line_1'],
|
|
50
49
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -63,7 +62,6 @@ function StoreStoreRequestAddressToJSONTyped(value, ignoreDiscriminator) {
|
|
|
63
62
|
return value;
|
|
64
63
|
}
|
|
65
64
|
return {
|
|
66
|
-
'addressee_name': value['addresseeName'],
|
|
67
65
|
'company': value['company'],
|
|
68
66
|
'line_1': value['line1'],
|
|
69
67
|
'line_2': value['line2'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -42,6 +42,8 @@ export * from './AttributeResourceArrayResponse';
|
|
|
42
42
|
export * from './AttributeType';
|
|
43
43
|
export * from './AttributeValueResource';
|
|
44
44
|
export * from './AttributeValueResourceArrayResponse';
|
|
45
|
+
export * from './CartCouponLiteResource';
|
|
46
|
+
export * from './CartCouponLiteResourceArrayResponse';
|
|
45
47
|
export * from './CartCouponResource';
|
|
46
48
|
export * from './CartCouponResourceArrayResponse';
|
|
47
49
|
export * from './CartListResource';
|
|
@@ -98,6 +100,10 @@ export * from './ExternalApiLogResource';
|
|
|
98
100
|
export * from './ExternalApiLogResourceArrayResponse';
|
|
99
101
|
export * from './ExternalApiProvider';
|
|
100
102
|
export * from './ExternalApiSyncStatus';
|
|
103
|
+
export * from './FrontendCartResource';
|
|
104
|
+
export * from './FrontendCartResourceArrayResponse';
|
|
105
|
+
export * from './FrontendLineItemResource';
|
|
106
|
+
export * from './FrontendLineItemResourceArrayResponse';
|
|
101
107
|
export * from './GenericResponse';
|
|
102
108
|
export * from './GetAllAttributeRequest';
|
|
103
109
|
export * from './GetAllAttributeValueRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -60,6 +60,8 @@ __exportStar(require("./AttributeResourceArrayResponse"), exports);
|
|
|
60
60
|
__exportStar(require("./AttributeType"), exports);
|
|
61
61
|
__exportStar(require("./AttributeValueResource"), exports);
|
|
62
62
|
__exportStar(require("./AttributeValueResourceArrayResponse"), exports);
|
|
63
|
+
__exportStar(require("./CartCouponLiteResource"), exports);
|
|
64
|
+
__exportStar(require("./CartCouponLiteResourceArrayResponse"), exports);
|
|
63
65
|
__exportStar(require("./CartCouponResource"), exports);
|
|
64
66
|
__exportStar(require("./CartCouponResourceArrayResponse"), exports);
|
|
65
67
|
__exportStar(require("./CartListResource"), exports);
|
|
@@ -116,6 +118,10 @@ __exportStar(require("./ExternalApiLogResource"), exports);
|
|
|
116
118
|
__exportStar(require("./ExternalApiLogResourceArrayResponse"), exports);
|
|
117
119
|
__exportStar(require("./ExternalApiProvider"), exports);
|
|
118
120
|
__exportStar(require("./ExternalApiSyncStatus"), exports);
|
|
121
|
+
__exportStar(require("./FrontendCartResource"), exports);
|
|
122
|
+
__exportStar(require("./FrontendCartResourceArrayResponse"), exports);
|
|
123
|
+
__exportStar(require("./FrontendLineItemResource"), exports);
|
|
124
|
+
__exportStar(require("./FrontendLineItemResourceArrayResponse"), exports);
|
|
119
125
|
__exportStar(require("./GenericResponse"), exports);
|
|
120
126
|
__exportStar(require("./GetAllAttributeRequest"), exports);
|
|
121
127
|
__exportStar(require("./GetAllAttributeValueRequest"), exports);
|
package/docs/AddressResource.md
CHANGED
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
-
`sourceAddressId` |
|
|
11
|
-
`addresseeName` | string
|
|
10
|
+
`sourceAddressId` | string
|
|
12
11
|
`company` | string
|
|
13
12
|
`line1` | string
|
|
14
13
|
`line2` | string
|
|
@@ -27,7 +26,6 @@ import type { AddressResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
27
26
|
const example = {
|
|
28
27
|
"id": null,
|
|
29
28
|
"sourceAddressId": null,
|
|
30
|
-
"addresseeName": null,
|
|
31
29
|
"company": null,
|
|
32
30
|
"line1": null,
|
|
33
31
|
"line2": null,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# CartCouponLiteResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`code` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { CartCouponLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"id": null,
|
|
21
|
+
"code": null,
|
|
22
|
+
"name": null,
|
|
23
|
+
} satisfies CartCouponLiteResource
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as CartCouponLiteResource
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -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
|
+
|
package/docs/CartListResource.md
CHANGED
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
+
`siteId` | number
|
|
11
|
+
`customerId` | number
|
|
10
12
|
`guestEmail` | string
|
|
13
|
+
`adminId` | number
|
|
11
14
|
`source` | string
|
|
12
15
|
`shippingType` | string
|
|
13
16
|
`shippingSubtotal` | number
|
|
@@ -32,7 +35,10 @@ import type { CartListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
32
35
|
// TODO: Update the object below with actual values
|
|
33
36
|
const example = {
|
|
34
37
|
"id": null,
|
|
38
|
+
"siteId": null,
|
|
39
|
+
"customerId": null,
|
|
35
40
|
"guestEmail": null,
|
|
41
|
+
"adminId": null,
|
|
36
42
|
"source": null,
|
|
37
43
|
"shippingType": null,
|
|
38
44
|
"shippingSubtotal": null,
|
package/docs/CartResource.md
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
+
`siteId` | number
|
|
11
|
+
`customerId` | number
|
|
10
12
|
`guestEmail` | string
|
|
11
13
|
`source` | string
|
|
12
14
|
`sessionToken` | string
|
|
@@ -15,6 +17,7 @@ Name | Type
|
|
|
15
17
|
`checkoutCompletedAt` | Date
|
|
16
18
|
`createdAt` | Date
|
|
17
19
|
`updatedAt` | Date
|
|
20
|
+
`adminId` | number
|
|
18
21
|
`shippingType` | string
|
|
19
22
|
`shippingSubtotal` | number
|
|
20
23
|
`overrideShipping` | boolean
|
|
@@ -47,6 +50,8 @@ import type { CartResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
47
50
|
// TODO: Update the object below with actual values
|
|
48
51
|
const example = {
|
|
49
52
|
"id": null,
|
|
53
|
+
"siteId": null,
|
|
54
|
+
"customerId": null,
|
|
50
55
|
"guestEmail": null,
|
|
51
56
|
"source": null,
|
|
52
57
|
"sessionToken": null,
|
|
@@ -55,6 +60,7 @@ const example = {
|
|
|
55
60
|
"checkoutCompletedAt": null,
|
|
56
61
|
"createdAt": null,
|
|
57
62
|
"updatedAt": null,
|
|
63
|
+
"adminId": null,
|
|
58
64
|
"shippingType": null,
|
|
59
65
|
"shippingSubtotal": null,
|
|
60
66
|
"overrideShipping": null,
|
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`lastName` | string
|
|
12
12
|
`email` | string
|
|
13
13
|
`phone` | string
|
|
14
|
+
`siteId` | string
|
|
14
15
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
15
16
|
`addresses` | [Array<LiAddressResource>](LiAddressResource.md)
|
|
16
17
|
|
|
@@ -26,6 +27,7 @@ const example = {
|
|
|
26
27
|
"lastName": null,
|
|
27
28
|
"email": null,
|
|
28
29
|
"phone": null,
|
|
30
|
+
"siteId": null,
|
|
29
31
|
"site": null,
|
|
30
32
|
"addresses": null,
|
|
31
33
|
} satisfies CustomerListResource
|
package/docs/CustomerResource.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`lastName` | string
|
|
12
12
|
`email` | string
|
|
13
13
|
`phone` | string
|
|
14
|
+
`siteId` | string
|
|
14
15
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
15
16
|
`addresses` | [Array<LiAddressResource>](LiAddressResource.md)
|
|
16
17
|
|
|
@@ -26,6 +27,7 @@ const example = {
|
|
|
26
27
|
"lastName": null,
|
|
27
28
|
"email": null,
|
|
28
29
|
"phone": null,
|
|
30
|
+
"siteId": null,
|
|
29
31
|
"site": null,
|
|
30
32
|
"addresses": null,
|
|
31
33
|
} satisfies CustomerResource
|
|
@@ -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<CartCouponLiteResource>](CartCouponLiteResource.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,44 @@
|
|
|
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
|
+
`productChild` | [ProductChildCartLiteResource](ProductChildCartLiteResource.md)
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { FrontendLineItemResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"id": null,
|
|
24
|
+
"quantity": null,
|
|
25
|
+
"productPrice": null,
|
|
26
|
+
"subtotalAmount": null,
|
|
27
|
+
"totalAmount": null,
|
|
28
|
+
"productChild": null,
|
|
29
|
+
} satisfies FrontendLineItemResource
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as FrontendLineItemResource
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -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
|
+
|
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`sku` | string
|
|
12
12
|
`model` | string
|
|
13
13
|
`name` | string
|
|
14
|
+
`slug` | string
|
|
14
15
|
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
15
16
|
`label` | [LabelResource](LabelResource.md)
|
|
16
17
|
|
|
@@ -26,6 +27,7 @@ const example = {
|
|
|
26
27
|
"sku": null,
|
|
27
28
|
"model": null,
|
|
28
29
|
"name": null,
|
|
30
|
+
"slug": null,
|
|
29
31
|
"thumbnail": null,
|
|
30
32
|
"label": null,
|
|
31
33
|
} satisfies ProductChildCartLiteResource
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`addresseeName` | string
|
|
10
9
|
`company` | string
|
|
11
10
|
`line1` | string
|
|
12
11
|
`line2` | string
|
|
@@ -22,7 +21,6 @@ import type { StoreCartRequestShippingAddress } from '@digital8/lighting-illusio
|
|
|
22
21
|
|
|
23
22
|
// TODO: Update the object below with actual values
|
|
24
23
|
const example = {
|
|
25
|
-
"addresseeName": null,
|
|
26
24
|
"company": null,
|
|
27
25
|
"line1": null,
|
|
28
26
|
"line2": null,
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`addresseeName` | string
|
|
10
9
|
`company` | string
|
|
11
10
|
`line1` | string
|
|
12
11
|
`line2` | string
|
|
@@ -22,7 +21,6 @@ import type { StoreStoreRequestAddress } from '@digital8/lighting-illusions-ts-s
|
|
|
22
21
|
|
|
23
22
|
// TODO: Update the object below with actual values
|
|
24
23
|
const example = {
|
|
25
|
-
"addresseeName": null,
|
|
26
24
|
"company": null,
|
|
27
25
|
"line1": null,
|
|
28
26
|
"line2": null,
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressFrontendResource
|
|
38
38
|
*/
|
|
39
|
-
line2
|
|
39
|
+
line2: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -73,8 +73,8 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
77
76
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
77
|
+
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
78
78
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
79
79
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
80
80
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -93,9 +93,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
93
93
|
}
|
|
94
94
|
return {
|
|
95
95
|
|
|
96
|
-
'company': json['company'],
|
|
96
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
97
97
|
'line1': json['line1'],
|
|
98
|
-
'line2': json['line2']
|
|
98
|
+
'line2': json['line2'],
|
|
99
99
|
'postcode': json['postcode'],
|
|
100
100
|
'suburb': json['suburb'],
|
|
101
101
|
'country': json['country'],
|