@digital8/lighting-illusions-ts-sdk 0.0.2022 → 0.0.2024
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 +18 -6
- package/README.md +11 -5
- 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 +4 -4
- 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/CartResource.d.ts +5 -5
- package/dist/models/CartResource.js +5 -5
- 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/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/LineItemListResource.d.ts +3 -3
- package/dist/models/LineItemListResource.js +3 -3
- package/dist/models/ProductChildLineItemLiteResource.d.ts +106 -0
- package/dist/models/{ProductChildCartLiteResource.js → ProductChildLineItemLiteResource.js} +25 -13
- package/dist/models/ProductChildLineItemLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildLineItemLiteResourceArrayResponse.js +50 -0
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/UpdateOrderRequest.d.ts +2 -2
- package/dist/models/UpdateOrderRequest.js +6 -2
- package/dist/models/index.d.ts +9 -3
- package/dist/models/index.js +9 -3
- package/docs/CartCouponLiteResource.md +42 -0
- package/docs/{ProductChildCartLiteResourceArrayResponse.md → CartCouponLiteResourceArrayResponse.md} +5 -5
- package/docs/CartResource.md +2 -2
- package/docs/FrontendCartResource.md +68 -0
- package/docs/{OrderOmnisendEvent.md → FrontendCartResourceArrayResponse.md} +6 -4
- package/docs/FrontendCartResourceCouponsInner.md +42 -0
- package/docs/FrontendLineItemResource.md +50 -0
- package/docs/FrontendLineItemResourceArrayResponse.md +34 -0
- package/docs/LineItemListResource.md +1 -1
- package/docs/{ProductChildCartLiteResource.md → ProductChildLineItemLiteResource.md} +10 -4
- package/docs/ProductChildLineItemLiteResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +5 -5
- package/src/models/CartCouponLiteResource.ts +102 -0
- package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/CartResource.ts +14 -14
- package/src/models/ExternalApiLogResource.ts +3 -2
- 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/LineItemListResource.ts +10 -10
- package/src/models/{ProductChildCartLiteResource.ts → ProductChildLineItemLiteResource.ts} +47 -20
- package/src/models/ProductChildLineItemLiteResourceArrayResponse.ts +73 -0
- package/src/models/StoreResource.ts +3 -2
- package/src/models/UpdateOrderRequest.ts +6 -4
- package/src/models/index.ts +9 -3
- package/dist/models/OrderOmnisendEvent.d.ts +0 -25
- package/dist/models/OrderOmnisendEvent.js +0 -51
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -88
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
- package/src/models/OrderOmnisendEvent.ts +0 -53
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { LabelResource } from './LabelResource';
|
|
13
|
+
import type { AssetLiteResource } from './AssetLiteResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ProductChildLineItemLiteResource
|
|
18
|
+
*/
|
|
19
|
+
export interface ProductChildLineItemLiteResource {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof ProductChildLineItemLiteResource
|
|
24
|
+
*/
|
|
25
|
+
id: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof ProductChildLineItemLiteResource
|
|
30
|
+
*/
|
|
31
|
+
parentId: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ProductChildLineItemLiteResource
|
|
36
|
+
*/
|
|
37
|
+
sku: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ProductChildLineItemLiteResource
|
|
42
|
+
*/
|
|
43
|
+
model: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ProductChildLineItemLiteResource
|
|
48
|
+
*/
|
|
49
|
+
modelNumber: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ProductChildLineItemLiteResource
|
|
54
|
+
*/
|
|
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;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof ProductChildLineItemLiteResource
|
|
78
|
+
*/
|
|
79
|
+
stock: number;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof ProductChildLineItemLiteResource
|
|
84
|
+
*/
|
|
85
|
+
salePrice: number;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {AssetLiteResource}
|
|
89
|
+
* @memberof ProductChildLineItemLiteResource
|
|
90
|
+
*/
|
|
91
|
+
thumbnail: AssetLiteResource | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {LabelResource}
|
|
95
|
+
* @memberof ProductChildLineItemLiteResource
|
|
96
|
+
*/
|
|
97
|
+
label: LabelResource | null;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Check if a given object implements the ProductChildLineItemLiteResource interface.
|
|
101
|
+
*/
|
|
102
|
+
export declare function instanceOfProductChildLineItemLiteResource(value: object): value is ProductChildLineItemLiteResource;
|
|
103
|
+
export declare function ProductChildLineItemLiteResourceFromJSON(json: any): ProductChildLineItemLiteResource;
|
|
104
|
+
export declare function ProductChildLineItemLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildLineItemLiteResource;
|
|
105
|
+
export declare function ProductChildLineItemLiteResourceToJSON(json: any): ProductChildLineItemLiteResource;
|
|
106
|
+
export declare function ProductChildLineItemLiteResourceToJSONTyped(value?: ProductChildLineItemLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfProductChildLineItemLiteResource = instanceOfProductChildLineItemLiteResource;
|
|
17
|
+
exports.ProductChildLineItemLiteResourceFromJSON = ProductChildLineItemLiteResourceFromJSON;
|
|
18
|
+
exports.ProductChildLineItemLiteResourceFromJSONTyped = ProductChildLineItemLiteResourceFromJSONTyped;
|
|
19
|
+
exports.ProductChildLineItemLiteResourceToJSON = ProductChildLineItemLiteResourceToJSON;
|
|
20
|
+
exports.ProductChildLineItemLiteResourceToJSONTyped = ProductChildLineItemLiteResourceToJSONTyped;
|
|
21
21
|
var LabelResource_1 = require("./LabelResource");
|
|
22
22
|
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
23
23
|
/**
|
|
24
|
-
* Check if a given object implements the
|
|
24
|
+
* Check if a given object implements the ProductChildLineItemLiteResource interface.
|
|
25
25
|
*/
|
|
26
|
-
function
|
|
26
|
+
function instanceOfProductChildLineItemLiteResource(value) {
|
|
27
27
|
if (!('id' in value) || value['id'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
@@ -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)
|
|
@@ -46,10 +52,10 @@ function instanceOfProductChildCartLiteResource(value) {
|
|
|
46
52
|
return false;
|
|
47
53
|
return true;
|
|
48
54
|
}
|
|
49
|
-
function
|
|
50
|
-
return
|
|
55
|
+
function ProductChildLineItemLiteResourceFromJSON(json) {
|
|
56
|
+
return ProductChildLineItemLiteResourceFromJSONTyped(json, false);
|
|
51
57
|
}
|
|
52
|
-
function
|
|
58
|
+
function ProductChildLineItemLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
59
|
if (json == null) {
|
|
54
60
|
return json;
|
|
55
61
|
}
|
|
@@ -60,16 +66,19 @@ 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']),
|
|
66
75
|
'label': (0, LabelResource_1.LabelResourceFromJSON)(json['label']),
|
|
67
76
|
};
|
|
68
77
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
78
|
+
function ProductChildLineItemLiteResourceToJSON(json) {
|
|
79
|
+
return ProductChildLineItemLiteResourceToJSONTyped(json, false);
|
|
71
80
|
}
|
|
72
|
-
function
|
|
81
|
+
function ProductChildLineItemLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
73
82
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
74
83
|
if (value == null) {
|
|
75
84
|
return value;
|
|
@@ -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']),
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ProductChildLineItemLiteResource } from './ProductChildLineItemLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductChildLineItemLiteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductChildLineItemLiteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductChildLineItemLiteResource>}
|
|
22
|
+
* @memberof ProductChildLineItemLiteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductChildLineItemLiteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductChildLineItemLiteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductChildLineItemLiteResourceArrayResponse(value: object): value is ProductChildLineItemLiteResourceArrayResponse;
|
|
30
|
+
export declare function ProductChildLineItemLiteResourceArrayResponseFromJSON(json: any): ProductChildLineItemLiteResourceArrayResponse;
|
|
31
|
+
export declare function ProductChildLineItemLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildLineItemLiteResourceArrayResponse;
|
|
32
|
+
export declare function ProductChildLineItemLiteResourceArrayResponseToJSON(json: any): ProductChildLineItemLiteResourceArrayResponse;
|
|
33
|
+
export declare function ProductChildLineItemLiteResourceArrayResponseToJSONTyped(value?: ProductChildLineItemLiteResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfProductChildLineItemLiteResourceArrayResponse = instanceOfProductChildLineItemLiteResourceArrayResponse;
|
|
17
|
+
exports.ProductChildLineItemLiteResourceArrayResponseFromJSON = ProductChildLineItemLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductChildLineItemLiteResourceArrayResponseFromJSONTyped = ProductChildLineItemLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductChildLineItemLiteResourceArrayResponseToJSON = ProductChildLineItemLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductChildLineItemLiteResourceArrayResponseToJSONTyped = ProductChildLineItemLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductChildLineItemLiteResource_1 = require("./ProductChildLineItemLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductChildLineItemLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductChildLineItemLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductChildLineItemLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductChildLineItemLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductChildLineItemLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductChildLineItemLiteResource_1.ProductChildLineItemLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductChildLineItemLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductChildLineItemLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductChildLineItemLiteResourceArrayResponseToJSONTyped(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(ProductChildLineItemLiteResource_1.ProductChildLineItemLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -40,6 +40,8 @@ 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;
|
|
43
45
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
44
46
|
return false;
|
|
45
47
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -68,7 +70,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
70
|
'latitude': json['latitude'],
|
|
69
71
|
'tagLine': json['tagLine'],
|
|
70
72
|
'email': json['email'],
|
|
71
|
-
'website': json['website']
|
|
73
|
+
'website': json['website'],
|
|
72
74
|
'netsuiteId': json['netsuiteId'],
|
|
73
75
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
74
76
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -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
|
@@ -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';
|
|
@@ -165,10 +167,15 @@ export * from './ExternalApiLogResource';
|
|
|
165
167
|
export * from './ExternalApiLogResourceArrayResponse';
|
|
166
168
|
export * from './ExternalApiProvider';
|
|
167
169
|
export * from './ExternalApiSyncStatus';
|
|
170
|
+
export * from './FrontendCartResource';
|
|
171
|
+
export * from './FrontendCartResourceArrayResponse';
|
|
172
|
+
export * from './FrontendCartResourceCouponsInner';
|
|
168
173
|
export * from './FrontendComponentLiteResource';
|
|
169
174
|
export * from './FrontendComponentLiteResourceArrayResponse';
|
|
170
175
|
export * from './FrontendComponentResource';
|
|
171
176
|
export * from './FrontendComponentResourceArrayResponse';
|
|
177
|
+
export * from './FrontendLineItemResource';
|
|
178
|
+
export * from './FrontendLineItemResourceArrayResponse';
|
|
172
179
|
export * from './GenericResponse';
|
|
173
180
|
export * from './GetUniqueEndpointsRequest';
|
|
174
181
|
export * from './GlobalSearchCategoryResource';
|
|
@@ -224,7 +231,6 @@ export * from './OrderListResource';
|
|
|
224
231
|
export * from './OrderListResourceArrayResponse';
|
|
225
232
|
export * from './OrderLiteResource';
|
|
226
233
|
export * from './OrderLiteResourceArrayResponse';
|
|
227
|
-
export * from './OrderOmnisendEvent';
|
|
228
234
|
export * from './OrderStatusLiteResource';
|
|
229
235
|
export * from './OrderStatusLiteResourceArrayResponse';
|
|
230
236
|
export * from './OrderStatusWithCountResource';
|
|
@@ -351,10 +357,10 @@ export * from './ProductChildAttributeGroupedResource';
|
|
|
351
357
|
export * from './ProductChildAttributeGroupedResourceArrayResponse';
|
|
352
358
|
export * from './ProductChildAttributeResource';
|
|
353
359
|
export * from './ProductChildAttributeResourceArrayResponse';
|
|
354
|
-
export * from './ProductChildCartLiteResource';
|
|
355
|
-
export * from './ProductChildCartLiteResourceArrayResponse';
|
|
356
360
|
export * from './ProductChildFrontendResource';
|
|
357
361
|
export * from './ProductChildFrontendResourceArrayResponse';
|
|
362
|
+
export * from './ProductChildLineItemLiteResource';
|
|
363
|
+
export * from './ProductChildLineItemLiteResourceArrayResponse';
|
|
358
364
|
export * from './ProductChildListResource';
|
|
359
365
|
export * from './ProductChildListResourceArrayResponse';
|
|
360
366
|
export * from './ProductChildLiteResource';
|
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);
|
|
@@ -183,10 +185,15 @@ __exportStar(require("./ExternalApiLogResource"), exports);
|
|
|
183
185
|
__exportStar(require("./ExternalApiLogResourceArrayResponse"), exports);
|
|
184
186
|
__exportStar(require("./ExternalApiProvider"), exports);
|
|
185
187
|
__exportStar(require("./ExternalApiSyncStatus"), exports);
|
|
188
|
+
__exportStar(require("./FrontendCartResource"), exports);
|
|
189
|
+
__exportStar(require("./FrontendCartResourceArrayResponse"), exports);
|
|
190
|
+
__exportStar(require("./FrontendCartResourceCouponsInner"), exports);
|
|
186
191
|
__exportStar(require("./FrontendComponentLiteResource"), exports);
|
|
187
192
|
__exportStar(require("./FrontendComponentLiteResourceArrayResponse"), exports);
|
|
188
193
|
__exportStar(require("./FrontendComponentResource"), exports);
|
|
189
194
|
__exportStar(require("./FrontendComponentResourceArrayResponse"), exports);
|
|
195
|
+
__exportStar(require("./FrontendLineItemResource"), exports);
|
|
196
|
+
__exportStar(require("./FrontendLineItemResourceArrayResponse"), exports);
|
|
190
197
|
__exportStar(require("./GenericResponse"), exports);
|
|
191
198
|
__exportStar(require("./GetUniqueEndpointsRequest"), exports);
|
|
192
199
|
__exportStar(require("./GlobalSearchCategoryResource"), exports);
|
|
@@ -242,7 +249,6 @@ __exportStar(require("./OrderListResource"), exports);
|
|
|
242
249
|
__exportStar(require("./OrderListResourceArrayResponse"), exports);
|
|
243
250
|
__exportStar(require("./OrderLiteResource"), exports);
|
|
244
251
|
__exportStar(require("./OrderLiteResourceArrayResponse"), exports);
|
|
245
|
-
__exportStar(require("./OrderOmnisendEvent"), exports);
|
|
246
252
|
__exportStar(require("./OrderStatusLiteResource"), exports);
|
|
247
253
|
__exportStar(require("./OrderStatusLiteResourceArrayResponse"), exports);
|
|
248
254
|
__exportStar(require("./OrderStatusWithCountResource"), exports);
|
|
@@ -369,10 +375,10 @@ __exportStar(require("./ProductChildAttributeGroupedResource"), exports);
|
|
|
369
375
|
__exportStar(require("./ProductChildAttributeGroupedResourceArrayResponse"), exports);
|
|
370
376
|
__exportStar(require("./ProductChildAttributeResource"), exports);
|
|
371
377
|
__exportStar(require("./ProductChildAttributeResourceArrayResponse"), exports);
|
|
372
|
-
__exportStar(require("./ProductChildCartLiteResource"), exports);
|
|
373
|
-
__exportStar(require("./ProductChildCartLiteResourceArrayResponse"), exports);
|
|
374
378
|
__exportStar(require("./ProductChildFrontendResource"), exports);
|
|
375
379
|
__exportStar(require("./ProductChildFrontendResourceArrayResponse"), exports);
|
|
380
|
+
__exportStar(require("./ProductChildLineItemLiteResource"), exports);
|
|
381
|
+
__exportStar(require("./ProductChildLineItemLiteResourceArrayResponse"), exports);
|
|
376
382
|
__exportStar(require("./ProductChildListResource"), exports);
|
|
377
383
|
__exportStar(require("./ProductChildListResourceArrayResponse"), exports);
|
|
378
384
|
__exportStar(require("./ProductChildLiteResource"), 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
|
+
|
package/docs/{ProductChildCartLiteResourceArrayResponse.md → CartCouponLiteResourceArrayResponse.md}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# CartCouponLiteResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`data` | [Array<
|
|
9
|
+
`data` | [Array<CartCouponLiteResource>](CartCouponLiteResource.md)
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { CartCouponLiteResourceArrayResponse } 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 CartCouponLiteResourceArrayResponse
|
|
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 CartCouponLiteResourceArrayResponse
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
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
|
|
@@ -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
|
+
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# FrontendCartResourceArrayResponse
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
+
`data` | [Array<FrontendCartResource>](FrontendCartResource.md)
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
12
13
|
```typescript
|
|
13
|
-
import type {
|
|
14
|
+
import type { FrontendCartResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
15
|
|
|
15
16
|
// TODO: Update the object below with actual values
|
|
16
17
|
const example = {
|
|
17
|
-
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies FrontendCartResourceArrayResponse
|
|
18
20
|
|
|
19
21
|
console.log(example)
|
|
20
22
|
|
|
@@ -23,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
23
25
|
console.log(exampleJSON)
|
|
24
26
|
|
|
25
27
|
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResourceArrayResponse
|
|
27
29
|
console.log(exampleParsed)
|
|
28
30
|
```
|
|
29
31
|
|