@digital8/lighting-illusions-ts-sdk 0.0.2123 → 0.0.2125
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 +14 -0
- package/README.md +9 -2
- 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/AdminOrderLineItemResource.d.ts +1 -8
- package/dist/models/AdminOrderLineItemResource.js +1 -8
- package/dist/models/CartCouponLiteResource.d.ts +56 -0
- package/dist/models/CartCouponLiteResource.js +67 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.js +50 -0
- package/dist/models/FrontendCartResource.d.ts +138 -0
- package/dist/models/FrontendCartResource.js +119 -0
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
- package/dist/models/FrontendCartResourceCouponsInner.d.ts +56 -0
- package/dist/models/FrontendCartResourceCouponsInner.js +57 -0
- package/dist/models/FrontendLineItemResource.d.ts +81 -0
- package/dist/models/FrontendLineItemResource.js +82 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.js +50 -0
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +3 -1
- package/dist/models/OrderListResource.d.ts +2 -8
- package/dist/models/OrderListResource.js +3 -7
- package/dist/models/ProductChildLineItemLiteResource.d.ts +18 -0
- package/dist/models/ProductChildLineItemLiteResource.js +12 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/docs/AdminOrderLineItemResource.md +0 -2
- package/docs/CartCouponLiteResource.md +42 -0
- package/docs/CartCouponLiteResourceArrayResponse.md +34 -0
- package/docs/FrontendCartResource.md +68 -0
- package/docs/FrontendCartResourceArrayResponse.md +34 -0
- package/docs/FrontendCartResourceCouponsInner.md +42 -0
- package/docs/FrontendLineItemResource.md +50 -0
- package/docs/FrontendLineItemResourceArrayResponse.md +34 -0
- package/docs/OrderListResource.md +2 -4
- package/docs/ProductChildLineItemLiteResource.md +6 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminOrderLineItemResource.ts +2 -19
- package/src/models/CartCouponLiteResource.ts +102 -0
- package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/FrontendCartResource.ts +246 -0
- package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
- package/src/models/FrontendCartResourceCouponsInner.ts +97 -0
- package/src/models/FrontendLineItemResource.ts +145 -0
- package/src/models/FrontendLineItemResourceArrayResponse.ts +73 -0
- package/src/models/OrderFulfillmentResource.ts +3 -2
- package/src/models/OrderListResource.ts +5 -14
- package/src/models/ProductChildLineItemLiteResource.ts +27 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/index.ts +7 -0
|
@@ -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 { 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;
|
|
@@ -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.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
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 FrontendCartResourceCouponsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface FrontendCartResourceCouponsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof FrontendCartResourceCouponsInner
|
|
22
|
+
*/
|
|
23
|
+
id?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FrontendCartResourceCouponsInner
|
|
28
|
+
*/
|
|
29
|
+
code?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FrontendCartResourceCouponsInner
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof FrontendCartResourceCouponsInner
|
|
40
|
+
*/
|
|
41
|
+
discount?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof FrontendCartResourceCouponsInner
|
|
46
|
+
*/
|
|
47
|
+
appliesTo?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the FrontendCartResourceCouponsInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfFrontendCartResourceCouponsInner(value: object): value is FrontendCartResourceCouponsInner;
|
|
53
|
+
export declare function FrontendCartResourceCouponsInnerFromJSON(json: any): FrontendCartResourceCouponsInner;
|
|
54
|
+
export declare function FrontendCartResourceCouponsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendCartResourceCouponsInner;
|
|
55
|
+
export declare function FrontendCartResourceCouponsInnerToJSON(json: any): FrontendCartResourceCouponsInner;
|
|
56
|
+
export declare function FrontendCartResourceCouponsInnerToJSONTyped(value?: FrontendCartResourceCouponsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfFrontendCartResourceCouponsInner = instanceOfFrontendCartResourceCouponsInner;
|
|
17
|
+
exports.FrontendCartResourceCouponsInnerFromJSON = FrontendCartResourceCouponsInnerFromJSON;
|
|
18
|
+
exports.FrontendCartResourceCouponsInnerFromJSONTyped = FrontendCartResourceCouponsInnerFromJSONTyped;
|
|
19
|
+
exports.FrontendCartResourceCouponsInnerToJSON = FrontendCartResourceCouponsInnerToJSON;
|
|
20
|
+
exports.FrontendCartResourceCouponsInnerToJSONTyped = FrontendCartResourceCouponsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the FrontendCartResourceCouponsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfFrontendCartResourceCouponsInner(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function FrontendCartResourceCouponsInnerFromJSON(json) {
|
|
28
|
+
return FrontendCartResourceCouponsInnerFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function FrontendCartResourceCouponsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
37
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
38
|
+
'discount': json['discount'] == null ? undefined : json['discount'],
|
|
39
|
+
'appliesTo': json['appliesTo'] == null ? undefined : json['appliesTo'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function FrontendCartResourceCouponsInnerToJSON(json) {
|
|
43
|
+
return FrontendCartResourceCouponsInnerToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function FrontendCartResourceCouponsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'code': value['code'],
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
'discount': value['discount'],
|
|
55
|
+
'appliesTo': value['appliesTo'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ProductChildLineItemLiteResource } from './ProductChildLineItemLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FrontendLineItemResource
|
|
17
|
+
*/
|
|
18
|
+
export interface FrontendLineItemResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof FrontendLineItemResource
|
|
23
|
+
*/
|
|
24
|
+
id?: number | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof FrontendLineItemResource
|
|
29
|
+
*/
|
|
30
|
+
quantity: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof FrontendLineItemResource
|
|
35
|
+
*/
|
|
36
|
+
productPrice: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof FrontendLineItemResource
|
|
41
|
+
*/
|
|
42
|
+
subtotalAmount: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof FrontendLineItemResource
|
|
47
|
+
*/
|
|
48
|
+
totalAmount: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof FrontendLineItemResource
|
|
53
|
+
*/
|
|
54
|
+
promotionalSaving: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof FrontendLineItemResource
|
|
59
|
+
*/
|
|
60
|
+
isAvailable: boolean;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof FrontendLineItemResource
|
|
65
|
+
*/
|
|
66
|
+
isInStock: boolean;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {ProductChildLineItemLiteResource}
|
|
70
|
+
* @memberof FrontendLineItemResource
|
|
71
|
+
*/
|
|
72
|
+
productChild: ProductChildLineItemLiteResource | null;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the FrontendLineItemResource interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfFrontendLineItemResource(value: object): value is FrontendLineItemResource;
|
|
78
|
+
export declare function FrontendLineItemResourceFromJSON(json: any): FrontendLineItemResource;
|
|
79
|
+
export declare function FrontendLineItemResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendLineItemResource;
|
|
80
|
+
export declare function FrontendLineItemResourceToJSON(json: any): FrontendLineItemResource;
|
|
81
|
+
export declare function FrontendLineItemResourceToJSONTyped(value?: FrontendLineItemResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
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.instanceOfFrontendLineItemResource = instanceOfFrontendLineItemResource;
|
|
17
|
+
exports.FrontendLineItemResourceFromJSON = FrontendLineItemResourceFromJSON;
|
|
18
|
+
exports.FrontendLineItemResourceFromJSONTyped = FrontendLineItemResourceFromJSONTyped;
|
|
19
|
+
exports.FrontendLineItemResourceToJSON = FrontendLineItemResourceToJSON;
|
|
20
|
+
exports.FrontendLineItemResourceToJSONTyped = FrontendLineItemResourceToJSONTyped;
|
|
21
|
+
var ProductChildLineItemLiteResource_1 = require("./ProductChildLineItemLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the FrontendLineItemResource interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfFrontendLineItemResource(value) {
|
|
26
|
+
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('productPrice' in value) || value['productPrice'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('subtotalAmount' in value) || value['subtotalAmount'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalAmount' in value) || value['totalAmount'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('promotionalSaving' in value) || value['promotionalSaving'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('isAvailable' in value) || value['isAvailable'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('isInStock' in value) || value['isInStock'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('productChild' in value) || value['productChild'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function FrontendLineItemResourceFromJSON(json) {
|
|
45
|
+
return FrontendLineItemResourceFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function FrontendLineItemResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
53
|
+
'quantity': json['quantity'],
|
|
54
|
+
'productPrice': json['productPrice'],
|
|
55
|
+
'subtotalAmount': json['subtotalAmount'],
|
|
56
|
+
'totalAmount': json['totalAmount'],
|
|
57
|
+
'promotionalSaving': json['promotionalSaving'],
|
|
58
|
+
'isAvailable': json['isAvailable'],
|
|
59
|
+
'isInStock': json['isInStock'],
|
|
60
|
+
'productChild': (0, ProductChildLineItemLiteResource_1.ProductChildLineItemLiteResourceFromJSON)(json['productChild']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function FrontendLineItemResourceToJSON(json) {
|
|
64
|
+
return FrontendLineItemResourceToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function FrontendLineItemResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'id': value['id'],
|
|
73
|
+
'quantity': value['quantity'],
|
|
74
|
+
'productPrice': value['productPrice'],
|
|
75
|
+
'subtotalAmount': value['subtotalAmount'],
|
|
76
|
+
'totalAmount': value['totalAmount'],
|
|
77
|
+
'promotionalSaving': value['promotionalSaving'],
|
|
78
|
+
'isAvailable': value['isAvailable'],
|
|
79
|
+
'isInStock': value['isInStock'],
|
|
80
|
+
'productChild': (0, ProductChildLineItemLiteResource_1.ProductChildLineItemLiteResourceToJSON)(value['productChild']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -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 { FrontendLineItemResource } from './FrontendLineItemResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FrontendLineItemResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface FrontendLineItemResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<FrontendLineItemResource>}
|
|
22
|
+
* @memberof FrontendLineItemResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<FrontendLineItemResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the FrontendLineItemResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfFrontendLineItemResourceArrayResponse(value: object): value is FrontendLineItemResourceArrayResponse;
|
|
30
|
+
export declare function FrontendLineItemResourceArrayResponseFromJSON(json: any): FrontendLineItemResourceArrayResponse;
|
|
31
|
+
export declare function FrontendLineItemResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendLineItemResourceArrayResponse;
|
|
32
|
+
export declare function FrontendLineItemResourceArrayResponseToJSON(json: any): FrontendLineItemResourceArrayResponse;
|
|
33
|
+
export declare function FrontendLineItemResourceArrayResponseToJSONTyped(value?: FrontendLineItemResourceArrayResponse | 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.instanceOfFrontendLineItemResourceArrayResponse = instanceOfFrontendLineItemResourceArrayResponse;
|
|
17
|
+
exports.FrontendLineItemResourceArrayResponseFromJSON = FrontendLineItemResourceArrayResponseFromJSON;
|
|
18
|
+
exports.FrontendLineItemResourceArrayResponseFromJSONTyped = FrontendLineItemResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.FrontendLineItemResourceArrayResponseToJSON = FrontendLineItemResourceArrayResponseToJSON;
|
|
20
|
+
exports.FrontendLineItemResourceArrayResponseToJSONTyped = FrontendLineItemResourceArrayResponseToJSONTyped;
|
|
21
|
+
var FrontendLineItemResource_1 = require("./FrontendLineItemResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the FrontendLineItemResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfFrontendLineItemResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function FrontendLineItemResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return FrontendLineItemResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function FrontendLineItemResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(FrontendLineItemResource_1.FrontendLineItemResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function FrontendLineItemResourceArrayResponseToJSON(json) {
|
|
40
|
+
return FrontendLineItemResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function FrontendLineItemResourceArrayResponseToJSONTyped(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(FrontendLineItemResource_1.FrontendLineItemResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -29,6 +29,8 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
+
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
|
|
33
|
+
return false;
|
|
32
34
|
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
|
|
33
35
|
return false;
|
|
34
36
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
@@ -51,7 +53,7 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
53
|
'orderId': json['orderId'],
|
|
52
54
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
53
55
|
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
54
|
-
'trackingUrl': json['trackingUrl']
|
|
56
|
+
'trackingUrl': json['trackingUrl'],
|
|
55
57
|
'trackingCompany': json['trackingCompany'],
|
|
56
58
|
'docnum': json['docnum'],
|
|
57
59
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -88,16 +88,10 @@ export interface OrderListResource {
|
|
|
88
88
|
lineItems: Array<LineItemListResource> | null;
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
|
-
* @type {TransactionLiteResource}
|
|
91
|
+
* @type {Array<TransactionLiteResource>}
|
|
92
92
|
* @memberof OrderListResource
|
|
93
93
|
*/
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @type {number}
|
|
98
|
-
* @memberof OrderListResource
|
|
99
|
-
*/
|
|
100
|
-
transactionsCount: number;
|
|
94
|
+
transactions: Array<TransactionLiteResource> | null;
|
|
101
95
|
}
|
|
102
96
|
/**
|
|
103
97
|
* Check if a given object implements the OrderListResource interface.
|
|
@@ -43,9 +43,7 @@ function instanceOfOrderListResource(value) {
|
|
|
43
43
|
return false;
|
|
44
44
|
if (!('lineItems' in value) || value['lineItems'] === undefined)
|
|
45
45
|
return false;
|
|
46
|
-
if (!('
|
|
47
|
-
return false;
|
|
48
|
-
if (!('transactionsCount' in value) || value['transactionsCount'] === undefined)
|
|
46
|
+
if (!('transactions' in value) || value['transactions'] === undefined)
|
|
49
47
|
return false;
|
|
50
48
|
return true;
|
|
51
49
|
}
|
|
@@ -68,8 +66,7 @@ function OrderListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
66
|
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
69
67
|
'status': (0, OrderStatusLiteResource_1.OrderStatusLiteResourceFromJSON)(json['status']),
|
|
70
68
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
71
|
-
'
|
|
72
|
-
'transactionsCount': json['transactionsCount'],
|
|
69
|
+
'transactions': (json['transactions'] == null ? null : json['transactions'].map(TransactionLiteResource_1.TransactionLiteResourceFromJSON)),
|
|
73
70
|
};
|
|
74
71
|
}
|
|
75
72
|
function OrderListResourceToJSON(json) {
|
|
@@ -92,7 +89,6 @@ function OrderListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
92
89
|
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
93
90
|
'status': (0, OrderStatusLiteResource_1.OrderStatusLiteResourceToJSON)(value['status']),
|
|
94
91
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
95
|
-
'
|
|
96
|
-
'transactionsCount': value['transactionsCount'],
|
|
92
|
+
'transactions': (value['transactions'] == null ? null : value['transactions'].map(TransactionLiteResource_1.TransactionLiteResourceToJSON)),
|
|
97
93
|
};
|
|
98
94
|
}
|
|
@@ -53,6 +53,24 @@ export interface ProductChildLineItemLiteResource {
|
|
|
53
53
|
* @memberof ProductChildLineItemLiteResource
|
|
54
54
|
*/
|
|
55
55
|
name: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ProductChildLineItemLiteResource
|
|
60
|
+
*/
|
|
61
|
+
parentName: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ProductChildLineItemLiteResource
|
|
66
|
+
*/
|
|
67
|
+
variantName: string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof ProductChildLineItemLiteResource
|
|
72
|
+
*/
|
|
73
|
+
slug: string;
|
|
56
74
|
/**
|
|
57
75
|
*
|
|
58
76
|
* @type {number}
|
|
@@ -36,6 +36,12 @@ function instanceOfProductChildLineItemLiteResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('name' in value) || value['name'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('parentName' in value) || value['parentName'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('variantName' in value) || value['variantName'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
44
|
+
return false;
|
|
39
45
|
if (!('stock' in value) || value['stock'] === undefined)
|
|
40
46
|
return false;
|
|
41
47
|
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
@@ -60,6 +66,9 @@ function ProductChildLineItemLiteResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
60
66
|
'model': json['model'],
|
|
61
67
|
'modelNumber': json['modelNumber'],
|
|
62
68
|
'name': json['name'],
|
|
69
|
+
'parentName': json['parentName'],
|
|
70
|
+
'variantName': json['variantName'],
|
|
71
|
+
'slug': json['slug'],
|
|
63
72
|
'stock': json['stock'],
|
|
64
73
|
'salePrice': json['salePrice'],
|
|
65
74
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
@@ -81,6 +90,9 @@ function ProductChildLineItemLiteResourceToJSONTyped(value, ignoreDiscriminator)
|
|
|
81
90
|
'model': value['model'],
|
|
82
91
|
'modelNumber': value['modelNumber'],
|
|
83
92
|
'name': value['name'],
|
|
93
|
+
'parentName': value['parentName'],
|
|
94
|
+
'variantName': value['variantName'],
|
|
95
|
+
'slug': value['slug'],
|
|
84
96
|
'stock': value['stock'],
|
|
85
97
|
'salePrice': value['salePrice'],
|
|
86
98
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
@@ -36,6 +36,8 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
+
return false;
|
|
39
41
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
40
42
|
return false;
|
|
41
43
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -59,7 +61,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
61
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
62
|
'latitude': json['latitude'],
|
|
61
63
|
'longitude': json['longitude'],
|
|
62
|
-
'tagLine': json['tagLine']
|
|
64
|
+
'tagLine': json['tagLine'],
|
|
63
65
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
64
66
|
'specialDates': json['specialDates'],
|
|
65
67
|
'suppliers': json['suppliers'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {object}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date: object;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,6 +26,8 @@ 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;
|
|
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 StoreSpecialDateFrontendResourceFromJSONTyped(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['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|