@digital8/lighting-illusions-ts-sdk 0.0.1843 → 0.0.1844
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -14
- package/README.md +3 -10
- package/dist/apis/CartsApi.d.ts +6 -6
- package/dist/apis/CartsApi.js +5 -3
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AdminCartResource.d.ts +4 -34
- package/dist/models/AdminCartResource.js +10 -32
- package/dist/models/AttachCouponCartRequest.d.ts +2 -2
- package/dist/models/AttachCouponCartRequest.js +3 -3
- package/dist/models/LineItemListResource.d.ts +3 -27
- package/dist/models/LineItemListResource.js +3 -19
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/index.d.ts +0 -7
- package/dist/models/index.js +0 -7
- package/docs/AdminCartResource.md +6 -16
- package/docs/AttachCouponCartRequest.md +2 -2
- package/docs/CartsApi.md +8 -8
- package/docs/LineItemListResource.md +1 -9
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +14 -12
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AdminCartResource.ts +14 -60
- package/src/models/AttachCouponCartRequest.ts +5 -5
- package/src/models/LineItemListResource.ts +10 -46
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreResource.ts +5 -5
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/index.ts +0 -7
- package/dist/models/DetachCouponCartRequest.d.ts +0 -32
- package/dist/models/DetachCouponCartRequest.js +0 -51
- package/dist/models/DiscountType.d.ts +0 -26
- package/dist/models/DiscountType.js +0 -52
- package/dist/models/DiscountValueType.d.ts +0 -25
- package/dist/models/DiscountValueType.js +0 -51
- package/dist/models/FrontendCartResource.d.ts +0 -174
- package/dist/models/FrontendCartResource.js +0 -133
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -70
- package/dist/models/ProductChildCartLiteResource.js +0 -77
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
- package/docs/DetachCouponCartRequest.md +0 -34
- package/docs/DiscountType.md +0 -32
- package/docs/DiscountValueType.md +0 -32
- package/docs/FrontendCartResource.md +0 -80
- package/docs/FrontendCartResourceArrayResponse.md +0 -34
- package/docs/ProductChildCartLiteResource.md +0 -46
- package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
- package/src/models/DetachCouponCartRequest.ts +0 -66
- package/src/models/DiscountType.ts +0 -54
- package/src/models/DiscountValueType.ts +0 -53
- package/src/models/FrontendCartResource.ts +0 -295
- package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
- package/src/models/ProductChildCartLiteResource.ts +0 -135
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
|
@@ -1,54 +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 DiscountType = {
|
|
21
|
-
Shipping: 'shipping',
|
|
22
|
-
Subtotal: 'subtotal',
|
|
23
|
-
Product: 'product'
|
|
24
|
-
} as const;
|
|
25
|
-
export type DiscountType = typeof DiscountType[keyof typeof DiscountType];
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export function instanceOfDiscountType(value: any): boolean {
|
|
29
|
-
for (const key in DiscountType) {
|
|
30
|
-
if (Object.prototype.hasOwnProperty.call(DiscountType, key)) {
|
|
31
|
-
if (DiscountType[key as keyof typeof DiscountType] === value) {
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function DiscountTypeFromJSON(json: any): DiscountType {
|
|
40
|
-
return DiscountTypeFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function DiscountTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscountType {
|
|
44
|
-
return json as DiscountType;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function DiscountTypeToJSON(value?: DiscountType | null): any {
|
|
48
|
-
return value as any;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function DiscountTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DiscountType {
|
|
52
|
-
return value as DiscountType;
|
|
53
|
-
}
|
|
54
|
-
|
|
@@ -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,295 +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 { SiteLiteResource } from './SiteLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
SiteLiteResourceFromJSON,
|
|
19
|
-
SiteLiteResourceFromJSONTyped,
|
|
20
|
-
SiteLiteResourceToJSON,
|
|
21
|
-
SiteLiteResourceToJSONTyped,
|
|
22
|
-
} from './SiteLiteResource';
|
|
23
|
-
import type { LineItemListResource } from './LineItemListResource';
|
|
24
|
-
import {
|
|
25
|
-
LineItemListResourceFromJSON,
|
|
26
|
-
LineItemListResourceFromJSONTyped,
|
|
27
|
-
LineItemListResourceToJSON,
|
|
28
|
-
LineItemListResourceToJSONTyped,
|
|
29
|
-
} from './LineItemListResource';
|
|
30
|
-
import type { CustomerListResource } from './CustomerListResource';
|
|
31
|
-
import {
|
|
32
|
-
CustomerListResourceFromJSON,
|
|
33
|
-
CustomerListResourceFromJSONTyped,
|
|
34
|
-
CustomerListResourceToJSON,
|
|
35
|
-
CustomerListResourceToJSONTyped,
|
|
36
|
-
} from './CustomerListResource';
|
|
37
|
-
import type { AddressResource } from './AddressResource';
|
|
38
|
-
import {
|
|
39
|
-
AddressResourceFromJSON,
|
|
40
|
-
AddressResourceFromJSONTyped,
|
|
41
|
-
AddressResourceToJSON,
|
|
42
|
-
AddressResourceToJSONTyped,
|
|
43
|
-
} from './AddressResource';
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @interface FrontendCartResource
|
|
49
|
-
*/
|
|
50
|
-
export interface FrontendCartResource {
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {number}
|
|
54
|
-
* @memberof FrontendCartResource
|
|
55
|
-
*/
|
|
56
|
-
id?: number | null;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {number}
|
|
60
|
-
* @memberof FrontendCartResource
|
|
61
|
-
*/
|
|
62
|
-
siteId: number;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {number}
|
|
66
|
-
* @memberof FrontendCartResource
|
|
67
|
-
*/
|
|
68
|
-
customerId?: number | null;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof FrontendCartResource
|
|
73
|
-
*/
|
|
74
|
-
source: string;
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
77
|
-
* @type {string}
|
|
78
|
-
* @memberof FrontendCartResource
|
|
79
|
-
*/
|
|
80
|
-
sessionToken?: string | null;
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @type {Date}
|
|
84
|
-
* @memberof FrontendCartResource
|
|
85
|
-
*/
|
|
86
|
-
expiryDate: Date;
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @type {Date}
|
|
90
|
-
* @memberof FrontendCartResource
|
|
91
|
-
*/
|
|
92
|
-
checkoutCompletedAt?: Date | null;
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* @type {Date}
|
|
96
|
-
* @memberof FrontendCartResource
|
|
97
|
-
*/
|
|
98
|
-
createdAt?: Date | null;
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @type {Date}
|
|
102
|
-
* @memberof FrontendCartResource
|
|
103
|
-
*/
|
|
104
|
-
updatedAt?: Date | null;
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @type {string}
|
|
108
|
-
* @memberof FrontendCartResource
|
|
109
|
-
*/
|
|
110
|
-
shippingType?: string | null;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @type {boolean}
|
|
114
|
-
* @memberof FrontendCartResource
|
|
115
|
-
*/
|
|
116
|
-
useAsBillingAddress: boolean;
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @type {SiteLiteResource}
|
|
120
|
-
* @memberof FrontendCartResource
|
|
121
|
-
*/
|
|
122
|
-
site: SiteLiteResource | null;
|
|
123
|
-
/**
|
|
124
|
-
*
|
|
125
|
-
* @type {CustomerListResource}
|
|
126
|
-
* @memberof FrontendCartResource
|
|
127
|
-
*/
|
|
128
|
-
customer: CustomerListResource | null;
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
131
|
-
* @type {Array<LineItemListResource>}
|
|
132
|
-
* @memberof FrontendCartResource
|
|
133
|
-
*/
|
|
134
|
-
lineItems: Array<LineItemListResource> | null;
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
* @type {object}
|
|
138
|
-
* @memberof FrontendCartResource
|
|
139
|
-
*/
|
|
140
|
-
coupons: object;
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @type {AddressResource}
|
|
144
|
-
* @memberof FrontendCartResource
|
|
145
|
-
*/
|
|
146
|
-
shippingAddress: AddressResource | null;
|
|
147
|
-
/**
|
|
148
|
-
*
|
|
149
|
-
* @type {AddressResource}
|
|
150
|
-
* @memberof FrontendCartResource
|
|
151
|
-
*/
|
|
152
|
-
billingAddress: AddressResource | null;
|
|
153
|
-
/**
|
|
154
|
-
*
|
|
155
|
-
* @type {number}
|
|
156
|
-
* @memberof FrontendCartResource
|
|
157
|
-
*/
|
|
158
|
-
subtotal: number;
|
|
159
|
-
/**
|
|
160
|
-
*
|
|
161
|
-
* @type {number}
|
|
162
|
-
* @memberof FrontendCartResource
|
|
163
|
-
*/
|
|
164
|
-
discountPreview: number;
|
|
165
|
-
/**
|
|
166
|
-
*
|
|
167
|
-
* @type {number}
|
|
168
|
-
* @memberof FrontendCartResource
|
|
169
|
-
*/
|
|
170
|
-
totalSubtotalDiscount: number;
|
|
171
|
-
/**
|
|
172
|
-
*
|
|
173
|
-
* @type {number}
|
|
174
|
-
* @memberof FrontendCartResource
|
|
175
|
-
*/
|
|
176
|
-
totalShippingDiscount: number;
|
|
177
|
-
/**
|
|
178
|
-
*
|
|
179
|
-
* @type {number}
|
|
180
|
-
* @memberof FrontendCartResource
|
|
181
|
-
*/
|
|
182
|
-
shippingEstimate: number;
|
|
183
|
-
/**
|
|
184
|
-
*
|
|
185
|
-
* @type {number}
|
|
186
|
-
* @memberof FrontendCartResource
|
|
187
|
-
*/
|
|
188
|
-
insuranceEstimate: number;
|
|
189
|
-
/**
|
|
190
|
-
*
|
|
191
|
-
* @type {string}
|
|
192
|
-
* @memberof FrontendCartResource
|
|
193
|
-
*/
|
|
194
|
-
status: string;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Check if a given object implements the FrontendCartResource interface.
|
|
199
|
-
*/
|
|
200
|
-
export function instanceOfFrontendCartResource(value: object): value is FrontendCartResource {
|
|
201
|
-
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
202
|
-
if (!('source' in value) || value['source'] === undefined) return false;
|
|
203
|
-
if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
|
|
204
|
-
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
|
|
205
|
-
if (!('site' in value) || value['site'] === undefined) return false;
|
|
206
|
-
if (!('customer' in value) || value['customer'] === undefined) return false;
|
|
207
|
-
if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
|
|
208
|
-
if (!('coupons' in value) || value['coupons'] === undefined) return false;
|
|
209
|
-
if (!('shippingAddress' in value) || value['shippingAddress'] === undefined) return false;
|
|
210
|
-
if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
|
|
211
|
-
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
212
|
-
if (!('discountPreview' in value) || value['discountPreview'] === undefined) return false;
|
|
213
|
-
if (!('totalSubtotalDiscount' in value) || value['totalSubtotalDiscount'] === undefined) return false;
|
|
214
|
-
if (!('totalShippingDiscount' in value) || value['totalShippingDiscount'] === undefined) return false;
|
|
215
|
-
if (!('shippingEstimate' in value) || value['shippingEstimate'] === undefined) return false;
|
|
216
|
-
if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined) return false;
|
|
217
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
218
|
-
return true;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export function FrontendCartResourceFromJSON(json: any): FrontendCartResource {
|
|
222
|
-
return FrontendCartResourceFromJSONTyped(json, false);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendCartResource {
|
|
226
|
-
if (json == null) {
|
|
227
|
-
return json;
|
|
228
|
-
}
|
|
229
|
-
return {
|
|
230
|
-
|
|
231
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
232
|
-
'siteId': json['site_id'],
|
|
233
|
-
'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
|
|
234
|
-
'source': json['source'],
|
|
235
|
-
'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
|
|
236
|
-
'expiryDate': (new Date(json['expiry_date'])),
|
|
237
|
-
'checkoutCompletedAt': json['checkout_completed_at'] == null ? undefined : (new Date(json['checkout_completed_at'])),
|
|
238
|
-
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
239
|
-
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
240
|
-
'shippingType': json['shipping_type'] == null ? undefined : json['shipping_type'],
|
|
241
|
-
'useAsBillingAddress': json['use_as_billing_address'],
|
|
242
|
-
'site': SiteLiteResourceFromJSON(json['site']),
|
|
243
|
-
'customer': CustomerListResourceFromJSON(json['customer']),
|
|
244
|
-
'lineItems': (json['line_items'] == null ? null : (json['line_items'] as Array<any>).map(LineItemListResourceFromJSON)),
|
|
245
|
-
'coupons': json['coupons'],
|
|
246
|
-
'shippingAddress': AddressResourceFromJSON(json['shipping_address']),
|
|
247
|
-
'billingAddress': AddressResourceFromJSON(json['billing_address']),
|
|
248
|
-
'subtotal': json['subtotal'],
|
|
249
|
-
'discountPreview': json['discount_preview'],
|
|
250
|
-
'totalSubtotalDiscount': json['total_subtotal_discount'],
|
|
251
|
-
'totalShippingDiscount': json['total_shipping_discount'],
|
|
252
|
-
'shippingEstimate': json['shipping_estimate'],
|
|
253
|
-
'insuranceEstimate': json['insurance_estimate'],
|
|
254
|
-
'status': json['status'],
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
export function FrontendCartResourceToJSON(json: any): FrontendCartResource {
|
|
259
|
-
return FrontendCartResourceToJSONTyped(json, false);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | null, ignoreDiscriminator: boolean = false): any {
|
|
263
|
-
if (value == null) {
|
|
264
|
-
return value;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
return {
|
|
268
|
-
|
|
269
|
-
'id': value['id'],
|
|
270
|
-
'site_id': value['siteId'],
|
|
271
|
-
'customer_id': value['customerId'],
|
|
272
|
-
'source': value['source'],
|
|
273
|
-
'session_token': value['sessionToken'],
|
|
274
|
-
'expiry_date': value['expiryDate'].toISOString(),
|
|
275
|
-
'checkout_completed_at': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
|
|
276
|
-
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
277
|
-
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
278
|
-
'shipping_type': value['shippingType'],
|
|
279
|
-
'use_as_billing_address': value['useAsBillingAddress'],
|
|
280
|
-
'site': SiteLiteResourceToJSON(value['site']),
|
|
281
|
-
'customer': CustomerListResourceToJSON(value['customer']),
|
|
282
|
-
'line_items': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
|
|
283
|
-
'coupons': value['coupons'],
|
|
284
|
-
'shipping_address': AddressResourceToJSON(value['shippingAddress']),
|
|
285
|
-
'billing_address': AddressResourceToJSON(value['billingAddress']),
|
|
286
|
-
'subtotal': value['subtotal'],
|
|
287
|
-
'discount_preview': value['discountPreview'],
|
|
288
|
-
'total_subtotal_discount': value['totalSubtotalDiscount'],
|
|
289
|
-
'total_shipping_discount': value['totalShippingDiscount'],
|
|
290
|
-
'shipping_estimate': value['shippingEstimate'],
|
|
291
|
-
'insurance_estimate': value['insuranceEstimate'],
|
|
292
|
-
'status': value['status'],
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
|
|
@@ -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 { FrontendCartResource } from './FrontendCartResource';
|
|
17
|
-
import {
|
|
18
|
-
FrontendCartResourceFromJSON,
|
|
19
|
-
FrontendCartResourceFromJSONTyped,
|
|
20
|
-
FrontendCartResourceToJSON,
|
|
21
|
-
FrontendCartResourceToJSONTyped,
|
|
22
|
-
} from './FrontendCartResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface FrontendCartResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface FrontendCartResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<FrontendCartResource>}
|
|
33
|
-
* @memberof FrontendCartResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<FrontendCartResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the FrontendCartResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfFrontendCartResourceArrayResponse(value: object): value is FrontendCartResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function FrontendCartResourceArrayResponseFromJSON(json: any): FrontendCartResourceArrayResponse {
|
|
46
|
-
return FrontendCartResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function FrontendCartResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendCartResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(FrontendCartResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function FrontendCartResourceArrayResponseToJSON(json: any): FrontendCartResourceArrayResponse {
|
|
60
|
-
return FrontendCartResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function FrontendCartResourceArrayResponseToJSONTyped(value?: FrontendCartResourceArrayResponse | 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(FrontendCartResourceToJSON)),
|
|
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
|
-
|