@digital8/lighting-illusions-ts-sdk 0.0.1897 → 0.0.1898
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +18 -0
- package/README.md +12 -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 +3 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/CartCouponResource.d.ts +50 -0
- package/dist/models/CartCouponResource.js +63 -0
- package/dist/models/CartCouponResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartCouponResourceArrayResponse.js +50 -0
- package/dist/models/CartResource.d.ts +37 -6
- package/dist/models/CartResource.js +35 -12
- 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/LineItemDiscountResource.d.ts +50 -0
- package/dist/models/LineItemDiscountResource.js +63 -0
- package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +33 -0
- package/dist/models/LineItemDiscountResourceArrayResponse.js +50 -0
- package/dist/models/LineItemListResource.d.ts +29 -4
- package/dist/models/LineItemListResource.js +23 -4
- 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 +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/docs/CartCouponResource.md +40 -0
- package/docs/CartCouponResourceArrayResponse.md +34 -0
- package/docs/CartResource.md +17 -7
- 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/LineItemDiscountResource.md +40 -0
- package/docs/LineItemDiscountResourceArrayResponse.md +34 -0
- package/docs/LineItemListResource.md +9 -1
- package/docs/ProductChildCartLiteResource.md +46 -0
- package/docs/ProductChildCartLiteResourceArrayResponse.md +34 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +12 -14
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +2 -3
- package/src/models/CartCouponResource.ts +93 -0
- package/src/models/CartCouponResourceArrayResponse.ts +73 -0
- package/src/models/CartResource.ts +71 -18
- package/src/models/DetachCouponCartRequest.ts +66 -0
- package/src/models/DiscountType.ts +54 -0
- package/src/models/DiscountValueType.ts +53 -0
- package/src/models/LineItemDiscountResource.ts +93 -0
- package/src/models/LineItemDiscountResourceArrayResponse.ts +73 -0
- package/src/models/LineItemListResource.ts +56 -12
- package/src/models/ProductChildCartLiteResource.ts +135 -0
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +73 -0
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/index.ts +9 -0
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* @interface DetachCouponCartRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DetachCouponCartRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof DetachCouponCartRequest
|
|
22
|
+
*/
|
|
23
|
+
couponIds: Array<number>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the DetachCouponCartRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfDetachCouponCartRequest(value: object): value is DetachCouponCartRequest;
|
|
29
|
+
export declare function DetachCouponCartRequestFromJSON(json: any): DetachCouponCartRequest;
|
|
30
|
+
export declare function DetachCouponCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponCartRequest;
|
|
31
|
+
export declare function DetachCouponCartRequestToJSON(json: any): DetachCouponCartRequest;
|
|
32
|
+
export declare function DetachCouponCartRequestToJSONTyped(value?: DetachCouponCartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfDetachCouponCartRequest = instanceOfDetachCouponCartRequest;
|
|
17
|
+
exports.DetachCouponCartRequestFromJSON = DetachCouponCartRequestFromJSON;
|
|
18
|
+
exports.DetachCouponCartRequestFromJSONTyped = DetachCouponCartRequestFromJSONTyped;
|
|
19
|
+
exports.DetachCouponCartRequestToJSON = DetachCouponCartRequestToJSON;
|
|
20
|
+
exports.DetachCouponCartRequestToJSONTyped = DetachCouponCartRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DetachCouponCartRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDetachCouponCartRequest(value) {
|
|
25
|
+
if (!('couponIds' in value) || value['couponIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DetachCouponCartRequestFromJSON(json) {
|
|
30
|
+
return DetachCouponCartRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DetachCouponCartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'couponIds': json['coupon_ids'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function DetachCouponCartRequestToJSON(json) {
|
|
41
|
+
return DetachCouponCartRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function DetachCouponCartRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'coupon_ids': value['couponIds'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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;
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* @interface LineItemDiscountResource
|
|
16
|
+
*/
|
|
17
|
+
export interface LineItemDiscountResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof LineItemDiscountResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LineItemDiscountResource
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof LineItemDiscountResource
|
|
34
|
+
*/
|
|
35
|
+
discountTotal: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof LineItemDiscountResource
|
|
40
|
+
*/
|
|
41
|
+
couponCode: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the LineItemDiscountResource interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfLineItemDiscountResource(value: object): value is LineItemDiscountResource;
|
|
47
|
+
export declare function LineItemDiscountResourceFromJSON(json: any): LineItemDiscountResource;
|
|
48
|
+
export declare function LineItemDiscountResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemDiscountResource;
|
|
49
|
+
export declare function LineItemDiscountResourceToJSON(json: any): LineItemDiscountResource;
|
|
50
|
+
export declare function LineItemDiscountResourceToJSONTyped(value?: LineItemDiscountResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfLineItemDiscountResource = instanceOfLineItemDiscountResource;
|
|
17
|
+
exports.LineItemDiscountResourceFromJSON = LineItemDiscountResourceFromJSON;
|
|
18
|
+
exports.LineItemDiscountResourceFromJSONTyped = LineItemDiscountResourceFromJSONTyped;
|
|
19
|
+
exports.LineItemDiscountResourceToJSON = LineItemDiscountResourceToJSON;
|
|
20
|
+
exports.LineItemDiscountResourceToJSONTyped = LineItemDiscountResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LineItemDiscountResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLineItemDiscountResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('discountTotal' in value) || value['discountTotal'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('couponCode' in value) || value['couponCode'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function LineItemDiscountResourceFromJSON(json) {
|
|
36
|
+
return LineItemDiscountResourceFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function LineItemDiscountResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'discountTotal': json['discount_total'],
|
|
46
|
+
'couponCode': json['coupon_code'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function LineItemDiscountResourceToJSON(json) {
|
|
50
|
+
return LineItemDiscountResourceToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function LineItemDiscountResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'discount_total': value['discountTotal'],
|
|
61
|
+
'coupon_code': value['couponCode'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -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 { LineItemDiscountResource } from './LineItemDiscountResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LineItemDiscountResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface LineItemDiscountResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<LineItemDiscountResource>}
|
|
22
|
+
* @memberof LineItemDiscountResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<LineItemDiscountResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the LineItemDiscountResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfLineItemDiscountResourceArrayResponse(value: object): value is LineItemDiscountResourceArrayResponse;
|
|
30
|
+
export declare function LineItemDiscountResourceArrayResponseFromJSON(json: any): LineItemDiscountResourceArrayResponse;
|
|
31
|
+
export declare function LineItemDiscountResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemDiscountResourceArrayResponse;
|
|
32
|
+
export declare function LineItemDiscountResourceArrayResponseToJSON(json: any): LineItemDiscountResourceArrayResponse;
|
|
33
|
+
export declare function LineItemDiscountResourceArrayResponseToJSONTyped(value?: LineItemDiscountResourceArrayResponse | 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.instanceOfLineItemDiscountResourceArrayResponse = instanceOfLineItemDiscountResourceArrayResponse;
|
|
17
|
+
exports.LineItemDiscountResourceArrayResponseFromJSON = LineItemDiscountResourceArrayResponseFromJSON;
|
|
18
|
+
exports.LineItemDiscountResourceArrayResponseFromJSONTyped = LineItemDiscountResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.LineItemDiscountResourceArrayResponseToJSON = LineItemDiscountResourceArrayResponseToJSON;
|
|
20
|
+
exports.LineItemDiscountResourceArrayResponseToJSONTyped = LineItemDiscountResourceArrayResponseToJSONTyped;
|
|
21
|
+
var LineItemDiscountResource_1 = require("./LineItemDiscountResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the LineItemDiscountResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfLineItemDiscountResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function LineItemDiscountResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return LineItemDiscountResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function LineItemDiscountResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(LineItemDiscountResource_1.LineItemDiscountResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function LineItemDiscountResourceArrayResponseToJSON(json) {
|
|
40
|
+
return LineItemDiscountResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function LineItemDiscountResourceArrayResponseToJSONTyped(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(LineItemDiscountResource_1.LineItemDiscountResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { LineItemDiscountResource } from './LineItemDiscountResource';
|
|
13
|
+
import type { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -21,7 +22,7 @@ export interface LineItemListResource {
|
|
|
21
22
|
* @type {number}
|
|
22
23
|
* @memberof LineItemListResource
|
|
23
24
|
*/
|
|
24
|
-
id
|
|
25
|
+
id: number;
|
|
25
26
|
/**
|
|
26
27
|
*
|
|
27
28
|
* @type {number}
|
|
@@ -36,10 +37,34 @@ export interface LineItemListResource {
|
|
|
36
37
|
productPrice: number;
|
|
37
38
|
/**
|
|
38
39
|
*
|
|
39
|
-
* @type {
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof LineItemListResource
|
|
42
|
+
*/
|
|
43
|
+
productDiscount: number;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof LineItemListResource
|
|
48
|
+
*/
|
|
49
|
+
totalDiscount: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof LineItemListResource
|
|
54
|
+
*/
|
|
55
|
+
lineSubtotal: number;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<LineItemDiscountResource>}
|
|
59
|
+
* @memberof LineItemListResource
|
|
60
|
+
*/
|
|
61
|
+
discounts: Array<LineItemDiscountResource> | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {ProductChildCartLiteResource}
|
|
40
65
|
* @memberof LineItemListResource
|
|
41
66
|
*/
|
|
42
|
-
productChild:
|
|
67
|
+
productChild: ProductChildCartLiteResource | null;
|
|
43
68
|
}
|
|
44
69
|
/**
|
|
45
70
|
* Check if a given object implements the LineItemListResource interface.
|
|
@@ -18,15 +18,26 @@ exports.LineItemListResourceFromJSON = LineItemListResourceFromJSON;
|
|
|
18
18
|
exports.LineItemListResourceFromJSONTyped = LineItemListResourceFromJSONTyped;
|
|
19
19
|
exports.LineItemListResourceToJSON = LineItemListResourceToJSON;
|
|
20
20
|
exports.LineItemListResourceToJSONTyped = LineItemListResourceToJSONTyped;
|
|
21
|
-
var
|
|
21
|
+
var LineItemDiscountResource_1 = require("./LineItemDiscountResource");
|
|
22
|
+
var ProductChildCartLiteResource_1 = require("./ProductChildCartLiteResource");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the LineItemListResource interface.
|
|
24
25
|
*/
|
|
25
26
|
function instanceOfLineItemListResource(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
26
29
|
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
27
30
|
return false;
|
|
28
31
|
if (!('productPrice' in value) || value['productPrice'] === undefined)
|
|
29
32
|
return false;
|
|
33
|
+
if (!('productDiscount' in value) || value['productDiscount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('totalDiscount' in value) || value['totalDiscount'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('lineSubtotal' in value) || value['lineSubtotal'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('discounts' in value) || value['discounts'] === undefined)
|
|
40
|
+
return false;
|
|
30
41
|
if (!('productChild' in value) || value['productChild'] === undefined)
|
|
31
42
|
return false;
|
|
32
43
|
return true;
|
|
@@ -39,10 +50,14 @@ function LineItemListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
50
|
return json;
|
|
40
51
|
}
|
|
41
52
|
return {
|
|
42
|
-
'id': json['id']
|
|
53
|
+
'id': json['id'],
|
|
43
54
|
'quantity': json['quantity'],
|
|
44
55
|
'productPrice': json['product_price'],
|
|
45
|
-
'
|
|
56
|
+
'productDiscount': json['product_discount'],
|
|
57
|
+
'totalDiscount': json['total_discount'],
|
|
58
|
+
'lineSubtotal': json['line_subtotal'],
|
|
59
|
+
'discounts': (json['discounts'] == null ? null : json['discounts'].map(LineItemDiscountResource_1.LineItemDiscountResourceFromJSON)),
|
|
60
|
+
'productChild': (0, ProductChildCartLiteResource_1.ProductChildCartLiteResourceFromJSON)(json['product_child']),
|
|
46
61
|
};
|
|
47
62
|
}
|
|
48
63
|
function LineItemListResourceToJSON(json) {
|
|
@@ -57,6 +72,10 @@ function LineItemListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
57
72
|
'id': value['id'],
|
|
58
73
|
'quantity': value['quantity'],
|
|
59
74
|
'product_price': value['productPrice'],
|
|
60
|
-
'
|
|
75
|
+
'product_discount': value['productDiscount'],
|
|
76
|
+
'total_discount': value['totalDiscount'],
|
|
77
|
+
'line_subtotal': value['lineSubtotal'],
|
|
78
|
+
'discounts': (value['discounts'] == null ? null : value['discounts'].map(LineItemDiscountResource_1.LineItemDiscountResourceToJSON)),
|
|
79
|
+
'product_child': (0, ProductChildCartLiteResource_1.ProductChildCartLiteResourceToJSON)(value['productChild']),
|
|
61
80
|
};
|
|
62
81
|
}
|
|
@@ -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;
|