@digital8/lighting-illusions-ts-sdk 0.0.1843 → 0.0.1844
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 +0 -14
- package/README.md +3 -10
- package/dist/apis/CartsApi.d.ts +6 -6
- package/dist/apis/CartsApi.js +5 -3
- 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 +1 -3
- package/dist/models/AdminCartResource.d.ts +4 -34
- package/dist/models/AdminCartResource.js +10 -32
- package/dist/models/AttachCouponCartRequest.d.ts +2 -2
- package/dist/models/AttachCouponCartRequest.js +3 -3
- package/dist/models/LineItemListResource.d.ts +3 -27
- package/dist/models/LineItemListResource.js +3 -19
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/index.d.ts +0 -7
- package/dist/models/index.js +0 -7
- package/docs/AdminCartResource.md +6 -16
- package/docs/AttachCouponCartRequest.md +2 -2
- package/docs/CartsApi.md +8 -8
- package/docs/LineItemListResource.md +1 -9
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +14 -12
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AdminCartResource.ts +14 -60
- package/src/models/AttachCouponCartRequest.ts +5 -5
- package/src/models/LineItemListResource.ts +10 -46
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreResource.ts +5 -5
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/index.ts +0 -7
- package/dist/models/DetachCouponCartRequest.d.ts +0 -32
- package/dist/models/DetachCouponCartRequest.js +0 -51
- package/dist/models/DiscountType.d.ts +0 -26
- package/dist/models/DiscountType.js +0 -52
- package/dist/models/DiscountValueType.d.ts +0 -25
- package/dist/models/DiscountValueType.js +0 -51
- package/dist/models/FrontendCartResource.d.ts +0 -174
- package/dist/models/FrontendCartResource.js +0 -133
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -70
- package/dist/models/ProductChildCartLiteResource.js +0 -77
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
- package/docs/DetachCouponCartRequest.md +0 -34
- package/docs/DiscountType.md +0 -32
- package/docs/DiscountValueType.md +0 -32
- package/docs/FrontendCartResource.md +0 -80
- package/docs/FrontendCartResourceArrayResponse.md +0 -34
- package/docs/ProductChildCartLiteResource.md +0 -46
- package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
- package/src/models/DetachCouponCartRequest.ts +0 -66
- package/src/models/DiscountType.ts +0 -54
- package/src/models/DiscountValueType.ts +0 -53
- package/src/models/FrontendCartResource.ts +0 -295
- package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
- package/src/models/ProductChildCartLiteResource.ts +0 -135
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
|
@@ -1,33 +0,0 @@
|
|
|
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 { FrontendCartResource } from './FrontendCartResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface FrontendCartResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface FrontendCartResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<FrontendCartResource>}
|
|
22
|
-
* @memberof FrontendCartResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<FrontendCartResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the FrontendCartResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfFrontendCartResourceArrayResponse(value: object): value is FrontendCartResourceArrayResponse;
|
|
30
|
-
export declare function FrontendCartResourceArrayResponseFromJSON(json: any): FrontendCartResourceArrayResponse;
|
|
31
|
-
export declare function FrontendCartResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendCartResourceArrayResponse;
|
|
32
|
-
export declare function FrontendCartResourceArrayResponseToJSON(json: any): FrontendCartResourceArrayResponse;
|
|
33
|
-
export declare function FrontendCartResourceArrayResponseToJSONTyped(value?: FrontendCartResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
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.instanceOfFrontendCartResourceArrayResponse = instanceOfFrontendCartResourceArrayResponse;
|
|
17
|
-
exports.FrontendCartResourceArrayResponseFromJSON = FrontendCartResourceArrayResponseFromJSON;
|
|
18
|
-
exports.FrontendCartResourceArrayResponseFromJSONTyped = FrontendCartResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.FrontendCartResourceArrayResponseToJSON = FrontendCartResourceArrayResponseToJSON;
|
|
20
|
-
exports.FrontendCartResourceArrayResponseToJSONTyped = FrontendCartResourceArrayResponseToJSONTyped;
|
|
21
|
-
var FrontendCartResource_1 = require("./FrontendCartResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the FrontendCartResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfFrontendCartResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function FrontendCartResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return FrontendCartResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function FrontendCartResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(FrontendCartResource_1.FrontendCartResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function FrontendCartResourceArrayResponseToJSON(json) {
|
|
40
|
-
return FrontendCartResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function FrontendCartResourceArrayResponseToJSONTyped(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(FrontendCartResource_1.FrontendCartResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
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;
|
|
@@ -1,77 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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;
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# DetachCouponCartRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`couponIds` | Array<number>
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { DetachCouponCartRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"couponIds": null,
|
|
19
|
-
} satisfies DetachCouponCartRequest
|
|
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 DetachCouponCartRequest
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
package/docs/DiscountType.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# DiscountType
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import type { DiscountType } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
-
|
|
15
|
-
// TODO: Update the object below with actual values
|
|
16
|
-
const example = {
|
|
17
|
-
} satisfies DiscountType
|
|
18
|
-
|
|
19
|
-
console.log(example)
|
|
20
|
-
|
|
21
|
-
// Convert the instance to a JSON string
|
|
22
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
-
console.log(exampleJSON)
|
|
24
|
-
|
|
25
|
-
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as DiscountType
|
|
27
|
-
console.log(exampleParsed)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
-
|
|
32
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# DiscountValueType
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import type { DiscountValueType } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
-
|
|
15
|
-
// TODO: Update the object below with actual values
|
|
16
|
-
const example = {
|
|
17
|
-
} satisfies DiscountValueType
|
|
18
|
-
|
|
19
|
-
console.log(example)
|
|
20
|
-
|
|
21
|
-
// Convert the instance to a JSON string
|
|
22
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
-
console.log(exampleJSON)
|
|
24
|
-
|
|
25
|
-
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as DiscountValueType
|
|
27
|
-
console.log(exampleParsed)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
-
|
|
32
|
-
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# FrontendCartResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`siteId` | number
|
|
11
|
-
`customerId` | number
|
|
12
|
-
`source` | string
|
|
13
|
-
`sessionToken` | string
|
|
14
|
-
`expiryDate` | Date
|
|
15
|
-
`checkoutCompletedAt` | Date
|
|
16
|
-
`createdAt` | Date
|
|
17
|
-
`updatedAt` | Date
|
|
18
|
-
`shippingType` | string
|
|
19
|
-
`useAsBillingAddress` | boolean
|
|
20
|
-
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
21
|
-
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
22
|
-
`lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
|
|
23
|
-
`coupons` | object
|
|
24
|
-
`shippingAddress` | [AddressResource](AddressResource.md)
|
|
25
|
-
`billingAddress` | [AddressResource](AddressResource.md)
|
|
26
|
-
`subtotal` | number
|
|
27
|
-
`discountPreview` | number
|
|
28
|
-
`totalSubtotalDiscount` | number
|
|
29
|
-
`totalShippingDiscount` | number
|
|
30
|
-
`shippingEstimate` | number
|
|
31
|
-
`insuranceEstimate` | number
|
|
32
|
-
`status` | string
|
|
33
|
-
|
|
34
|
-
## Example
|
|
35
|
-
|
|
36
|
-
```typescript
|
|
37
|
-
import type { FrontendCartResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
38
|
-
|
|
39
|
-
// TODO: Update the object below with actual values
|
|
40
|
-
const example = {
|
|
41
|
-
"id": null,
|
|
42
|
-
"siteId": null,
|
|
43
|
-
"customerId": null,
|
|
44
|
-
"source": null,
|
|
45
|
-
"sessionToken": null,
|
|
46
|
-
"expiryDate": null,
|
|
47
|
-
"checkoutCompletedAt": null,
|
|
48
|
-
"createdAt": null,
|
|
49
|
-
"updatedAt": null,
|
|
50
|
-
"shippingType": null,
|
|
51
|
-
"useAsBillingAddress": null,
|
|
52
|
-
"site": null,
|
|
53
|
-
"customer": null,
|
|
54
|
-
"lineItems": null,
|
|
55
|
-
"coupons": null,
|
|
56
|
-
"shippingAddress": null,
|
|
57
|
-
"billingAddress": null,
|
|
58
|
-
"subtotal": null,
|
|
59
|
-
"discountPreview": null,
|
|
60
|
-
"totalSubtotalDiscount": null,
|
|
61
|
-
"totalShippingDiscount": null,
|
|
62
|
-
"shippingEstimate": null,
|
|
63
|
-
"insuranceEstimate": null,
|
|
64
|
-
"status": null,
|
|
65
|
-
} satisfies FrontendCartResource
|
|
66
|
-
|
|
67
|
-
console.log(example)
|
|
68
|
-
|
|
69
|
-
// Convert the instance to a JSON string
|
|
70
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
71
|
-
console.log(exampleJSON)
|
|
72
|
-
|
|
73
|
-
// Parse the JSON string back to an object
|
|
74
|
-
const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResource
|
|
75
|
-
console.log(exampleParsed)
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
79
|
-
|
|
80
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductChildCartLiteResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`parentId` | number
|
|
11
|
-
`sku` | string
|
|
12
|
-
`model` | string
|
|
13
|
-
`name` | string
|
|
14
|
-
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
15
|
-
`label` | [LabelResource](LabelResource.md)
|
|
16
|
-
|
|
17
|
-
## Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import type { ProductChildCartLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
-
|
|
22
|
-
// TODO: Update the object below with actual values
|
|
23
|
-
const example = {
|
|
24
|
-
"id": null,
|
|
25
|
-
"parentId": null,
|
|
26
|
-
"sku": null,
|
|
27
|
-
"model": null,
|
|
28
|
-
"name": null,
|
|
29
|
-
"thumbnail": null,
|
|
30
|
-
"label": null,
|
|
31
|
-
} satisfies ProductChildCartLiteResource
|
|
32
|
-
|
|
33
|
-
console.log(example)
|
|
34
|
-
|
|
35
|
-
// Convert the instance to a JSON string
|
|
36
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
-
console.log(exampleJSON)
|
|
38
|
-
|
|
39
|
-
// Parse the JSON string back to an object
|
|
40
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductChildCartLiteResource
|
|
41
|
-
console.log(exampleParsed)
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
-
|
|
46
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductChildCartLiteResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductChildCartLiteResource>](ProductChildCartLiteResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ProductChildCartLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies ProductChildCartLiteResourceArrayResponse
|
|
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 ProductChildCartLiteResourceArrayResponse
|
|
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
|
-
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface DetachCouponCartRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface DetachCouponCartRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Array<number>}
|
|
25
|
-
* @memberof DetachCouponCartRequest
|
|
26
|
-
*/
|
|
27
|
-
couponIds: Array<number>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the DetachCouponCartRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfDetachCouponCartRequest(value: object): value is DetachCouponCartRequest {
|
|
34
|
-
if (!('couponIds' in value) || value['couponIds'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function DetachCouponCartRequestFromJSON(json: any): DetachCouponCartRequest {
|
|
39
|
-
return DetachCouponCartRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function DetachCouponCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponCartRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'couponIds': json['coupon_ids'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function DetachCouponCartRequestToJSON(json: any): DetachCouponCartRequest {
|
|
53
|
-
return DetachCouponCartRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function DetachCouponCartRequestToJSONTyped(value?: DetachCouponCartRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'coupon_ids': value['couponIds'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|