@digital8/lighting-illusions-ts-sdk 0.0.1839 → 0.0.1841
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 -10
- package/README.md +3 -8
- 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 +3 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- 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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/FrontendCartResource.d.ts +0 -12
- package/dist/models/FrontendCartResource.js +0 -8
- package/dist/models/LineItemListResource.d.ts +3 -27
- package/dist/models/LineItemListResource.js +3 -19
- package/dist/models/StoreCartRequest.d.ts +2 -2
- package/dist/models/StoreCartRequest.js +2 -6
- package/dist/models/StoreCartRequestShippingAddress.d.ts +4 -4
- package/dist/models/StoreCartRequestShippingAddress.js +4 -12
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/UpdateCartRequest.d.ts +2 -2
- package/dist/models/UpdateCartRequest.js +2 -6
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/docs/AdminCartResource.md +6 -16
- package/docs/AttachCouponCartRequest.md +2 -2
- package/docs/CartsApi.md +8 -8
- package/docs/FrontendCartResource.md +0 -4
- package/docs/LineItemListResource.md +1 -9
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +14 -12
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminCartResource.ts +14 -60
- package/src/models/AttachCouponCartRequest.ts +5 -5
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/FrontendCartResource.ts +0 -18
- package/src/models/LineItemListResource.ts +10 -46
- package/src/models/StoreCartRequest.ts +4 -6
- package/src/models/StoreCartRequestShippingAddress.ts +8 -12
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/UpdateCartRequest.ts +4 -6
- package/src/models/index.ts +0 -5
- 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/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/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/ProductChildCartLiteResource.ts +0 -135
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
|
@@ -1,26 +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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
export declare const DiscountType: {
|
|
17
|
-
readonly Shipping: "shipping";
|
|
18
|
-
readonly Subtotal: "subtotal";
|
|
19
|
-
readonly Product: "product";
|
|
20
|
-
};
|
|
21
|
-
export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
|
|
22
|
-
export declare function instanceOfDiscountType(value: any): boolean;
|
|
23
|
-
export declare function DiscountTypeFromJSON(json: any): DiscountType;
|
|
24
|
-
export declare function DiscountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountType;
|
|
25
|
-
export declare function DiscountTypeToJSON(value?: DiscountType | null): any;
|
|
26
|
-
export declare function DiscountTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountType;
|
|
@@ -1,52 +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.DiscountType = void 0;
|
|
17
|
-
exports.instanceOfDiscountType = instanceOfDiscountType;
|
|
18
|
-
exports.DiscountTypeFromJSON = DiscountTypeFromJSON;
|
|
19
|
-
exports.DiscountTypeFromJSONTyped = DiscountTypeFromJSONTyped;
|
|
20
|
-
exports.DiscountTypeToJSON = DiscountTypeToJSON;
|
|
21
|
-
exports.DiscountTypeToJSONTyped = DiscountTypeToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.DiscountType = {
|
|
27
|
-
Shipping: 'shipping',
|
|
28
|
-
Subtotal: 'subtotal',
|
|
29
|
-
Product: 'product'
|
|
30
|
-
};
|
|
31
|
-
function instanceOfDiscountType(value) {
|
|
32
|
-
for (var key in exports.DiscountType) {
|
|
33
|
-
if (Object.prototype.hasOwnProperty.call(exports.DiscountType, key)) {
|
|
34
|
-
if (exports.DiscountType[key] === value) {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
function DiscountTypeFromJSON(json) {
|
|
42
|
-
return DiscountTypeFromJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function DiscountTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
-
return json;
|
|
46
|
-
}
|
|
47
|
-
function DiscountTypeToJSON(value) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
function DiscountTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
@@ -1,25 +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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
export declare const DiscountValueType: {
|
|
17
|
-
readonly FixedValue: "fixed_value";
|
|
18
|
-
readonly Percentage: "percentage";
|
|
19
|
-
};
|
|
20
|
-
export type DiscountValueType = typeof DiscountValueType[keyof typeof DiscountValueType];
|
|
21
|
-
export declare function instanceOfDiscountValueType(value: any): boolean;
|
|
22
|
-
export declare function DiscountValueTypeFromJSON(json: any): DiscountValueType;
|
|
23
|
-
export declare function DiscountValueTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountValueType;
|
|
24
|
-
export declare function DiscountValueTypeToJSON(value?: DiscountValueType | null): any;
|
|
25
|
-
export declare function DiscountValueTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountValueType;
|
|
@@ -1,51 +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.DiscountValueType = void 0;
|
|
17
|
-
exports.instanceOfDiscountValueType = instanceOfDiscountValueType;
|
|
18
|
-
exports.DiscountValueTypeFromJSON = DiscountValueTypeFromJSON;
|
|
19
|
-
exports.DiscountValueTypeFromJSONTyped = DiscountValueTypeFromJSONTyped;
|
|
20
|
-
exports.DiscountValueTypeToJSON = DiscountValueTypeToJSON;
|
|
21
|
-
exports.DiscountValueTypeToJSONTyped = DiscountValueTypeToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.DiscountValueType = {
|
|
27
|
-
FixedValue: 'fixed_value',
|
|
28
|
-
Percentage: 'percentage'
|
|
29
|
-
};
|
|
30
|
-
function instanceOfDiscountValueType(value) {
|
|
31
|
-
for (var key in exports.DiscountValueType) {
|
|
32
|
-
if (Object.prototype.hasOwnProperty.call(exports.DiscountValueType, key)) {
|
|
33
|
-
if (exports.DiscountValueType[key] === value) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
function DiscountValueTypeFromJSON(json) {
|
|
41
|
-
return DiscountValueTypeFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function DiscountValueTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
function DiscountValueTypeToJSON(value) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
function DiscountValueTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
@@ -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,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
|
-
|