@digital8/lighting-illusions-ts-sdk 0.0.1851 → 0.0.1852
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 +10 -0
- package/README.md +8 -3
- package/dist/apis/CartsApi.d.ts +6 -6
- package/dist/apis/CartsApi.js +3 -5
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AdminCartResource.d.ts +34 -4
- package/dist/models/AdminCartResource.js +32 -10
- package/dist/models/AttachCouponCartRequest.d.ts +2 -2
- package/dist/models/AttachCouponCartRequest.js +3 -3
- package/dist/models/DetachCouponCartRequest.d.ts +32 -0
- package/dist/models/DetachCouponCartRequest.js +51 -0
- package/dist/models/DiscountType.d.ts +26 -0
- package/dist/models/DiscountType.js +52 -0
- package/dist/models/DiscountValueType.d.ts +25 -0
- package/dist/models/DiscountValueType.js +51 -0
- package/dist/models/LineItemListResource.d.ts +27 -3
- package/dist/models/LineItemListResource.js +19 -3
- package/dist/models/ProductChildCartLiteResource.d.ts +70 -0
- package/dist/models/ProductChildCartLiteResource.js +77 -0
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +50 -0
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +6 -2
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +6 -2
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/docs/AdminCartResource.md +16 -6
- package/docs/AttachCouponCartRequest.md +2 -2
- package/docs/CartsApi.md +8 -8
- package/docs/DetachCouponCartRequest.md +34 -0
- package/docs/DiscountType.md +32 -0
- package/docs/DiscountValueType.md +32 -0
- package/docs/LineItemListResource.md +9 -1
- package/docs/ProductChildCartLiteResource.md +46 -0
- package/docs/ProductChildCartLiteResourceArrayResponse.md +34 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +12 -14
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminCartResource.ts +60 -14
- package/src/models/AttachCouponCartRequest.ts +5 -5
- package/src/models/DetachCouponCartRequest.ts +66 -0
- package/src/models/DiscountType.ts +54 -0
- package/src/models/DiscountValueType.ts +53 -0
- package/src/models/LineItemListResource.ts +46 -10
- package/src/models/ProductChildCartLiteResource.ts +135 -0
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +73 -0
- package/src/models/StoreListResource.ts +6 -4
- package/src/models/StoreResource.ts +6 -4
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/index.ts +5 -0
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -36,10 +36,34 @@ export interface LineItemListResource {
|
|
|
36
36
|
productPrice: number;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof LineItemListResource
|
|
41
|
+
*/
|
|
42
|
+
productDiscount: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof LineItemListResource
|
|
47
|
+
*/
|
|
48
|
+
totalDiscount: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof LineItemListResource
|
|
53
|
+
*/
|
|
54
|
+
lineSubtotal: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<boolean>}
|
|
58
|
+
* @memberof LineItemListResource
|
|
59
|
+
*/
|
|
60
|
+
discounts: Array<boolean>;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {ProductChildCartLiteResource}
|
|
40
64
|
* @memberof LineItemListResource
|
|
41
65
|
*/
|
|
42
|
-
productChild:
|
|
66
|
+
productChild: ProductChildCartLiteResource | null;
|
|
43
67
|
}
|
|
44
68
|
/**
|
|
45
69
|
* Check if a given object implements the LineItemListResource interface.
|
|
@@ -18,7 +18,7 @@ exports.LineItemListResourceFromJSON = LineItemListResourceFromJSON;
|
|
|
18
18
|
exports.LineItemListResourceFromJSONTyped = LineItemListResourceFromJSONTyped;
|
|
19
19
|
exports.LineItemListResourceToJSON = LineItemListResourceToJSON;
|
|
20
20
|
exports.LineItemListResourceToJSONTyped = LineItemListResourceToJSONTyped;
|
|
21
|
-
var
|
|
21
|
+
var ProductChildCartLiteResource_1 = require("./ProductChildCartLiteResource");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the LineItemListResource interface.
|
|
24
24
|
*/
|
|
@@ -27,6 +27,14 @@ function instanceOfLineItemListResource(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('productPrice' in value) || value['productPrice'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
+
if (!('productDiscount' in value) || value['productDiscount'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalDiscount' in value) || value['totalDiscount'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('lineSubtotal' in value) || value['lineSubtotal'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('discounts' in value) || value['discounts'] === undefined)
|
|
37
|
+
return false;
|
|
30
38
|
if (!('productChild' in value) || value['productChild'] === undefined)
|
|
31
39
|
return false;
|
|
32
40
|
return true;
|
|
@@ -42,7 +50,11 @@ function LineItemListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
50
|
'id': json['id'] == null ? undefined : json['id'],
|
|
43
51
|
'quantity': json['quantity'],
|
|
44
52
|
'productPrice': json['product_price'],
|
|
45
|
-
'
|
|
53
|
+
'productDiscount': json['product_discount'],
|
|
54
|
+
'totalDiscount': json['total_discount'],
|
|
55
|
+
'lineSubtotal': json['line_subtotal'],
|
|
56
|
+
'discounts': json['discounts'],
|
|
57
|
+
'productChild': (0, ProductChildCartLiteResource_1.ProductChildCartLiteResourceFromJSON)(json['product_child']),
|
|
46
58
|
};
|
|
47
59
|
}
|
|
48
60
|
function LineItemListResourceToJSON(json) {
|
|
@@ -57,6 +69,10 @@ function LineItemListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
57
69
|
'id': value['id'],
|
|
58
70
|
'quantity': value['quantity'],
|
|
59
71
|
'product_price': value['productPrice'],
|
|
60
|
-
'
|
|
72
|
+
'product_discount': value['productDiscount'],
|
|
73
|
+
'total_discount': value['totalDiscount'],
|
|
74
|
+
'line_subtotal': value['lineSubtotal'],
|
|
75
|
+
'discounts': value['discounts'],
|
|
76
|
+
'product_child': (0, ProductChildCartLiteResource_1.ProductChildCartLiteResourceToJSON)(value['productChild']),
|
|
61
77
|
};
|
|
62
78
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 ProductChildCartLiteResource
|
|
18
|
+
*/
|
|
19
|
+
export interface ProductChildCartLiteResource {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof ProductChildCartLiteResource
|
|
24
|
+
*/
|
|
25
|
+
id: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof ProductChildCartLiteResource
|
|
30
|
+
*/
|
|
31
|
+
parentId: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ProductChildCartLiteResource
|
|
36
|
+
*/
|
|
37
|
+
sku: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ProductChildCartLiteResource
|
|
42
|
+
*/
|
|
43
|
+
model: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ProductChildCartLiteResource
|
|
48
|
+
*/
|
|
49
|
+
name: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {AssetLiteResource}
|
|
53
|
+
* @memberof ProductChildCartLiteResource
|
|
54
|
+
*/
|
|
55
|
+
thumbnail: AssetLiteResource | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {LabelResource}
|
|
59
|
+
* @memberof ProductChildCartLiteResource
|
|
60
|
+
*/
|
|
61
|
+
label: LabelResource | null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the ProductChildCartLiteResource interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfProductChildCartLiteResource(value: object): value is ProductChildCartLiteResource;
|
|
67
|
+
export declare function ProductChildCartLiteResourceFromJSON(json: any): ProductChildCartLiteResource;
|
|
68
|
+
export declare function ProductChildCartLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResource;
|
|
69
|
+
export declare function ProductChildCartLiteResourceToJSON(json: any): ProductChildCartLiteResource;
|
|
70
|
+
export declare function ProductChildCartLiteResourceToJSONTyped(value?: ProductChildCartLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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.instanceOfProductChildCartLiteResource = instanceOfProductChildCartLiteResource;
|
|
17
|
+
exports.ProductChildCartLiteResourceFromJSON = ProductChildCartLiteResourceFromJSON;
|
|
18
|
+
exports.ProductChildCartLiteResourceFromJSONTyped = ProductChildCartLiteResourceFromJSONTyped;
|
|
19
|
+
exports.ProductChildCartLiteResourceToJSON = ProductChildCartLiteResourceToJSON;
|
|
20
|
+
exports.ProductChildCartLiteResourceToJSONTyped = ProductChildCartLiteResourceToJSONTyped;
|
|
21
|
+
var LabelResource_1 = require("./LabelResource");
|
|
22
|
+
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ProductChildCartLiteResource interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfProductChildCartLiteResource(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('sku' in value) || value['sku'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function ProductChildCartLiteResourceFromJSON(json) {
|
|
44
|
+
return ProductChildCartLiteResourceFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ProductChildCartLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'parentId': json['parent_id'],
|
|
53
|
+
'sku': json['sku'],
|
|
54
|
+
'model': json['model'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
57
|
+
'label': (0, LabelResource_1.LabelResourceFromJSON)(json['label']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function ProductChildCartLiteResourceToJSON(json) {
|
|
61
|
+
return ProductChildCartLiteResourceToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function ProductChildCartLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
64
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'parent_id': value['parentId'],
|
|
71
|
+
'sku': value['sku'],
|
|
72
|
+
'model': value['model'],
|
|
73
|
+
'name': value['name'],
|
|
74
|
+
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
75
|
+
'label': (0, LabelResource_1.LabelResourceToJSON)(value['label']),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -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 { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductChildCartLiteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductChildCartLiteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductChildCartLiteResource>}
|
|
22
|
+
* @memberof ProductChildCartLiteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductChildCartLiteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductChildCartLiteResourceArrayResponse(value: object): value is ProductChildCartLiteResourceArrayResponse;
|
|
30
|
+
export declare function ProductChildCartLiteResourceArrayResponseFromJSON(json: any): ProductChildCartLiteResourceArrayResponse;
|
|
31
|
+
export declare function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResourceArrayResponse;
|
|
32
|
+
export declare function ProductChildCartLiteResourceArrayResponseToJSON(json: any): ProductChildCartLiteResourceArrayResponse;
|
|
33
|
+
export declare function ProductChildCartLiteResourceArrayResponseToJSONTyped(value?: ProductChildCartLiteResourceArrayResponse | 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.instanceOfProductChildCartLiteResourceArrayResponse = instanceOfProductChildCartLiteResourceArrayResponse;
|
|
17
|
+
exports.ProductChildCartLiteResourceArrayResponseFromJSON = ProductChildCartLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductChildCartLiteResourceArrayResponseFromJSONTyped = ProductChildCartLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductChildCartLiteResourceArrayResponseToJSON = ProductChildCartLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductChildCartLiteResourceArrayResponseToJSONTyped = ProductChildCartLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductChildCartLiteResource_1 = require("./ProductChildCartLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductChildCartLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductChildCartLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductChildCartLiteResource_1.ProductChildCartLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductChildCartLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductChildCartLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductChildCartLiteResourceArrayResponseToJSONTyped(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(ProductChildCartLiteResource_1.ProductChildCartLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -57,7 +57,7 @@ export interface StoreListResource {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof StoreListResource
|
|
59
59
|
*/
|
|
60
|
-
tagLine
|
|
60
|
+
tagLine: string;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
@@ -69,7 +69,7 @@ export interface StoreListResource {
|
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @memberof StoreListResource
|
|
71
71
|
*/
|
|
72
|
-
website
|
|
72
|
+
website: string;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {string}
|
|
@@ -33,8 +33,12 @@ function instanceOfStoreListResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
37
39
|
return false;
|
|
40
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
41
|
+
return false;
|
|
38
42
|
return true;
|
|
39
43
|
}
|
|
40
44
|
function StoreListResourceFromJSON(json) {
|
|
@@ -51,9 +55,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
55
|
'phone': json['phone'],
|
|
52
56
|
'longitude': json['longitude'],
|
|
53
57
|
'latitude': json['latitude'],
|
|
54
|
-
'tagLine': json['tag_line']
|
|
58
|
+
'tagLine': json['tag_line'],
|
|
55
59
|
'email': json['email'],
|
|
56
|
-
'website': json['website']
|
|
60
|
+
'website': json['website'],
|
|
57
61
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
58
62
|
};
|
|
59
63
|
}
|
|
@@ -60,7 +60,7 @@ export interface StoreResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof StoreResource
|
|
62
62
|
*/
|
|
63
|
-
tagLine
|
|
63
|
+
tagLine: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -72,7 +72,7 @@ export interface StoreResource {
|
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof StoreResource
|
|
74
74
|
*/
|
|
75
|
-
website
|
|
75
|
+
website: string;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {string}
|
|
@@ -36,8 +36,12 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
+
return false;
|
|
39
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
40
42
|
return false;
|
|
43
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
+
return false;
|
|
41
45
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
42
46
|
return false;
|
|
43
47
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -60,9 +64,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
64
|
'phone': json['phone'],
|
|
61
65
|
'longitude': json['longitude'],
|
|
62
66
|
'latitude': json['latitude'],
|
|
63
|
-
'tagLine': json['tag_line']
|
|
67
|
+
'tagLine': json['tag_line'],
|
|
64
68
|
'email': json['email'],
|
|
65
|
-
'website': json['website']
|
|
69
|
+
'website': json['website'],
|
|
66
70
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
67
71
|
'suppliers': (json['suppliers'] == null ? null : json['suppliers'].map(SupplierLiteResource_1.SupplierLiteResourceFromJSON)),
|
|
68
72
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -26,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['display_start_date'],
|
|
51
53
|
'displayEndDate': json['display_end_date'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export * from './DestroyAttributeValueRequest';
|
|
|
72
72
|
export * from './DetachAccessoriesProductRangeRequest';
|
|
73
73
|
export * from './DetachAssetableOverlayTemplateRequest';
|
|
74
74
|
export * from './DetachAttributesProductRangeRequest';
|
|
75
|
+
export * from './DetachCouponCartRequest';
|
|
75
76
|
export * from './DetachDocumentablesDocumentRequest';
|
|
76
77
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
77
78
|
export * from './DetachDocumentsProductChildRequest';
|
|
@@ -79,6 +80,8 @@ export * from './DetachDocumentsProductRangeRequest';
|
|
|
79
80
|
export * from './DetachProductsProductCategoryRequest';
|
|
80
81
|
export * from './DetachStoresSupplierRequest';
|
|
81
82
|
export * from './DetachSuppliersStoreRequest';
|
|
83
|
+
export * from './DiscountType';
|
|
84
|
+
export * from './DiscountValueType';
|
|
82
85
|
export * from './DocumentFileForUploadResource';
|
|
83
86
|
export * from './DocumentFileForUploadResourceArrayResponse';
|
|
84
87
|
export * from './DocumentFrontendResource';
|
|
@@ -263,6 +266,8 @@ export * from './ProductChildAttributeGroupedResource';
|
|
|
263
266
|
export * from './ProductChildAttributeGroupedResourceArrayResponse';
|
|
264
267
|
export * from './ProductChildAttributeResource';
|
|
265
268
|
export * from './ProductChildAttributeResourceArrayResponse';
|
|
269
|
+
export * from './ProductChildCartLiteResource';
|
|
270
|
+
export * from './ProductChildCartLiteResourceArrayResponse';
|
|
266
271
|
export * from './ProductChildListResource';
|
|
267
272
|
export * from './ProductChildListResourceArrayResponse';
|
|
268
273
|
export * from './ProductChildLiteResource';
|
package/dist/models/index.js
CHANGED
|
@@ -90,6 +90,7 @@ __exportStar(require("./DestroyAttributeValueRequest"), exports);
|
|
|
90
90
|
__exportStar(require("./DetachAccessoriesProductRangeRequest"), exports);
|
|
91
91
|
__exportStar(require("./DetachAssetableOverlayTemplateRequest"), exports);
|
|
92
92
|
__exportStar(require("./DetachAttributesProductRangeRequest"), exports);
|
|
93
|
+
__exportStar(require("./DetachCouponCartRequest"), exports);
|
|
93
94
|
__exportStar(require("./DetachDocumentablesDocumentRequest"), exports);
|
|
94
95
|
__exportStar(require("./DetachDocumentablesDocumentRequestDocumentablesInner"), exports);
|
|
95
96
|
__exportStar(require("./DetachDocumentsProductChildRequest"), exports);
|
|
@@ -97,6 +98,8 @@ __exportStar(require("./DetachDocumentsProductRangeRequest"), exports);
|
|
|
97
98
|
__exportStar(require("./DetachProductsProductCategoryRequest"), exports);
|
|
98
99
|
__exportStar(require("./DetachStoresSupplierRequest"), exports);
|
|
99
100
|
__exportStar(require("./DetachSuppliersStoreRequest"), exports);
|
|
101
|
+
__exportStar(require("./DiscountType"), exports);
|
|
102
|
+
__exportStar(require("./DiscountValueType"), exports);
|
|
100
103
|
__exportStar(require("./DocumentFileForUploadResource"), exports);
|
|
101
104
|
__exportStar(require("./DocumentFileForUploadResourceArrayResponse"), exports);
|
|
102
105
|
__exportStar(require("./DocumentFrontendResource"), exports);
|
|
@@ -281,6 +284,8 @@ __exportStar(require("./ProductChildAttributeGroupedResource"), exports);
|
|
|
281
284
|
__exportStar(require("./ProductChildAttributeGroupedResourceArrayResponse"), exports);
|
|
282
285
|
__exportStar(require("./ProductChildAttributeResource"), exports);
|
|
283
286
|
__exportStar(require("./ProductChildAttributeResourceArrayResponse"), exports);
|
|
287
|
+
__exportStar(require("./ProductChildCartLiteResource"), exports);
|
|
288
|
+
__exportStar(require("./ProductChildCartLiteResourceArrayResponse"), exports);
|
|
284
289
|
__exportStar(require("./ProductChildListResource"), exports);
|
|
285
290
|
__exportStar(require("./ProductChildListResourceArrayResponse"), exports);
|
|
286
291
|
__exportStar(require("./ProductChildLiteResource"), exports);
|
|
@@ -31,10 +31,15 @@ Name | Type
|
|
|
31
31
|
`coupons` | object
|
|
32
32
|
`shippingAddress` | [AddressResource](AddressResource.md)
|
|
33
33
|
`billingAddress` | [AddressResource](AddressResource.md)
|
|
34
|
-
`subtotal` | number
|
|
35
34
|
`discountPreview` | number
|
|
36
|
-
`
|
|
37
|
-
`
|
|
35
|
+
`subtotal` | number
|
|
36
|
+
`shippingAmount` | number
|
|
37
|
+
`total` | number
|
|
38
|
+
`discountAmount` | number
|
|
39
|
+
`productDiscountAmount` | number
|
|
40
|
+
`shippingDiscountAmount` | number
|
|
41
|
+
`cartDiscountAmount` | number
|
|
42
|
+
`finalTotalAmount` | number
|
|
38
43
|
`status` | string
|
|
39
44
|
|
|
40
45
|
## Example
|
|
@@ -69,10 +74,15 @@ const example = {
|
|
|
69
74
|
"coupons": null,
|
|
70
75
|
"shippingAddress": null,
|
|
71
76
|
"billingAddress": null,
|
|
72
|
-
"subtotal": null,
|
|
73
77
|
"discountPreview": null,
|
|
74
|
-
"
|
|
75
|
-
"
|
|
78
|
+
"subtotal": null,
|
|
79
|
+
"shippingAmount": null,
|
|
80
|
+
"total": null,
|
|
81
|
+
"discountAmount": null,
|
|
82
|
+
"productDiscountAmount": null,
|
|
83
|
+
"shippingDiscountAmount": null,
|
|
84
|
+
"cartDiscountAmount": null,
|
|
85
|
+
"finalTotalAmount": null,
|
|
76
86
|
"status": null,
|
|
77
87
|
} satisfies AdminCartResource
|
|
78
88
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
9
|
+
`couponIds` | Array<number>
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ import type { AttachCouponCartRequest } from '@digital8/lighting-illusions-ts-sd
|
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
|
-
"
|
|
18
|
+
"couponIds": null,
|
|
19
19
|
} satisfies AttachCouponCartRequest
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
package/docs/CartsApi.md
CHANGED
|
@@ -7,7 +7,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
7
7
|
| [**attachCouponCart**](CartsApi.md#attachcouponcartoperation) | **POST** /admin-api/carts/{cart}/coupons/attach | Auto-generated: attachCouponCart |
|
|
8
8
|
| [**attachItemCart**](CartsApi.md#attachitemcartoperation) | **POST** /admin-api/carts/{cart}/items/attach | Auto-generated: attachItemCart |
|
|
9
9
|
| [**destroyCart**](CartsApi.md#destroycart) | **DELETE** /admin-api/carts/{cart}/delete | Auto-generated: destroyCart |
|
|
10
|
-
| [**detachCouponCart**](CartsApi.md#
|
|
10
|
+
| [**detachCouponCart**](CartsApi.md#detachcouponcartoperation) | **DELETE** /admin-api/carts/{cart}/coupons/detach | Auto-generated: detachCouponCart |
|
|
11
11
|
| [**detachItemCart**](CartsApi.md#detachitemcart) | **DELETE** /admin-api/carts/{cart}/items/{lineItem}/detach | Auto-generated: detachItemCart |
|
|
12
12
|
| [**indexCart**](CartsApi.md#indexcartoperation) | **POST** /admin-api/carts/list | Auto-generated: indexCart |
|
|
13
13
|
| [**sendPaymentLinkCart**](CartsApi.md#sendpaymentlinkcart) | **POST** /admin-api/carts/{cart}/send-payment-link | Auto-generated: sendPaymentLinkCart |
|
|
@@ -221,7 +221,7 @@ No authorization required
|
|
|
221
221
|
|
|
222
222
|
## detachCouponCart
|
|
223
223
|
|
|
224
|
-
> AdminCartResource detachCouponCart(cart,
|
|
224
|
+
> AdminCartResource detachCouponCart(cart, detachCouponCartRequest)
|
|
225
225
|
|
|
226
226
|
Auto-generated: detachCouponCart
|
|
227
227
|
|
|
@@ -232,7 +232,7 @@ import {
|
|
|
232
232
|
Configuration,
|
|
233
233
|
CartsApi,
|
|
234
234
|
} from '@digital8/lighting-illusions-ts-sdk';
|
|
235
|
-
import type {
|
|
235
|
+
import type { DetachCouponCartOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
236
236
|
|
|
237
237
|
async function example() {
|
|
238
238
|
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
@@ -241,9 +241,9 @@ async function example() {
|
|
|
241
241
|
const body = {
|
|
242
242
|
// number | The id of the cart
|
|
243
243
|
cart: 56,
|
|
244
|
-
//
|
|
245
|
-
|
|
246
|
-
} satisfies
|
|
244
|
+
// DetachCouponCartRequest (optional)
|
|
245
|
+
detachCouponCartRequest: ...,
|
|
246
|
+
} satisfies DetachCouponCartOperationRequest;
|
|
247
247
|
|
|
248
248
|
try {
|
|
249
249
|
const data = await api.detachCouponCart(body);
|
|
@@ -263,7 +263,7 @@ example().catch(console.error);
|
|
|
263
263
|
| Name | Type | Description | Notes |
|
|
264
264
|
|------------- | ------------- | ------------- | -------------|
|
|
265
265
|
| **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
|
|
266
|
-
| **
|
|
266
|
+
| **detachCouponCartRequest** | [DetachCouponCartRequest](DetachCouponCartRequest.md) | | [Optional] |
|
|
267
267
|
|
|
268
268
|
### Return type
|
|
269
269
|
|
|
@@ -275,7 +275,7 @@ No authorization required
|
|
|
275
275
|
|
|
276
276
|
### HTTP request headers
|
|
277
277
|
|
|
278
|
-
- **Content-Type**:
|
|
278
|
+
- **Content-Type**: `application/json`
|
|
279
279
|
- **Accept**: `application/json`
|
|
280
280
|
|
|
281
281
|
|