@digital8/lighting-illusions-ts-sdk 0.0.1859 → 0.0.1861
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -14
- package/README.md +3 -10
- package/dist/apis/CartsApi.d.ts +6 -6
- package/dist/apis/CartsApi.js +5 -3
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +6 -0
- package/dist/models/AddressResource.js +2 -0
- package/dist/models/AttachCouponCartRequest.d.ts +2 -2
- package/dist/models/AttachCouponCartRequest.js +3 -3
- package/dist/models/CartResource.d.ts +4 -34
- package/dist/models/CartResource.js +10 -32
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/LineItemListResource.d.ts +3 -27
- package/dist/models/LineItemListResource.js +3 -19
- package/dist/models/StoreCartRequest.d.ts +12 -0
- package/dist/models/StoreCartRequest.js +4 -0
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/UpdateCartRequest.d.ts +12 -0
- package/dist/models/UpdateCartRequest.js +4 -0
- package/dist/models/index.d.ts +0 -7
- package/dist/models/index.js +0 -7
- package/docs/AddressResource.md +2 -0
- package/docs/AttachCouponCartRequest.md +2 -2
- package/docs/CartResource.md +6 -16
- package/docs/CartsApi.md +8 -8
- package/docs/LineItemListResource.md +1 -9
- package/docs/StoreCartRequest.md +4 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/UpdateCartRequest.md +4 -0
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +14 -12
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +8 -0
- package/src/models/AttachCouponCartRequest.ts +5 -5
- package/src/models/CartResource.ts +14 -60
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/LineItemListResource.ts +10 -46
- package/src/models/StoreCartRequest.ts +16 -0
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/UpdateCartRequest.ts +16 -0
- package/src/models/index.ts +0 -7
- package/dist/models/DetachCouponCartRequest.d.ts +0 -32
- package/dist/models/DetachCouponCartRequest.js +0 -51
- package/dist/models/DiscountType.d.ts +0 -26
- package/dist/models/DiscountType.js +0 -52
- package/dist/models/DiscountValueType.d.ts +0 -25
- package/dist/models/DiscountValueType.js +0 -51
- package/dist/models/LineItemDiscountResource.d.ts +0 -44
- package/dist/models/LineItemDiscountResource.js +0 -59
- package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +0 -33
- package/dist/models/LineItemDiscountResourceArrayResponse.js +0 -50
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -70
- package/dist/models/ProductChildCartLiteResource.js +0 -77
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
- package/docs/DetachCouponCartRequest.md +0 -34
- package/docs/DiscountType.md +0 -32
- package/docs/DiscountValueType.md +0 -32
- package/docs/LineItemDiscountResource.md +0 -38
- package/docs/LineItemDiscountResourceArrayResponse.md +0 -34
- package/docs/ProductChildCartLiteResource.md +0 -46
- package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
- package/src/models/DetachCouponCartRequest.ts +0 -66
- package/src/models/DiscountType.ts +0 -54
- package/src/models/DiscountValueType.ts +0 -53
- package/src/models/LineItemDiscountResource.ts +0 -84
- package/src/models/LineItemDiscountResourceArrayResponse.ts +0 -73
- package/src/models/ProductChildCartLiteResource.ts +0 -135
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
|
@@ -1,53 +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
|
-
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export const DiscountValueType = {
|
|
21
|
-
FixedValue: 'fixed_value',
|
|
22
|
-
Percentage: 'percentage'
|
|
23
|
-
} as const;
|
|
24
|
-
export type DiscountValueType = typeof DiscountValueType[keyof typeof DiscountValueType];
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export function instanceOfDiscountValueType(value: any): boolean {
|
|
28
|
-
for (const key in DiscountValueType) {
|
|
29
|
-
if (Object.prototype.hasOwnProperty.call(DiscountValueType, key)) {
|
|
30
|
-
if (DiscountValueType[key as keyof typeof DiscountValueType] === value) {
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function DiscountValueTypeFromJSON(json: any): DiscountValueType {
|
|
39
|
-
return DiscountValueTypeFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function DiscountValueTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountValueType {
|
|
43
|
-
return json as DiscountValueType;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function DiscountValueTypeToJSON(value?: DiscountValueType | null): any {
|
|
47
|
-
return value as any;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function DiscountValueTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountValueType {
|
|
51
|
-
return value as DiscountValueType;
|
|
52
|
-
}
|
|
53
|
-
|
|
@@ -1,84 +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 LineItemDiscountResource
|
|
20
|
-
*/
|
|
21
|
-
export interface LineItemDiscountResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof LineItemDiscountResource
|
|
26
|
-
*/
|
|
27
|
-
id: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof LineItemDiscountResource
|
|
32
|
-
*/
|
|
33
|
-
name: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof LineItemDiscountResource
|
|
38
|
-
*/
|
|
39
|
-
discountTotal: number;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the LineItemDiscountResource interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfLineItemDiscountResource(value: object): value is LineItemDiscountResource {
|
|
46
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
-
if (!('discountTotal' in value) || value['discountTotal'] === undefined) return false;
|
|
49
|
-
return true;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function LineItemDiscountResourceFromJSON(json: any): LineItemDiscountResource {
|
|
53
|
-
return LineItemDiscountResourceFromJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function LineItemDiscountResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemDiscountResource {
|
|
57
|
-
if (json == null) {
|
|
58
|
-
return json;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'id': json['id'],
|
|
63
|
-
'name': json['name'],
|
|
64
|
-
'discountTotal': json['discount_total'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function LineItemDiscountResourceToJSON(json: any): LineItemDiscountResource {
|
|
69
|
-
return LineItemDiscountResourceToJSONTyped(json, false);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function LineItemDiscountResourceToJSONTyped(value?: LineItemDiscountResource | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return value;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'id': value['id'],
|
|
80
|
-
'name': value['name'],
|
|
81
|
-
'discount_total': value['discountTotal'],
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|
|
@@ -1,73 +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
|
-
import type { LineItemDiscountResource } from './LineItemDiscountResource';
|
|
17
|
-
import {
|
|
18
|
-
LineItemDiscountResourceFromJSON,
|
|
19
|
-
LineItemDiscountResourceFromJSONTyped,
|
|
20
|
-
LineItemDiscountResourceToJSON,
|
|
21
|
-
LineItemDiscountResourceToJSONTyped,
|
|
22
|
-
} from './LineItemDiscountResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface LineItemDiscountResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface LineItemDiscountResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<LineItemDiscountResource>}
|
|
33
|
-
* @memberof LineItemDiscountResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<LineItemDiscountResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the LineItemDiscountResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfLineItemDiscountResourceArrayResponse(value: object): value is LineItemDiscountResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function LineItemDiscountResourceArrayResponseFromJSON(json: any): LineItemDiscountResourceArrayResponse {
|
|
46
|
-
return LineItemDiscountResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function LineItemDiscountResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemDiscountResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LineItemDiscountResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function LineItemDiscountResourceArrayResponseToJSON(json: any): LineItemDiscountResourceArrayResponse {
|
|
60
|
-
return LineItemDiscountResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function LineItemDiscountResourceArrayResponseToJSONTyped(value?: LineItemDiscountResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(LineItemDiscountResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,135 +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
|
-
import type { LabelResource } from './LabelResource';
|
|
17
|
-
import {
|
|
18
|
-
LabelResourceFromJSON,
|
|
19
|
-
LabelResourceFromJSONTyped,
|
|
20
|
-
LabelResourceToJSON,
|
|
21
|
-
LabelResourceToJSONTyped,
|
|
22
|
-
} from './LabelResource';
|
|
23
|
-
import type { AssetLiteResource } from './AssetLiteResource';
|
|
24
|
-
import {
|
|
25
|
-
AssetLiteResourceFromJSON,
|
|
26
|
-
AssetLiteResourceFromJSONTyped,
|
|
27
|
-
AssetLiteResourceToJSON,
|
|
28
|
-
AssetLiteResourceToJSONTyped,
|
|
29
|
-
} from './AssetLiteResource';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface ProductChildCartLiteResource
|
|
35
|
-
*/
|
|
36
|
-
export interface ProductChildCartLiteResource {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof ProductChildCartLiteResource
|
|
41
|
-
*/
|
|
42
|
-
id: number;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {number}
|
|
46
|
-
* @memberof ProductChildCartLiteResource
|
|
47
|
-
*/
|
|
48
|
-
parentId: number;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof ProductChildCartLiteResource
|
|
53
|
-
*/
|
|
54
|
-
sku: string;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof ProductChildCartLiteResource
|
|
59
|
-
*/
|
|
60
|
-
model: string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof ProductChildCartLiteResource
|
|
65
|
-
*/
|
|
66
|
-
name: string;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {AssetLiteResource}
|
|
70
|
-
* @memberof ProductChildCartLiteResource
|
|
71
|
-
*/
|
|
72
|
-
thumbnail: AssetLiteResource | null;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {LabelResource}
|
|
76
|
-
* @memberof ProductChildCartLiteResource
|
|
77
|
-
*/
|
|
78
|
-
label: LabelResource | null;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Check if a given object implements the ProductChildCartLiteResource interface.
|
|
83
|
-
*/
|
|
84
|
-
export function instanceOfProductChildCartLiteResource(value: object): value is ProductChildCartLiteResource {
|
|
85
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
86
|
-
if (!('parentId' in value) || value['parentId'] === undefined) return false;
|
|
87
|
-
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
88
|
-
if (!('model' in value) || value['model'] === undefined) return false;
|
|
89
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
90
|
-
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
91
|
-
if (!('label' in value) || value['label'] === undefined) return false;
|
|
92
|
-
return true;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function ProductChildCartLiteResourceFromJSON(json: any): ProductChildCartLiteResource {
|
|
96
|
-
return ProductChildCartLiteResourceFromJSONTyped(json, false);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function ProductChildCartLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResource {
|
|
100
|
-
if (json == null) {
|
|
101
|
-
return json;
|
|
102
|
-
}
|
|
103
|
-
return {
|
|
104
|
-
|
|
105
|
-
'id': json['id'],
|
|
106
|
-
'parentId': json['parent_id'],
|
|
107
|
-
'sku': json['sku'],
|
|
108
|
-
'model': json['model'],
|
|
109
|
-
'name': json['name'],
|
|
110
|
-
'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
|
|
111
|
-
'label': LabelResourceFromJSON(json['label']),
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export function ProductChildCartLiteResourceToJSON(json: any): ProductChildCartLiteResource {
|
|
116
|
-
return ProductChildCartLiteResourceToJSONTyped(json, false);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export function ProductChildCartLiteResourceToJSONTyped(value?: ProductChildCartLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
-
if (value == null) {
|
|
121
|
-
return value;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
return {
|
|
125
|
-
|
|
126
|
-
'id': value['id'],
|
|
127
|
-
'parent_id': value['parentId'],
|
|
128
|
-
'sku': value['sku'],
|
|
129
|
-
'model': value['model'],
|
|
130
|
-
'name': value['name'],
|
|
131
|
-
'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
|
|
132
|
-
'label': LabelResourceToJSON(value['label']),
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
|
|
@@ -1,73 +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
|
-
import type { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
ProductChildCartLiteResourceFromJSON,
|
|
19
|
-
ProductChildCartLiteResourceFromJSONTyped,
|
|
20
|
-
ProductChildCartLiteResourceToJSON,
|
|
21
|
-
ProductChildCartLiteResourceToJSONTyped,
|
|
22
|
-
} from './ProductChildCartLiteResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface ProductChildCartLiteResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface ProductChildCartLiteResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<ProductChildCartLiteResource>}
|
|
33
|
-
* @memberof ProductChildCartLiteResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<ProductChildCartLiteResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the ProductChildCartLiteResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfProductChildCartLiteResourceArrayResponse(value: object): value is ProductChildCartLiteResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function ProductChildCartLiteResourceArrayResponseFromJSON(json: any): ProductChildCartLiteResourceArrayResponse {
|
|
46
|
-
return ProductChildCartLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function ProductChildCartLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductChildCartLiteResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductChildCartLiteResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function ProductChildCartLiteResourceArrayResponseToJSON(json: any): ProductChildCartLiteResourceArrayResponse {
|
|
60
|
-
return ProductChildCartLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function ProductChildCartLiteResourceArrayResponseToJSONTyped(value?: ProductChildCartLiteResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductChildCartLiteResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|