@digital8/lighting-illusions-ts-sdk 0.0.2021 → 0.0.2023
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 +4 -6
- package/README.md +4 -5
- package/dist/models/CartResource.d.ts +5 -5
- package/dist/models/CartResource.js +5 -5
- package/dist/models/CreateCartRequest.d.ts +12 -7
- package/dist/models/CreateCartRequest.js +7 -4
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/LineItemListResource.d.ts +3 -3
- package/dist/models/LineItemListResource.js +3 -3
- package/dist/models/ProductChildLineItemLiteResource.d.ts +88 -0
- package/dist/models/{ProductChildCartLiteResource.js → ProductChildLineItemLiteResource.js} +13 -13
- package/dist/models/ProductChildLineItemLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildLineItemLiteResourceArrayResponse.js +50 -0
- package/dist/models/SearchCartsRequest.d.ts +6 -15
- package/dist/models/SearchCartsRequest.js +3 -11
- 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 +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/UpdateCartRequest.d.ts +18 -7
- package/dist/models/UpdateCartRequest.js +6 -3
- package/dist/models/UpdateOrderRequest.d.ts +2 -2
- package/dist/models/UpdateOrderRequest.js +6 -2
- package/dist/models/index.d.ts +2 -3
- package/dist/models/index.js +2 -3
- package/docs/CartResource.md +2 -2
- package/docs/CreateCartRequest.md +4 -2
- package/docs/LineItemListResource.md +1 -1
- package/docs/{ProductChildCartLiteResource.md → ProductChildLineItemLiteResource.md} +4 -4
- package/docs/{ProductChildCartLiteResourceArrayResponse.md → ProductChildLineItemLiteResourceArrayResponse.md} +5 -5
- package/docs/SearchCartsRequest.md +2 -2
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/UpdateCartRequest.md +6 -2
- package/package.json +1 -1
- package/src/models/CartResource.ts +14 -14
- package/src/models/CreateCartRequest.ts +18 -16
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/LineItemListResource.ts +10 -10
- package/src/models/{ProductChildCartLiteResource.ts → ProductChildLineItemLiteResource.ts} +20 -20
- package/src/models/ProductChildLineItemLiteResourceArrayResponse.ts +73 -0
- package/src/models/SearchCartsRequest.ts +8 -18
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/UpdateCartRequest.ts +24 -15
- package/src/models/UpdateOrderRequest.ts +6 -4
- package/src/models/index.ts +2 -3
- package/dist/models/CreateCartRequestCustomer.d.ts +0 -50
- package/dist/models/CreateCartRequestCustomer.js +0 -55
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -88
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
- package/docs/CreateCartRequestCustomer.md +0 -40
- package/src/models/CreateCartRequestCustomer.ts +0 -89
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.SearchCartsRequestSortDirectionEnum = exports.SearchCartsRequestSortByEnum = void 0;
|
|
17
17
|
exports.instanceOfSearchCartsRequest = instanceOfSearchCartsRequest;
|
|
18
18
|
exports.SearchCartsRequestFromJSON = SearchCartsRequestFromJSON;
|
|
19
19
|
exports.SearchCartsRequestFromJSONTyped = SearchCartsRequestFromJSONTyped;
|
|
@@ -34,14 +34,6 @@ exports.SearchCartsRequestSortDirectionEnum = {
|
|
|
34
34
|
Asc: 'asc',
|
|
35
35
|
Desc: 'desc'
|
|
36
36
|
};
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
exports.SearchCartsRequestStatusEnum = {
|
|
41
|
-
Active: 'active',
|
|
42
|
-
Expired: 'expired',
|
|
43
|
-
Completed: 'completed'
|
|
44
|
-
};
|
|
45
37
|
/**
|
|
46
38
|
* Check if a given object implements the SearchCartsRequest interface.
|
|
47
39
|
*/
|
|
@@ -63,6 +55,7 @@ function SearchCartsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
55
|
'page': json['page'] == null ? undefined : json['page'],
|
|
64
56
|
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
65
57
|
'source': json['source'] == null ? undefined : json['source'],
|
|
58
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
66
59
|
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
67
60
|
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
68
61
|
'beforeExpiryDate': json['before_expiry_date'] == null ? undefined : (new Date(json['before_expiry_date'])),
|
|
@@ -72,7 +65,6 @@ function SearchCartsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
65
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
73
66
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
74
67
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
75
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
76
68
|
};
|
|
77
69
|
}
|
|
78
70
|
function SearchCartsRequestToJSON(json) {
|
|
@@ -91,6 +83,7 @@ function SearchCartsRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
91
83
|
'page': value['page'],
|
|
92
84
|
'site_id': value['siteId'],
|
|
93
85
|
'source': value['source'],
|
|
86
|
+
'status': value['status'],
|
|
94
87
|
'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
|
|
95
88
|
'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
|
|
96
89
|
'before_expiry_date': value['beforeExpiryDate'] == null ? value['beforeExpiryDate'] : value['beforeExpiryDate'].toISOString(),
|
|
@@ -100,6 +93,5 @@ function SearchCartsRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
100
93
|
'related_id': value['relatedId'],
|
|
101
94
|
'related_type': value['relatedType'],
|
|
102
95
|
'includes_relations': value['includesRelations'],
|
|
103
|
-
'status': value['status'],
|
|
104
96
|
};
|
|
105
97
|
}
|
|
@@ -34,6 +34,8 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
38
|
+
return false;
|
|
37
39
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
38
40
|
return false;
|
|
39
41
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -57,7 +59,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
58
60
|
'latitude': json['latitude'],
|
|
59
61
|
'longitude': json['longitude'],
|
|
60
|
-
'tagLine': json['tagLine']
|
|
62
|
+
'tagLine': json['tagLine'],
|
|
61
63
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
62
64
|
'specialDates': json['specialDates'],
|
|
63
65
|
'suppliers': json['suppliers'],
|
|
@@ -33,8 +33,6 @@ 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;
|
|
38
36
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
37
|
return false;
|
|
40
38
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -59,7 +57,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
57
|
'phone': json['phone'],
|
|
60
58
|
'longitude': json['longitude'],
|
|
61
59
|
'latitude': json['latitude'],
|
|
62
|
-
'tagLine': json['tagLine'],
|
|
60
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
63
61
|
'email': json['email'],
|
|
64
62
|
'website': json['website'],
|
|
65
63
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -40,8 +40,6 @@ function instanceOfStoreResource(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
-
return false;
|
|
45
43
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
46
44
|
return false;
|
|
47
45
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -70,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
68
|
'latitude': json['latitude'],
|
|
71
69
|
'tagLine': json['tagLine'],
|
|
72
70
|
'email': json['email'],
|
|
73
|
-
'website': json['website'],
|
|
71
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
74
72
|
'netsuiteId': json['netsuiteId'],
|
|
75
73
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
76
74
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -26,6 +26,8 @@ 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;
|
|
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 StoreSpecialDateResourceFromJSONTyped(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'],
|
|
@@ -10,13 +10,30 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { CreateCartRequestShippingAddress } from './CreateCartRequestShippingAddress';
|
|
13
|
-
import type { CreateCartRequestCustomer } from './CreateCartRequestCustomer';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
17
16
|
* @interface UpdateCartRequest
|
|
18
17
|
*/
|
|
19
18
|
export interface UpdateCartRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateCartRequest
|
|
23
|
+
*/
|
|
24
|
+
token?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateCartRequest
|
|
29
|
+
*/
|
|
30
|
+
sessionToken?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UpdateCartRequest
|
|
35
|
+
*/
|
|
36
|
+
paymentToken?: string;
|
|
20
37
|
/**
|
|
21
38
|
*
|
|
22
39
|
* @type {number}
|
|
@@ -35,12 +52,6 @@ export interface UpdateCartRequest {
|
|
|
35
52
|
* @memberof UpdateCartRequest
|
|
36
53
|
*/
|
|
37
54
|
guestEmail?: string | null;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {CreateCartRequestCustomer}
|
|
41
|
-
* @memberof UpdateCartRequest
|
|
42
|
-
*/
|
|
43
|
-
customer?: CreateCartRequestCustomer;
|
|
44
55
|
/**
|
|
45
56
|
*
|
|
46
57
|
* @type {UpdateCartRequestShippingTypeEnum}
|
|
@@ -20,7 +20,6 @@ exports.UpdateCartRequestFromJSONTyped = UpdateCartRequestFromJSONTyped;
|
|
|
20
20
|
exports.UpdateCartRequestToJSON = UpdateCartRequestToJSON;
|
|
21
21
|
exports.UpdateCartRequestToJSONTyped = UpdateCartRequestToJSONTyped;
|
|
22
22
|
var CreateCartRequestShippingAddress_1 = require("./CreateCartRequestShippingAddress");
|
|
23
|
-
var CreateCartRequestCustomer_1 = require("./CreateCartRequestCustomer");
|
|
24
23
|
/**
|
|
25
24
|
* @export
|
|
26
25
|
*/
|
|
@@ -52,10 +51,12 @@ function UpdateCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
51
|
return json;
|
|
53
52
|
}
|
|
54
53
|
return {
|
|
54
|
+
'token': json['token'] == null ? undefined : json['token'],
|
|
55
|
+
'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
|
|
56
|
+
'paymentToken': json['payment_token'] == null ? undefined : json['payment_token'],
|
|
55
57
|
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
56
58
|
'source': json['source'] == null ? undefined : json['source'],
|
|
57
59
|
'guestEmail': json['guest_email'] == null ? undefined : json['guest_email'],
|
|
58
|
-
'customer': json['customer'] == null ? undefined : (0, CreateCartRequestCustomer_1.CreateCartRequestCustomerFromJSON)(json['customer']),
|
|
59
60
|
'shippingType': json['shipping_type'] == null ? undefined : json['shipping_type'],
|
|
60
61
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
61
62
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
@@ -78,10 +79,12 @@ function UpdateCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
78
79
|
return value;
|
|
79
80
|
}
|
|
80
81
|
return {
|
|
82
|
+
'token': value['token'],
|
|
83
|
+
'session_token': value['sessionToken'],
|
|
84
|
+
'payment_token': value['paymentToken'],
|
|
81
85
|
'customer_id': value['customerId'],
|
|
82
86
|
'source': value['source'],
|
|
83
87
|
'guest_email': value['guestEmail'],
|
|
84
|
-
'customer': (0, CreateCartRequestCustomer_1.CreateCartRequestCustomerToJSON)(value['customer']),
|
|
85
88
|
'shipping_type': value['shippingType'],
|
|
86
89
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
87
90
|
'override_shipping': value['overrideShipping'],
|
|
@@ -45,7 +45,7 @@ export interface UpdateOrderRequest {
|
|
|
45
45
|
* @type {number}
|
|
46
46
|
* @memberof UpdateOrderRequest
|
|
47
47
|
*/
|
|
48
|
-
shippingSubtotal
|
|
48
|
+
shippingSubtotal: number;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {boolean}
|
|
@@ -57,7 +57,7 @@ export interface UpdateOrderRequest {
|
|
|
57
57
|
* @type {number}
|
|
58
58
|
* @memberof UpdateOrderRequest
|
|
59
59
|
*/
|
|
60
|
-
insuranceAmount
|
|
60
|
+
insuranceAmount: number;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {boolean}
|
|
@@ -47,6 +47,10 @@ function instanceOfUpdateOrderRequest(value) {
|
|
|
47
47
|
return false;
|
|
48
48
|
if (!('shippingType' in value) || value['shippingType'] === undefined)
|
|
49
49
|
return false;
|
|
50
|
+
if (!('shippingSubtotal' in value) || value['shippingSubtotal'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined)
|
|
53
|
+
return false;
|
|
50
54
|
return true;
|
|
51
55
|
}
|
|
52
56
|
function UpdateOrderRequestFromJSON(json) {
|
|
@@ -61,9 +65,9 @@ function UpdateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
65
|
'statusId': json['status_id'],
|
|
62
66
|
'source': json['source'],
|
|
63
67
|
'shippingType': json['shipping_type'],
|
|
64
|
-
'shippingSubtotal': json['shipping_subtotal']
|
|
68
|
+
'shippingSubtotal': json['shipping_subtotal'],
|
|
65
69
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
66
|
-
'insuranceAmount': json['insurance_amount']
|
|
70
|
+
'insuranceAmount': json['insurance_amount'],
|
|
67
71
|
'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
|
|
68
72
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
69
73
|
'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -85,7 +85,6 @@ export * from './CreateBlogCategoryRequest';
|
|
|
85
85
|
export * from './CreateBlogCategoryRequestDescriptionsInner';
|
|
86
86
|
export * from './CreateBlogCategoryRequestSeoInner';
|
|
87
87
|
export * from './CreateCartRequest';
|
|
88
|
-
export * from './CreateCartRequestCustomer';
|
|
89
88
|
export * from './CreateCartRequestItemsInner';
|
|
90
89
|
export * from './CreateCartRequestShippingAddress';
|
|
91
90
|
export * from './CreateCustomerRequest';
|
|
@@ -351,10 +350,10 @@ export * from './ProductChildAttributeGroupedResource';
|
|
|
351
350
|
export * from './ProductChildAttributeGroupedResourceArrayResponse';
|
|
352
351
|
export * from './ProductChildAttributeResource';
|
|
353
352
|
export * from './ProductChildAttributeResourceArrayResponse';
|
|
354
|
-
export * from './ProductChildCartLiteResource';
|
|
355
|
-
export * from './ProductChildCartLiteResourceArrayResponse';
|
|
356
353
|
export * from './ProductChildFrontendResource';
|
|
357
354
|
export * from './ProductChildFrontendResourceArrayResponse';
|
|
355
|
+
export * from './ProductChildLineItemLiteResource';
|
|
356
|
+
export * from './ProductChildLineItemLiteResourceArrayResponse';
|
|
358
357
|
export * from './ProductChildListResource';
|
|
359
358
|
export * from './ProductChildListResourceArrayResponse';
|
|
360
359
|
export * from './ProductChildLiteResource';
|
package/dist/models/index.js
CHANGED
|
@@ -103,7 +103,6 @@ __exportStar(require("./CreateBlogCategoryRequest"), exports);
|
|
|
103
103
|
__exportStar(require("./CreateBlogCategoryRequestDescriptionsInner"), exports);
|
|
104
104
|
__exportStar(require("./CreateBlogCategoryRequestSeoInner"), exports);
|
|
105
105
|
__exportStar(require("./CreateCartRequest"), exports);
|
|
106
|
-
__exportStar(require("./CreateCartRequestCustomer"), exports);
|
|
107
106
|
__exportStar(require("./CreateCartRequestItemsInner"), exports);
|
|
108
107
|
__exportStar(require("./CreateCartRequestShippingAddress"), exports);
|
|
109
108
|
__exportStar(require("./CreateCustomerRequest"), exports);
|
|
@@ -369,10 +368,10 @@ __exportStar(require("./ProductChildAttributeGroupedResource"), exports);
|
|
|
369
368
|
__exportStar(require("./ProductChildAttributeGroupedResourceArrayResponse"), exports);
|
|
370
369
|
__exportStar(require("./ProductChildAttributeResource"), exports);
|
|
371
370
|
__exportStar(require("./ProductChildAttributeResourceArrayResponse"), exports);
|
|
372
|
-
__exportStar(require("./ProductChildCartLiteResource"), exports);
|
|
373
|
-
__exportStar(require("./ProductChildCartLiteResourceArrayResponse"), exports);
|
|
374
371
|
__exportStar(require("./ProductChildFrontendResource"), exports);
|
|
375
372
|
__exportStar(require("./ProductChildFrontendResourceArrayResponse"), exports);
|
|
373
|
+
__exportStar(require("./ProductChildLineItemLiteResource"), exports);
|
|
374
|
+
__exportStar(require("./ProductChildLineItemLiteResourceArrayResponse"), exports);
|
|
376
375
|
__exportStar(require("./ProductChildListResource"), exports);
|
|
377
376
|
__exportStar(require("./ProductChildListResourceArrayResponse"), exports);
|
|
378
377
|
__exportStar(require("./ProductChildLiteResource"), exports);
|
package/docs/CartResource.md
CHANGED
|
@@ -22,11 +22,11 @@ Name | Type
|
|
|
22
22
|
`includeInsurance` | boolean
|
|
23
23
|
`overrideInsurance` | boolean
|
|
24
24
|
`useAsBillingAddress` | boolean
|
|
25
|
-
`admin` |
|
|
25
|
+
`admin` | [LiAdminUserLiteResource](LiAdminUserLiteResource.md)
|
|
26
26
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
27
27
|
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
28
28
|
`lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
|
|
29
|
-
`coupons` |
|
|
29
|
+
`coupons` | object
|
|
30
30
|
`shippingAddress` | [AddressResource](AddressResource.md)
|
|
31
31
|
`billingAddress` | [AddressResource](AddressResource.md)
|
|
32
32
|
`discountPreview` | number
|
|
@@ -8,12 +8,13 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`customerId` | number
|
|
10
10
|
`siteId` | number
|
|
11
|
+
`token` | string
|
|
11
12
|
`sessionToken` | string
|
|
12
13
|
`paymentToken` | string
|
|
13
14
|
`guestEmail` | string
|
|
14
15
|
`source` | string
|
|
15
16
|
`items` | [Array<CreateCartRequestItemsInner>](CreateCartRequestItemsInner.md)
|
|
16
|
-
`
|
|
17
|
+
`couponCodes` | Array<string>
|
|
17
18
|
`shippingType` | string
|
|
18
19
|
`shippingSubtotal` | number
|
|
19
20
|
`overrideShipping` | boolean
|
|
@@ -35,12 +36,13 @@ import type { CreateCartRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
35
36
|
const example = {
|
|
36
37
|
"customerId": null,
|
|
37
38
|
"siteId": null,
|
|
39
|
+
"token": null,
|
|
38
40
|
"sessionToken": null,
|
|
39
41
|
"paymentToken": null,
|
|
40
42
|
"guestEmail": null,
|
|
41
43
|
"source": null,
|
|
42
44
|
"items": null,
|
|
43
|
-
"
|
|
45
|
+
"couponCodes": null,
|
|
44
46
|
"shippingType": null,
|
|
45
47
|
"shippingSubtotal": null,
|
|
46
48
|
"overrideShipping": null,
|
|
@@ -15,7 +15,7 @@ Name | Type
|
|
|
15
15
|
`totalDiscount` | number
|
|
16
16
|
`lineSubtotal` | number
|
|
17
17
|
`discounts` | [Array<LineItemDiscountResource>](LineItemDiscountResource.md)
|
|
18
|
-
`productChild` | [
|
|
18
|
+
`productChild` | [ProductChildLineItemLiteResource](ProductChildLineItemLiteResource.md)
|
|
19
19
|
|
|
20
20
|
## Example
|
|
21
21
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ProductChildLineItemLiteResource
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -20,7 +20,7 @@ Name | Type
|
|
|
20
20
|
## Example
|
|
21
21
|
|
|
22
22
|
```typescript
|
|
23
|
-
import type {
|
|
23
|
+
import type { ProductChildLineItemLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
24
24
|
|
|
25
25
|
// TODO: Update the object below with actual values
|
|
26
26
|
const example = {
|
|
@@ -34,7 +34,7 @@ const example = {
|
|
|
34
34
|
"salePrice": null,
|
|
35
35
|
"thumbnail": null,
|
|
36
36
|
"label": null,
|
|
37
|
-
} satisfies
|
|
37
|
+
} satisfies ProductChildLineItemLiteResource
|
|
38
38
|
|
|
39
39
|
console.log(example)
|
|
40
40
|
|
|
@@ -43,7 +43,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
43
43
|
console.log(exampleJSON)
|
|
44
44
|
|
|
45
45
|
// Parse the JSON string back to an object
|
|
46
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
46
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductChildLineItemLiteResource
|
|
47
47
|
console.log(exampleParsed)
|
|
48
48
|
```
|
|
49
49
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ProductChildLineItemLiteResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<ProductChildLineItemLiteResource>](ProductChildLineItemLiteResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { ProductChildLineItemLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"data": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies ProductChildLineItemLiteResourceArrayResponse
|
|
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
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductChildLineItemLiteResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`page` | number
|
|
14
14
|
`siteId` | Array<string>
|
|
15
15
|
`source` | Array<string>
|
|
16
|
+
`status` | Array<string>
|
|
16
17
|
`beforeCreatedAt` | Date
|
|
17
18
|
`afterCreatedAt` | Date
|
|
18
19
|
`beforeExpiryDate` | Date
|
|
@@ -22,7 +23,6 @@ Name | Type
|
|
|
22
23
|
`relatedId` | number
|
|
23
24
|
`relatedType` | string
|
|
24
25
|
`includesRelations` | boolean
|
|
25
|
-
`status` | Array<string>
|
|
26
26
|
|
|
27
27
|
## Example
|
|
28
28
|
|
|
@@ -38,6 +38,7 @@ const example = {
|
|
|
38
38
|
"page": null,
|
|
39
39
|
"siteId": null,
|
|
40
40
|
"source": null,
|
|
41
|
+
"status": null,
|
|
41
42
|
"beforeCreatedAt": null,
|
|
42
43
|
"afterCreatedAt": null,
|
|
43
44
|
"beforeExpiryDate": null,
|
|
@@ -47,7 +48,6 @@ const example = {
|
|
|
47
48
|
"relatedId": null,
|
|
48
49
|
"relatedType": null,
|
|
49
50
|
"includesRelations": null,
|
|
50
|
-
"status": null,
|
|
51
51
|
} satisfies SearchCartsRequest
|
|
52
52
|
|
|
53
53
|
console.log(example)
|
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
+
`token` | string
|
|
10
|
+
`sessionToken` | string
|
|
11
|
+
`paymentToken` | string
|
|
9
12
|
`customerId` | number
|
|
10
13
|
`source` | string
|
|
11
14
|
`guestEmail` | string
|
|
12
|
-
`customer` | [CreateCartRequestCustomer](CreateCartRequestCustomer.md)
|
|
13
15
|
`shippingType` | string
|
|
14
16
|
`shippingSubtotal` | number
|
|
15
17
|
`overrideShipping` | boolean
|
|
@@ -29,10 +31,12 @@ import type { UpdateCartRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
29
31
|
|
|
30
32
|
// TODO: Update the object below with actual values
|
|
31
33
|
const example = {
|
|
34
|
+
"token": null,
|
|
35
|
+
"sessionToken": null,
|
|
36
|
+
"paymentToken": null,
|
|
32
37
|
"customerId": null,
|
|
33
38
|
"source": null,
|
|
34
39
|
"guestEmail": null,
|
|
35
|
-
"customer": null,
|
|
36
40
|
"shippingType": null,
|
|
37
41
|
"shippingSubtotal": null,
|
|
38
42
|
"overrideShipping": null,
|
package/package.json
CHANGED
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
LineItemListResourceToJSON,
|
|
28
28
|
LineItemListResourceToJSONTyped,
|
|
29
29
|
} from './LineItemListResource';
|
|
30
|
-
import type {
|
|
30
|
+
import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
} from './
|
|
32
|
+
LiAdminUserLiteResourceFromJSON,
|
|
33
|
+
LiAdminUserLiteResourceFromJSONTyped,
|
|
34
|
+
LiAdminUserLiteResourceToJSON,
|
|
35
|
+
LiAdminUserLiteResourceToJSONTyped,
|
|
36
|
+
} from './LiAdminUserLiteResource';
|
|
37
37
|
import type { CustomerListResource } from './CustomerListResource';
|
|
38
38
|
import {
|
|
39
39
|
CustomerListResourceFromJSON,
|
|
@@ -153,10 +153,10 @@ export interface CartResource {
|
|
|
153
153
|
useAsBillingAddress: boolean;
|
|
154
154
|
/**
|
|
155
155
|
*
|
|
156
|
-
* @type {
|
|
156
|
+
* @type {LiAdminUserLiteResource}
|
|
157
157
|
* @memberof CartResource
|
|
158
158
|
*/
|
|
159
|
-
admin:
|
|
159
|
+
admin: LiAdminUserLiteResource | null;
|
|
160
160
|
/**
|
|
161
161
|
*
|
|
162
162
|
* @type {SiteLiteResource}
|
|
@@ -177,10 +177,10 @@ export interface CartResource {
|
|
|
177
177
|
lineItems: Array<LineItemListResource> | null;
|
|
178
178
|
/**
|
|
179
179
|
*
|
|
180
|
-
* @type {
|
|
180
|
+
* @type {object}
|
|
181
181
|
* @memberof CartResource
|
|
182
182
|
*/
|
|
183
|
-
coupons:
|
|
183
|
+
coupons: object;
|
|
184
184
|
/**
|
|
185
185
|
*
|
|
186
186
|
* @type {AddressResource}
|
|
@@ -319,11 +319,11 @@ export function CartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
319
319
|
'includeInsurance': json['includeInsurance'],
|
|
320
320
|
'overrideInsurance': json['overrideInsurance'],
|
|
321
321
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
322
|
-
'admin': json['admin'],
|
|
322
|
+
'admin': LiAdminUserLiteResourceFromJSON(json['admin']),
|
|
323
323
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
324
324
|
'customer': CustomerListResourceFromJSON(json['customer']),
|
|
325
325
|
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(LineItemListResourceFromJSON)),
|
|
326
|
-
'coupons':
|
|
326
|
+
'coupons': json['coupons'],
|
|
327
327
|
'shippingAddress': AddressResourceFromJSON(json['shippingAddress']),
|
|
328
328
|
'billingAddress': AddressResourceFromJSON(json['billingAddress']),
|
|
329
329
|
'discountPreview': json['discountPreview'],
|
|
@@ -367,11 +367,11 @@ export function CartResourceToJSONTyped(value?: CartResource | null, ignoreDiscr
|
|
|
367
367
|
'includeInsurance': value['includeInsurance'],
|
|
368
368
|
'overrideInsurance': value['overrideInsurance'],
|
|
369
369
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
370
|
-
'admin': value['admin'],
|
|
370
|
+
'admin': LiAdminUserLiteResourceToJSON(value['admin']),
|
|
371
371
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
372
372
|
'customer': CustomerListResourceToJSON(value['customer']),
|
|
373
373
|
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
|
|
374
|
-
'coupons':
|
|
374
|
+
'coupons': value['coupons'],
|
|
375
375
|
'shippingAddress': AddressResourceToJSON(value['shippingAddress']),
|
|
376
376
|
'billingAddress': AddressResourceToJSON(value['billingAddress']),
|
|
377
377
|
'discountPreview': value['discountPreview'],
|