@digital8/lighting-illusions-ts-sdk 0.0.2007 → 0.0.2009
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 -2
- package/README.md +2 -3
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +15 -11
- package/dist/models/AdminOrderResource.js +68 -68
- package/dist/models/CartCouponResource.js +2 -2
- package/dist/models/CartListResource.js +24 -24
- package/dist/models/CartOrderSource.d.ts +0 -4
- package/dist/models/CartOrderSource.js +1 -5
- package/dist/models/CartResource.js +50 -50
- package/dist/models/CreateCartRequest.d.ts +0 -4
- package/dist/models/CreateCartRequest.js +1 -5
- package/dist/models/CustomerListResource.js +4 -4
- package/dist/models/CustomerResource.js +4 -4
- package/dist/models/DiscountResource.js +10 -10
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/LiAddressResource.js +6 -6
- package/dist/models/LiAdminUserLiteResource.js +4 -4
- package/dist/models/LineItemDiscountResource.js +4 -4
- package/dist/models/LineItemListResource.js +12 -12
- package/dist/models/OmnisendSyncLiteResource.js +4 -4
- package/dist/models/OrderListResource.d.ts +0 -24
- package/dist/models/OrderListResource.js +10 -22
- package/dist/models/OrderLiteResource.js +10 -10
- package/dist/models/OrderStatusLiteResource.js +2 -2
- package/dist/models/OrderStatusWithCountResource.js +4 -4
- package/dist/models/ProductChildCartLiteResource.js +6 -6
- package/dist/models/SearchTransactionsRequest.d.ts +10 -2
- package/dist/models/SearchTransactionsRequest.js +8 -1
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +2 -6
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/StoreTransactionResource.js +2 -2
- package/dist/models/TransactionLiteResource.js +10 -10
- package/dist/models/TransactionResource.js +20 -20
- package/dist/models/UpdateCartRequest.d.ts +0 -4
- package/dist/models/UpdateCartRequest.js +1 -5
- package/dist/models/UpdateOrderRequest.d.ts +0 -4
- package/dist/models/UpdateOrderRequest.js +1 -5
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/docs/OrderListResource.md +0 -8
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +15 -13
- package/src/models/AdminOrderResource.ts +68 -68
- package/src/models/CartCouponResource.ts +2 -2
- package/src/models/CartListResource.ts +24 -24
- package/src/models/CartOrderSource.ts +1 -5
- package/src/models/CartResource.ts +50 -50
- package/src/models/CreateCartRequest.ts +1 -5
- package/src/models/CustomerListResource.ts +4 -4
- package/src/models/CustomerResource.ts +4 -4
- package/src/models/DiscountResource.ts +10 -10
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/LiAddressResource.ts +6 -6
- package/src/models/LiAdminUserLiteResource.ts +4 -4
- package/src/models/LineItemDiscountResource.ts +4 -4
- package/src/models/LineItemListResource.ts +12 -12
- package/src/models/OmnisendSyncLiteResource.ts +4 -4
- package/src/models/OrderListResource.ts +10 -44
- package/src/models/OrderLiteResource.ts +10 -10
- package/src/models/OrderStatusLiteResource.ts +2 -2
- package/src/models/OrderStatusWithCountResource.ts +4 -4
- package/src/models/ProductChildCartLiteResource.ts +6 -6
- package/src/models/SearchTransactionsRequest.ts +11 -2
- package/src/models/StoreFrontendResource.ts +4 -6
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreTransactionResource.ts +2 -2
- package/src/models/TransactionLiteResource.ts +10 -10
- package/src/models/TransactionResource.ts +20 -20
- package/src/models/UpdateCartRequest.ts +1 -5
- package/src/models/UpdateOrderRequest.ts +1 -5
- package/src/models/index.ts +0 -1
- package/dist/models/OrderOmnisendEvent.d.ts +0 -25
- package/dist/models/OrderOmnisendEvent.js +0 -51
- package/docs/OrderOmnisendEvent.md +0 -32
- package/src/models/OrderOmnisendEvent.ts +0 -53
|
@@ -180,21 +180,21 @@ export function CartListResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
180
180
|
return {
|
|
181
181
|
|
|
182
182
|
'id': json['id'] == null ? undefined : json['id'],
|
|
183
|
-
'guestEmail': json['
|
|
183
|
+
'guestEmail': json['guestEmail'] == null ? undefined : json['guestEmail'],
|
|
184
184
|
'source': json['source'],
|
|
185
|
-
'shippingType': json['
|
|
186
|
-
'shippingSubtotal': json['
|
|
187
|
-
'overrideShipping': json['
|
|
188
|
-
'insuranceAmount': json['
|
|
189
|
-
'includeInsurance': json['
|
|
190
|
-
'overrideInsurance': json['
|
|
191
|
-
'useAsBillingAddress': json['
|
|
192
|
-
'expiryDate': (new Date(json['
|
|
193
|
-
'checkoutCompletedAt': json['
|
|
194
|
-
'createdAt': json['
|
|
185
|
+
'shippingType': json['shippingType'] == null ? undefined : json['shippingType'],
|
|
186
|
+
'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
|
|
187
|
+
'overrideShipping': json['overrideShipping'],
|
|
188
|
+
'insuranceAmount': json['insuranceAmount'] == null ? undefined : json['insuranceAmount'],
|
|
189
|
+
'includeInsurance': json['includeInsurance'],
|
|
190
|
+
'overrideInsurance': json['overrideInsurance'],
|
|
191
|
+
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
192
|
+
'expiryDate': (new Date(json['expiryDate'])),
|
|
193
|
+
'checkoutCompletedAt': json['checkoutCompletedAt'] == null ? undefined : (new Date(json['checkoutCompletedAt'])),
|
|
194
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
195
195
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
196
196
|
'customer': CustomerListResourceFromJSON(json['customer']),
|
|
197
|
-
'lineItems': (json['
|
|
197
|
+
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(LineItemListResourceFromJSON)),
|
|
198
198
|
'subtotal': json['subtotal'],
|
|
199
199
|
'status': json['status'],
|
|
200
200
|
};
|
|
@@ -212,21 +212,21 @@ export function CartListResourceToJSONTyped(value?: CartListResource | null, ign
|
|
|
212
212
|
return {
|
|
213
213
|
|
|
214
214
|
'id': value['id'],
|
|
215
|
-
'
|
|
215
|
+
'guestEmail': value['guestEmail'],
|
|
216
216
|
'source': value['source'],
|
|
217
|
-
'
|
|
218
|
-
'
|
|
219
|
-
'
|
|
220
|
-
'
|
|
221
|
-
'
|
|
222
|
-
'
|
|
223
|
-
'
|
|
224
|
-
'
|
|
225
|
-
'
|
|
226
|
-
'
|
|
217
|
+
'shippingType': value['shippingType'],
|
|
218
|
+
'shippingSubtotal': value['shippingSubtotal'],
|
|
219
|
+
'overrideShipping': value['overrideShipping'],
|
|
220
|
+
'insuranceAmount': value['insuranceAmount'],
|
|
221
|
+
'includeInsurance': value['includeInsurance'],
|
|
222
|
+
'overrideInsurance': value['overrideInsurance'],
|
|
223
|
+
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
224
|
+
'expiryDate': value['expiryDate'].toISOString(),
|
|
225
|
+
'checkoutCompletedAt': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
|
|
226
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
227
227
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
228
228
|
'customer': CustomerListResourceToJSON(value['customer']),
|
|
229
|
-
'
|
|
229
|
+
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
|
|
230
230
|
'subtotal': value['subtotal'],
|
|
231
231
|
'status': value['status'],
|
|
232
232
|
};
|
|
@@ -19,11 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
export const CartOrderSource = {
|
|
21
21
|
Checkout: 'checkout',
|
|
22
|
-
Admin: 'admin'
|
|
23
|
-
Phone: 'phone',
|
|
24
|
-
Email: 'email',
|
|
25
|
-
Ebay: 'ebay',
|
|
26
|
-
InStore: 'in_store'
|
|
22
|
+
Admin: 'admin'
|
|
27
23
|
} as const;
|
|
28
24
|
export type CartOrderSource = typeof CartOrderSource[keyof typeof CartOrderSource];
|
|
29
25
|
|
|
@@ -304,38 +304,38 @@ export function CartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
304
304
|
return {
|
|
305
305
|
|
|
306
306
|
'id': json['id'] == null ? undefined : json['id'],
|
|
307
|
-
'guestEmail': json['
|
|
307
|
+
'guestEmail': json['guestEmail'] == null ? undefined : json['guestEmail'],
|
|
308
308
|
'source': json['source'],
|
|
309
|
-
'sessionToken': json['
|
|
310
|
-
'paymentToken': json['
|
|
311
|
-
'expiryDate': (new Date(json['
|
|
312
|
-
'checkoutCompletedAt': json['
|
|
313
|
-
'createdAt': json['
|
|
314
|
-
'updatedAt': json['
|
|
315
|
-
'shippingType': json['
|
|
316
|
-
'shippingSubtotal': json['
|
|
317
|
-
'overrideShipping': json['
|
|
318
|
-
'insuranceSubtotal': json['
|
|
319
|
-
'includeInsurance': json['
|
|
320
|
-
'overrideInsurance': json['
|
|
321
|
-
'useAsBillingAddress': json['
|
|
309
|
+
'sessionToken': json['sessionToken'] == null ? undefined : json['sessionToken'],
|
|
310
|
+
'paymentToken': json['paymentToken'] == null ? undefined : json['paymentToken'],
|
|
311
|
+
'expiryDate': (new Date(json['expiryDate'])),
|
|
312
|
+
'checkoutCompletedAt': json['checkoutCompletedAt'] == null ? undefined : (new Date(json['checkoutCompletedAt'])),
|
|
313
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
314
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
315
|
+
'shippingType': json['shippingType'],
|
|
316
|
+
'shippingSubtotal': json['shippingSubtotal'] == null ? undefined : json['shippingSubtotal'],
|
|
317
|
+
'overrideShipping': json['overrideShipping'],
|
|
318
|
+
'insuranceSubtotal': json['insuranceSubtotal'] == null ? undefined : json['insuranceSubtotal'],
|
|
319
|
+
'includeInsurance': json['includeInsurance'],
|
|
320
|
+
'overrideInsurance': json['overrideInsurance'],
|
|
321
|
+
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
322
322
|
'admin': json['admin'],
|
|
323
323
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
324
324
|
'customer': CustomerListResourceFromJSON(json['customer']),
|
|
325
|
-
'lineItems': (json['
|
|
325
|
+
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(LineItemListResourceFromJSON)),
|
|
326
326
|
'coupons': (json['coupons'] == null ? null : (json['coupons'] as Array<any>).map(CartCouponResourceFromJSON)),
|
|
327
|
-
'shippingAddress': AddressResourceFromJSON(json['
|
|
328
|
-
'billingAddress': AddressResourceFromJSON(json['
|
|
329
|
-
'discountPreview': json['
|
|
327
|
+
'shippingAddress': AddressResourceFromJSON(json['shippingAddress']),
|
|
328
|
+
'billingAddress': AddressResourceFromJSON(json['billingAddress']),
|
|
329
|
+
'discountPreview': json['discountPreview'],
|
|
330
330
|
'subtotal': json['subtotal'],
|
|
331
|
-
'shippingAmount': json['
|
|
332
|
-
'insuranceAmount': json['
|
|
331
|
+
'shippingAmount': json['shippingAmount'],
|
|
332
|
+
'insuranceAmount': json['insuranceAmount'],
|
|
333
333
|
'total': json['total'],
|
|
334
|
-
'discountAmount': json['
|
|
335
|
-
'productDiscountAmount': json['
|
|
336
|
-
'shippingDiscountAmount': json['
|
|
337
|
-
'subtotalDiscountAmount': json['
|
|
338
|
-
'finalTotalAmount': json['
|
|
334
|
+
'discountAmount': json['discountAmount'],
|
|
335
|
+
'productDiscountAmount': json['productDiscountAmount'],
|
|
336
|
+
'shippingDiscountAmount': json['shippingDiscountAmount'],
|
|
337
|
+
'subtotalDiscountAmount': json['subtotalDiscountAmount'],
|
|
338
|
+
'finalTotalAmount': json['finalTotalAmount'],
|
|
339
339
|
'status': json['status'],
|
|
340
340
|
};
|
|
341
341
|
}
|
|
@@ -352,38 +352,38 @@ export function CartResourceToJSONTyped(value?: CartResource | null, ignoreDiscr
|
|
|
352
352
|
return {
|
|
353
353
|
|
|
354
354
|
'id': value['id'],
|
|
355
|
-
'
|
|
355
|
+
'guestEmail': value['guestEmail'],
|
|
356
356
|
'source': value['source'],
|
|
357
|
-
'
|
|
358
|
-
'
|
|
359
|
-
'
|
|
360
|
-
'
|
|
361
|
-
'
|
|
362
|
-
'
|
|
363
|
-
'
|
|
364
|
-
'
|
|
365
|
-
'
|
|
366
|
-
'
|
|
367
|
-
'
|
|
368
|
-
'
|
|
369
|
-
'
|
|
357
|
+
'sessionToken': value['sessionToken'],
|
|
358
|
+
'paymentToken': value['paymentToken'],
|
|
359
|
+
'expiryDate': value['expiryDate'].toISOString(),
|
|
360
|
+
'checkoutCompletedAt': value['checkoutCompletedAt'] == null ? value['checkoutCompletedAt'] : value['checkoutCompletedAt'].toISOString(),
|
|
361
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
362
|
+
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
363
|
+
'shippingType': value['shippingType'],
|
|
364
|
+
'shippingSubtotal': value['shippingSubtotal'],
|
|
365
|
+
'overrideShipping': value['overrideShipping'],
|
|
366
|
+
'insuranceSubtotal': value['insuranceSubtotal'],
|
|
367
|
+
'includeInsurance': value['includeInsurance'],
|
|
368
|
+
'overrideInsurance': value['overrideInsurance'],
|
|
369
|
+
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
370
370
|
'admin': value['admin'],
|
|
371
371
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
372
372
|
'customer': CustomerListResourceToJSON(value['customer']),
|
|
373
|
-
'
|
|
373
|
+
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
|
|
374
374
|
'coupons': (value['coupons'] == null ? null : (value['coupons'] as Array<any>).map(CartCouponResourceToJSON)),
|
|
375
|
-
'
|
|
376
|
-
'
|
|
377
|
-
'
|
|
375
|
+
'shippingAddress': AddressResourceToJSON(value['shippingAddress']),
|
|
376
|
+
'billingAddress': AddressResourceToJSON(value['billingAddress']),
|
|
377
|
+
'discountPreview': value['discountPreview'],
|
|
378
378
|
'subtotal': value['subtotal'],
|
|
379
|
-
'
|
|
380
|
-
'
|
|
379
|
+
'shippingAmount': value['shippingAmount'],
|
|
380
|
+
'insuranceAmount': value['insuranceAmount'],
|
|
381
381
|
'total': value['total'],
|
|
382
|
-
'
|
|
383
|
-
'
|
|
384
|
-
'
|
|
385
|
-
'
|
|
386
|
-
'
|
|
382
|
+
'discountAmount': value['discountAmount'],
|
|
383
|
+
'productDiscountAmount': value['productDiscountAmount'],
|
|
384
|
+
'shippingDiscountAmount': value['shippingDiscountAmount'],
|
|
385
|
+
'subtotalDiscountAmount': value['subtotalDiscountAmount'],
|
|
386
|
+
'finalTotalAmount': value['finalTotalAmount'],
|
|
387
387
|
'status': value['status'],
|
|
388
388
|
};
|
|
389
389
|
}
|
|
@@ -163,11 +163,7 @@ export interface CreateCartRequest {
|
|
|
163
163
|
*/
|
|
164
164
|
export const CreateCartRequestSourceEnum = {
|
|
165
165
|
Checkout: 'checkout',
|
|
166
|
-
Admin: 'admin'
|
|
167
|
-
Phone: 'phone',
|
|
168
|
-
Email: 'email',
|
|
169
|
-
Ebay: 'ebay',
|
|
170
|
-
InStore: 'in_store'
|
|
166
|
+
Admin: 'admin'
|
|
171
167
|
} as const;
|
|
172
168
|
export type CreateCartRequestSourceEnum = typeof CreateCartRequestSourceEnum[keyof typeof CreateCartRequestSourceEnum];
|
|
173
169
|
|
|
@@ -102,8 +102,8 @@ export function CustomerListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
102
102
|
return {
|
|
103
103
|
|
|
104
104
|
'id': json['id'] == null ? undefined : json['id'],
|
|
105
|
-
'firstName': json['
|
|
106
|
-
'lastName': json['
|
|
105
|
+
'firstName': json['firstName'],
|
|
106
|
+
'lastName': json['lastName'],
|
|
107
107
|
'email': json['email'],
|
|
108
108
|
'phone': json['phone'],
|
|
109
109
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -123,8 +123,8 @@ export function CustomerListResourceToJSONTyped(value?: CustomerListResource | n
|
|
|
123
123
|
return {
|
|
124
124
|
|
|
125
125
|
'id': value['id'],
|
|
126
|
-
'
|
|
127
|
-
'
|
|
126
|
+
'firstName': value['firstName'],
|
|
127
|
+
'lastName': value['lastName'],
|
|
128
128
|
'email': value['email'],
|
|
129
129
|
'phone': value['phone'],
|
|
130
130
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
@@ -102,8 +102,8 @@ export function CustomerResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
102
102
|
return {
|
|
103
103
|
|
|
104
104
|
'id': json['id'] == null ? undefined : json['id'],
|
|
105
|
-
'firstName': json['
|
|
106
|
-
'lastName': json['
|
|
105
|
+
'firstName': json['firstName'],
|
|
106
|
+
'lastName': json['lastName'],
|
|
107
107
|
'email': json['email'],
|
|
108
108
|
'phone': json['phone'],
|
|
109
109
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -123,8 +123,8 @@ export function CustomerResourceToJSONTyped(value?: CustomerResource | null, ign
|
|
|
123
123
|
return {
|
|
124
124
|
|
|
125
125
|
'id': value['id'],
|
|
126
|
-
'
|
|
127
|
-
'
|
|
126
|
+
'firstName': value['firstName'],
|
|
127
|
+
'lastName': value['lastName'],
|
|
128
128
|
'email': value['email'],
|
|
129
129
|
'phone': value['phone'],
|
|
130
130
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
@@ -87,12 +87,12 @@ export function DiscountResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
87
87
|
return {
|
|
88
88
|
|
|
89
89
|
'id': json['id'],
|
|
90
|
-
'discountType': json['
|
|
91
|
-
'discountValueType': json['
|
|
92
|
-
'discountValue': json['
|
|
93
|
-
'itemId': json['
|
|
90
|
+
'discountType': json['discountType'],
|
|
91
|
+
'discountValueType': json['discountValueType'],
|
|
92
|
+
'discountValue': json['discountValue'],
|
|
93
|
+
'itemId': json['itemId'] == null ? undefined : json['itemId'],
|
|
94
94
|
'name': json['name'],
|
|
95
|
-
'couponCode': json['
|
|
95
|
+
'couponCode': json['couponCode'],
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -108,12 +108,12 @@ export function DiscountResourceToJSONTyped(value?: DiscountResource | null, ign
|
|
|
108
108
|
return {
|
|
109
109
|
|
|
110
110
|
'id': value['id'],
|
|
111
|
-
'
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
111
|
+
'discountType': value['discountType'],
|
|
112
|
+
'discountValueType': value['discountValueType'],
|
|
113
|
+
'discountValue': value['discountValue'],
|
|
114
|
+
'itemId': value['itemId'],
|
|
115
115
|
'name': value['name'],
|
|
116
|
-
'
|
|
116
|
+
'couponCode': value['couponCode'],
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -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']),
|
|
@@ -109,13 +109,13 @@ export function LiAddressResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
109
109
|
'id': json['id'],
|
|
110
110
|
'type': json['type'],
|
|
111
111
|
'company': json['company'] == null ? undefined : json['company'],
|
|
112
|
-
'line1': json['
|
|
113
|
-
'line2': json['
|
|
112
|
+
'line1': json['line1'],
|
|
113
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
114
114
|
'suburb': json['suburb'],
|
|
115
115
|
'state': json['state'],
|
|
116
116
|
'postcode': json['postcode'],
|
|
117
117
|
'country': json['country'],
|
|
118
|
-
'fullAddress': json['
|
|
118
|
+
'fullAddress': json['fullAddress'],
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -133,13 +133,13 @@ export function LiAddressResourceToJSONTyped(value?: LiAddressResource | null, i
|
|
|
133
133
|
'id': value['id'],
|
|
134
134
|
'type': value['type'],
|
|
135
135
|
'company': value['company'],
|
|
136
|
-
'
|
|
137
|
-
'
|
|
136
|
+
'line1': value['line1'],
|
|
137
|
+
'line2': value['line2'],
|
|
138
138
|
'suburb': value['suburb'],
|
|
139
139
|
'state': value['state'],
|
|
140
140
|
'postcode': value['postcode'],
|
|
141
141
|
'country': value['country'],
|
|
142
|
-
'
|
|
142
|
+
'fullAddress': value['fullAddress'],
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
145
|
|
|
@@ -66,8 +66,8 @@ export function LiAdminUserLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
66
66
|
return {
|
|
67
67
|
|
|
68
68
|
'id': json['id'] == null ? undefined : json['id'],
|
|
69
|
-
'firstName': json['
|
|
70
|
-
'lastName': json['
|
|
69
|
+
'firstName': json['firstName'],
|
|
70
|
+
'lastName': json['lastName'],
|
|
71
71
|
'email': json['email'],
|
|
72
72
|
};
|
|
73
73
|
}
|
|
@@ -84,8 +84,8 @@ export function LiAdminUserLiteResourceToJSONTyped(value?: LiAdminUserLiteResour
|
|
|
84
84
|
return {
|
|
85
85
|
|
|
86
86
|
'id': value['id'],
|
|
87
|
-
'
|
|
88
|
-
'
|
|
87
|
+
'firstName': value['firstName'],
|
|
88
|
+
'lastName': value['lastName'],
|
|
89
89
|
'email': value['email'],
|
|
90
90
|
};
|
|
91
91
|
}
|
|
@@ -68,8 +68,8 @@ export function LineItemDiscountResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
68
68
|
|
|
69
69
|
'id': json['id'],
|
|
70
70
|
'name': json['name'],
|
|
71
|
-
'discountTotal': json['
|
|
72
|
-
'couponCode': json['
|
|
71
|
+
'discountTotal': json['discountTotal'],
|
|
72
|
+
'couponCode': json['couponCode'],
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -86,8 +86,8 @@ export function LineItemDiscountResourceToJSONTyped(value?: LineItemDiscountReso
|
|
|
86
86
|
|
|
87
87
|
'id': value['id'],
|
|
88
88
|
'name': value['name'],
|
|
89
|
-
'
|
|
90
|
-
'
|
|
89
|
+
'discountTotal': value['discountTotal'],
|
|
90
|
+
'couponCode': value['couponCode'],
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -132,14 +132,14 @@ export function LineItemListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
132
132
|
|
|
133
133
|
'id': json['id'],
|
|
134
134
|
'quantity': json['quantity'],
|
|
135
|
-
'productPrice': json['
|
|
136
|
-
'labelId': json['
|
|
135
|
+
'productPrice': json['productPrice'],
|
|
136
|
+
'labelId': json['labelId'],
|
|
137
137
|
'label': LabelLiteResourceFromJSON(json['label']),
|
|
138
|
-
'productDiscount': json['
|
|
139
|
-
'totalDiscount': json['
|
|
140
|
-
'lineSubtotal': json['
|
|
138
|
+
'productDiscount': json['productDiscount'],
|
|
139
|
+
'totalDiscount': json['totalDiscount'],
|
|
140
|
+
'lineSubtotal': json['lineSubtotal'],
|
|
141
141
|
'discounts': (json['discounts'] == null ? null : (json['discounts'] as Array<any>).map(LineItemDiscountResourceFromJSON)),
|
|
142
|
-
'productChild': ProductChildCartLiteResourceFromJSON(json['
|
|
142
|
+
'productChild': ProductChildCartLiteResourceFromJSON(json['productChild']),
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
145
|
|
|
@@ -156,14 +156,14 @@ export function LineItemListResourceToJSONTyped(value?: LineItemListResource | n
|
|
|
156
156
|
|
|
157
157
|
'id': value['id'],
|
|
158
158
|
'quantity': value['quantity'],
|
|
159
|
-
'
|
|
160
|
-
'
|
|
159
|
+
'productPrice': value['productPrice'],
|
|
160
|
+
'labelId': value['labelId'],
|
|
161
161
|
'label': LabelLiteResourceToJSON(value['label']),
|
|
162
|
-
'
|
|
163
|
-
'
|
|
164
|
-
'
|
|
162
|
+
'productDiscount': value['productDiscount'],
|
|
163
|
+
'totalDiscount': value['totalDiscount'],
|
|
164
|
+
'lineSubtotal': value['lineSubtotal'],
|
|
165
165
|
'discounts': (value['discounts'] == null ? null : (value['discounts'] as Array<any>).map(LineItemDiscountResourceToJSON)),
|
|
166
|
-
'
|
|
166
|
+
'productChild': ProductChildCartLiteResourceToJSON(value['productChild']),
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
|
|
@@ -60,8 +60,8 @@ export function OmnisendSyncLiteResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
60
60
|
return {
|
|
61
61
|
|
|
62
62
|
'id': json['id'],
|
|
63
|
-
'omnisendId': json['
|
|
64
|
-
'syncStatus': json['
|
|
63
|
+
'omnisendId': json['omnisendId'],
|
|
64
|
+
'syncStatus': json['syncStatus'],
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -77,8 +77,8 @@ export function OmnisendSyncLiteResourceToJSONTyped(value?: OmnisendSyncLiteReso
|
|
|
77
77
|
return {
|
|
78
78
|
|
|
79
79
|
'id': value['id'],
|
|
80
|
-
'
|
|
81
|
-
'
|
|
80
|
+
'omnisendId': value['omnisendId'],
|
|
81
|
+
'syncStatus': value['syncStatus'],
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -61,12 +61,6 @@ export interface OrderListResource {
|
|
|
61
61
|
* @memberof OrderListResource
|
|
62
62
|
*/
|
|
63
63
|
id?: number | null;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {number}
|
|
67
|
-
* @memberof OrderListResource
|
|
68
|
-
*/
|
|
69
|
-
cartId?: number | null;
|
|
70
64
|
/**
|
|
71
65
|
*
|
|
72
66
|
* @type {Date}
|
|
@@ -79,12 +73,6 @@ export interface OrderListResource {
|
|
|
79
73
|
* @memberof OrderListResource
|
|
80
74
|
*/
|
|
81
75
|
createdAt?: Date | null;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {Date}
|
|
85
|
-
* @memberof OrderListResource
|
|
86
|
-
*/
|
|
87
|
-
updatedAt?: Date | null;
|
|
88
76
|
/**
|
|
89
77
|
*
|
|
90
78
|
* @type {string}
|
|
@@ -97,12 +85,6 @@ export interface OrderListResource {
|
|
|
97
85
|
* @memberof OrderListResource
|
|
98
86
|
*/
|
|
99
87
|
netsuiteId?: string | null;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {boolean}
|
|
103
|
-
* @memberof OrderListResource
|
|
104
|
-
*/
|
|
105
|
-
isNetsuiteLocked: boolean;
|
|
106
88
|
/**
|
|
107
89
|
*
|
|
108
90
|
* @type {number}
|
|
@@ -115,12 +97,6 @@ export interface OrderListResource {
|
|
|
115
97
|
* @memberof OrderListResource
|
|
116
98
|
*/
|
|
117
99
|
finalTotalAmount: number;
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
* @type {string}
|
|
121
|
-
* @memberof OrderListResource
|
|
122
|
-
*/
|
|
123
|
-
cartStatusContext: string;
|
|
124
100
|
/**
|
|
125
101
|
*
|
|
126
102
|
* @type {SiteLiteResource}
|
|
@@ -159,10 +135,8 @@ export interface OrderListResource {
|
|
|
159
135
|
export function instanceOfOrderListResource(value: object): value is OrderListResource {
|
|
160
136
|
if (!('placedAt' in value) || value['placedAt'] === undefined) return false;
|
|
161
137
|
if (!('source' in value) || value['source'] === undefined) return false;
|
|
162
|
-
if (!('isNetsuiteLocked' in value) || value['isNetsuiteLocked'] === undefined) return false;
|
|
163
138
|
if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
|
|
164
139
|
if (!('finalTotalAmount' in value) || value['finalTotalAmount'] === undefined) return false;
|
|
165
|
-
if (!('cartStatusContext' in value) || value['cartStatusContext'] === undefined) return false;
|
|
166
140
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
167
141
|
if (!('customer' in value) || value['customer'] === undefined) return false;
|
|
168
142
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
@@ -182,20 +156,16 @@ export function OrderListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
182
156
|
return {
|
|
183
157
|
|
|
184
158
|
'id': json['id'] == null ? undefined : json['id'],
|
|
185
|
-
'
|
|
186
|
-
'
|
|
187
|
-
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
188
|
-
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
159
|
+
'placedAt': (new Date(json['placedAt'])),
|
|
160
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
189
161
|
'source': json['source'],
|
|
190
|
-
'netsuiteId': json['
|
|
191
|
-
'isNetsuiteLocked': json['is_netsuite_locked'],
|
|
162
|
+
'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
|
|
192
163
|
'subtotal': json['subtotal'],
|
|
193
|
-
'finalTotalAmount': json['
|
|
194
|
-
'cartStatusContext': json['cart_status_context'],
|
|
164
|
+
'finalTotalAmount': json['finalTotalAmount'],
|
|
195
165
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
196
166
|
'customer': CustomerListResourceFromJSON(json['customer']),
|
|
197
167
|
'status': OrderStatusLiteResourceFromJSON(json['status']),
|
|
198
|
-
'lineItems': (json['
|
|
168
|
+
'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(LineItemListResourceFromJSON)),
|
|
199
169
|
'transactions': (json['transactions'] == null ? null : (json['transactions'] as Array<any>).map(TransactionLiteResourceFromJSON)),
|
|
200
170
|
};
|
|
201
171
|
}
|
|
@@ -212,20 +182,16 @@ export function OrderListResourceToJSONTyped(value?: OrderListResource | null, i
|
|
|
212
182
|
return {
|
|
213
183
|
|
|
214
184
|
'id': value['id'],
|
|
215
|
-
'
|
|
216
|
-
'
|
|
217
|
-
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
218
|
-
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
185
|
+
'placedAt': value['placedAt'].toISOString(),
|
|
186
|
+
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
219
187
|
'source': value['source'],
|
|
220
|
-
'
|
|
221
|
-
'is_netsuite_locked': value['isNetsuiteLocked'],
|
|
188
|
+
'netsuiteId': value['netsuiteId'],
|
|
222
189
|
'subtotal': value['subtotal'],
|
|
223
|
-
'
|
|
224
|
-
'cart_status_context': value['cartStatusContext'],
|
|
190
|
+
'finalTotalAmount': value['finalTotalAmount'],
|
|
225
191
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
226
192
|
'customer': CustomerListResourceToJSON(value['customer']),
|
|
227
193
|
'status': OrderStatusLiteResourceToJSON(value['status']),
|
|
228
|
-
'
|
|
194
|
+
'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
|
|
229
195
|
'transactions': (value['transactions'] == null ? null : (value['transactions'] as Array<any>).map(TransactionLiteResourceToJSON)),
|
|
230
196
|
};
|
|
231
197
|
}
|