@digital8/lighting-illusions-ts-sdk 0.0.1839 → 0.0.1841
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -10
- package/README.md +3 -8
- package/dist/apis/CartsApi.d.ts +6 -6
- package/dist/apis/CartsApi.js +5 -3
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AdminCartResource.d.ts +4 -34
- package/dist/models/AdminCartResource.js +10 -32
- package/dist/models/AttachCouponCartRequest.d.ts +2 -2
- package/dist/models/AttachCouponCartRequest.js +3 -3
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/FrontendCartResource.d.ts +0 -12
- package/dist/models/FrontendCartResource.js +0 -8
- package/dist/models/LineItemListResource.d.ts +3 -27
- package/dist/models/LineItemListResource.js +3 -19
- package/dist/models/StoreCartRequest.d.ts +2 -2
- package/dist/models/StoreCartRequest.js +2 -6
- package/dist/models/StoreCartRequestShippingAddress.d.ts +4 -4
- package/dist/models/StoreCartRequestShippingAddress.js +4 -12
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/UpdateCartRequest.d.ts +2 -2
- package/dist/models/UpdateCartRequest.js +2 -6
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/docs/AdminCartResource.md +6 -16
- package/docs/AttachCouponCartRequest.md +2 -2
- package/docs/CartsApi.md +8 -8
- package/docs/FrontendCartResource.md +0 -4
- package/docs/LineItemListResource.md +1 -9
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +14 -12
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminCartResource.ts +14 -60
- package/src/models/AttachCouponCartRequest.ts +5 -5
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/FrontendCartResource.ts +0 -18
- package/src/models/LineItemListResource.ts +10 -46
- package/src/models/StoreCartRequest.ts +4 -6
- package/src/models/StoreCartRequestShippingAddress.ts +8 -12
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/UpdateCartRequest.ts +4 -6
- package/src/models/index.ts +0 -5
- package/dist/models/DetachCouponCartRequest.d.ts +0 -32
- package/dist/models/DetachCouponCartRequest.js +0 -51
- package/dist/models/DiscountType.d.ts +0 -26
- package/dist/models/DiscountType.js +0 -52
- package/dist/models/DiscountValueType.d.ts +0 -25
- package/dist/models/DiscountValueType.js +0 -51
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -70
- package/dist/models/ProductChildCartLiteResource.js +0 -77
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
- package/docs/DetachCouponCartRequest.md +0 -34
- package/docs/DiscountType.md +0 -32
- package/docs/DiscountValueType.md +0 -32
- package/docs/ProductChildCartLiteResource.md +0 -46
- package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
- package/src/models/DetachCouponCartRequest.ts +0 -66
- package/src/models/DiscountType.ts +0 -54
- package/src/models/DiscountValueType.ts +0 -53
- package/src/models/ProductChildCartLiteResource.ts +0 -135
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
|
@@ -137,7 +137,7 @@ export interface AdminCartResource {
|
|
|
137
137
|
* @type {number}
|
|
138
138
|
* @memberof AdminCartResource
|
|
139
139
|
*/
|
|
140
|
-
insuranceAmount
|
|
140
|
+
insuranceAmount?: number | null;
|
|
141
141
|
/**
|
|
142
142
|
*
|
|
143
143
|
* @type {boolean}
|
|
@@ -192,12 +192,6 @@ export interface AdminCartResource {
|
|
|
192
192
|
* @memberof AdminCartResource
|
|
193
193
|
*/
|
|
194
194
|
billingAddress: AddressResource | null;
|
|
195
|
-
/**
|
|
196
|
-
*
|
|
197
|
-
* @type {number}
|
|
198
|
-
* @memberof AdminCartResource
|
|
199
|
-
*/
|
|
200
|
-
discountPreview: number;
|
|
201
195
|
/**
|
|
202
196
|
*
|
|
203
197
|
* @type {number}
|
|
@@ -209,43 +203,19 @@ export interface AdminCartResource {
|
|
|
209
203
|
* @type {number}
|
|
210
204
|
* @memberof AdminCartResource
|
|
211
205
|
*/
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
*
|
|
215
|
-
* @type {number}
|
|
216
|
-
* @memberof AdminCartResource
|
|
217
|
-
*/
|
|
218
|
-
total: number;
|
|
219
|
-
/**
|
|
220
|
-
*
|
|
221
|
-
* @type {number}
|
|
222
|
-
* @memberof AdminCartResource
|
|
223
|
-
*/
|
|
224
|
-
discountAmount: number;
|
|
225
|
-
/**
|
|
226
|
-
*
|
|
227
|
-
* @type {number}
|
|
228
|
-
* @memberof AdminCartResource
|
|
229
|
-
*/
|
|
230
|
-
productDiscountAmount: number;
|
|
231
|
-
/**
|
|
232
|
-
*
|
|
233
|
-
* @type {number}
|
|
234
|
-
* @memberof AdminCartResource
|
|
235
|
-
*/
|
|
236
|
-
shippingDiscountAmount: number;
|
|
206
|
+
discountPreview: number;
|
|
237
207
|
/**
|
|
238
208
|
*
|
|
239
209
|
* @type {number}
|
|
240
210
|
* @memberof AdminCartResource
|
|
241
211
|
*/
|
|
242
|
-
|
|
212
|
+
shippingEstimate: number;
|
|
243
213
|
/**
|
|
244
214
|
*
|
|
245
215
|
* @type {number}
|
|
246
216
|
* @memberof AdminCartResource
|
|
247
217
|
*/
|
|
248
|
-
|
|
218
|
+
insuranceEstimate: number;
|
|
249
219
|
/**
|
|
250
220
|
*
|
|
251
221
|
* @type {string}
|
|
@@ -263,7 +233,6 @@ export function instanceOfAdminCartResource(value: object): value is AdminCartRe
|
|
|
263
233
|
if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
|
|
264
234
|
if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
|
|
265
235
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
|
|
266
|
-
if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined) return false;
|
|
267
236
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined) return false;
|
|
268
237
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
|
|
269
238
|
if (!('admin' in value) || value['admin'] === undefined) return false;
|
|
@@ -273,15 +242,10 @@ export function instanceOfAdminCartResource(value: object): value is AdminCartRe
|
|
|
273
242
|
if (!('coupons' in value) || value['coupons'] === undefined) return false;
|
|
274
243
|
if (!('shippingAddress' in value) || value['shippingAddress'] === undefined) return false;
|
|
275
244
|
if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
|
|
276
|
-
if (!('discountPreview' in value) || value['discountPreview'] === undefined) return false;
|
|
277
245
|
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
278
|
-
if (!('
|
|
279
|
-
if (!('
|
|
280
|
-
if (!('
|
|
281
|
-
if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined) return false;
|
|
282
|
-
if (!('shippingDiscountAmount' in value) || value['shippingDiscountAmount'] === undefined) return false;
|
|
283
|
-
if (!('cartDiscountAmount' in value) || value['cartDiscountAmount'] === undefined) return false;
|
|
284
|
-
if (!('finalTotalAmount' in value) || value['finalTotalAmount'] === undefined) return false;
|
|
246
|
+
if (!('discountPreview' in value) || value['discountPreview'] === undefined) return false;
|
|
247
|
+
if (!('shippingEstimate' in value) || value['shippingEstimate'] === undefined) return false;
|
|
248
|
+
if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined) return false;
|
|
285
249
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
286
250
|
return true;
|
|
287
251
|
}
|
|
@@ -310,7 +274,7 @@ export function AdminCartResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
310
274
|
'shippingType': json['shipping_type'],
|
|
311
275
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
312
276
|
'overrideShipping': json['override_shipping'],
|
|
313
|
-
'insuranceAmount': json['insurance_amount'],
|
|
277
|
+
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
314
278
|
'overrideInsurance': json['override_insurance'],
|
|
315
279
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
316
280
|
'admin': json['admin'],
|
|
@@ -320,15 +284,10 @@ export function AdminCartResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
320
284
|
'coupons': json['coupons'],
|
|
321
285
|
'shippingAddress': AddressResourceFromJSON(json['shipping_address']),
|
|
322
286
|
'billingAddress': AddressResourceFromJSON(json['billing_address']),
|
|
323
|
-
'discountPreview': json['discount_preview'],
|
|
324
287
|
'subtotal': json['subtotal'],
|
|
325
|
-
'
|
|
326
|
-
'
|
|
327
|
-
'
|
|
328
|
-
'productDiscountAmount': json['product_discount_amount'],
|
|
329
|
-
'shippingDiscountAmount': json['shipping_discount_amount'],
|
|
330
|
-
'cartDiscountAmount': json['cart_discount_amount'],
|
|
331
|
-
'finalTotalAmount': json['final_total_amount'],
|
|
288
|
+
'discountPreview': json['discount_preview'],
|
|
289
|
+
'shippingEstimate': json['shipping_estimate'],
|
|
290
|
+
'insuranceEstimate': json['insurance_estimate'],
|
|
332
291
|
'status': json['status'],
|
|
333
292
|
};
|
|
334
293
|
}
|
|
@@ -368,15 +327,10 @@ export function AdminCartResourceToJSONTyped(value?: AdminCartResource | null, i
|
|
|
368
327
|
'coupons': value['coupons'],
|
|
369
328
|
'shipping_address': AddressResourceToJSON(value['shippingAddress']),
|
|
370
329
|
'billing_address': AddressResourceToJSON(value['billingAddress']),
|
|
371
|
-
'discount_preview': value['discountPreview'],
|
|
372
330
|
'subtotal': value['subtotal'],
|
|
373
|
-
'
|
|
374
|
-
'
|
|
375
|
-
'
|
|
376
|
-
'product_discount_amount': value['productDiscountAmount'],
|
|
377
|
-
'shipping_discount_amount': value['shippingDiscountAmount'],
|
|
378
|
-
'cart_discount_amount': value['cartDiscountAmount'],
|
|
379
|
-
'final_total_amount': value['finalTotalAmount'],
|
|
331
|
+
'discount_preview': value['discountPreview'],
|
|
332
|
+
'shipping_estimate': value['shippingEstimate'],
|
|
333
|
+
'insurance_estimate': value['insuranceEstimate'],
|
|
380
334
|
'status': value['status'],
|
|
381
335
|
};
|
|
382
336
|
}
|
|
@@ -21,17 +21,17 @@ import { mapValues } from '../runtime';
|
|
|
21
21
|
export interface AttachCouponCartRequest {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
|
-
* @type {
|
|
24
|
+
* @type {number}
|
|
25
25
|
* @memberof AttachCouponCartRequest
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
couponId: number;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Check if a given object implements the AttachCouponCartRequest interface.
|
|
32
32
|
*/
|
|
33
33
|
export function instanceOfAttachCouponCartRequest(value: object): value is AttachCouponCartRequest {
|
|
34
|
-
if (!('
|
|
34
|
+
if (!('couponId' in value) || value['couponId'] === undefined) return false;
|
|
35
35
|
return true;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -45,7 +45,7 @@ export function AttachCouponCartRequestFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
45
45
|
}
|
|
46
46
|
return {
|
|
47
47
|
|
|
48
|
-
'
|
|
48
|
+
'couponId': json['coupon_id'],
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -60,7 +60,7 @@ export function AttachCouponCartRequestToJSONTyped(value?: AttachCouponCartReque
|
|
|
60
60
|
|
|
61
61
|
return {
|
|
62
62
|
|
|
63
|
-
'
|
|
63
|
+
'coupon_id': value['couponId'],
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -162,18 +162,6 @@ export interface FrontendCartResource {
|
|
|
162
162
|
* @memberof FrontendCartResource
|
|
163
163
|
*/
|
|
164
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
165
|
/**
|
|
178
166
|
*
|
|
179
167
|
* @type {number}
|
|
@@ -210,8 +198,6 @@ export function instanceOfFrontendCartResource(value: object): value is Frontend
|
|
|
210
198
|
if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
|
|
211
199
|
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
212
200
|
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
201
|
if (!('shippingEstimate' in value) || value['shippingEstimate'] === undefined) return false;
|
|
216
202
|
if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined) return false;
|
|
217
203
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
@@ -247,8 +233,6 @@ export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
247
233
|
'billingAddress': AddressResourceFromJSON(json['billing_address']),
|
|
248
234
|
'subtotal': json['subtotal'],
|
|
249
235
|
'discountPreview': json['discount_preview'],
|
|
250
|
-
'totalSubtotalDiscount': json['total_subtotal_discount'],
|
|
251
|
-
'totalShippingDiscount': json['total_shipping_discount'],
|
|
252
236
|
'shippingEstimate': json['shipping_estimate'],
|
|
253
237
|
'insuranceEstimate': json['insurance_estimate'],
|
|
254
238
|
'status': json['status'],
|
|
@@ -285,8 +269,6 @@ export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | n
|
|
|
285
269
|
'billing_address': AddressResourceToJSON(value['billingAddress']),
|
|
286
270
|
'subtotal': value['subtotal'],
|
|
287
271
|
'discount_preview': value['discountPreview'],
|
|
288
|
-
'total_subtotal_discount': value['totalSubtotalDiscount'],
|
|
289
|
-
'total_shipping_discount': value['totalShippingDiscount'],
|
|
290
272
|
'shipping_estimate': value['shippingEstimate'],
|
|
291
273
|
'insurance_estimate': value['insuranceEstimate'],
|
|
292
274
|
'status': value['status'],
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { ProductChildListResource } from './ProductChildListResource';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
ProductChildListResourceFromJSON,
|
|
19
|
+
ProductChildListResourceFromJSONTyped,
|
|
20
|
+
ProductChildListResourceToJSON,
|
|
21
|
+
ProductChildListResourceToJSONTyped,
|
|
22
|
+
} from './ProductChildListResource';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -47,34 +47,10 @@ export interface LineItemListResource {
|
|
|
47
47
|
productPrice: number;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
51
|
-
* @memberof LineItemListResource
|
|
52
|
-
*/
|
|
53
|
-
productDiscount: number;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof LineItemListResource
|
|
58
|
-
*/
|
|
59
|
-
totalDiscount: number;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {number}
|
|
63
|
-
* @memberof LineItemListResource
|
|
64
|
-
*/
|
|
65
|
-
lineSubtotal: number;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {Array<boolean>}
|
|
69
|
-
* @memberof LineItemListResource
|
|
70
|
-
*/
|
|
71
|
-
discounts: Array<boolean>;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {ProductChildCartLiteResource}
|
|
50
|
+
* @type {ProductChildListResource}
|
|
75
51
|
* @memberof LineItemListResource
|
|
76
52
|
*/
|
|
77
|
-
productChild:
|
|
53
|
+
productChild: ProductChildListResource | null;
|
|
78
54
|
}
|
|
79
55
|
|
|
80
56
|
/**
|
|
@@ -83,10 +59,6 @@ export interface LineItemListResource {
|
|
|
83
59
|
export function instanceOfLineItemListResource(value: object): value is LineItemListResource {
|
|
84
60
|
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
85
61
|
if (!('productPrice' in value) || value['productPrice'] === undefined) return false;
|
|
86
|
-
if (!('productDiscount' in value) || value['productDiscount'] === undefined) return false;
|
|
87
|
-
if (!('totalDiscount' in value) || value['totalDiscount'] === undefined) return false;
|
|
88
|
-
if (!('lineSubtotal' in value) || value['lineSubtotal'] === undefined) return false;
|
|
89
|
-
if (!('discounts' in value) || value['discounts'] === undefined) return false;
|
|
90
62
|
if (!('productChild' in value) || value['productChild'] === undefined) return false;
|
|
91
63
|
return true;
|
|
92
64
|
}
|
|
@@ -104,11 +76,7 @@ export function LineItemListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
104
76
|
'id': json['id'] == null ? undefined : json['id'],
|
|
105
77
|
'quantity': json['quantity'],
|
|
106
78
|
'productPrice': json['product_price'],
|
|
107
|
-
'
|
|
108
|
-
'totalDiscount': json['total_discount'],
|
|
109
|
-
'lineSubtotal': json['line_subtotal'],
|
|
110
|
-
'discounts': json['discounts'],
|
|
111
|
-
'productChild': ProductChildCartLiteResourceFromJSON(json['product_child']),
|
|
79
|
+
'productChild': ProductChildListResourceFromJSON(json['product_child']),
|
|
112
80
|
};
|
|
113
81
|
}
|
|
114
82
|
|
|
@@ -126,11 +94,7 @@ export function LineItemListResourceToJSONTyped(value?: LineItemListResource | n
|
|
|
126
94
|
'id': value['id'],
|
|
127
95
|
'quantity': value['quantity'],
|
|
128
96
|
'product_price': value['productPrice'],
|
|
129
|
-
'
|
|
130
|
-
'total_discount': value['totalDiscount'],
|
|
131
|
-
'line_subtotal': value['lineSubtotal'],
|
|
132
|
-
'discounts': value['discounts'],
|
|
133
|
-
'product_child': ProductChildCartLiteResourceToJSON(value['productChild']),
|
|
97
|
+
'product_child': ProductChildListResourceToJSON(value['productChild']),
|
|
134
98
|
};
|
|
135
99
|
}
|
|
136
100
|
|
|
@@ -124,13 +124,13 @@ export interface StoreCartRequest {
|
|
|
124
124
|
* @type {StoreCartRequestShippingAddress}
|
|
125
125
|
* @memberof StoreCartRequest
|
|
126
126
|
*/
|
|
127
|
-
shippingAddress
|
|
127
|
+
shippingAddress?: StoreCartRequestShippingAddress;
|
|
128
128
|
/**
|
|
129
129
|
*
|
|
130
130
|
* @type {StoreCartRequestShippingAddress}
|
|
131
131
|
* @memberof StoreCartRequest
|
|
132
132
|
*/
|
|
133
|
-
billingAddress
|
|
133
|
+
billingAddress?: StoreCartRequestShippingAddress;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
|
|
@@ -166,8 +166,6 @@ export type StoreCartRequestShippingTypeEnum = typeof StoreCartRequestShippingTy
|
|
|
166
166
|
export function instanceOfStoreCartRequest(value: object): value is StoreCartRequest {
|
|
167
167
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
168
168
|
if (!('source' in value) || value['source'] === undefined) return false;
|
|
169
|
-
if (!('shippingAddress' in value) || value['shippingAddress'] === undefined) return false;
|
|
170
|
-
if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
|
|
171
169
|
return true;
|
|
172
170
|
}
|
|
173
171
|
|
|
@@ -194,8 +192,8 @@ export function StoreCartRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
194
192
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
195
193
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
196
194
|
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
197
|
-
'shippingAddress': StoreCartRequestShippingAddressFromJSON(json['shipping_address']),
|
|
198
|
-
'billingAddress': StoreCartRequestShippingAddressFromJSON(json['billing_address']),
|
|
195
|
+
'shippingAddress': json['shipping_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['shipping_address']),
|
|
196
|
+
'billingAddress': json['billing_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['billing_address']),
|
|
199
197
|
};
|
|
200
198
|
}
|
|
201
199
|
|
|
@@ -30,7 +30,7 @@ export interface StoreCartRequestShippingAddress {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof StoreCartRequestShippingAddress
|
|
32
32
|
*/
|
|
33
|
-
line1
|
|
33
|
+
line1?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -42,19 +42,19 @@ export interface StoreCartRequestShippingAddress {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof StoreCartRequestShippingAddress
|
|
44
44
|
*/
|
|
45
|
-
suburb
|
|
45
|
+
suburb?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreCartRequestShippingAddress
|
|
50
50
|
*/
|
|
51
|
-
state
|
|
51
|
+
state?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof StoreCartRequestShippingAddress
|
|
56
56
|
*/
|
|
57
|
-
postcode
|
|
57
|
+
postcode?: string | null;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
@@ -67,10 +67,6 @@ export interface StoreCartRequestShippingAddress {
|
|
|
67
67
|
* Check if a given object implements the StoreCartRequestShippingAddress interface.
|
|
68
68
|
*/
|
|
69
69
|
export function instanceOfStoreCartRequestShippingAddress(value: object): value is StoreCartRequestShippingAddress {
|
|
70
|
-
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
71
|
-
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
72
|
-
if (!('state' in value) || value['state'] === undefined) return false;
|
|
73
|
-
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
74
70
|
return true;
|
|
75
71
|
}
|
|
76
72
|
|
|
@@ -85,11 +81,11 @@ export function StoreCartRequestShippingAddressFromJSONTyped(json: any, ignoreDi
|
|
|
85
81
|
return {
|
|
86
82
|
|
|
87
83
|
'company': json['company'] == null ? undefined : json['company'],
|
|
88
|
-
'line1': json['line_1'],
|
|
84
|
+
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
89
85
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
90
|
-
'suburb': json['suburb'],
|
|
91
|
-
'state': json['state'],
|
|
92
|
-
'postcode': json['postcode'],
|
|
86
|
+
'suburb': json['suburb'] == null ? undefined : json['suburb'],
|
|
87
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
88
|
+
'postcode': json['postcode'] == null ? undefined : json['postcode'],
|
|
93
89
|
'country': json['country'] == null ? undefined : json['country'],
|
|
94
90
|
};
|
|
95
91
|
}
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
109
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
111
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
112
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -129,7 +130,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
129
130
|
'siteId': json['siteId'],
|
|
130
131
|
'name': json['name'],
|
|
131
132
|
'email': json['email'],
|
|
132
|
-
'website': json['website']
|
|
133
|
+
'website': json['website'],
|
|
133
134
|
'phone': json['phone'],
|
|
134
135
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
136
|
'latitude': json['latitude'],
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website: string;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {string}
|
|
@@ -100,6 +100,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
100
100
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
101
101
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
102
102
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
103
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
103
104
|
return true;
|
|
104
105
|
}
|
|
105
106
|
|
|
@@ -121,7 +122,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
121
122
|
'latitude': json['latitude'],
|
|
122
123
|
'tagLine': json['tag_line'],
|
|
123
124
|
'email': json['email'],
|
|
124
|
-
'website': json['website']
|
|
125
|
+
'website': json['website'],
|
|
125
126
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
126
127
|
};
|
|
127
128
|
}
|
|
@@ -93,13 +93,13 @@ export interface UpdateCartRequest {
|
|
|
93
93
|
* @type {StoreCartRequestShippingAddress}
|
|
94
94
|
* @memberof UpdateCartRequest
|
|
95
95
|
*/
|
|
96
|
-
shippingAddress
|
|
96
|
+
shippingAddress?: StoreCartRequestShippingAddress;
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
99
|
* @type {StoreCartRequestShippingAddress}
|
|
100
100
|
* @memberof UpdateCartRequest
|
|
101
101
|
*/
|
|
102
|
-
billingAddress
|
|
102
|
+
billingAddress?: StoreCartRequestShippingAddress;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
|
|
@@ -133,8 +133,6 @@ export type UpdateCartRequestShippingTypeEnum = typeof UpdateCartRequestShipping
|
|
|
133
133
|
* Check if a given object implements the UpdateCartRequest interface.
|
|
134
134
|
*/
|
|
135
135
|
export function instanceOfUpdateCartRequest(value: object): value is UpdateCartRequest {
|
|
136
|
-
if (!('shippingAddress' in value) || value['shippingAddress'] === undefined) return false;
|
|
137
|
-
if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
|
|
138
136
|
return true;
|
|
139
137
|
}
|
|
140
138
|
|
|
@@ -157,8 +155,8 @@ export function UpdateCartRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
157
155
|
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
158
156
|
'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
|
|
159
157
|
'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
|
|
160
|
-
'shippingAddress': StoreCartRequestShippingAddressFromJSON(json['shipping_address']),
|
|
161
|
-
'billingAddress': StoreCartRequestShippingAddressFromJSON(json['billing_address']),
|
|
158
|
+
'shippingAddress': json['shipping_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['shipping_address']),
|
|
159
|
+
'billingAddress': json['billing_address'] == null ? undefined : StoreCartRequestShippingAddressFromJSON(json['billing_address']),
|
|
162
160
|
};
|
|
163
161
|
}
|
|
164
162
|
|
package/src/models/index.ts
CHANGED
|
@@ -74,7 +74,6 @@ export * from './DestroyAttributeValueRequest';
|
|
|
74
74
|
export * from './DetachAccessoriesProductRangeRequest';
|
|
75
75
|
export * from './DetachAssetableOverlayTemplateRequest';
|
|
76
76
|
export * from './DetachAttributesProductRangeRequest';
|
|
77
|
-
export * from './DetachCouponCartRequest';
|
|
78
77
|
export * from './DetachDocumentablesDocumentRequest';
|
|
79
78
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
80
79
|
export * from './DetachDocumentsProductChildRequest';
|
|
@@ -82,8 +81,6 @@ export * from './DetachDocumentsProductRangeRequest';
|
|
|
82
81
|
export * from './DetachProductsProductCategoryRequest';
|
|
83
82
|
export * from './DetachStoresSupplierRequest';
|
|
84
83
|
export * from './DetachSuppliersStoreRequest';
|
|
85
|
-
export * from './DiscountType';
|
|
86
|
-
export * from './DiscountValueType';
|
|
87
84
|
export * from './DocumentFileForUploadResource';
|
|
88
85
|
export * from './DocumentFileForUploadResourceArrayResponse';
|
|
89
86
|
export * from './DocumentFrontendResource';
|
|
@@ -270,8 +267,6 @@ export * from './ProductChildAttributeGroupedResource';
|
|
|
270
267
|
export * from './ProductChildAttributeGroupedResourceArrayResponse';
|
|
271
268
|
export * from './ProductChildAttributeResource';
|
|
272
269
|
export * from './ProductChildAttributeResourceArrayResponse';
|
|
273
|
-
export * from './ProductChildCartLiteResource';
|
|
274
|
-
export * from './ProductChildCartLiteResourceArrayResponse';
|
|
275
270
|
export * from './ProductChildListResource';
|
|
276
271
|
export * from './ProductChildListResourceArrayResponse';
|
|
277
272
|
export * from './ProductChildLiteResource';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @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;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.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
|
-
}
|