@digital8/lighting-illusions-ts-sdk 0.0.2743 → 0.0.2744
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 +2 -2
- package/dist/apis/CouponsApi.d.ts +1 -9
- package/dist/apis/CouponsApi.js +0 -42
- package/dist/apis/TransactionsApi.d.ts +1 -12
- package/dist/apis/TransactionsApi.js +0 -46
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +6 -2
- package/dist/models/AdminOrderResource.d.ts +0 -6
- package/dist/models/AdminOrderResource.js +0 -4
- package/dist/models/CreateTransactionRequest.d.ts +0 -1
- package/dist/models/CreateTransactionRequest.js +1 -2
- package/dist/models/FrontendCartResource.d.ts +0 -25
- package/dist/models/FrontendCartResource.js +0 -17
- package/dist/models/FrontendOrderResource.d.ts +0 -6
- package/dist/models/FrontendOrderResource.js +0 -4
- package/dist/models/PaymentMethod.d.ts +0 -1
- package/dist/models/PaymentMethod.js +1 -2
- package/dist/models/PaymentTotalsResource.d.ts +0 -25
- package/dist/models/PaymentTotalsResource.js +0 -17
- package/dist/models/SearchTransactionsRequest.d.ts +2 -3
- package/dist/models/SearchTransactionsRequest.js +2 -3
- 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 +1 -3
- package/dist/models/TransactionListResource.d.ts +8 -12
- package/dist/models/TransactionListResource.js +8 -12
- package/dist/models/TransactionLiteResource.d.ts +8 -12
- package/dist/models/TransactionLiteResource.js +8 -12
- package/dist/models/TransactionResource.d.ts +8 -12
- package/dist/models/TransactionResource.js +8 -12
- package/dist/models/index.d.ts +0 -9
- package/dist/models/index.js +0 -9
- package/package.json +1 -1
- package/src/apis/CouponsApi.ts +0 -32
- package/src/apis/TransactionsApi.ts +0 -44
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +6 -4
- package/src/models/AdminOrderResource.ts +0 -9
- package/src/models/CreateTransactionRequest.ts +1 -2
- package/src/models/FrontendCartResource.ts +0 -43
- package/src/models/FrontendOrderResource.ts +0 -9
- package/src/models/PaymentMethod.ts +1 -2
- package/src/models/PaymentTotalsResource.ts +0 -44
- package/src/models/SearchTransactionsRequest.ts +4 -12
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/TransactionListResource.ts +16 -47
- package/src/models/TransactionLiteResource.ts +16 -47
- package/src/models/TransactionResource.ts +16 -47
- package/src/models/index.ts +0 -9
- package/dist/apis/StoreCreditsApi.d.ts +0 -29
- package/dist/apis/StoreCreditsApi.js +0 -125
- package/dist/models/FrontendCartResourceStoreCreditsInner.d.ts +0 -44
- package/dist/models/FrontendCartResourceStoreCreditsInner.js +0 -53
- package/dist/models/GeneratedCouponCodeResource.d.ts +0 -32
- package/dist/models/GeneratedCouponCodeResource.js +0 -51
- package/dist/models/GeneratedCouponCodeResourceArrayResponse.d.ts +0 -33
- package/dist/models/GeneratedCouponCodeResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedStoreCreditListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedStoreCreditListResourceResponse.js +0 -57
- package/dist/models/SearchStoreCreditsRequest.d.ts +0 -106
- package/dist/models/SearchStoreCreditsRequest.js +0 -86
- package/dist/models/StoreCreditListResource.d.ts +0 -86
- package/dist/models/StoreCreditListResource.js +0 -80
- package/dist/models/StoreCreditListResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreCreditListResourceArrayResponse.js +0 -50
- package/dist/models/StoreCreditLiteResource.d.ts +0 -44
- package/dist/models/StoreCreditLiteResource.js +0 -59
- package/dist/models/StoreCreditLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreCreditLiteResourceArrayResponse.js +0 -50
- package/src/apis/StoreCreditsApi.ts +0 -69
- package/src/models/FrontendCartResourceStoreCreditsInner.ts +0 -81
- package/src/models/GeneratedCouponCodeResource.ts +0 -66
- package/src/models/GeneratedCouponCodeResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedStoreCreditListResourceResponse.ts +0 -90
- package/src/models/SearchStoreCreditsRequest.ts +0 -161
- package/src/models/StoreCreditListResource.ts +0 -143
- package/src/models/StoreCreditListResourceArrayResponse.ts +0 -73
- package/src/models/StoreCreditLiteResource.ts +0 -84
- package/src/models/StoreCreditLiteResourceArrayResponse.ts +0 -73
|
@@ -276,12 +276,6 @@ export interface AdminOrderResource {
|
|
|
276
276
|
* @memberof AdminOrderResource
|
|
277
277
|
*/
|
|
278
278
|
totalSurchargePaid: number;
|
|
279
|
-
/**
|
|
280
|
-
*
|
|
281
|
-
* @type {number}
|
|
282
|
-
* @memberof AdminOrderResource
|
|
283
|
-
*/
|
|
284
|
-
totalStoreCreditPaid: number;
|
|
285
279
|
/**
|
|
286
280
|
*
|
|
287
281
|
* @type {number}
|
|
@@ -410,7 +404,6 @@ export function instanceOfAdminOrderResource(value: object): value is AdminOrder
|
|
|
410
404
|
if (!('grandTotal' in value) || value['grandTotal'] === undefined) return false;
|
|
411
405
|
if (!('totalPaid' in value) || value['totalPaid'] === undefined) return false;
|
|
412
406
|
if (!('totalSurchargePaid' in value) || value['totalSurchargePaid'] === undefined) return false;
|
|
413
|
-
if (!('totalStoreCreditPaid' in value) || value['totalStoreCreditPaid'] === undefined) return false;
|
|
414
407
|
if (!('totalOutstanding' in value) || value['totalOutstanding'] === undefined) return false;
|
|
415
408
|
if (!('insuranceEstimate' in value) || value['insuranceEstimate'] === undefined) return false;
|
|
416
409
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
@@ -471,7 +464,6 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
471
464
|
'grandTotal': json['grandTotal'],
|
|
472
465
|
'totalPaid': json['totalPaid'],
|
|
473
466
|
'totalSurchargePaid': json['totalSurchargePaid'],
|
|
474
|
-
'totalStoreCreditPaid': json['totalStoreCreditPaid'],
|
|
475
467
|
'totalOutstanding': json['totalOutstanding'],
|
|
476
468
|
'insuranceEstimate': json['insuranceEstimate'],
|
|
477
469
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -533,7 +525,6 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
|
|
|
533
525
|
'grandTotal': value['grandTotal'],
|
|
534
526
|
'totalPaid': value['totalPaid'],
|
|
535
527
|
'totalSurchargePaid': value['totalSurchargePaid'],
|
|
536
|
-
'totalStoreCreditPaid': value['totalStoreCreditPaid'],
|
|
537
528
|
'totalOutstanding': value['totalOutstanding'],
|
|
538
529
|
'insuranceEstimate': value['insuranceEstimate'],
|
|
539
530
|
'site': SiteLiteResourceToJSON(value['site']),
|
|
@@ -80,8 +80,7 @@ export const CreateTransactionRequestPaymentMethodEnum = {
|
|
|
80
80
|
AmericanExpress: 'american_express',
|
|
81
81
|
GooglePay: 'google_pay',
|
|
82
82
|
PayPal: 'pay_pal',
|
|
83
|
-
ApplePay: 'apple_pay'
|
|
84
|
-
StoreCredit: 'store_credit'
|
|
83
|
+
ApplePay: 'apple_pay'
|
|
85
84
|
} as const;
|
|
86
85
|
export type CreateTransactionRequestPaymentMethodEnum = typeof CreateTransactionRequestPaymentMethodEnum[keyof typeof CreateTransactionRequestPaymentMethodEnum];
|
|
87
86
|
|
|
@@ -34,13 +34,6 @@ import {
|
|
|
34
34
|
FrontendCartResourceCouponsInnerToJSON,
|
|
35
35
|
FrontendCartResourceCouponsInnerToJSONTyped,
|
|
36
36
|
} from './FrontendCartResourceCouponsInner';
|
|
37
|
-
import type { FrontendCartResourceStoreCreditsInner } from './FrontendCartResourceStoreCreditsInner';
|
|
38
|
-
import {
|
|
39
|
-
FrontendCartResourceStoreCreditsInnerFromJSON,
|
|
40
|
-
FrontendCartResourceStoreCreditsInnerFromJSONTyped,
|
|
41
|
-
FrontendCartResourceStoreCreditsInnerToJSON,
|
|
42
|
-
FrontendCartResourceStoreCreditsInnerToJSONTyped,
|
|
43
|
-
} from './FrontendCartResourceStoreCreditsInner';
|
|
44
37
|
import type { AddressResource } from './AddressResource';
|
|
45
38
|
import {
|
|
46
39
|
AddressResourceFromJSON,
|
|
@@ -193,30 +186,6 @@ export interface FrontendCartResource {
|
|
|
193
186
|
* @memberof FrontendCartResource
|
|
194
187
|
*/
|
|
195
188
|
grandTotal: number;
|
|
196
|
-
/**
|
|
197
|
-
*
|
|
198
|
-
* @type {Array<FrontendCartResourceStoreCreditsInner>}
|
|
199
|
-
* @memberof FrontendCartResource
|
|
200
|
-
*/
|
|
201
|
-
storeCredits: Array<FrontendCartResourceStoreCreditsInner>;
|
|
202
|
-
/**
|
|
203
|
-
*
|
|
204
|
-
* @type {number}
|
|
205
|
-
* @memberof FrontendCartResource
|
|
206
|
-
*/
|
|
207
|
-
storeCreditTotal: number;
|
|
208
|
-
/**
|
|
209
|
-
*
|
|
210
|
-
* @type {number}
|
|
211
|
-
* @memberof FrontendCartResource
|
|
212
|
-
*/
|
|
213
|
-
availableStoreCreditTotal: number;
|
|
214
|
-
/**
|
|
215
|
-
*
|
|
216
|
-
* @type {number}
|
|
217
|
-
* @memberof FrontendCartResource
|
|
218
|
-
*/
|
|
219
|
-
amountDue: number;
|
|
220
189
|
}
|
|
221
190
|
|
|
222
191
|
/**
|
|
@@ -242,10 +211,6 @@ export function instanceOfFrontendCartResource(value: object): value is Frontend
|
|
|
242
211
|
if (!('transitInsuranceQuote' in value) || value['transitInsuranceQuote'] === undefined) return false;
|
|
243
212
|
if (!('gst' in value) || value['gst'] === undefined) return false;
|
|
244
213
|
if (!('grandTotal' in value) || value['grandTotal'] === undefined) return false;
|
|
245
|
-
if (!('storeCredits' in value) || value['storeCredits'] === undefined) return false;
|
|
246
|
-
if (!('storeCreditTotal' in value) || value['storeCreditTotal'] === undefined) return false;
|
|
247
|
-
if (!('availableStoreCreditTotal' in value) || value['availableStoreCreditTotal'] === undefined) return false;
|
|
248
|
-
if (!('amountDue' in value) || value['amountDue'] === undefined) return false;
|
|
249
214
|
return true;
|
|
250
215
|
}
|
|
251
216
|
|
|
@@ -282,10 +247,6 @@ export function FrontendCartResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
282
247
|
'transitInsuranceQuote': json['transitInsuranceQuote'],
|
|
283
248
|
'gst': json['gst'],
|
|
284
249
|
'grandTotal': json['grandTotal'],
|
|
285
|
-
'storeCredits': ((json['storeCredits'] as Array<any>).map(FrontendCartResourceStoreCreditsInnerFromJSON)),
|
|
286
|
-
'storeCreditTotal': json['storeCreditTotal'],
|
|
287
|
-
'availableStoreCreditTotal': json['availableStoreCreditTotal'],
|
|
288
|
-
'amountDue': json['amountDue'],
|
|
289
250
|
};
|
|
290
251
|
}
|
|
291
252
|
|
|
@@ -323,10 +284,6 @@ export function FrontendCartResourceToJSONTyped(value?: FrontendCartResource | n
|
|
|
323
284
|
'transitInsuranceQuote': value['transitInsuranceQuote'],
|
|
324
285
|
'gst': value['gst'],
|
|
325
286
|
'grandTotal': value['grandTotal'],
|
|
326
|
-
'storeCredits': ((value['storeCredits'] as Array<any>).map(FrontendCartResourceStoreCreditsInnerToJSON)),
|
|
327
|
-
'storeCreditTotal': value['storeCreditTotal'],
|
|
328
|
-
'availableStoreCreditTotal': value['availableStoreCreditTotal'],
|
|
329
|
-
'amountDue': value['amountDue'],
|
|
330
287
|
};
|
|
331
288
|
}
|
|
332
289
|
|
|
@@ -205,12 +205,6 @@ export interface FrontendOrderResource {
|
|
|
205
205
|
* @memberof FrontendOrderResource
|
|
206
206
|
*/
|
|
207
207
|
surchargePaid: number;
|
|
208
|
-
/**
|
|
209
|
-
*
|
|
210
|
-
* @type {number}
|
|
211
|
-
* @memberof FrontendOrderResource
|
|
212
|
-
*/
|
|
213
|
-
storeCreditPaid: number;
|
|
214
208
|
/**
|
|
215
209
|
*
|
|
216
210
|
* @type {number}
|
|
@@ -245,7 +239,6 @@ export function instanceOfFrontendOrderResource(value: object): value is Fronten
|
|
|
245
239
|
if (!('grandTotal' in value) || value['grandTotal'] === undefined) return false;
|
|
246
240
|
if (!('amountPaid' in value) || value['amountPaid'] === undefined) return false;
|
|
247
241
|
if (!('surchargePaid' in value) || value['surchargePaid'] === undefined) return false;
|
|
248
|
-
if (!('storeCreditPaid' in value) || value['storeCreditPaid'] === undefined) return false;
|
|
249
242
|
if (!('amountDue' in value) || value['amountDue'] === undefined) return false;
|
|
250
243
|
return true;
|
|
251
244
|
}
|
|
@@ -285,7 +278,6 @@ export function FrontendOrderResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
285
278
|
'grandTotal': json['grandTotal'],
|
|
286
279
|
'amountPaid': json['amountPaid'],
|
|
287
280
|
'surchargePaid': json['surchargePaid'],
|
|
288
|
-
'storeCreditPaid': json['storeCreditPaid'],
|
|
289
281
|
'amountDue': json['amountDue'],
|
|
290
282
|
};
|
|
291
283
|
}
|
|
@@ -326,7 +318,6 @@ export function FrontendOrderResourceToJSONTyped(value?: FrontendOrderResource |
|
|
|
326
318
|
'grandTotal': value['grandTotal'],
|
|
327
319
|
'amountPaid': value['amountPaid'],
|
|
328
320
|
'surchargePaid': value['surchargePaid'],
|
|
329
|
-
'storeCreditPaid': value['storeCreditPaid'],
|
|
330
321
|
'amountDue': value['amountDue'],
|
|
331
322
|
};
|
|
332
323
|
}
|
|
@@ -24,8 +24,7 @@ export const PaymentMethod = {
|
|
|
24
24
|
AmericanExpress: 'american_express',
|
|
25
25
|
GooglePay: 'google_pay',
|
|
26
26
|
PayPal: 'pay_pal',
|
|
27
|
-
ApplePay: 'apple_pay'
|
|
28
|
-
StoreCredit: 'store_credit'
|
|
27
|
+
ApplePay: 'apple_pay'
|
|
29
28
|
} as const;
|
|
30
29
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
31
30
|
|
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { FrontendCartResourceStoreCreditsInner } from './FrontendCartResourceStoreCreditsInner';
|
|
17
|
-
import {
|
|
18
|
-
FrontendCartResourceStoreCreditsInnerFromJSON,
|
|
19
|
-
FrontendCartResourceStoreCreditsInnerFromJSONTyped,
|
|
20
|
-
FrontendCartResourceStoreCreditsInnerToJSON,
|
|
21
|
-
FrontendCartResourceStoreCreditsInnerToJSONTyped,
|
|
22
|
-
} from './FrontendCartResourceStoreCreditsInner';
|
|
23
|
-
|
|
24
16
|
/**
|
|
25
17
|
*
|
|
26
18
|
* @export
|
|
@@ -81,36 +73,12 @@ export interface PaymentTotalsResource {
|
|
|
81
73
|
* @memberof PaymentTotalsResource
|
|
82
74
|
*/
|
|
83
75
|
surchargePaid: number;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {number}
|
|
87
|
-
* @memberof PaymentTotalsResource
|
|
88
|
-
*/
|
|
89
|
-
storeCreditPaid: number;
|
|
90
76
|
/**
|
|
91
77
|
*
|
|
92
78
|
* @type {number}
|
|
93
79
|
* @memberof PaymentTotalsResource
|
|
94
80
|
*/
|
|
95
81
|
amountDue: number;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {Array<FrontendCartResourceStoreCreditsInner>}
|
|
99
|
-
* @memberof PaymentTotalsResource
|
|
100
|
-
*/
|
|
101
|
-
storeCredits: Array<FrontendCartResourceStoreCreditsInner>;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {number}
|
|
105
|
-
* @memberof PaymentTotalsResource
|
|
106
|
-
*/
|
|
107
|
-
storeCreditTotal: number;
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @type {number}
|
|
111
|
-
* @memberof PaymentTotalsResource
|
|
112
|
-
*/
|
|
113
|
-
availableStoreCreditTotal: number;
|
|
114
82
|
/**
|
|
115
83
|
*
|
|
116
84
|
* @type {Array<object>}
|
|
@@ -174,11 +142,7 @@ export function instanceOfPaymentTotalsResource(value: object): value is Payment
|
|
|
174
142
|
if (!('finalTotal' in value) || value['finalTotal'] === undefined) return false;
|
|
175
143
|
if (!('amountPaid' in value) || value['amountPaid'] === undefined) return false;
|
|
176
144
|
if (!('surchargePaid' in value) || value['surchargePaid'] === undefined) return false;
|
|
177
|
-
if (!('storeCreditPaid' in value) || value['storeCreditPaid'] === undefined) return false;
|
|
178
145
|
if (!('amountDue' in value) || value['amountDue'] === undefined) return false;
|
|
179
|
-
if (!('storeCredits' in value) || value['storeCredits'] === undefined) return false;
|
|
180
|
-
if (!('storeCreditTotal' in value) || value['storeCreditTotal'] === undefined) return false;
|
|
181
|
-
if (!('availableStoreCreditTotal' in value) || value['availableStoreCreditTotal'] === undefined) return false;
|
|
182
146
|
if (!('appliedCoupons' in value) || value['appliedCoupons'] === undefined) return false;
|
|
183
147
|
if (!('noOfItems' in value) || value['noOfItems'] === undefined) return false;
|
|
184
148
|
if (!('lineItems' in value) || value['lineItems'] === undefined) return false;
|
|
@@ -208,11 +172,7 @@ export function PaymentTotalsResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
208
172
|
'finalTotal': json['finalTotal'],
|
|
209
173
|
'amountPaid': json['amountPaid'],
|
|
210
174
|
'surchargePaid': json['surchargePaid'],
|
|
211
|
-
'storeCreditPaid': json['storeCreditPaid'],
|
|
212
175
|
'amountDue': json['amountDue'],
|
|
213
|
-
'storeCredits': ((json['storeCredits'] as Array<any>).map(FrontendCartResourceStoreCreditsInnerFromJSON)),
|
|
214
|
-
'storeCreditTotal': json['storeCreditTotal'],
|
|
215
|
-
'availableStoreCreditTotal': json['availableStoreCreditTotal'],
|
|
216
176
|
'appliedCoupons': json['appliedCoupons'],
|
|
217
177
|
'noOfItems': json['noOfItems'],
|
|
218
178
|
'lineItems': json['lineItems'],
|
|
@@ -244,11 +204,7 @@ export function PaymentTotalsResourceToJSONTyped(value?: PaymentTotalsResource |
|
|
|
244
204
|
'finalTotal': value['finalTotal'],
|
|
245
205
|
'amountPaid': value['amountPaid'],
|
|
246
206
|
'surchargePaid': value['surchargePaid'],
|
|
247
|
-
'storeCreditPaid': value['storeCreditPaid'],
|
|
248
207
|
'amountDue': value['amountDue'],
|
|
249
|
-
'storeCredits': ((value['storeCredits'] as Array<any>).map(FrontendCartResourceStoreCreditsInnerToJSON)),
|
|
250
|
-
'storeCreditTotal': value['storeCreditTotal'],
|
|
251
|
-
'availableStoreCreditTotal': value['availableStoreCreditTotal'],
|
|
252
208
|
'appliedCoupons': value['appliedCoupons'],
|
|
253
209
|
'noOfItems': value['noOfItems'],
|
|
254
210
|
'lineItems': value['lineItems'],
|
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { PaymentMethod } from './PaymentMethod';
|
|
17
|
-
import {
|
|
18
|
-
PaymentMethodFromJSON,
|
|
19
|
-
PaymentMethodFromJSONTyped,
|
|
20
|
-
PaymentMethodToJSON,
|
|
21
|
-
PaymentMethodToJSONTyped,
|
|
22
|
-
} from './PaymentMethod';
|
|
23
|
-
|
|
24
16
|
/**
|
|
25
17
|
*
|
|
26
18
|
* @export
|
|
@@ -71,10 +63,10 @@ export interface SearchTransactionsRequest {
|
|
|
71
63
|
type?: Array<string>;
|
|
72
64
|
/**
|
|
73
65
|
*
|
|
74
|
-
* @type {Array<
|
|
66
|
+
* @type {Array<string>}
|
|
75
67
|
* @memberof SearchTransactionsRequest
|
|
76
68
|
*/
|
|
77
|
-
paymentMethod?: Array<
|
|
69
|
+
paymentMethod?: Array<string>;
|
|
78
70
|
/**
|
|
79
71
|
*
|
|
80
72
|
* @type {Array<string>}
|
|
@@ -167,7 +159,7 @@ export function SearchTransactionsRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
167
159
|
'page': json['page'] == null ? undefined : json['page'],
|
|
168
160
|
'paymentSource': json['payment_source'] == null ? undefined : json['payment_source'],
|
|
169
161
|
'type': json['type'] == null ? undefined : json['type'],
|
|
170
|
-
'paymentMethod': json['payment_method'] == null ? undefined :
|
|
162
|
+
'paymentMethod': json['payment_method'] == null ? undefined : json['payment_method'],
|
|
171
163
|
'status': json['status'] == null ? undefined : json['status'],
|
|
172
164
|
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
173
165
|
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
@@ -195,7 +187,7 @@ export function SearchTransactionsRequestToJSONTyped(value?: SearchTransactionsR
|
|
|
195
187
|
'page': value['page'],
|
|
196
188
|
'payment_source': value['paymentSource'],
|
|
197
189
|
'type': value['type'],
|
|
198
|
-
'payment_method': value['paymentMethod']
|
|
190
|
+
'payment_method': value['paymentMethod'],
|
|
199
191
|
'status': value['status'],
|
|
200
192
|
'before_created_at': value['beforeCreatedAt'] == null ? undefined : ((value['beforeCreatedAt']).toISOString()),
|
|
201
193
|
'after_created_at': value['afterCreatedAt'] == null ? undefined : ((value['afterCreatedAt']).toISOString()),
|
|
@@ -68,7 +68,7 @@ export interface StoreListResource {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreListResource
|
|
70
70
|
*/
|
|
71
|
-
tagLine
|
|
71
|
+
tagLine?: string | null;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
@@ -110,7 +110,6 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
110
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
111
111
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
114
113
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
115
114
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
116
115
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -134,7 +133,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
134
133
|
'phone': json['phone'],
|
|
135
134
|
'longitude': json['longitude'],
|
|
136
135
|
'latitude': json['latitude'],
|
|
137
|
-
'tagLine': json['tagLine'],
|
|
136
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
138
137
|
'email': json['email'],
|
|
139
138
|
'website': json['website'],
|
|
140
139
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -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 {number}
|
|
@@ -151,6 +151,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
152
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
153
153
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
154
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
154
155
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
155
156
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
156
157
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
@@ -177,7 +178,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
177
178
|
'latitude': json['latitude'],
|
|
178
179
|
'tagLine': json['tagLine'],
|
|
179
180
|
'email': json['email'],
|
|
180
|
-
'website': json['website']
|
|
181
|
+
'website': json['website'],
|
|
181
182
|
'netsuiteId': json['netsuiteId'],
|
|
182
183
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
183
184
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['displayStartDate'],
|
|
95
94
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -13,35 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { TransactionType } from './TransactionType';
|
|
17
|
-
import {
|
|
18
|
-
TransactionTypeFromJSON,
|
|
19
|
-
TransactionTypeFromJSONTyped,
|
|
20
|
-
TransactionTypeToJSON,
|
|
21
|
-
TransactionTypeToJSONTyped,
|
|
22
|
-
} from './TransactionType';
|
|
23
|
-
import type { PaymentMethod } from './PaymentMethod';
|
|
24
|
-
import {
|
|
25
|
-
PaymentMethodFromJSON,
|
|
26
|
-
PaymentMethodFromJSONTyped,
|
|
27
|
-
PaymentMethodToJSON,
|
|
28
|
-
PaymentMethodToJSONTyped,
|
|
29
|
-
} from './PaymentMethod';
|
|
30
|
-
import type { PaymentSource } from './PaymentSource';
|
|
31
|
-
import {
|
|
32
|
-
PaymentSourceFromJSON,
|
|
33
|
-
PaymentSourceFromJSONTyped,
|
|
34
|
-
PaymentSourceToJSON,
|
|
35
|
-
PaymentSourceToJSONTyped,
|
|
36
|
-
} from './PaymentSource';
|
|
37
|
-
import type { PaymentStatus } from './PaymentStatus';
|
|
38
|
-
import {
|
|
39
|
-
PaymentStatusFromJSON,
|
|
40
|
-
PaymentStatusFromJSONTyped,
|
|
41
|
-
PaymentStatusToJSON,
|
|
42
|
-
PaymentStatusToJSONTyped,
|
|
43
|
-
} from './PaymentStatus';
|
|
44
|
-
|
|
45
16
|
/**
|
|
46
17
|
*
|
|
47
18
|
* @export
|
|
@@ -56,28 +27,28 @@ export interface TransactionListResource {
|
|
|
56
27
|
id: number;
|
|
57
28
|
/**
|
|
58
29
|
*
|
|
59
|
-
* @type {
|
|
30
|
+
* @type {string}
|
|
60
31
|
* @memberof TransactionListResource
|
|
61
32
|
*/
|
|
62
|
-
paymentSource:
|
|
33
|
+
paymentSource: string;
|
|
63
34
|
/**
|
|
64
35
|
*
|
|
65
|
-
* @type {
|
|
36
|
+
* @type {string}
|
|
66
37
|
* @memberof TransactionListResource
|
|
67
38
|
*/
|
|
68
|
-
paymentMethod:
|
|
39
|
+
paymentMethod: string;
|
|
69
40
|
/**
|
|
70
41
|
*
|
|
71
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
72
43
|
* @memberof TransactionListResource
|
|
73
44
|
*/
|
|
74
|
-
type:
|
|
45
|
+
type: string;
|
|
75
46
|
/**
|
|
76
47
|
*
|
|
77
|
-
* @type {
|
|
48
|
+
* @type {string}
|
|
78
49
|
* @memberof TransactionListResource
|
|
79
50
|
*/
|
|
80
|
-
status:
|
|
51
|
+
status: string;
|
|
81
52
|
/**
|
|
82
53
|
*
|
|
83
54
|
* @type {number}
|
|
@@ -140,8 +111,6 @@ export interface TransactionListResource {
|
|
|
140
111
|
createdAt?: Date | null;
|
|
141
112
|
}
|
|
142
113
|
|
|
143
|
-
|
|
144
|
-
|
|
145
114
|
/**
|
|
146
115
|
* Check if a given object implements the TransactionListResource interface.
|
|
147
116
|
*/
|
|
@@ -170,10 +139,10 @@ export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
170
139
|
return {
|
|
171
140
|
|
|
172
141
|
'id': json['id'],
|
|
173
|
-
'paymentSource':
|
|
174
|
-
'paymentMethod':
|
|
175
|
-
'type':
|
|
176
|
-
'status':
|
|
142
|
+
'paymentSource': json['paymentSource'],
|
|
143
|
+
'paymentMethod': json['paymentMethod'],
|
|
144
|
+
'type': json['type'],
|
|
145
|
+
'status': json['status'],
|
|
177
146
|
'totalAmount': json['totalAmount'],
|
|
178
147
|
'surcharge': json['surcharge'],
|
|
179
148
|
'refundedAmount': json['refundedAmount'],
|
|
@@ -199,10 +168,10 @@ export function TransactionListResourceToJSONTyped(value?: TransactionListResour
|
|
|
199
168
|
return {
|
|
200
169
|
|
|
201
170
|
'id': value['id'],
|
|
202
|
-
'paymentSource':
|
|
203
|
-
'paymentMethod':
|
|
204
|
-
'type':
|
|
205
|
-
'status':
|
|
171
|
+
'paymentSource': value['paymentSource'],
|
|
172
|
+
'paymentMethod': value['paymentMethod'],
|
|
173
|
+
'type': value['type'],
|
|
174
|
+
'status': value['status'],
|
|
206
175
|
'totalAmount': value['totalAmount'],
|
|
207
176
|
'surcharge': value['surcharge'],
|
|
208
177
|
'refundedAmount': value['refundedAmount'],
|
|
@@ -13,35 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { TransactionType } from './TransactionType';
|
|
17
|
-
import {
|
|
18
|
-
TransactionTypeFromJSON,
|
|
19
|
-
TransactionTypeFromJSONTyped,
|
|
20
|
-
TransactionTypeToJSON,
|
|
21
|
-
TransactionTypeToJSONTyped,
|
|
22
|
-
} from './TransactionType';
|
|
23
|
-
import type { PaymentMethod } from './PaymentMethod';
|
|
24
|
-
import {
|
|
25
|
-
PaymentMethodFromJSON,
|
|
26
|
-
PaymentMethodFromJSONTyped,
|
|
27
|
-
PaymentMethodToJSON,
|
|
28
|
-
PaymentMethodToJSONTyped,
|
|
29
|
-
} from './PaymentMethod';
|
|
30
|
-
import type { PaymentSource } from './PaymentSource';
|
|
31
|
-
import {
|
|
32
|
-
PaymentSourceFromJSON,
|
|
33
|
-
PaymentSourceFromJSONTyped,
|
|
34
|
-
PaymentSourceToJSON,
|
|
35
|
-
PaymentSourceToJSONTyped,
|
|
36
|
-
} from './PaymentSource';
|
|
37
|
-
import type { PaymentStatus } from './PaymentStatus';
|
|
38
|
-
import {
|
|
39
|
-
PaymentStatusFromJSON,
|
|
40
|
-
PaymentStatusFromJSONTyped,
|
|
41
|
-
PaymentStatusToJSON,
|
|
42
|
-
PaymentStatusToJSONTyped,
|
|
43
|
-
} from './PaymentStatus';
|
|
44
|
-
|
|
45
16
|
/**
|
|
46
17
|
*
|
|
47
18
|
* @export
|
|
@@ -56,16 +27,16 @@ export interface TransactionLiteResource {
|
|
|
56
27
|
id?: number | null;
|
|
57
28
|
/**
|
|
58
29
|
*
|
|
59
|
-
* @type {
|
|
30
|
+
* @type {string}
|
|
60
31
|
* @memberof TransactionLiteResource
|
|
61
32
|
*/
|
|
62
|
-
paymentSource:
|
|
33
|
+
paymentSource: string;
|
|
63
34
|
/**
|
|
64
35
|
*
|
|
65
|
-
* @type {
|
|
36
|
+
* @type {string}
|
|
66
37
|
* @memberof TransactionLiteResource
|
|
67
38
|
*/
|
|
68
|
-
paymentMethod:
|
|
39
|
+
paymentMethod: string;
|
|
69
40
|
/**
|
|
70
41
|
*
|
|
71
42
|
* @type {string}
|
|
@@ -74,16 +45,16 @@ export interface TransactionLiteResource {
|
|
|
74
45
|
paymentMethodThumbnail: string;
|
|
75
46
|
/**
|
|
76
47
|
*
|
|
77
|
-
* @type {
|
|
48
|
+
* @type {string}
|
|
78
49
|
* @memberof TransactionLiteResource
|
|
79
50
|
*/
|
|
80
|
-
type:
|
|
51
|
+
type: string;
|
|
81
52
|
/**
|
|
82
53
|
*
|
|
83
|
-
* @type {
|
|
54
|
+
* @type {string}
|
|
84
55
|
* @memberof TransactionLiteResource
|
|
85
56
|
*/
|
|
86
|
-
status:
|
|
57
|
+
status: string;
|
|
87
58
|
/**
|
|
88
59
|
*
|
|
89
60
|
* @type {number}
|
|
@@ -122,8 +93,6 @@ export interface TransactionLiteResource {
|
|
|
122
93
|
createdAt?: Date | null;
|
|
123
94
|
}
|
|
124
95
|
|
|
125
|
-
|
|
126
|
-
|
|
127
96
|
/**
|
|
128
97
|
* Check if a given object implements the TransactionLiteResource interface.
|
|
129
98
|
*/
|
|
@@ -151,11 +120,11 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
151
120
|
return {
|
|
152
121
|
|
|
153
122
|
'id': json['id'] == null ? undefined : json['id'],
|
|
154
|
-
'paymentSource':
|
|
155
|
-
'paymentMethod':
|
|
123
|
+
'paymentSource': json['paymentSource'],
|
|
124
|
+
'paymentMethod': json['paymentMethod'],
|
|
156
125
|
'paymentMethodThumbnail': json['paymentMethodThumbnail'],
|
|
157
|
-
'type':
|
|
158
|
-
'status':
|
|
126
|
+
'type': json['type'],
|
|
127
|
+
'status': json['status'],
|
|
159
128
|
'amount': json['amount'],
|
|
160
129
|
'surcharge': json['surcharge'],
|
|
161
130
|
'totalAmount': json['totalAmount'],
|
|
@@ -177,11 +146,11 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
|
|
|
177
146
|
return {
|
|
178
147
|
|
|
179
148
|
'id': value['id'],
|
|
180
|
-
'paymentSource':
|
|
181
|
-
'paymentMethod':
|
|
149
|
+
'paymentSource': value['paymentSource'],
|
|
150
|
+
'paymentMethod': value['paymentMethod'],
|
|
182
151
|
'paymentMethodThumbnail': value['paymentMethodThumbnail'],
|
|
183
|
-
'type':
|
|
184
|
-
'status':
|
|
152
|
+
'type': value['type'],
|
|
153
|
+
'status': value['status'],
|
|
185
154
|
'amount': value['amount'],
|
|
186
155
|
'surcharge': value['surcharge'],
|
|
187
156
|
'totalAmount': value['totalAmount'],
|