@digital8/lighting-illusions-ts-sdk 0.0.1896 → 0.0.1897
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 -48
- package/README.md +3 -37
- package/dist/apis/CartsApi.d.ts +6 -21
- package/dist/apis/CartsApi.js +5 -62
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +3 -3
- package/dist/models/AddressResource.js +7 -7
- package/dist/models/CartResource.d.ts +6 -37
- package/dist/models/CartResource.js +12 -35
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/LineItemListResource.d.ts +4 -35
- package/dist/models/LineItemListResource.js +4 -25
- package/dist/models/StoreCartRequestShippingAddress.d.ts +2 -2
- package/dist/models/StoreCartRequestShippingAddress.js +2 -2
- 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 +1 -3
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/StoreStoreRequestAddress.d.ts +6 -0
- package/dist/models/StoreStoreRequestAddress.js +2 -0
- package/dist/models/index.d.ts +0 -23
- package/dist/models/index.js +0 -23
- package/docs/AddressResource.md +2 -2
- package/docs/CartResource.md +7 -17
- package/docs/CartsApi.md +8 -74
- package/docs/LineItemListResource.md +1 -11
- package/docs/StoreCartRequestShippingAddress.md +2 -2
- package/docs/StoreStoreRequestAddress.md +2 -0
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +14 -64
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +9 -9
- package/src/models/CartResource.ts +18 -71
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/LineItemListResource.ts +12 -64
- package/src/models/StoreCartRequestShippingAddress.ts +4 -4
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +5 -5
- package/src/models/StoreStoreRequestAddress.ts +8 -0
- package/src/models/index.ts +0 -23
- package/dist/apis/OrdersApi.d.ts +0 -170
- package/dist/apis/OrdersApi.js +0 -678
- package/dist/models/AdminOrderResource.d.ts +0 -262
- package/dist/models/AdminOrderResource.js +0 -187
- package/dist/models/AdminOrderResourceArrayResponse.d.ts +0 -33
- package/dist/models/AdminOrderResourceArrayResponse.js +0 -50
- package/dist/models/AttachItemOrderRequest.d.ts +0 -44
- package/dist/models/AttachItemOrderRequest.js +0 -57
- package/dist/models/CartCouponResource.d.ts +0 -50
- package/dist/models/CartCouponResource.js +0 -63
- package/dist/models/CartCouponResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponResourceArrayResponse.js +0 -50
- 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/GetAllOrderRequest.d.ts +0 -104
- package/dist/models/GetAllOrderRequest.js +0 -84
- package/dist/models/IndexOrderRequest.d.ts +0 -140
- package/dist/models/IndexOrderRequest.js +0 -96
- package/dist/models/LineItemDiscountResource.d.ts +0 -50
- package/dist/models/LineItemDiscountResource.js +0 -63
- package/dist/models/LineItemDiscountResourceArrayResponse.d.ts +0 -33
- package/dist/models/LineItemDiscountResourceArrayResponse.js +0 -50
- package/dist/models/OrderListResource.d.ts +0 -101
- package/dist/models/OrderListResource.js +0 -90
- package/dist/models/OrderListResourceArrayResponse.d.ts +0 -33
- package/dist/models/OrderListResourceArrayResponse.js +0 -50
- package/dist/models/OrderLiteResource.d.ts +0 -62
- package/dist/models/OrderLiteResource.js +0 -67
- package/dist/models/OrderLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/OrderLiteResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedOrderListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedOrderListResourceResponse.js +0 -57
- package/dist/models/ProductChildCartLiteResource.d.ts +0 -88
- package/dist/models/ProductChildCartLiteResource.js +0 -89
- package/dist/models/ProductChildCartLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductChildCartLiteResourceArrayResponse.js +0 -50
- package/dist/models/UpdateItemOrderRequest.d.ts +0 -38
- package/dist/models/UpdateItemOrderRequest.js +0 -53
- package/dist/models/UpdateOrderRequest.d.ts +0 -111
- package/dist/models/UpdateOrderRequest.js +0 -99
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +0 -80
- package/dist/models/UpdateOrderRequestBillingAddress.js +0 -67
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +0 -80
- package/dist/models/UpdateOrderRequestShippingAddress.js +0 -67
- package/docs/AdminOrderResource.md +0 -110
- package/docs/AdminOrderResourceArrayResponse.md +0 -34
- package/docs/AttachItemOrderRequest.md +0 -38
- package/docs/CartCouponResource.md +0 -40
- package/docs/CartCouponResourceArrayResponse.md +0 -34
- package/docs/DetachCouponCartRequest.md +0 -34
- package/docs/DiscountType.md +0 -32
- package/docs/DiscountValueType.md +0 -32
- package/docs/GetAllOrderRequest.md +0 -52
- package/docs/IndexOrderRequest.md +0 -64
- package/docs/LineItemDiscountResource.md +0 -40
- package/docs/LineItemDiscountResourceArrayResponse.md +0 -34
- package/docs/OrderListResource.md +0 -56
- package/docs/OrderListResourceArrayResponse.md +0 -34
- package/docs/OrderLiteResource.md +0 -44
- package/docs/OrderLiteResourceArrayResponse.md +0 -34
- package/docs/OrdersApi.md +0 -675
- package/docs/PaginatedOrderListResourceResponse.md +0 -36
- package/docs/ProductChildCartLiteResource.md +0 -52
- package/docs/ProductChildCartLiteResourceArrayResponse.md +0 -34
- package/docs/UpdateItemOrderRequest.md +0 -36
- package/docs/UpdateOrderRequest.md +0 -52
- package/docs/UpdateOrderRequestBillingAddress.md +0 -50
- package/docs/UpdateOrderRequestShippingAddress.md +0 -50
- package/src/apis/OrdersApi.ts +0 -552
- package/src/models/AdminOrderResource.ts +0 -414
- package/src/models/AdminOrderResourceArrayResponse.ts +0 -73
- package/src/models/AttachItemOrderRequest.ts +0 -83
- package/src/models/CartCouponResource.ts +0 -93
- package/src/models/CartCouponResourceArrayResponse.ts +0 -73
- package/src/models/DetachCouponCartRequest.ts +0 -66
- package/src/models/DiscountType.ts +0 -54
- package/src/models/DiscountValueType.ts +0 -53
- package/src/models/GetAllOrderRequest.ts +0 -159
- package/src/models/IndexOrderRequest.ts +0 -207
- package/src/models/LineItemDiscountResource.ts +0 -93
- package/src/models/LineItemDiscountResourceArrayResponse.ts +0 -73
- package/src/models/OrderListResource.ts +0 -183
- package/src/models/OrderListResourceArrayResponse.ts +0 -73
- package/src/models/OrderLiteResource.ts +0 -109
- package/src/models/OrderLiteResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedOrderListResourceResponse.ts +0 -90
- package/src/models/ProductChildCartLiteResource.ts +0 -162
- package/src/models/ProductChildCartLiteResourceArrayResponse.ts +0 -73
- package/src/models/UpdateItemOrderRequest.ts +0 -74
- package/src/models/UpdateOrderRequest.ts +0 -183
- package/src/models/UpdateOrderRequestBillingAddress.ts +0 -130
- package/src/models/UpdateOrderRequestShippingAddress.ts +0 -130
|
@@ -27,13 +27,6 @@ import {
|
|
|
27
27
|
LineItemListResourceToJSON,
|
|
28
28
|
LineItemListResourceToJSONTyped,
|
|
29
29
|
} from './LineItemListResource';
|
|
30
|
-
import type { CartCouponResource } from './CartCouponResource';
|
|
31
|
-
import {
|
|
32
|
-
CartCouponResourceFromJSON,
|
|
33
|
-
CartCouponResourceFromJSONTyped,
|
|
34
|
-
CartCouponResourceToJSON,
|
|
35
|
-
CartCouponResourceToJSONTyped,
|
|
36
|
-
} from './CartCouponResource';
|
|
37
30
|
import type { CustomerListResource } from './CustomerListResource';
|
|
38
31
|
import {
|
|
39
32
|
CustomerListResourceFromJSON,
|
|
@@ -132,7 +125,7 @@ export interface CartResource {
|
|
|
132
125
|
* @type {number}
|
|
133
126
|
* @memberof CartResource
|
|
134
127
|
*/
|
|
135
|
-
insuranceAmount
|
|
128
|
+
insuranceAmount?: number | null;
|
|
136
129
|
/**
|
|
137
130
|
*
|
|
138
131
|
* @type {boolean}
|
|
@@ -171,10 +164,10 @@ export interface CartResource {
|
|
|
171
164
|
lineItems: Array<LineItemListResource> | null;
|
|
172
165
|
/**
|
|
173
166
|
*
|
|
174
|
-
* @type {
|
|
167
|
+
* @type {object}
|
|
175
168
|
* @memberof CartResource
|
|
176
169
|
*/
|
|
177
|
-
coupons:
|
|
170
|
+
coupons: object;
|
|
178
171
|
/**
|
|
179
172
|
*
|
|
180
173
|
* @type {AddressResource}
|
|
@@ -187,12 +180,6 @@ export interface CartResource {
|
|
|
187
180
|
* @memberof CartResource
|
|
188
181
|
*/
|
|
189
182
|
billingAddress: AddressResource | null;
|
|
190
|
-
/**
|
|
191
|
-
*
|
|
192
|
-
* @type {number}
|
|
193
|
-
* @memberof CartResource
|
|
194
|
-
*/
|
|
195
|
-
discountPreview: number;
|
|
196
183
|
/**
|
|
197
184
|
*
|
|
198
185
|
* @type {number}
|
|
@@ -204,43 +191,19 @@ export interface CartResource {
|
|
|
204
191
|
* @type {number}
|
|
205
192
|
* @memberof CartResource
|
|
206
193
|
*/
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
*
|
|
210
|
-
* @type {number}
|
|
211
|
-
* @memberof CartResource
|
|
212
|
-
*/
|
|
213
|
-
total: number;
|
|
214
|
-
/**
|
|
215
|
-
*
|
|
216
|
-
* @type {number}
|
|
217
|
-
* @memberof CartResource
|
|
218
|
-
*/
|
|
219
|
-
discountAmount: number;
|
|
220
|
-
/**
|
|
221
|
-
*
|
|
222
|
-
* @type {number}
|
|
223
|
-
* @memberof CartResource
|
|
224
|
-
*/
|
|
225
|
-
productDiscountAmount: number;
|
|
226
|
-
/**
|
|
227
|
-
*
|
|
228
|
-
* @type {number}
|
|
229
|
-
* @memberof CartResource
|
|
230
|
-
*/
|
|
231
|
-
shippingDiscountAmount: number;
|
|
194
|
+
discountPreview: number;
|
|
232
195
|
/**
|
|
233
196
|
*
|
|
234
197
|
* @type {number}
|
|
235
198
|
* @memberof CartResource
|
|
236
199
|
*/
|
|
237
|
-
|
|
200
|
+
shippingEstimate: number;
|
|
238
201
|
/**
|
|
239
202
|
*
|
|
240
203
|
* @type {number}
|
|
241
204
|
* @memberof CartResource
|
|
242
205
|
*/
|
|
243
|
-
|
|
206
|
+
insuranceEstimate: number;
|
|
244
207
|
/**
|
|
245
208
|
*
|
|
246
209
|
* @type {string}
|
|
@@ -257,7 +220,6 @@ export function instanceOfCartResource(value: object): value is CartResource {
|
|
|
257
220
|
if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
|
|
258
221
|
if (!('shippingType' in value) || value['shippingType'] === undefined) return false;
|
|
259
222
|
if (!('overrideShipping' in value) || value['overrideShipping'] === undefined) return false;
|
|
260
|
-
if (!('insuranceAmount' in value) || value['insuranceAmount'] === undefined) return false;
|
|
261
223
|
if (!('overrideInsurance' in value) || value['overrideInsurance'] === undefined) return false;
|
|
262
224
|
if (!('useAsBillingAddress' in value) || value['useAsBillingAddress'] === undefined) return false;
|
|
263
225
|
if (!('admin' in value) || value['admin'] === undefined) return false;
|
|
@@ -267,15 +229,10 @@ export function instanceOfCartResource(value: object): value is CartResource {
|
|
|
267
229
|
if (!('coupons' in value) || value['coupons'] === undefined) return false;
|
|
268
230
|
if (!('shippingAddress' in value) || value['shippingAddress'] === undefined) return false;
|
|
269
231
|
if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
|
|
270
|
-
if (!('discountPreview' in value) || value['discountPreview'] === undefined) return false;
|
|
271
232
|
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
272
|
-
if (!('
|
|
273
|
-
if (!('
|
|
274
|
-
if (!('
|
|
275
|
-
if (!('productDiscountAmount' in value) || value['productDiscountAmount'] === undefined) return false;
|
|
276
|
-
if (!('shippingDiscountAmount' in value) || value['shippingDiscountAmount'] === undefined) return false;
|
|
277
|
-
if (!('cartDiscountAmount' in value) || value['cartDiscountAmount'] === undefined) return false;
|
|
278
|
-
if (!('finalTotalAmount' in value) || value['finalTotalAmount'] === undefined) return false;
|
|
233
|
+
if (!('discountPreview' in value) || value['discountPreview'] === undefined) return false;
|
|
234
|
+
if (!('shippingEstimate' in value) || value['shippingEstimate'] === undefined) return false;
|
|
235
|
+
if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined) return false;
|
|
279
236
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
280
237
|
return true;
|
|
281
238
|
}
|
|
@@ -302,25 +259,20 @@ export function CartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
302
259
|
'shippingType': json['shipping_type'],
|
|
303
260
|
'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
|
|
304
261
|
'overrideShipping': json['override_shipping'],
|
|
305
|
-
'insuranceAmount': json['insurance_amount'],
|
|
262
|
+
'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
|
|
306
263
|
'overrideInsurance': json['override_insurance'],
|
|
307
264
|
'useAsBillingAddress': json['use_as_billing_address'],
|
|
308
265
|
'admin': json['admin'],
|
|
309
266
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
310
267
|
'customer': CustomerListResourceFromJSON(json['customer']),
|
|
311
268
|
'lineItems': (json['line_items'] == null ? null : (json['line_items'] as Array<any>).map(LineItemListResourceFromJSON)),
|
|
312
|
-
'coupons':
|
|
269
|
+
'coupons': json['coupons'],
|
|
313
270
|
'shippingAddress': AddressResourceFromJSON(json['shipping_address']),
|
|
314
271
|
'billingAddress': AddressResourceFromJSON(json['billing_address']),
|
|
315
|
-
'discountPreview': json['discount_preview'],
|
|
316
272
|
'subtotal': json['subtotal'],
|
|
317
|
-
'
|
|
318
|
-
'
|
|
319
|
-
'
|
|
320
|
-
'productDiscountAmount': json['product_discount_amount'],
|
|
321
|
-
'shippingDiscountAmount': json['shipping_discount_amount'],
|
|
322
|
-
'cartDiscountAmount': json['cart_discount_amount'],
|
|
323
|
-
'finalTotalAmount': json['final_total_amount'],
|
|
273
|
+
'discountPreview': json['discount_preview'],
|
|
274
|
+
'shippingEstimate': json['shipping_estimate'],
|
|
275
|
+
'insuranceEstimate': json['insurance_estimate'],
|
|
324
276
|
'status': json['status'],
|
|
325
277
|
};
|
|
326
278
|
}
|
|
@@ -355,18 +307,13 @@ export function CartResourceToJSONTyped(value?: CartResource | null, ignoreDiscr
|
|
|
355
307
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
356
308
|
'customer': CustomerListResourceToJSON(value['customer']),
|
|
357
309
|
'line_items': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
|
|
358
|
-
'coupons':
|
|
310
|
+
'coupons': value['coupons'],
|
|
359
311
|
'shipping_address': AddressResourceToJSON(value['shippingAddress']),
|
|
360
312
|
'billing_address': AddressResourceToJSON(value['billingAddress']),
|
|
361
|
-
'discount_preview': value['discountPreview'],
|
|
362
313
|
'subtotal': value['subtotal'],
|
|
363
|
-
'
|
|
364
|
-
'
|
|
365
|
-
'
|
|
366
|
-
'product_discount_amount': value['productDiscountAmount'],
|
|
367
|
-
'shipping_discount_amount': value['shippingDiscountAmount'],
|
|
368
|
-
'cart_discount_amount': value['cartDiscountAmount'],
|
|
369
|
-
'final_total_amount': value['finalTotalAmount'],
|
|
314
|
+
'discount_preview': value['discountPreview'],
|
|
315
|
+
'shipping_estimate': value['shippingEstimate'],
|
|
316
|
+
'insurance_estimate': value['insuranceEstimate'],
|
|
370
317
|
'status': value['status'],
|
|
371
318
|
};
|
|
372
319
|
}
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ 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;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -13,20 +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 './
|
|
23
|
-
import type { ProductChildCartLiteResource } from './ProductChildCartLiteResource';
|
|
24
|
-
import {
|
|
25
|
-
ProductChildCartLiteResourceFromJSON,
|
|
26
|
-
ProductChildCartLiteResourceFromJSONTyped,
|
|
27
|
-
ProductChildCartLiteResourceToJSON,
|
|
28
|
-
ProductChildCartLiteResourceToJSONTyped,
|
|
29
|
-
} from './ProductChildCartLiteResource';
|
|
18
|
+
ProductChildListResourceFromJSON,
|
|
19
|
+
ProductChildListResourceFromJSONTyped,
|
|
20
|
+
ProductChildListResourceToJSON,
|
|
21
|
+
ProductChildListResourceToJSONTyped,
|
|
22
|
+
} from './ProductChildListResource';
|
|
30
23
|
|
|
31
24
|
/**
|
|
32
25
|
*
|
|
@@ -39,7 +32,7 @@ export interface LineItemListResource {
|
|
|
39
32
|
* @type {number}
|
|
40
33
|
* @memberof LineItemListResource
|
|
41
34
|
*/
|
|
42
|
-
id
|
|
35
|
+
id?: number | null;
|
|
43
36
|
/**
|
|
44
37
|
*
|
|
45
38
|
* @type {number}
|
|
@@ -54,53 +47,18 @@ export interface LineItemListResource {
|
|
|
54
47
|
productPrice: number;
|
|
55
48
|
/**
|
|
56
49
|
*
|
|
57
|
-
* @type {
|
|
58
|
-
* @memberof LineItemListResource
|
|
59
|
-
*/
|
|
60
|
-
labelId?: number | null;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {number}
|
|
64
|
-
* @memberof LineItemListResource
|
|
65
|
-
*/
|
|
66
|
-
productDiscount: number;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {number}
|
|
70
|
-
* @memberof LineItemListResource
|
|
71
|
-
*/
|
|
72
|
-
totalDiscount: number;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {number}
|
|
76
|
-
* @memberof LineItemListResource
|
|
77
|
-
*/
|
|
78
|
-
lineSubtotal: number;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {Array<LineItemDiscountResource>}
|
|
82
|
-
* @memberof LineItemListResource
|
|
83
|
-
*/
|
|
84
|
-
discounts: Array<LineItemDiscountResource> | null;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {ProductChildCartLiteResource}
|
|
50
|
+
* @type {ProductChildListResource}
|
|
88
51
|
* @memberof LineItemListResource
|
|
89
52
|
*/
|
|
90
|
-
productChild:
|
|
53
|
+
productChild: ProductChildListResource | null;
|
|
91
54
|
}
|
|
92
55
|
|
|
93
56
|
/**
|
|
94
57
|
* Check if a given object implements the LineItemListResource interface.
|
|
95
58
|
*/
|
|
96
59
|
export function instanceOfLineItemListResource(value: object): value is LineItemListResource {
|
|
97
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
98
60
|
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
99
61
|
if (!('productPrice' in value) || value['productPrice'] === undefined) return false;
|
|
100
|
-
if (!('productDiscount' in value) || value['productDiscount'] === undefined) return false;
|
|
101
|
-
if (!('totalDiscount' in value) || value['totalDiscount'] === undefined) return false;
|
|
102
|
-
if (!('lineSubtotal' in value) || value['lineSubtotal'] === undefined) return false;
|
|
103
|
-
if (!('discounts' in value) || value['discounts'] === undefined) return false;
|
|
104
62
|
if (!('productChild' in value) || value['productChild'] === undefined) return false;
|
|
105
63
|
return true;
|
|
106
64
|
}
|
|
@@ -115,15 +73,10 @@ export function LineItemListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
115
73
|
}
|
|
116
74
|
return {
|
|
117
75
|
|
|
118
|
-
'id': json['id'],
|
|
76
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
119
77
|
'quantity': json['quantity'],
|
|
120
78
|
'productPrice': json['product_price'],
|
|
121
|
-
'
|
|
122
|
-
'productDiscount': json['product_discount'],
|
|
123
|
-
'totalDiscount': json['total_discount'],
|
|
124
|
-
'lineSubtotal': json['line_subtotal'],
|
|
125
|
-
'discounts': (json['discounts'] == null ? null : (json['discounts'] as Array<any>).map(LineItemDiscountResourceFromJSON)),
|
|
126
|
-
'productChild': ProductChildCartLiteResourceFromJSON(json['product_child']),
|
|
79
|
+
'productChild': ProductChildListResourceFromJSON(json['product_child']),
|
|
127
80
|
};
|
|
128
81
|
}
|
|
129
82
|
|
|
@@ -141,12 +94,7 @@ export function LineItemListResourceToJSONTyped(value?: LineItemListResource | n
|
|
|
141
94
|
'id': value['id'],
|
|
142
95
|
'quantity': value['quantity'],
|
|
143
96
|
'product_price': value['productPrice'],
|
|
144
|
-
'
|
|
145
|
-
'product_discount': value['productDiscount'],
|
|
146
|
-
'total_discount': value['totalDiscount'],
|
|
147
|
-
'line_subtotal': value['lineSubtotal'],
|
|
148
|
-
'discounts': (value['discounts'] == null ? null : (value['discounts'] as Array<any>).map(LineItemDiscountResourceToJSON)),
|
|
149
|
-
'product_child': ProductChildCartLiteResourceToJSON(value['productChild']),
|
|
97
|
+
'product_child': ProductChildListResourceToJSON(value['productChild']),
|
|
150
98
|
};
|
|
151
99
|
}
|
|
152
100
|
|
|
@@ -24,13 +24,13 @@ export interface StoreCartRequestShippingAddress {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof StoreCartRequestShippingAddress
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
addresseeName?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof StoreCartRequestShippingAddress
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
company?: string | null;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -86,8 +86,8 @@ export function StoreCartRequestShippingAddressFromJSONTyped(json: any, ignoreDi
|
|
|
86
86
|
}
|
|
87
87
|
return {
|
|
88
88
|
|
|
89
|
+
'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
|
|
89
90
|
'company': json['company'] == null ? undefined : json['company'],
|
|
90
|
-
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
91
91
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
92
92
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
93
93
|
'suburb': json['suburb'] == null ? undefined : json['suburb'],
|
|
@@ -108,8 +108,8 @@ export function StoreCartRequestShippingAddressToJSONTyped(value?: StoreCartRequ
|
|
|
108
108
|
|
|
109
109
|
return {
|
|
110
110
|
|
|
111
|
+
'addressee_name': value['addresseeName'],
|
|
111
112
|
'company': value['company'],
|
|
112
|
-
'addressee': value['addressee'],
|
|
113
113
|
'line_1': value['line1'],
|
|
114
114
|
'line_2': value['line2'],
|
|
115
115
|
'suburb': value['suburb'],
|
|
@@ -78,7 +78,7 @@ export interface StoreFrontendResource {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof StoreFrontendResource
|
|
80
80
|
*/
|
|
81
|
-
tagLine
|
|
81
|
+
tagLine: string;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
@@ -109,6 +109,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
109
109
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
110
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
112
113
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
113
114
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
114
115
|
return true;
|
|
@@ -133,7 +134,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
133
134
|
'address': json['address'] == null ? undefined : json['address'],
|
|
134
135
|
'latitude': json['latitude'],
|
|
135
136
|
'longitude': json['longitude'],
|
|
136
|
-
'tagLine': json['tagLine']
|
|
137
|
+
'tagLine': json['tagLine'],
|
|
137
138
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
138
139
|
'specialDates': json['specialDates'],
|
|
139
140
|
'suppliers': json['suppliers'],
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {string}
|
|
@@ -100,7 +100,6 @@ 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;
|
|
104
103
|
return true;
|
|
105
104
|
}
|
|
106
105
|
|
|
@@ -122,7 +121,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
122
121
|
'latitude': json['latitude'],
|
|
123
122
|
'tagLine': json['tag_line'],
|
|
124
123
|
'email': json['email'],
|
|
125
|
-
'website': json['website'],
|
|
124
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
126
125
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
127
126
|
};
|
|
128
127
|
}
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine?: string | null;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website: string;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {string}
|
|
@@ -137,8 +137,8 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
137
137
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
138
138
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
139
139
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
140
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
141
140
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
141
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
142
142
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
143
143
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
144
144
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
@@ -161,9 +161,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
161
161
|
'phone': json['phone'],
|
|
162
162
|
'longitude': json['longitude'],
|
|
163
163
|
'latitude': json['latitude'],
|
|
164
|
-
'tagLine': json['tag_line'],
|
|
164
|
+
'tagLine': json['tag_line'] == null ? undefined : json['tag_line'],
|
|
165
165
|
'email': json['email'],
|
|
166
|
-
'website': json['website']
|
|
166
|
+
'website': json['website'],
|
|
167
167
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
168
168
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
|
169
169
|
'address': AddressResourceFromJSON(json['address']),
|
|
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface StoreStoreRequestAddress
|
|
20
20
|
*/
|
|
21
21
|
export interface StoreStoreRequestAddress {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof StoreStoreRequestAddress
|
|
26
|
+
*/
|
|
27
|
+
addresseeName?: string | null;
|
|
22
28
|
/**
|
|
23
29
|
*
|
|
24
30
|
* @type {string}
|
|
@@ -86,6 +92,7 @@ export function StoreStoreRequestAddressFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
86
92
|
}
|
|
87
93
|
return {
|
|
88
94
|
|
|
95
|
+
'addresseeName': json['addressee_name'] == null ? undefined : json['addressee_name'],
|
|
89
96
|
'company': json['company'],
|
|
90
97
|
'line1': json['line_1'],
|
|
91
98
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -107,6 +114,7 @@ export function StoreStoreRequestAddressToJSONTyped(value?: StoreStoreRequestAdd
|
|
|
107
114
|
|
|
108
115
|
return {
|
|
109
116
|
|
|
117
|
+
'addressee_name': value['addresseeName'],
|
|
110
118
|
'company': value['company'],
|
|
111
119
|
'line_1': value['line1'],
|
|
112
120
|
'line_2': value['line2'],
|
package/src/models/index.ts
CHANGED
|
@@ -5,8 +5,6 @@ export * from './AddressFrontendResourceArrayResponse';
|
|
|
5
5
|
export * from './AddressResource';
|
|
6
6
|
export * from './AddressResourceArrayResponse';
|
|
7
7
|
export * from './AddressType';
|
|
8
|
-
export * from './AdminOrderResource';
|
|
9
|
-
export * from './AdminOrderResourceArrayResponse';
|
|
10
8
|
export * from './AssetFileForUploadResource';
|
|
11
9
|
export * from './AssetFileForUploadResourceArrayResponse';
|
|
12
10
|
export * from './AssetFrontendResource';
|
|
@@ -30,7 +28,6 @@ export * from './AttachDocumentsProductChildRequest';
|
|
|
30
28
|
export * from './AttachDocumentsProductChildRequestDocumentsInner';
|
|
31
29
|
export * from './AttachDocumentsProductRangeRequest';
|
|
32
30
|
export * from './AttachItemCartRequest';
|
|
33
|
-
export * from './AttachItemOrderRequest';
|
|
34
31
|
export * from './AttachProductTypeAttributeRequest';
|
|
35
32
|
export * from './AttachProductsProductCategoryRequest';
|
|
36
33
|
export * from './AttachStoresSupplierRequest';
|
|
@@ -47,8 +44,6 @@ export * from './AttributeResourceArrayResponse';
|
|
|
47
44
|
export * from './AttributeType';
|
|
48
45
|
export * from './AttributeValueResource';
|
|
49
46
|
export * from './AttributeValueResourceArrayResponse';
|
|
50
|
-
export * from './CartCouponResource';
|
|
51
|
-
export * from './CartCouponResourceArrayResponse';
|
|
52
47
|
export * from './CartListResource';
|
|
53
48
|
export * from './CartListResourceArrayResponse';
|
|
54
49
|
export * from './CartOrderSource';
|
|
@@ -79,7 +74,6 @@ export * from './DestroyAttributeValueRequest';
|
|
|
79
74
|
export * from './DetachAccessoriesProductRangeRequest';
|
|
80
75
|
export * from './DetachAssetableOverlayTemplateRequest';
|
|
81
76
|
export * from './DetachAttributesProductRangeRequest';
|
|
82
|
-
export * from './DetachCouponCartRequest';
|
|
83
77
|
export * from './DetachDocumentablesDocumentRequest';
|
|
84
78
|
export * from './DetachDocumentablesDocumentRequestDocumentablesInner';
|
|
85
79
|
export * from './DetachDocumentsProductChildRequest';
|
|
@@ -87,8 +81,6 @@ export * from './DetachDocumentsProductRangeRequest';
|
|
|
87
81
|
export * from './DetachProductsProductCategoryRequest';
|
|
88
82
|
export * from './DetachStoresSupplierRequest';
|
|
89
83
|
export * from './DetachSuppliersStoreRequest';
|
|
90
|
-
export * from './DiscountType';
|
|
91
|
-
export * from './DiscountValueType';
|
|
92
84
|
export * from './DocumentFileForUploadResource';
|
|
93
85
|
export * from './DocumentFileForUploadResourceArrayResponse';
|
|
94
86
|
export * from './DocumentFrontendResource';
|
|
@@ -111,7 +103,6 @@ export * from './GetAllDocumentRequest';
|
|
|
111
103
|
export * from './GetAllGoogleCategoryRequest';
|
|
112
104
|
export * from './GetAllMenuItemRequest';
|
|
113
105
|
export * from './GetAllMenuRequest';
|
|
114
|
-
export * from './GetAllOrderRequest';
|
|
115
106
|
export * from './GetAllOverlayTemplateRequest';
|
|
116
107
|
export * from './GetAllProductCategoryRequest';
|
|
117
108
|
export * from './GetAllProductChildRequest';
|
|
@@ -144,7 +135,6 @@ export * from './IndexExternalApiLogRequest';
|
|
|
144
135
|
export * from './IndexLabelRequest';
|
|
145
136
|
export * from './IndexMenuRequest';
|
|
146
137
|
export * from './IndexModelAttributeRequest';
|
|
147
|
-
export * from './IndexOrderRequest';
|
|
148
138
|
export * from './IndexOverlayTemplateRequest';
|
|
149
139
|
export * from './IndexProductCategoryRequest';
|
|
150
140
|
export * from './IndexProductChildRequest';
|
|
@@ -166,8 +156,6 @@ export * from './LabelResource';
|
|
|
166
156
|
export * from './LabelResourceArrayResponse';
|
|
167
157
|
export * from './LiAddressResource';
|
|
168
158
|
export * from './LiAddressResourceArrayResponse';
|
|
169
|
-
export * from './LineItemDiscountResource';
|
|
170
|
-
export * from './LineItemDiscountResourceArrayResponse';
|
|
171
159
|
export * from './LineItemListResource';
|
|
172
160
|
export * from './LineItemListResourceArrayResponse';
|
|
173
161
|
export * from './ListAssetsProductRegistrationRequest';
|
|
@@ -191,10 +179,6 @@ export * from './ModelAttributeListResource';
|
|
|
191
179
|
export * from './ModelAttributeListResourceArrayResponse';
|
|
192
180
|
export * from './ModelAttributeResource';
|
|
193
181
|
export * from './ModelAttributeResourceArrayResponse';
|
|
194
|
-
export * from './OrderListResource';
|
|
195
|
-
export * from './OrderListResourceArrayResponse';
|
|
196
|
-
export * from './OrderLiteResource';
|
|
197
|
-
export * from './OrderLiteResourceArrayResponse';
|
|
198
182
|
export * from './OverlayTemplateAssetFrontendResource';
|
|
199
183
|
export * from './OverlayTemplateAssetFrontendResourceArrayResponse';
|
|
200
184
|
export * from './OverlayTemplateAssetPosition';
|
|
@@ -223,7 +207,6 @@ export * from './PaginatedGoogleCategoryResourceResponse';
|
|
|
223
207
|
export * from './PaginatedLabelListResourceResponse';
|
|
224
208
|
export * from './PaginatedMenuListResourceResponse';
|
|
225
209
|
export * from './PaginatedModelAttributeListResourceResponse';
|
|
226
|
-
export * from './PaginatedOrderListResourceResponse';
|
|
227
210
|
export * from './PaginatedOverlayTemplateListResourceResponse';
|
|
228
211
|
export * from './PaginatedOverlayTemplateLiteResourceResponse';
|
|
229
212
|
export * from './PaginatedOverlayTemplateResourceResponse';
|
|
@@ -282,8 +265,6 @@ export * from './ProductChildAttributeGroupedResource';
|
|
|
282
265
|
export * from './ProductChildAttributeGroupedResourceArrayResponse';
|
|
283
266
|
export * from './ProductChildAttributeResource';
|
|
284
267
|
export * from './ProductChildAttributeResourceArrayResponse';
|
|
285
|
-
export * from './ProductChildCartLiteResource';
|
|
286
|
-
export * from './ProductChildCartLiteResourceArrayResponse';
|
|
287
268
|
export * from './ProductChildListResource';
|
|
288
269
|
export * from './ProductChildListResourceArrayResponse';
|
|
289
270
|
export * from './ProductChildLiteResource';
|
|
@@ -460,15 +441,11 @@ export * from './UpdateDocumentRequest';
|
|
|
460
441
|
export * from './UpdateFilterOrderAttributeRequest';
|
|
461
442
|
export * from './UpdateFilterOrderAttributeRequestValuesInner';
|
|
462
443
|
export * from './UpdateItemCartRequest';
|
|
463
|
-
export * from './UpdateItemOrderRequest';
|
|
464
444
|
export * from './UpdateLabelRequest';
|
|
465
445
|
export * from './UpdateMenuItemRequest';
|
|
466
446
|
export * from './UpdateMenuRequest';
|
|
467
447
|
export * from './UpdateMenuRequestMenuItemOrderInner';
|
|
468
448
|
export * from './UpdateModelAttributeRequest';
|
|
469
|
-
export * from './UpdateOrderRequest';
|
|
470
|
-
export * from './UpdateOrderRequestBillingAddress';
|
|
471
|
-
export * from './UpdateOrderRequestShippingAddress';
|
|
472
449
|
export * from './UpdateOverlayTemplateAssetRequest';
|
|
473
450
|
export * from './UpdateOverlayTemplateRequest';
|
|
474
451
|
export * from './UpdateProductCategoryRequest';
|