@digital8/lighting-illusions-ts-sdk 0.0.2017 → 0.0.2018
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 +16 -0
- package/README.md +10 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- 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/CreateCartRequest.d.ts +7 -12
- package/dist/models/CreateCartRequest.js +4 -7
- package/dist/models/CreateCartRequestCustomer.d.ts +50 -0
- package/dist/models/CreateCartRequestCustomer.js +55 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- 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 +75 -0
- package/dist/models/FrontendLineItemResource.js +78 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.js +50 -0
- package/dist/models/ProductChildCartLiteResource.d.ts +18 -0
- package/dist/models/ProductChildCartLiteResource.js +12 -0
- package/dist/models/SearchCartsRequest.d.ts +15 -6
- package/dist/models/SearchCartsRequest.js +11 -3
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/UpdateCartRequest.d.ts +7 -18
- package/dist/models/UpdateCartRequest.js +3 -6
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/CartCouponLiteResource.md +42 -0
- package/docs/CartCouponLiteResourceArrayResponse.md +34 -0
- package/docs/CreateCartRequest.md +2 -4
- package/docs/CreateCartRequestCustomer.md +40 -0
- package/docs/FrontendCartResource.md +68 -0
- package/docs/FrontendCartResourceArrayResponse.md +34 -0
- package/docs/FrontendCartResourceCouponsInner.md +42 -0
- package/docs/FrontendLineItemResource.md +48 -0
- package/docs/FrontendLineItemResourceArrayResponse.md +34 -0
- package/docs/ProductChildCartLiteResource.md +6 -0
- package/docs/SearchCartsRequest.md +2 -2
- package/docs/UpdateCartRequest.md +2 -6
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/CartCouponLiteResource.ts +102 -0
- package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/CreateCartRequest.ts +16 -18
- package/src/models/CreateCartRequestCustomer.ts +89 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- 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 +136 -0
- package/src/models/FrontendLineItemResourceArrayResponse.ts +73 -0
- package/src/models/ProductChildCartLiteResource.ts +27 -0
- package/src/models/SearchCartsRequest.ts +18 -8
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/UpdateCartRequest.ts +15 -24
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfFrontendLineItemResourceArrayResponse = instanceOfFrontendLineItemResourceArrayResponse;
|
|
17
|
+
exports.FrontendLineItemResourceArrayResponseFromJSON = FrontendLineItemResourceArrayResponseFromJSON;
|
|
18
|
+
exports.FrontendLineItemResourceArrayResponseFromJSONTyped = FrontendLineItemResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.FrontendLineItemResourceArrayResponseToJSON = FrontendLineItemResourceArrayResponseToJSON;
|
|
20
|
+
exports.FrontendLineItemResourceArrayResponseToJSONTyped = FrontendLineItemResourceArrayResponseToJSONTyped;
|
|
21
|
+
var FrontendLineItemResource_1 = require("./FrontendLineItemResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the FrontendLineItemResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfFrontendLineItemResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function FrontendLineItemResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return FrontendLineItemResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function FrontendLineItemResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(FrontendLineItemResource_1.FrontendLineItemResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function FrontendLineItemResourceArrayResponseToJSON(json) {
|
|
40
|
+
return FrontendLineItemResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function FrontendLineItemResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(FrontendLineItemResource_1.FrontendLineItemResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -53,6 +53,24 @@ export interface ProductChildCartLiteResource {
|
|
|
53
53
|
* @memberof ProductChildCartLiteResource
|
|
54
54
|
*/
|
|
55
55
|
name: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ProductChildCartLiteResource
|
|
60
|
+
*/
|
|
61
|
+
parentName: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ProductChildCartLiteResource
|
|
66
|
+
*/
|
|
67
|
+
variantName: string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof ProductChildCartLiteResource
|
|
72
|
+
*/
|
|
73
|
+
slug: string;
|
|
56
74
|
/**
|
|
57
75
|
*
|
|
58
76
|
* @type {number}
|
|
@@ -36,6 +36,12 @@ function instanceOfProductChildCartLiteResource(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 ProductChildCartLiteResourceFromJSONTyped(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 ProductChildCartLiteResourceToJSONTyped(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']),
|
|
@@ -57,12 +57,6 @@ export interface SearchCartsRequest {
|
|
|
57
57
|
* @memberof SearchCartsRequest
|
|
58
58
|
*/
|
|
59
59
|
source?: Array<string>;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {Array<string>}
|
|
63
|
-
* @memberof SearchCartsRequest
|
|
64
|
-
*/
|
|
65
|
-
status?: Array<string>;
|
|
66
60
|
/**
|
|
67
61
|
*
|
|
68
62
|
* @type {Date}
|
|
@@ -117,6 +111,12 @@ export interface SearchCartsRequest {
|
|
|
117
111
|
* @memberof SearchCartsRequest
|
|
118
112
|
*/
|
|
119
113
|
includesRelations?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {Array<SearchCartsRequestStatusEnum>}
|
|
117
|
+
* @memberof SearchCartsRequest
|
|
118
|
+
*/
|
|
119
|
+
status?: Array<SearchCartsRequestStatusEnum>;
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
122
|
* @export
|
|
@@ -135,6 +135,15 @@ export declare const SearchCartsRequestSortDirectionEnum: {
|
|
|
135
135
|
readonly Desc: "desc";
|
|
136
136
|
};
|
|
137
137
|
export type SearchCartsRequestSortDirectionEnum = typeof SearchCartsRequestSortDirectionEnum[keyof typeof SearchCartsRequestSortDirectionEnum];
|
|
138
|
+
/**
|
|
139
|
+
* @export
|
|
140
|
+
*/
|
|
141
|
+
export declare const SearchCartsRequestStatusEnum: {
|
|
142
|
+
readonly Active: "active";
|
|
143
|
+
readonly Expired: "expired";
|
|
144
|
+
readonly Completed: "completed";
|
|
145
|
+
};
|
|
146
|
+
export type SearchCartsRequestStatusEnum = typeof SearchCartsRequestStatusEnum[keyof typeof SearchCartsRequestStatusEnum];
|
|
138
147
|
/**
|
|
139
148
|
* Check if a given object implements the SearchCartsRequest interface.
|
|
140
149
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SearchCartsRequestSortDirectionEnum = exports.SearchCartsRequestSortByEnum = void 0;
|
|
16
|
+
exports.SearchCartsRequestStatusEnum = exports.SearchCartsRequestSortDirectionEnum = exports.SearchCartsRequestSortByEnum = void 0;
|
|
17
17
|
exports.instanceOfSearchCartsRequest = instanceOfSearchCartsRequest;
|
|
18
18
|
exports.SearchCartsRequestFromJSON = SearchCartsRequestFromJSON;
|
|
19
19
|
exports.SearchCartsRequestFromJSONTyped = SearchCartsRequestFromJSONTyped;
|
|
@@ -34,6 +34,14 @@ 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
|
+
};
|
|
37
45
|
/**
|
|
38
46
|
* Check if a given object implements the SearchCartsRequest interface.
|
|
39
47
|
*/
|
|
@@ -55,7 +63,6 @@ function SearchCartsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
63
|
'page': json['page'] == null ? undefined : json['page'],
|
|
56
64
|
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
57
65
|
'source': json['source'] == null ? undefined : json['source'],
|
|
58
|
-
'status': json['status'] == null ? undefined : json['status'],
|
|
59
66
|
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
60
67
|
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
61
68
|
'beforeExpiryDate': json['before_expiry_date'] == null ? undefined : (new Date(json['before_expiry_date'])),
|
|
@@ -65,6 +72,7 @@ function SearchCartsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
72
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
66
73
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
67
74
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
75
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
68
76
|
};
|
|
69
77
|
}
|
|
70
78
|
function SearchCartsRequestToJSON(json) {
|
|
@@ -83,7 +91,6 @@ function SearchCartsRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
83
91
|
'page': value['page'],
|
|
84
92
|
'site_id': value['siteId'],
|
|
85
93
|
'source': value['source'],
|
|
86
|
-
'status': value['status'],
|
|
87
94
|
'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
|
|
88
95
|
'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
|
|
89
96
|
'before_expiry_date': value['beforeExpiryDate'] == null ? value['beforeExpiryDate'] : value['beforeExpiryDate'].toISOString(),
|
|
@@ -93,5 +100,6 @@ function SearchCartsRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
93
100
|
'related_id': value['relatedId'],
|
|
94
101
|
'related_type': value['relatedType'],
|
|
95
102
|
'includes_relations': value['includesRelations'],
|
|
103
|
+
'status': value['status'],
|
|
96
104
|
};
|
|
97
105
|
}
|
|
@@ -28,8 +28,6 @@ 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;
|
|
33
31
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
@@ -56,7 +54,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
54
|
'siteId': json['siteId'],
|
|
57
55
|
'name': json['name'],
|
|
58
56
|
'email': json['email'],
|
|
59
|
-
'website': json['website'],
|
|
57
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
60
58
|
'phone': json['phone'],
|
|
61
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
62
60
|
'latitude': json['latitude'],
|
|
@@ -37,6 +37,8 @@ function instanceOfStoreListResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -59,7 +61,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
61
|
'latitude': json['latitude'],
|
|
60
62
|
'tagLine': json['tagLine'],
|
|
61
63
|
'email': json['email'],
|
|
62
|
-
'website': json['website']
|
|
64
|
+
'website': json['website'],
|
|
63
65
|
'netsuiteId': json['netsuiteId'],
|
|
64
66
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
65
67
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -10,30 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { CreateCartRequestShippingAddress } from './CreateCartRequestShippingAddress';
|
|
13
|
+
import type { CreateCartRequestCustomer } from './CreateCartRequestCustomer';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
16
17
|
* @interface UpdateCartRequest
|
|
17
18
|
*/
|
|
18
19
|
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;
|
|
37
20
|
/**
|
|
38
21
|
*
|
|
39
22
|
* @type {number}
|
|
@@ -52,6 +35,12 @@ export interface UpdateCartRequest {
|
|
|
52
35
|
* @memberof UpdateCartRequest
|
|
53
36
|
*/
|
|
54
37
|
guestEmail?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {CreateCartRequestCustomer}
|
|
41
|
+
* @memberof UpdateCartRequest
|
|
42
|
+
*/
|
|
43
|
+
customer?: CreateCartRequestCustomer;
|
|
55
44
|
/**
|
|
56
45
|
*
|
|
57
46
|
* @type {UpdateCartRequestShippingTypeEnum}
|
|
@@ -20,6 +20,7 @@ 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");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
25
26
|
*/
|
|
@@ -51,12 +52,10 @@ function UpdateCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
52
|
return json;
|
|
52
53
|
}
|
|
53
54
|
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'],
|
|
57
55
|
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
58
56
|
'source': json['source'] == null ? undefined : json['source'],
|
|
59
57
|
'guestEmail': json['guest_email'] == null ? undefined : json['guest_email'],
|
|
58
|
+
'customer': json['customer'] == null ? undefined : (0, CreateCartRequestCustomer_1.CreateCartRequestCustomerFromJSON)(json['customer']),
|
|
60
59
|
'shippingType': json['shipping_type'] == null ? undefined : json['shipping_type'],
|
|
61
60
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
62
61
|
'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
|
|
@@ -79,12 +78,10 @@ function UpdateCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
79
78
|
return value;
|
|
80
79
|
}
|
|
81
80
|
return {
|
|
82
|
-
'token': value['token'],
|
|
83
|
-
'session_token': value['sessionToken'],
|
|
84
|
-
'payment_token': value['paymentToken'],
|
|
85
81
|
'customer_id': value['customerId'],
|
|
86
82
|
'source': value['source'],
|
|
87
83
|
'guest_email': value['guestEmail'],
|
|
84
|
+
'customer': (0, CreateCartRequestCustomer_1.CreateCartRequestCustomerToJSON)(value['customer']),
|
|
88
85
|
'shipping_type': value['shippingType'],
|
|
89
86
|
'shipping_subtotal': value['shippingSubtotal'],
|
|
90
87
|
'override_shipping': value['overrideShipping'],
|
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';
|
|
@@ -85,6 +87,7 @@ export * from './CreateBlogCategoryRequest';
|
|
|
85
87
|
export * from './CreateBlogCategoryRequestDescriptionsInner';
|
|
86
88
|
export * from './CreateBlogCategoryRequestSeoInner';
|
|
87
89
|
export * from './CreateCartRequest';
|
|
90
|
+
export * from './CreateCartRequestCustomer';
|
|
88
91
|
export * from './CreateCartRequestItemsInner';
|
|
89
92
|
export * from './CreateCartRequestShippingAddress';
|
|
90
93
|
export * from './CreateCustomerRequest';
|
|
@@ -165,10 +168,15 @@ export * from './ExternalApiLogResource';
|
|
|
165
168
|
export * from './ExternalApiLogResourceArrayResponse';
|
|
166
169
|
export * from './ExternalApiProvider';
|
|
167
170
|
export * from './ExternalApiSyncStatus';
|
|
171
|
+
export * from './FrontendCartResource';
|
|
172
|
+
export * from './FrontendCartResourceArrayResponse';
|
|
173
|
+
export * from './FrontendCartResourceCouponsInner';
|
|
168
174
|
export * from './FrontendComponentLiteResource';
|
|
169
175
|
export * from './FrontendComponentLiteResourceArrayResponse';
|
|
170
176
|
export * from './FrontendComponentResource';
|
|
171
177
|
export * from './FrontendComponentResourceArrayResponse';
|
|
178
|
+
export * from './FrontendLineItemResource';
|
|
179
|
+
export * from './FrontendLineItemResourceArrayResponse';
|
|
172
180
|
export * from './GenericResponse';
|
|
173
181
|
export * from './GetUniqueEndpointsRequest';
|
|
174
182
|
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);
|
|
@@ -103,6 +105,7 @@ __exportStar(require("./CreateBlogCategoryRequest"), exports);
|
|
|
103
105
|
__exportStar(require("./CreateBlogCategoryRequestDescriptionsInner"), exports);
|
|
104
106
|
__exportStar(require("./CreateBlogCategoryRequestSeoInner"), exports);
|
|
105
107
|
__exportStar(require("./CreateCartRequest"), exports);
|
|
108
|
+
__exportStar(require("./CreateCartRequestCustomer"), exports);
|
|
106
109
|
__exportStar(require("./CreateCartRequestItemsInner"), exports);
|
|
107
110
|
__exportStar(require("./CreateCartRequestShippingAddress"), exports);
|
|
108
111
|
__exportStar(require("./CreateCustomerRequest"), exports);
|
|
@@ -183,10 +186,15 @@ __exportStar(require("./ExternalApiLogResource"), exports);
|
|
|
183
186
|
__exportStar(require("./ExternalApiLogResourceArrayResponse"), exports);
|
|
184
187
|
__exportStar(require("./ExternalApiProvider"), exports);
|
|
185
188
|
__exportStar(require("./ExternalApiSyncStatus"), exports);
|
|
189
|
+
__exportStar(require("./FrontendCartResource"), exports);
|
|
190
|
+
__exportStar(require("./FrontendCartResourceArrayResponse"), exports);
|
|
191
|
+
__exportStar(require("./FrontendCartResourceCouponsInner"), exports);
|
|
186
192
|
__exportStar(require("./FrontendComponentLiteResource"), exports);
|
|
187
193
|
__exportStar(require("./FrontendComponentLiteResourceArrayResponse"), exports);
|
|
188
194
|
__exportStar(require("./FrontendComponentResource"), exports);
|
|
189
195
|
__exportStar(require("./FrontendComponentResourceArrayResponse"), exports);
|
|
196
|
+
__exportStar(require("./FrontendLineItemResource"), exports);
|
|
197
|
+
__exportStar(require("./FrontendLineItemResourceArrayResponse"), exports);
|
|
190
198
|
__exportStar(require("./GenericResponse"), exports);
|
|
191
199
|
__exportStar(require("./GetUniqueEndpointsRequest"), exports);
|
|
192
200
|
__exportStar(require("./GlobalSearchCategoryResource"), exports);
|
|
@@ -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
|
+
|
|
@@ -8,13 +8,12 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`customerId` | number
|
|
10
10
|
`siteId` | number
|
|
11
|
-
`token` | string
|
|
12
11
|
`sessionToken` | string
|
|
13
12
|
`paymentToken` | string
|
|
14
13
|
`guestEmail` | string
|
|
15
14
|
`source` | string
|
|
16
15
|
`items` | [Array<CreateCartRequestItemsInner>](CreateCartRequestItemsInner.md)
|
|
17
|
-
`
|
|
16
|
+
`customer` | [CreateCartRequestCustomer](CreateCartRequestCustomer.md)
|
|
18
17
|
`shippingType` | string
|
|
19
18
|
`shippingSubtotal` | number
|
|
20
19
|
`overrideShipping` | boolean
|
|
@@ -36,13 +35,12 @@ import type { CreateCartRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
36
35
|
const example = {
|
|
37
36
|
"customerId": null,
|
|
38
37
|
"siteId": null,
|
|
39
|
-
"token": null,
|
|
40
38
|
"sessionToken": null,
|
|
41
39
|
"paymentToken": null,
|
|
42
40
|
"guestEmail": null,
|
|
43
41
|
"source": null,
|
|
44
42
|
"items": null,
|
|
45
|
-
"
|
|
43
|
+
"customer": null,
|
|
46
44
|
"shippingType": null,
|
|
47
45
|
"shippingSubtotal": null,
|
|
48
46
|
"overrideShipping": null,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# CreateCartRequestCustomer
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`firstName` | string
|
|
10
|
+
`lastName` | string
|
|
11
|
+
`email` | string
|
|
12
|
+
`phone` | string
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { CreateCartRequestCustomer } from '@digital8/lighting-illusions-ts-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"firstName": null,
|
|
22
|
+
"lastName": null,
|
|
23
|
+
"email": null,
|
|
24
|
+
"phone": null,
|
|
25
|
+
} satisfies CreateCartRequestCustomer
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as CreateCartRequestCustomer
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -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
|
+
|