@spritz-finance/api-client 0.3.2 → 0.4.0
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/README.md +27 -0
- package/dist/spritz-api-client.d.ts +220 -157
- package/dist/spritz-api-client.js +95 -53
- package/dist/spritz-api-client.mjs +95 -53
- package/package.json +36 -24
|
@@ -5,11 +5,6 @@ declare enum Environment {
|
|
|
5
5
|
Production = "production"
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
declare enum AccountProvider {
|
|
9
|
-
CHECKBOOK = "CHECKBOOK",
|
|
10
|
-
METHOD_FI = "METHOD_FI",
|
|
11
|
-
UNBLOCK = "UNBLOCK"
|
|
12
|
-
}
|
|
13
8
|
declare enum AccountSyncStatus {
|
|
14
9
|
Active = "Active",
|
|
15
10
|
Error = "Error",
|
|
@@ -42,6 +37,8 @@ declare enum DirectPaymentStatus {
|
|
|
42
37
|
CONFIRMED = "CONFIRMED",
|
|
43
38
|
CREATED = "CREATED",
|
|
44
39
|
FAILED = "FAILED",
|
|
40
|
+
FAILED_VALIDATION = "FAILED_VALIDATION",
|
|
41
|
+
INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
|
|
45
42
|
PENDING = "PENDING",
|
|
46
43
|
REFUNDED = "REFUNDED",
|
|
47
44
|
TRANSACTION_FAILED = "TRANSACTION_FAILED",
|
|
@@ -61,7 +58,11 @@ declare enum OnrampPaymentStatus {
|
|
|
61
58
|
AWAITING_FUNDS = "AWAITING_FUNDS",
|
|
62
59
|
CANCELLED = "CANCELLED",
|
|
63
60
|
COMPLETED = "COMPLETED",
|
|
64
|
-
|
|
61
|
+
FAILED = "FAILED",
|
|
62
|
+
ON_HOLD = "ON_HOLD",
|
|
63
|
+
PENDING = "PENDING",
|
|
64
|
+
REFUNDED = "REFUNDED",
|
|
65
|
+
REVERSED = "REVERSED"
|
|
65
66
|
}
|
|
66
67
|
declare enum PayableAccountOriginator {
|
|
67
68
|
Provider = "Provider",
|
|
@@ -70,10 +71,13 @@ declare enum PayableAccountOriginator {
|
|
|
70
71
|
declare enum PayableAccountType {
|
|
71
72
|
BankAccount = "BankAccount",
|
|
72
73
|
Bill = "Bill",
|
|
74
|
+
DebitCard = "DebitCard",
|
|
75
|
+
DigitalAccount = "DigitalAccount",
|
|
73
76
|
VirtualCard = "VirtualCard"
|
|
74
77
|
}
|
|
75
78
|
declare enum PaymentDeliveryMethod {
|
|
76
79
|
INSTANT = "INSTANT",
|
|
80
|
+
SAME_DAY = "SAME_DAY",
|
|
77
81
|
STANDARD = "STANDARD"
|
|
78
82
|
}
|
|
79
83
|
declare enum PaymentStatus {
|
|
@@ -91,56 +95,67 @@ declare enum PaymentStatus {
|
|
|
91
95
|
declare enum VirtualCardType {
|
|
92
96
|
USVirtualDebitCard = "USVirtualDebitCard"
|
|
93
97
|
}
|
|
98
|
+
interface BankAccountAddressInput {
|
|
99
|
+
street: string;
|
|
100
|
+
street2?: string | null;
|
|
101
|
+
city: string;
|
|
102
|
+
subdivision: string;
|
|
103
|
+
postalCode: string;
|
|
104
|
+
countryCode?: string | null;
|
|
105
|
+
}
|
|
94
106
|
interface BankAccountInput {
|
|
95
|
-
accountNumber: string;
|
|
96
|
-
details?: any | null;
|
|
97
|
-
email?: string | null;
|
|
98
|
-
holder?: string | null;
|
|
99
107
|
name: string;
|
|
108
|
+
email?: string | null;
|
|
109
|
+
accountNumber: string;
|
|
110
|
+
type: BankAccountType;
|
|
100
111
|
ownedByUser?: boolean | null;
|
|
112
|
+
holder?: string | null;
|
|
113
|
+
holderFirstName?: string | null;
|
|
114
|
+
holderLastName?: string | null;
|
|
115
|
+
address?: BankAccountAddressInput | null;
|
|
101
116
|
subType: BankAccountSubType;
|
|
102
|
-
|
|
117
|
+
details?: any | null;
|
|
103
118
|
}
|
|
104
119
|
interface CreateDirectPaymentInput {
|
|
105
120
|
accountId: string;
|
|
106
121
|
amount: number;
|
|
107
|
-
deliveryMethod?: PaymentDeliveryMethod | null;
|
|
108
|
-
network: string;
|
|
109
|
-
provider?: AccountProvider | null;
|
|
110
122
|
rewardsAmount?: number | null;
|
|
111
|
-
subscriptionId?: string | null;
|
|
112
|
-
testPayment?: boolean | null;
|
|
113
123
|
tokenAddress?: string | null;
|
|
124
|
+
network: string;
|
|
125
|
+
pointsRedemptionId?: string | null;
|
|
126
|
+
paymentNote?: string | null;
|
|
127
|
+
paymentStrategy?: string | null;
|
|
128
|
+
deliveryMethod?: PaymentDeliveryMethod | null;
|
|
114
129
|
}
|
|
115
130
|
interface CreateOnrampPaymentInput {
|
|
116
|
-
address: string;
|
|
117
131
|
amount: number;
|
|
132
|
+
address: string;
|
|
118
133
|
network: string;
|
|
119
|
-
paymentMethod: string;
|
|
120
134
|
token: string;
|
|
135
|
+
paymentMethod: string;
|
|
121
136
|
}
|
|
122
137
|
|
|
123
138
|
interface CreateBankAccount_createBankAccount_bankAccountDetails_CanadianBankAccountDetails {
|
|
124
|
-
__typename:
|
|
139
|
+
__typename: 'CanadianBankAccountDetails' | 'UKBankAccountDetails' | 'IBANBankAccountDetails';
|
|
125
140
|
}
|
|
126
141
|
interface CreateBankAccount_createBankAccount_bankAccountDetails_USBankAccountDetails {
|
|
127
|
-
__typename:
|
|
142
|
+
__typename: 'USBankAccountDetails';
|
|
128
143
|
routingNumber: string;
|
|
129
144
|
}
|
|
130
145
|
type CreateBankAccount_createBankAccount_bankAccountDetails = CreateBankAccount_createBankAccount_bankAccountDetails_CanadianBankAccountDetails | CreateBankAccount_createBankAccount_bankAccountDetails_USBankAccountDetails;
|
|
131
146
|
interface CreateBankAccount_createBankAccount_dataSync {
|
|
132
|
-
__typename:
|
|
147
|
+
__typename: 'AccountDataSync';
|
|
133
148
|
lastSync: any | null;
|
|
134
149
|
syncStatus: AccountSyncStatus | null;
|
|
135
150
|
}
|
|
136
151
|
interface CreateBankAccount_createBankAccount_institution {
|
|
137
|
-
__typename:
|
|
152
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
138
153
|
id: string;
|
|
139
154
|
name: string;
|
|
140
155
|
logo: string | null;
|
|
141
156
|
}
|
|
142
157
|
interface CreateBankAccount_createBankAccount {
|
|
143
|
-
__typename:
|
|
158
|
+
__typename: 'BankAccount';
|
|
144
159
|
id: string;
|
|
145
160
|
name: string | null;
|
|
146
161
|
userId: string;
|
|
@@ -156,13 +171,13 @@ interface CreateBankAccount_createBankAccount {
|
|
|
156
171
|
holder: string;
|
|
157
172
|
email: string | null;
|
|
158
173
|
ownedByUser: boolean;
|
|
159
|
-
bankAccountDetails: CreateBankAccount_createBankAccount_bankAccountDetails;
|
|
174
|
+
bankAccountDetails: CreateBankAccount_createBankAccount_bankAccountDetails | null;
|
|
160
175
|
dataSync: CreateBankAccount_createBankAccount_dataSync | null;
|
|
161
176
|
institution: CreateBankAccount_createBankAccount_institution | null;
|
|
162
177
|
}
|
|
163
178
|
|
|
164
179
|
interface AccountPayments_paymentsForAccount {
|
|
165
|
-
__typename:
|
|
180
|
+
__typename: 'Payment';
|
|
166
181
|
id: string;
|
|
167
182
|
userId: any;
|
|
168
183
|
status: PaymentStatus;
|
|
@@ -184,15 +199,15 @@ interface AccountPaymentsVariables {
|
|
|
184
199
|
}
|
|
185
200
|
|
|
186
201
|
interface BankAccountFragment_bankAccountDetails_CanadianBankAccountDetails {
|
|
187
|
-
__typename:
|
|
202
|
+
__typename: 'CanadianBankAccountDetails' | 'UKBankAccountDetails' | 'IBANBankAccountDetails';
|
|
188
203
|
}
|
|
189
204
|
interface BankAccountFragment_bankAccountDetails_USBankAccountDetails {
|
|
190
|
-
__typename:
|
|
205
|
+
__typename: 'USBankAccountDetails';
|
|
191
206
|
routingNumber: string;
|
|
192
207
|
}
|
|
193
208
|
type BankAccountFragment_bankAccountDetails = BankAccountFragment_bankAccountDetails_CanadianBankAccountDetails | BankAccountFragment_bankAccountDetails_USBankAccountDetails;
|
|
194
209
|
interface BankAccountFragment_institution {
|
|
195
|
-
__typename:
|
|
210
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
196
211
|
id: string;
|
|
197
212
|
name: string;
|
|
198
213
|
logo: string | null;
|
|
@@ -200,12 +215,12 @@ interface BankAccountFragment_institution {
|
|
|
200
215
|
currency: string;
|
|
201
216
|
}
|
|
202
217
|
interface BankAccountFragment_paymentAddresses {
|
|
203
|
-
__typename:
|
|
218
|
+
__typename: 'PaymentAddress';
|
|
204
219
|
network: string;
|
|
205
220
|
address: string;
|
|
206
221
|
}
|
|
207
222
|
interface BankAccountFragment {
|
|
208
|
-
__typename:
|
|
223
|
+
__typename: 'BankAccount';
|
|
209
224
|
id: string;
|
|
210
225
|
name: string | null;
|
|
211
226
|
userId: string;
|
|
@@ -219,14 +234,14 @@ interface BankAccountFragment {
|
|
|
219
234
|
holder: string;
|
|
220
235
|
email: string | null;
|
|
221
236
|
ownedByUser: boolean;
|
|
222
|
-
bankAccountDetails: BankAccountFragment_bankAccountDetails;
|
|
237
|
+
bankAccountDetails: BankAccountFragment_bankAccountDetails | null;
|
|
223
238
|
deliveryMethods: PaymentDeliveryMethod[];
|
|
224
239
|
institution: BankAccountFragment_institution | null;
|
|
225
240
|
paymentAddresses: BankAccountFragment_paymentAddresses[];
|
|
226
241
|
}
|
|
227
242
|
|
|
228
243
|
interface BillFragment_billAccountDetails {
|
|
229
|
-
__typename:
|
|
244
|
+
__typename: 'BillAccountDetails';
|
|
230
245
|
balance: number | null;
|
|
231
246
|
amountDue: number | null;
|
|
232
247
|
openedAt: any | null;
|
|
@@ -238,23 +253,23 @@ interface BillFragment_billAccountDetails {
|
|
|
238
253
|
remainingStatementBalance: number | null;
|
|
239
254
|
}
|
|
240
255
|
interface BillFragment_dataSync {
|
|
241
|
-
__typename:
|
|
256
|
+
__typename: 'AccountDataSync';
|
|
242
257
|
lastSync: any | null;
|
|
243
258
|
syncStatus: AccountSyncStatus | null;
|
|
244
259
|
}
|
|
245
260
|
interface BillFragment_institution {
|
|
246
|
-
__typename:
|
|
261
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
247
262
|
id: string;
|
|
248
263
|
name: string;
|
|
249
264
|
logo: string | null;
|
|
250
265
|
}
|
|
251
266
|
interface BillFragment_paymentAddresses {
|
|
252
|
-
__typename:
|
|
267
|
+
__typename: 'PaymentAddress';
|
|
253
268
|
network: string;
|
|
254
269
|
address: string;
|
|
255
270
|
}
|
|
256
271
|
interface BillFragment {
|
|
257
|
-
__typename:
|
|
272
|
+
__typename: 'Bill';
|
|
258
273
|
id: string;
|
|
259
274
|
name: string | null;
|
|
260
275
|
userId: string;
|
|
@@ -272,23 +287,23 @@ interface BillFragment {
|
|
|
272
287
|
}
|
|
273
288
|
|
|
274
289
|
interface CurrentUser_me {
|
|
275
|
-
__typename:
|
|
290
|
+
__typename: 'User';
|
|
276
291
|
id: string;
|
|
277
|
-
sub: string;
|
|
278
|
-
email: string;
|
|
292
|
+
sub: string | null;
|
|
293
|
+
email: string | null;
|
|
279
294
|
firstName: string | null;
|
|
280
295
|
lastName: string | null;
|
|
281
296
|
picture: string | null;
|
|
282
297
|
phone: string | null;
|
|
283
298
|
createdAt: any;
|
|
284
|
-
timezone: string;
|
|
299
|
+
timezone: string | null;
|
|
285
300
|
}
|
|
286
301
|
interface CurrentUser {
|
|
287
302
|
me: CurrentUser_me;
|
|
288
303
|
}
|
|
289
304
|
|
|
290
305
|
interface GetSpritzPayParams_spritzPayParams {
|
|
291
|
-
__typename:
|
|
306
|
+
__typename: 'PaymentParams';
|
|
292
307
|
contractAddress: string;
|
|
293
308
|
method: string;
|
|
294
309
|
calldata: string;
|
|
@@ -307,7 +322,7 @@ interface GetSpritzPayParamsVariables {
|
|
|
307
322
|
}
|
|
308
323
|
|
|
309
324
|
interface OnrampPaymentFragment_depositInstructions {
|
|
310
|
-
__typename:
|
|
325
|
+
__typename: 'OnrampPaymentDepositInstructions';
|
|
311
326
|
amount: number;
|
|
312
327
|
currency: string;
|
|
313
328
|
bankName: string;
|
|
@@ -319,11 +334,11 @@ interface OnrampPaymentFragment_depositInstructions {
|
|
|
319
334
|
depositMessage: string;
|
|
320
335
|
}
|
|
321
336
|
interface OnrampPaymentFragment {
|
|
322
|
-
__typename:
|
|
337
|
+
__typename: 'OnRampPayment';
|
|
323
338
|
id: string;
|
|
324
339
|
amount: number;
|
|
325
340
|
feeAmount: number;
|
|
326
|
-
depositInstructions: OnrampPaymentFragment_depositInstructions;
|
|
341
|
+
depositInstructions: OnrampPaymentFragment_depositInstructions | null;
|
|
327
342
|
network: string;
|
|
328
343
|
token: string;
|
|
329
344
|
address: string;
|
|
@@ -332,7 +347,7 @@ interface OnrampPaymentFragment {
|
|
|
332
347
|
}
|
|
333
348
|
|
|
334
349
|
interface OnrampPayments_onrampPayments_depositInstructions {
|
|
335
|
-
__typename:
|
|
350
|
+
__typename: 'OnrampPaymentDepositInstructions';
|
|
336
351
|
amount: number;
|
|
337
352
|
currency: string;
|
|
338
353
|
bankName: string;
|
|
@@ -344,11 +359,11 @@ interface OnrampPayments_onrampPayments_depositInstructions {
|
|
|
344
359
|
depositMessage: string;
|
|
345
360
|
}
|
|
346
361
|
interface OnrampPayments_onrampPayments {
|
|
347
|
-
__typename:
|
|
362
|
+
__typename: 'OnRampPayment';
|
|
348
363
|
id: string;
|
|
349
364
|
amount: number;
|
|
350
365
|
feeAmount: number;
|
|
351
|
-
depositInstructions: OnrampPayments_onrampPayments_depositInstructions;
|
|
366
|
+
depositInstructions: OnrampPayments_onrampPayments_depositInstructions | null;
|
|
352
367
|
network: string;
|
|
353
368
|
token: string;
|
|
354
369
|
address: string;
|
|
@@ -359,27 +374,52 @@ interface OnrampPayments {
|
|
|
359
374
|
onrampPayments: OnrampPayments_onrampPayments[];
|
|
360
375
|
}
|
|
361
376
|
|
|
377
|
+
interface PayableAccountFragment_DebitCard_dataSync {
|
|
378
|
+
__typename: 'AccountDataSync';
|
|
379
|
+
lastSync: any | null;
|
|
380
|
+
syncStatus: AccountSyncStatus | null;
|
|
381
|
+
}
|
|
382
|
+
interface PayableAccountFragment_DebitCard_institution {
|
|
383
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
384
|
+
id: string;
|
|
385
|
+
name: string;
|
|
386
|
+
logo: string | null;
|
|
387
|
+
}
|
|
388
|
+
interface PayableAccountFragment_DebitCard {
|
|
389
|
+
__typename: 'DebitCard' | 'DigitalAccount';
|
|
390
|
+
id: string;
|
|
391
|
+
name: string | null;
|
|
392
|
+
userId: string;
|
|
393
|
+
country: string;
|
|
394
|
+
currency: string;
|
|
395
|
+
payable: boolean;
|
|
396
|
+
originator: PayableAccountOriginator;
|
|
397
|
+
type: PayableAccountType;
|
|
398
|
+
createdAt: any;
|
|
399
|
+
dataSync: PayableAccountFragment_DebitCard_dataSync | null;
|
|
400
|
+
institution: PayableAccountFragment_DebitCard_institution | null;
|
|
401
|
+
}
|
|
362
402
|
interface PayableAccountFragment_BankAccount_bankAccountDetails_CanadianBankAccountDetails {
|
|
363
|
-
__typename:
|
|
403
|
+
__typename: 'CanadianBankAccountDetails' | 'UKBankAccountDetails' | 'IBANBankAccountDetails';
|
|
364
404
|
}
|
|
365
405
|
interface PayableAccountFragment_BankAccount_bankAccountDetails_USBankAccountDetails {
|
|
366
|
-
__typename:
|
|
406
|
+
__typename: 'USBankAccountDetails';
|
|
367
407
|
routingNumber: string;
|
|
368
408
|
}
|
|
369
409
|
type PayableAccountFragment_BankAccount_bankAccountDetails = PayableAccountFragment_BankAccount_bankAccountDetails_CanadianBankAccountDetails | PayableAccountFragment_BankAccount_bankAccountDetails_USBankAccountDetails;
|
|
370
410
|
interface PayableAccountFragment_BankAccount_dataSync {
|
|
371
|
-
__typename:
|
|
411
|
+
__typename: 'AccountDataSync';
|
|
372
412
|
lastSync: any | null;
|
|
373
413
|
syncStatus: AccountSyncStatus | null;
|
|
374
414
|
}
|
|
375
415
|
interface PayableAccountFragment_BankAccount_institution {
|
|
376
|
-
__typename:
|
|
416
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
377
417
|
id: string;
|
|
378
418
|
name: string;
|
|
379
419
|
logo: string | null;
|
|
380
420
|
}
|
|
381
421
|
interface PayableAccountFragment_BankAccount {
|
|
382
|
-
__typename:
|
|
422
|
+
__typename: 'BankAccount';
|
|
383
423
|
id: string;
|
|
384
424
|
name: string | null;
|
|
385
425
|
userId: string;
|
|
@@ -395,12 +435,12 @@ interface PayableAccountFragment_BankAccount {
|
|
|
395
435
|
holder: string;
|
|
396
436
|
email: string | null;
|
|
397
437
|
ownedByUser: boolean;
|
|
398
|
-
bankAccountDetails: PayableAccountFragment_BankAccount_bankAccountDetails;
|
|
438
|
+
bankAccountDetails: PayableAccountFragment_BankAccount_bankAccountDetails | null;
|
|
399
439
|
dataSync: PayableAccountFragment_BankAccount_dataSync | null;
|
|
400
440
|
institution: PayableAccountFragment_BankAccount_institution | null;
|
|
401
441
|
}
|
|
402
442
|
interface PayableAccountFragment_VirtualCard_billingInfo_address {
|
|
403
|
-
__typename:
|
|
443
|
+
__typename: 'CardHolderAddress';
|
|
404
444
|
street: string | null;
|
|
405
445
|
street2: string | null;
|
|
406
446
|
city: string | null;
|
|
@@ -409,25 +449,25 @@ interface PayableAccountFragment_VirtualCard_billingInfo_address {
|
|
|
409
449
|
countryCode: string | null;
|
|
410
450
|
}
|
|
411
451
|
interface PayableAccountFragment_VirtualCard_billingInfo {
|
|
412
|
-
__typename:
|
|
452
|
+
__typename: 'BillingInfo';
|
|
413
453
|
holder: string;
|
|
414
454
|
phone: string;
|
|
415
455
|
email: string;
|
|
416
456
|
address: PayableAccountFragment_VirtualCard_billingInfo_address | null;
|
|
417
457
|
}
|
|
418
458
|
interface PayableAccountFragment_VirtualCard_dataSync {
|
|
419
|
-
__typename:
|
|
459
|
+
__typename: 'AccountDataSync';
|
|
420
460
|
lastSync: any | null;
|
|
421
461
|
syncStatus: AccountSyncStatus | null;
|
|
422
462
|
}
|
|
423
463
|
interface PayableAccountFragment_VirtualCard_institution {
|
|
424
|
-
__typename:
|
|
464
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
425
465
|
id: string;
|
|
426
466
|
name: string;
|
|
427
467
|
logo: string | null;
|
|
428
468
|
}
|
|
429
469
|
interface PayableAccountFragment_VirtualCard {
|
|
430
|
-
__typename:
|
|
470
|
+
__typename: 'VirtualCard';
|
|
431
471
|
id: string;
|
|
432
472
|
name: string | null;
|
|
433
473
|
userId: string;
|
|
@@ -446,7 +486,7 @@ interface PayableAccountFragment_VirtualCard {
|
|
|
446
486
|
institution: PayableAccountFragment_VirtualCard_institution | null;
|
|
447
487
|
}
|
|
448
488
|
interface PayableAccountFragment_Bill_billAccountDetails {
|
|
449
|
-
__typename:
|
|
489
|
+
__typename: 'BillAccountDetails';
|
|
450
490
|
balance: number | null;
|
|
451
491
|
amountDue: number | null;
|
|
452
492
|
openedAt: any | null;
|
|
@@ -458,18 +498,18 @@ interface PayableAccountFragment_Bill_billAccountDetails {
|
|
|
458
498
|
remainingStatementBalance: number | null;
|
|
459
499
|
}
|
|
460
500
|
interface PayableAccountFragment_Bill_dataSync {
|
|
461
|
-
__typename:
|
|
501
|
+
__typename: 'AccountDataSync';
|
|
462
502
|
lastSync: any | null;
|
|
463
503
|
syncStatus: AccountSyncStatus | null;
|
|
464
504
|
}
|
|
465
505
|
interface PayableAccountFragment_Bill_institution {
|
|
466
|
-
__typename:
|
|
506
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
467
507
|
id: string;
|
|
468
508
|
name: string;
|
|
469
509
|
logo: string | null;
|
|
470
510
|
}
|
|
471
511
|
interface PayableAccountFragment_Bill {
|
|
472
|
-
__typename:
|
|
512
|
+
__typename: 'Bill';
|
|
473
513
|
id: string;
|
|
474
514
|
name: string | null;
|
|
475
515
|
userId: string;
|
|
@@ -485,10 +525,10 @@ interface PayableAccountFragment_Bill {
|
|
|
485
525
|
dataSync: PayableAccountFragment_Bill_dataSync | null;
|
|
486
526
|
institution: PayableAccountFragment_Bill_institution | null;
|
|
487
527
|
}
|
|
488
|
-
type PayableAccountFragment = PayableAccountFragment_BankAccount | PayableAccountFragment_VirtualCard | PayableAccountFragment_Bill;
|
|
528
|
+
type PayableAccountFragment = PayableAccountFragment_DebitCard | PayableAccountFragment_BankAccount | PayableAccountFragment_VirtualCard | PayableAccountFragment_Bill;
|
|
489
529
|
|
|
490
530
|
interface PayableAccountInstitutionFragment {
|
|
491
|
-
__typename:
|
|
531
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
492
532
|
id: string;
|
|
493
533
|
country: string;
|
|
494
534
|
currency: string;
|
|
@@ -497,7 +537,7 @@ interface PayableAccountInstitutionFragment {
|
|
|
497
537
|
}
|
|
498
538
|
|
|
499
539
|
interface Payment_payment {
|
|
500
|
-
__typename:
|
|
540
|
+
__typename: 'Payment';
|
|
501
541
|
id: string;
|
|
502
542
|
userId: any;
|
|
503
543
|
status: PaymentStatus;
|
|
@@ -519,7 +559,7 @@ interface PaymentVariables {
|
|
|
519
559
|
}
|
|
520
560
|
|
|
521
561
|
interface PaymentFragment {
|
|
522
|
-
__typename:
|
|
562
|
+
__typename: 'Payment';
|
|
523
563
|
id: string;
|
|
524
564
|
userId: any;
|
|
525
565
|
status: PaymentStatus;
|
|
@@ -535,7 +575,7 @@ interface PaymentFragment {
|
|
|
535
575
|
}
|
|
536
576
|
|
|
537
577
|
interface PaymentRequestFragment {
|
|
538
|
-
__typename:
|
|
578
|
+
__typename: 'DirectPayment';
|
|
539
579
|
id: string;
|
|
540
580
|
userId: any;
|
|
541
581
|
accountId: any;
|
|
@@ -545,14 +585,14 @@ interface PaymentRequestFragment {
|
|
|
545
585
|
amountDue: number;
|
|
546
586
|
network: string;
|
|
547
587
|
createdAt: any;
|
|
548
|
-
deliveryMethod:
|
|
588
|
+
deliveryMethod: PaymentDeliveryMethod | null;
|
|
549
589
|
targetCurrency: string | null;
|
|
550
590
|
targetCurrencyAmount: number;
|
|
551
591
|
targetCurrencyRate: number;
|
|
552
592
|
}
|
|
553
593
|
|
|
554
594
|
interface PaymentRequestPayment_paymentForPaymentRequest {
|
|
555
|
-
__typename:
|
|
595
|
+
__typename: 'Payment';
|
|
556
596
|
id: string;
|
|
557
597
|
userId: any;
|
|
558
598
|
status: PaymentStatus;
|
|
@@ -574,7 +614,7 @@ interface PaymentRequestPaymentVariables {
|
|
|
574
614
|
}
|
|
575
615
|
|
|
576
616
|
interface PopularBillInstitutions_popularUSBillInstitutions {
|
|
577
|
-
__typename:
|
|
617
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
578
618
|
id: string;
|
|
579
619
|
country: string;
|
|
580
620
|
currency: string;
|
|
@@ -589,7 +629,7 @@ interface PopularBillInstitutionsVariables {
|
|
|
589
629
|
}
|
|
590
630
|
|
|
591
631
|
interface SearchUSBillInstitutions_searchUSBillInstitutions {
|
|
592
|
-
__typename:
|
|
632
|
+
__typename: 'BillInstitution';
|
|
593
633
|
id: string;
|
|
594
634
|
country: string;
|
|
595
635
|
currency: string;
|
|
@@ -605,7 +645,7 @@ interface SearchUSBillInstitutionsVariables {
|
|
|
605
645
|
}
|
|
606
646
|
|
|
607
647
|
interface TokenBalanceFragment {
|
|
608
|
-
__typename:
|
|
648
|
+
__typename: 'TokenBalance';
|
|
609
649
|
/**
|
|
610
650
|
* Token contract address
|
|
611
651
|
*/
|
|
@@ -615,6 +655,9 @@ interface TokenBalanceFragment {
|
|
|
615
655
|
*/
|
|
616
656
|
walletAddress: string;
|
|
617
657
|
symbol: string;
|
|
658
|
+
/**
|
|
659
|
+
* Network
|
|
660
|
+
*/
|
|
618
661
|
network: string;
|
|
619
662
|
/**
|
|
620
663
|
* ERC20 decimals
|
|
@@ -627,23 +670,16 @@ interface TokenBalanceFragment {
|
|
|
627
670
|
tokenImageUrl: string;
|
|
628
671
|
}
|
|
629
672
|
|
|
630
|
-
interface TransactionPrice {
|
|
631
|
-
transactionPrice: number;
|
|
632
|
-
}
|
|
633
|
-
interface TransactionPriceVariables {
|
|
634
|
-
amount: number;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
673
|
interface UserBankAccounts_bankAccounts_bankAccountDetails_CanadianBankAccountDetails {
|
|
638
|
-
__typename:
|
|
674
|
+
__typename: 'CanadianBankAccountDetails' | 'UKBankAccountDetails' | 'IBANBankAccountDetails';
|
|
639
675
|
}
|
|
640
676
|
interface UserBankAccounts_bankAccounts_bankAccountDetails_USBankAccountDetails {
|
|
641
|
-
__typename:
|
|
677
|
+
__typename: 'USBankAccountDetails';
|
|
642
678
|
routingNumber: string;
|
|
643
679
|
}
|
|
644
680
|
type UserBankAccounts_bankAccounts_bankAccountDetails = UserBankAccounts_bankAccounts_bankAccountDetails_CanadianBankAccountDetails | UserBankAccounts_bankAccounts_bankAccountDetails_USBankAccountDetails;
|
|
645
681
|
interface UserBankAccounts_bankAccounts_institution {
|
|
646
|
-
__typename:
|
|
682
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
647
683
|
id: string;
|
|
648
684
|
name: string;
|
|
649
685
|
logo: string | null;
|
|
@@ -651,12 +687,12 @@ interface UserBankAccounts_bankAccounts_institution {
|
|
|
651
687
|
currency: string;
|
|
652
688
|
}
|
|
653
689
|
interface UserBankAccounts_bankAccounts_paymentAddresses {
|
|
654
|
-
__typename:
|
|
690
|
+
__typename: 'PaymentAddress';
|
|
655
691
|
network: string;
|
|
656
692
|
address: string;
|
|
657
693
|
}
|
|
658
694
|
interface UserBankAccounts_bankAccounts {
|
|
659
|
-
__typename:
|
|
695
|
+
__typename: 'BankAccount';
|
|
660
696
|
id: string;
|
|
661
697
|
name: string | null;
|
|
662
698
|
userId: string;
|
|
@@ -670,7 +706,7 @@ interface UserBankAccounts_bankAccounts {
|
|
|
670
706
|
holder: string;
|
|
671
707
|
email: string | null;
|
|
672
708
|
ownedByUser: boolean;
|
|
673
|
-
bankAccountDetails: UserBankAccounts_bankAccounts_bankAccountDetails;
|
|
709
|
+
bankAccountDetails: UserBankAccounts_bankAccounts_bankAccountDetails | null;
|
|
674
710
|
deliveryMethods: PaymentDeliveryMethod[];
|
|
675
711
|
institution: UserBankAccounts_bankAccounts_institution | null;
|
|
676
712
|
paymentAddresses: UserBankAccounts_bankAccounts_paymentAddresses[];
|
|
@@ -680,7 +716,7 @@ interface UserBankAccounts {
|
|
|
680
716
|
}
|
|
681
717
|
|
|
682
718
|
interface UserBills_bills_billAccountDetails {
|
|
683
|
-
__typename:
|
|
719
|
+
__typename: 'BillAccountDetails';
|
|
684
720
|
balance: number | null;
|
|
685
721
|
amountDue: number | null;
|
|
686
722
|
openedAt: any | null;
|
|
@@ -692,23 +728,23 @@ interface UserBills_bills_billAccountDetails {
|
|
|
692
728
|
remainingStatementBalance: number | null;
|
|
693
729
|
}
|
|
694
730
|
interface UserBills_bills_dataSync {
|
|
695
|
-
__typename:
|
|
731
|
+
__typename: 'AccountDataSync';
|
|
696
732
|
lastSync: any | null;
|
|
697
733
|
syncStatus: AccountSyncStatus | null;
|
|
698
734
|
}
|
|
699
735
|
interface UserBills_bills_institution {
|
|
700
|
-
__typename:
|
|
736
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
701
737
|
id: string;
|
|
702
738
|
name: string;
|
|
703
739
|
logo: string | null;
|
|
704
740
|
}
|
|
705
741
|
interface UserBills_bills_paymentAddresses {
|
|
706
|
-
__typename:
|
|
742
|
+
__typename: 'PaymentAddress';
|
|
707
743
|
network: string;
|
|
708
744
|
address: string;
|
|
709
745
|
}
|
|
710
746
|
interface UserBills_bills {
|
|
711
|
-
__typename:
|
|
747
|
+
__typename: 'Bill';
|
|
712
748
|
id: string;
|
|
713
749
|
name: string | null;
|
|
714
750
|
userId: string;
|
|
@@ -729,39 +765,64 @@ interface UserBills {
|
|
|
729
765
|
}
|
|
730
766
|
|
|
731
767
|
interface UserFragment {
|
|
732
|
-
__typename:
|
|
768
|
+
__typename: 'User';
|
|
733
769
|
id: string;
|
|
734
|
-
sub: string;
|
|
735
|
-
email: string;
|
|
770
|
+
sub: string | null;
|
|
771
|
+
email: string | null;
|
|
736
772
|
firstName: string | null;
|
|
737
773
|
lastName: string | null;
|
|
738
774
|
picture: string | null;
|
|
739
775
|
phone: string | null;
|
|
740
776
|
createdAt: any;
|
|
741
|
-
timezone: string;
|
|
777
|
+
timezone: string | null;
|
|
742
778
|
}
|
|
743
779
|
|
|
780
|
+
interface UserPayableAccounts_payableAccounts_DebitCard_dataSync {
|
|
781
|
+
__typename: 'AccountDataSync';
|
|
782
|
+
lastSync: any | null;
|
|
783
|
+
syncStatus: AccountSyncStatus | null;
|
|
784
|
+
}
|
|
785
|
+
interface UserPayableAccounts_payableAccounts_DebitCard_institution {
|
|
786
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
787
|
+
id: string;
|
|
788
|
+
name: string;
|
|
789
|
+
logo: string | null;
|
|
790
|
+
}
|
|
791
|
+
interface UserPayableAccounts_payableAccounts_DebitCard {
|
|
792
|
+
__typename: 'DebitCard' | 'DigitalAccount';
|
|
793
|
+
id: string;
|
|
794
|
+
name: string | null;
|
|
795
|
+
userId: string;
|
|
796
|
+
country: string;
|
|
797
|
+
currency: string;
|
|
798
|
+
payable: boolean;
|
|
799
|
+
originator: PayableAccountOriginator;
|
|
800
|
+
type: PayableAccountType;
|
|
801
|
+
createdAt: any;
|
|
802
|
+
dataSync: UserPayableAccounts_payableAccounts_DebitCard_dataSync | null;
|
|
803
|
+
institution: UserPayableAccounts_payableAccounts_DebitCard_institution | null;
|
|
804
|
+
}
|
|
744
805
|
interface UserPayableAccounts_payableAccounts_BankAccount_dataSync {
|
|
745
|
-
__typename:
|
|
806
|
+
__typename: 'AccountDataSync';
|
|
746
807
|
lastSync: any | null;
|
|
747
808
|
syncStatus: AccountSyncStatus | null;
|
|
748
809
|
}
|
|
749
810
|
interface UserPayableAccounts_payableAccounts_BankAccount_institution {
|
|
750
|
-
__typename:
|
|
811
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
751
812
|
id: string;
|
|
752
813
|
name: string;
|
|
753
814
|
logo: string | null;
|
|
754
815
|
}
|
|
755
816
|
interface UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails_CanadianBankAccountDetails {
|
|
756
|
-
__typename:
|
|
817
|
+
__typename: 'CanadianBankAccountDetails' | 'UKBankAccountDetails' | 'IBANBankAccountDetails';
|
|
757
818
|
}
|
|
758
819
|
interface UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails_USBankAccountDetails {
|
|
759
|
-
__typename:
|
|
820
|
+
__typename: 'USBankAccountDetails';
|
|
760
821
|
routingNumber: string;
|
|
761
822
|
}
|
|
762
823
|
type UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails = UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails_CanadianBankAccountDetails | UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails_USBankAccountDetails;
|
|
763
824
|
interface UserPayableAccounts_payableAccounts_BankAccount {
|
|
764
|
-
__typename:
|
|
825
|
+
__typename: 'BankAccount';
|
|
765
826
|
id: string;
|
|
766
827
|
name: string | null;
|
|
767
828
|
userId: string;
|
|
@@ -779,21 +840,21 @@ interface UserPayableAccounts_payableAccounts_BankAccount {
|
|
|
779
840
|
holder: string;
|
|
780
841
|
email: string | null;
|
|
781
842
|
ownedByUser: boolean;
|
|
782
|
-
bankAccountDetails: UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails;
|
|
843
|
+
bankAccountDetails: UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails | null;
|
|
783
844
|
}
|
|
784
845
|
interface UserPayableAccounts_payableAccounts_VirtualCard_dataSync {
|
|
785
|
-
__typename:
|
|
846
|
+
__typename: 'AccountDataSync';
|
|
786
847
|
lastSync: any | null;
|
|
787
848
|
syncStatus: AccountSyncStatus | null;
|
|
788
849
|
}
|
|
789
850
|
interface UserPayableAccounts_payableAccounts_VirtualCard_institution {
|
|
790
|
-
__typename:
|
|
851
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
791
852
|
id: string;
|
|
792
853
|
name: string;
|
|
793
854
|
logo: string | null;
|
|
794
855
|
}
|
|
795
856
|
interface UserPayableAccounts_payableAccounts_VirtualCard_billingInfo_address {
|
|
796
|
-
__typename:
|
|
857
|
+
__typename: 'CardHolderAddress';
|
|
797
858
|
street: string | null;
|
|
798
859
|
street2: string | null;
|
|
799
860
|
city: string | null;
|
|
@@ -802,14 +863,14 @@ interface UserPayableAccounts_payableAccounts_VirtualCard_billingInfo_address {
|
|
|
802
863
|
countryCode: string | null;
|
|
803
864
|
}
|
|
804
865
|
interface UserPayableAccounts_payableAccounts_VirtualCard_billingInfo {
|
|
805
|
-
__typename:
|
|
866
|
+
__typename: 'BillingInfo';
|
|
806
867
|
holder: string;
|
|
807
868
|
phone: string;
|
|
808
869
|
email: string;
|
|
809
870
|
address: UserPayableAccounts_payableAccounts_VirtualCard_billingInfo_address | null;
|
|
810
871
|
}
|
|
811
872
|
interface UserPayableAccounts_payableAccounts_VirtualCard {
|
|
812
|
-
__typename:
|
|
873
|
+
__typename: 'VirtualCard';
|
|
813
874
|
id: string;
|
|
814
875
|
name: string | null;
|
|
815
876
|
userId: string;
|
|
@@ -828,18 +889,18 @@ interface UserPayableAccounts_payableAccounts_VirtualCard {
|
|
|
828
889
|
billingInfo: UserPayableAccounts_payableAccounts_VirtualCard_billingInfo | null;
|
|
829
890
|
}
|
|
830
891
|
interface UserPayableAccounts_payableAccounts_Bill_dataSync {
|
|
831
|
-
__typename:
|
|
892
|
+
__typename: 'AccountDataSync';
|
|
832
893
|
lastSync: any | null;
|
|
833
894
|
syncStatus: AccountSyncStatus | null;
|
|
834
895
|
}
|
|
835
896
|
interface UserPayableAccounts_payableAccounts_Bill_institution {
|
|
836
|
-
__typename:
|
|
897
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
837
898
|
id: string;
|
|
838
899
|
name: string;
|
|
839
900
|
logo: string | null;
|
|
840
901
|
}
|
|
841
902
|
interface UserPayableAccounts_payableAccounts_Bill_billAccountDetails {
|
|
842
|
-
__typename:
|
|
903
|
+
__typename: 'BillAccountDetails';
|
|
843
904
|
balance: number | null;
|
|
844
905
|
amountDue: number | null;
|
|
845
906
|
openedAt: any | null;
|
|
@@ -851,7 +912,7 @@ interface UserPayableAccounts_payableAccounts_Bill_billAccountDetails {
|
|
|
851
912
|
remainingStatementBalance: number | null;
|
|
852
913
|
}
|
|
853
914
|
interface UserPayableAccounts_payableAccounts_Bill {
|
|
854
|
-
__typename:
|
|
915
|
+
__typename: 'Bill';
|
|
855
916
|
id: string;
|
|
856
917
|
name: string | null;
|
|
857
918
|
userId: string;
|
|
@@ -867,27 +928,27 @@ interface UserPayableAccounts_payableAccounts_Bill {
|
|
|
867
928
|
verifying: boolean;
|
|
868
929
|
billAccountDetails: UserPayableAccounts_payableAccounts_Bill_billAccountDetails | null;
|
|
869
930
|
}
|
|
870
|
-
type UserPayableAccounts_payableAccounts = UserPayableAccounts_payableAccounts_BankAccount | UserPayableAccounts_payableAccounts_VirtualCard | UserPayableAccounts_payableAccounts_Bill;
|
|
931
|
+
type UserPayableAccounts_payableAccounts = UserPayableAccounts_payableAccounts_DebitCard | UserPayableAccounts_payableAccounts_BankAccount | UserPayableAccounts_payableAccounts_VirtualCard | UserPayableAccounts_payableAccounts_Bill;
|
|
871
932
|
interface UserPayableAccounts {
|
|
872
933
|
payableAccounts: UserPayableAccounts_payableAccounts[];
|
|
873
934
|
}
|
|
874
935
|
|
|
875
936
|
interface UserVerification_verification_identity_user {
|
|
876
|
-
__typename:
|
|
937
|
+
__typename: 'UserIdentity';
|
|
877
938
|
firstName: string | null;
|
|
878
939
|
lastName: string | null;
|
|
879
940
|
email: string | null;
|
|
880
941
|
completedAt: string | null;
|
|
881
942
|
}
|
|
882
943
|
interface UserVerification_verification_identity {
|
|
883
|
-
__typename:
|
|
944
|
+
__typename: 'IdentityModule';
|
|
884
945
|
status: ModuleStatus;
|
|
885
946
|
country: string | null;
|
|
886
947
|
verificationUrl: string | null;
|
|
887
948
|
user: UserVerification_verification_identity_user | null;
|
|
888
949
|
}
|
|
889
950
|
interface UserVerification_verification {
|
|
890
|
-
__typename:
|
|
951
|
+
__typename: 'Verification';
|
|
891
952
|
userId: any;
|
|
892
953
|
identity: UserVerification_verification_identity;
|
|
893
954
|
}
|
|
@@ -896,7 +957,7 @@ interface UserVerification {
|
|
|
896
957
|
}
|
|
897
958
|
|
|
898
959
|
interface UserVirtualDebitCard_virtualDebitCard_billingInfo_address {
|
|
899
|
-
__typename:
|
|
960
|
+
__typename: 'CardHolderAddress';
|
|
900
961
|
street: string | null;
|
|
901
962
|
street2: string | null;
|
|
902
963
|
city: string | null;
|
|
@@ -905,19 +966,19 @@ interface UserVirtualDebitCard_virtualDebitCard_billingInfo_address {
|
|
|
905
966
|
countryCode: string | null;
|
|
906
967
|
}
|
|
907
968
|
interface UserVirtualDebitCard_virtualDebitCard_billingInfo {
|
|
908
|
-
__typename:
|
|
969
|
+
__typename: 'BillingInfo';
|
|
909
970
|
holder: string;
|
|
910
971
|
phone: string;
|
|
911
972
|
email: string;
|
|
912
973
|
address: UserVirtualDebitCard_virtualDebitCard_billingInfo_address | null;
|
|
913
974
|
}
|
|
914
975
|
interface UserVirtualDebitCard_virtualDebitCard_paymentAddresses {
|
|
915
|
-
__typename:
|
|
976
|
+
__typename: 'PaymentAddress';
|
|
916
977
|
network: string;
|
|
917
978
|
address: string;
|
|
918
979
|
}
|
|
919
980
|
interface UserVirtualDebitCard_virtualDebitCard {
|
|
920
|
-
__typename:
|
|
981
|
+
__typename: 'VirtualCard';
|
|
921
982
|
id: string;
|
|
922
983
|
name: string | null;
|
|
923
984
|
userId: string;
|
|
@@ -937,7 +998,7 @@ interface UserVirtualDebitCard {
|
|
|
937
998
|
}
|
|
938
999
|
|
|
939
1000
|
interface VirtualDebitCardFragment_billingInfo_address {
|
|
940
|
-
__typename:
|
|
1001
|
+
__typename: 'CardHolderAddress';
|
|
941
1002
|
street: string | null;
|
|
942
1003
|
street2: string | null;
|
|
943
1004
|
city: string | null;
|
|
@@ -946,19 +1007,19 @@ interface VirtualDebitCardFragment_billingInfo_address {
|
|
|
946
1007
|
countryCode: string | null;
|
|
947
1008
|
}
|
|
948
1009
|
interface VirtualDebitCardFragment_billingInfo {
|
|
949
|
-
__typename:
|
|
1010
|
+
__typename: 'BillingInfo';
|
|
950
1011
|
holder: string;
|
|
951
1012
|
phone: string;
|
|
952
1013
|
email: string;
|
|
953
1014
|
address: VirtualDebitCardFragment_billingInfo_address | null;
|
|
954
1015
|
}
|
|
955
1016
|
interface VirtualDebitCardFragment_paymentAddresses {
|
|
956
|
-
__typename:
|
|
1017
|
+
__typename: 'PaymentAddress';
|
|
957
1018
|
network: string;
|
|
958
1019
|
address: string;
|
|
959
1020
|
}
|
|
960
1021
|
interface VirtualDebitCardFragment {
|
|
961
|
-
__typename:
|
|
1022
|
+
__typename: 'VirtualCard';
|
|
962
1023
|
id: string;
|
|
963
1024
|
name: string | null;
|
|
964
1025
|
userId: string;
|
|
@@ -975,7 +1036,7 @@ interface VirtualDebitCardFragment {
|
|
|
975
1036
|
}
|
|
976
1037
|
|
|
977
1038
|
interface WalletTokenBalances_tokenBalances {
|
|
978
|
-
__typename:
|
|
1039
|
+
__typename: 'TokenBalance';
|
|
979
1040
|
/**
|
|
980
1041
|
* Token contract address
|
|
981
1042
|
*/
|
|
@@ -985,6 +1046,9 @@ interface WalletTokenBalances_tokenBalances {
|
|
|
985
1046
|
*/
|
|
986
1047
|
walletAddress: string;
|
|
987
1048
|
symbol: string;
|
|
1049
|
+
/**
|
|
1050
|
+
* Network
|
|
1051
|
+
*/
|
|
988
1052
|
network: string;
|
|
989
1053
|
/**
|
|
990
1054
|
* ERC20 decimals
|
|
@@ -1005,26 +1069,26 @@ interface WalletTokenBalancesVariables {
|
|
|
1005
1069
|
}
|
|
1006
1070
|
|
|
1007
1071
|
interface DeletePayableAccount_deletePayableAccount_BankAccount_dataSync {
|
|
1008
|
-
__typename:
|
|
1072
|
+
__typename: 'AccountDataSync';
|
|
1009
1073
|
lastSync: any | null;
|
|
1010
1074
|
syncStatus: AccountSyncStatus | null;
|
|
1011
1075
|
}
|
|
1012
1076
|
interface DeletePayableAccount_deletePayableAccount_BankAccount_institution {
|
|
1013
|
-
__typename:
|
|
1077
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
1014
1078
|
id: string;
|
|
1015
1079
|
name: string;
|
|
1016
1080
|
logo: string | null;
|
|
1017
1081
|
}
|
|
1018
1082
|
interface DeletePayableAccount_deletePayableAccount_BankAccount_bankAccountDetails_CanadianBankAccountDetails {
|
|
1019
|
-
__typename:
|
|
1083
|
+
__typename: 'CanadianBankAccountDetails' | 'UKBankAccountDetails' | 'IBANBankAccountDetails';
|
|
1020
1084
|
}
|
|
1021
1085
|
interface DeletePayableAccount_deletePayableAccount_BankAccount_bankAccountDetails_USBankAccountDetails {
|
|
1022
|
-
__typename:
|
|
1086
|
+
__typename: 'USBankAccountDetails';
|
|
1023
1087
|
routingNumber: string;
|
|
1024
1088
|
}
|
|
1025
1089
|
type DeletePayableAccount_deletePayableAccount_BankAccount_bankAccountDetails = DeletePayableAccount_deletePayableAccount_BankAccount_bankAccountDetails_CanadianBankAccountDetails | DeletePayableAccount_deletePayableAccount_BankAccount_bankAccountDetails_USBankAccountDetails;
|
|
1026
1090
|
interface DeletePayableAccount_deletePayableAccount_BankAccount {
|
|
1027
|
-
__typename:
|
|
1091
|
+
__typename: 'BankAccount';
|
|
1028
1092
|
id: string;
|
|
1029
1093
|
name: string | null;
|
|
1030
1094
|
userId: string;
|
|
@@ -1042,21 +1106,21 @@ interface DeletePayableAccount_deletePayableAccount_BankAccount {
|
|
|
1042
1106
|
holder: string;
|
|
1043
1107
|
email: string | null;
|
|
1044
1108
|
ownedByUser: boolean;
|
|
1045
|
-
bankAccountDetails: DeletePayableAccount_deletePayableAccount_BankAccount_bankAccountDetails;
|
|
1109
|
+
bankAccountDetails: DeletePayableAccount_deletePayableAccount_BankAccount_bankAccountDetails | null;
|
|
1046
1110
|
}
|
|
1047
1111
|
interface DeletePayableAccount_deletePayableAccount_Bill_dataSync {
|
|
1048
|
-
__typename:
|
|
1112
|
+
__typename: 'AccountDataSync';
|
|
1049
1113
|
lastSync: any | null;
|
|
1050
1114
|
syncStatus: AccountSyncStatus | null;
|
|
1051
1115
|
}
|
|
1052
1116
|
interface DeletePayableAccount_deletePayableAccount_Bill_institution {
|
|
1053
|
-
__typename:
|
|
1117
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
1054
1118
|
id: string;
|
|
1055
1119
|
name: string;
|
|
1056
1120
|
logo: string | null;
|
|
1057
1121
|
}
|
|
1058
1122
|
interface DeletePayableAccount_deletePayableAccount_Bill_billAccountDetails {
|
|
1059
|
-
__typename:
|
|
1123
|
+
__typename: 'BillAccountDetails';
|
|
1060
1124
|
balance: number | null;
|
|
1061
1125
|
amountDue: number | null;
|
|
1062
1126
|
openedAt: any | null;
|
|
@@ -1068,7 +1132,7 @@ interface DeletePayableAccount_deletePayableAccount_Bill_billAccountDetails {
|
|
|
1068
1132
|
remainingStatementBalance: number | null;
|
|
1069
1133
|
}
|
|
1070
1134
|
interface DeletePayableAccount_deletePayableAccount_Bill {
|
|
1071
|
-
__typename:
|
|
1135
|
+
__typename: 'Bill';
|
|
1072
1136
|
id: string;
|
|
1073
1137
|
name: string | null;
|
|
1074
1138
|
userId: string;
|
|
@@ -1086,18 +1150,18 @@ interface DeletePayableAccount_deletePayableAccount_Bill {
|
|
|
1086
1150
|
}
|
|
1087
1151
|
|
|
1088
1152
|
interface RenameBankAccount_renamePayableAccount_Bill {
|
|
1089
|
-
__typename:
|
|
1153
|
+
__typename: 'Bill' | 'DebitCard' | 'DigitalAccount' | 'VirtualCard';
|
|
1090
1154
|
}
|
|
1091
1155
|
interface RenameBankAccount_renamePayableAccount_BankAccount_bankAccountDetails_CanadianBankAccountDetails {
|
|
1092
|
-
__typename:
|
|
1156
|
+
__typename: 'CanadianBankAccountDetails' | 'UKBankAccountDetails' | 'IBANBankAccountDetails';
|
|
1093
1157
|
}
|
|
1094
1158
|
interface RenameBankAccount_renamePayableAccount_BankAccount_bankAccountDetails_USBankAccountDetails {
|
|
1095
|
-
__typename:
|
|
1159
|
+
__typename: 'USBankAccountDetails';
|
|
1096
1160
|
routingNumber: string;
|
|
1097
1161
|
}
|
|
1098
1162
|
type RenameBankAccount_renamePayableAccount_BankAccount_bankAccountDetails = RenameBankAccount_renamePayableAccount_BankAccount_bankAccountDetails_CanadianBankAccountDetails | RenameBankAccount_renamePayableAccount_BankAccount_bankAccountDetails_USBankAccountDetails;
|
|
1099
1163
|
interface RenameBankAccount_renamePayableAccount_BankAccount_institution {
|
|
1100
|
-
__typename:
|
|
1164
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
1101
1165
|
id: string;
|
|
1102
1166
|
name: string;
|
|
1103
1167
|
logo: string | null;
|
|
@@ -1105,12 +1169,12 @@ interface RenameBankAccount_renamePayableAccount_BankAccount_institution {
|
|
|
1105
1169
|
currency: string;
|
|
1106
1170
|
}
|
|
1107
1171
|
interface RenameBankAccount_renamePayableAccount_BankAccount_paymentAddresses {
|
|
1108
|
-
__typename:
|
|
1172
|
+
__typename: 'PaymentAddress';
|
|
1109
1173
|
network: string;
|
|
1110
1174
|
address: string;
|
|
1111
1175
|
}
|
|
1112
1176
|
interface RenameBankAccount_renamePayableAccount_BankAccount {
|
|
1113
|
-
__typename:
|
|
1177
|
+
__typename: 'BankAccount';
|
|
1114
1178
|
id: string;
|
|
1115
1179
|
name: string | null;
|
|
1116
1180
|
userId: string;
|
|
@@ -1124,7 +1188,7 @@ interface RenameBankAccount_renamePayableAccount_BankAccount {
|
|
|
1124
1188
|
holder: string;
|
|
1125
1189
|
email: string | null;
|
|
1126
1190
|
ownedByUser: boolean;
|
|
1127
|
-
bankAccountDetails: RenameBankAccount_renamePayableAccount_BankAccount_bankAccountDetails;
|
|
1191
|
+
bankAccountDetails: RenameBankAccount_renamePayableAccount_BankAccount_bankAccountDetails | null;
|
|
1128
1192
|
deliveryMethods: PaymentDeliveryMethod[];
|
|
1129
1193
|
institution: RenameBankAccount_renamePayableAccount_BankAccount_institution | null;
|
|
1130
1194
|
paymentAddresses: RenameBankAccount_renamePayableAccount_BankAccount_paymentAddresses[];
|
|
@@ -1215,7 +1279,7 @@ declare class BankAccountService {
|
|
|
1215
1279
|
}
|
|
1216
1280
|
|
|
1217
1281
|
interface CreateUSBill_addUSBill_billAccountDetails {
|
|
1218
|
-
__typename:
|
|
1282
|
+
__typename: 'BillAccountDetails';
|
|
1219
1283
|
balance: number | null;
|
|
1220
1284
|
amountDue: number | null;
|
|
1221
1285
|
openedAt: any | null;
|
|
@@ -1227,23 +1291,23 @@ interface CreateUSBill_addUSBill_billAccountDetails {
|
|
|
1227
1291
|
remainingStatementBalance: number | null;
|
|
1228
1292
|
}
|
|
1229
1293
|
interface CreateUSBill_addUSBill_dataSync {
|
|
1230
|
-
__typename:
|
|
1294
|
+
__typename: 'AccountDataSync';
|
|
1231
1295
|
lastSync: any | null;
|
|
1232
1296
|
syncStatus: AccountSyncStatus | null;
|
|
1233
1297
|
}
|
|
1234
1298
|
interface CreateUSBill_addUSBill_institution {
|
|
1235
|
-
__typename:
|
|
1299
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
1236
1300
|
id: string;
|
|
1237
1301
|
name: string;
|
|
1238
1302
|
logo: string | null;
|
|
1239
1303
|
}
|
|
1240
1304
|
interface CreateUSBill_addUSBill_paymentAddresses {
|
|
1241
|
-
__typename:
|
|
1305
|
+
__typename: 'PaymentAddress';
|
|
1242
1306
|
network: string;
|
|
1243
1307
|
address: string;
|
|
1244
1308
|
}
|
|
1245
1309
|
interface CreateUSBill_addUSBill {
|
|
1246
|
-
__typename:
|
|
1310
|
+
__typename: 'Bill';
|
|
1247
1311
|
id: string;
|
|
1248
1312
|
name: string | null;
|
|
1249
1313
|
userId: string;
|
|
@@ -1277,7 +1341,7 @@ declare class InstitutionService {
|
|
|
1277
1341
|
}
|
|
1278
1342
|
|
|
1279
1343
|
interface CreateOnrampPayment_createOnrampPayment_depositInstructions {
|
|
1280
|
-
__typename:
|
|
1344
|
+
__typename: 'OnrampPaymentDepositInstructions';
|
|
1281
1345
|
amount: number;
|
|
1282
1346
|
currency: string;
|
|
1283
1347
|
bankName: string;
|
|
@@ -1289,11 +1353,11 @@ interface CreateOnrampPayment_createOnrampPayment_depositInstructions {
|
|
|
1289
1353
|
depositMessage: string;
|
|
1290
1354
|
}
|
|
1291
1355
|
interface CreateOnrampPayment_createOnrampPayment {
|
|
1292
|
-
__typename:
|
|
1356
|
+
__typename: 'OnRampPayment';
|
|
1293
1357
|
id: string;
|
|
1294
1358
|
amount: number;
|
|
1295
1359
|
feeAmount: number;
|
|
1296
|
-
depositInstructions: CreateOnrampPayment_createOnrampPayment_depositInstructions;
|
|
1360
|
+
depositInstructions: CreateOnrampPayment_createOnrampPayment_depositInstructions | null;
|
|
1297
1361
|
network: string;
|
|
1298
1362
|
token: string;
|
|
1299
1363
|
address: string;
|
|
@@ -1317,7 +1381,7 @@ declare class PaymentService {
|
|
|
1317
1381
|
}
|
|
1318
1382
|
|
|
1319
1383
|
interface CreatePaymentRequest_createDirectPayment {
|
|
1320
|
-
__typename:
|
|
1384
|
+
__typename: 'DirectPayment';
|
|
1321
1385
|
id: string;
|
|
1322
1386
|
userId: any;
|
|
1323
1387
|
accountId: any;
|
|
@@ -1327,7 +1391,7 @@ interface CreatePaymentRequest_createDirectPayment {
|
|
|
1327
1391
|
amountDue: number;
|
|
1328
1392
|
network: string;
|
|
1329
1393
|
createdAt: any;
|
|
1330
|
-
deliveryMethod:
|
|
1394
|
+
deliveryMethod: PaymentDeliveryMethod | null;
|
|
1331
1395
|
targetCurrency: string | null;
|
|
1332
1396
|
targetCurrencyAmount: number;
|
|
1333
1397
|
targetCurrencyRate: number;
|
|
@@ -1357,7 +1421,6 @@ declare class PaymentRequestService {
|
|
|
1357
1421
|
private client;
|
|
1358
1422
|
constructor(client: SpritzClient);
|
|
1359
1423
|
create(input: CreatePaymentRequestInput): Promise<CreatePaymentRequest_createDirectPayment>;
|
|
1360
|
-
transactionPrice(paymentAmount: number): Promise<number>;
|
|
1361
1424
|
getWeb3PaymentParams(input: {
|
|
1362
1425
|
paymentRequest: PaymentRequest;
|
|
1363
1426
|
paymentTokenAddress: string;
|
|
@@ -1396,7 +1459,7 @@ declare class UserService {
|
|
|
1396
1459
|
}
|
|
1397
1460
|
|
|
1398
1461
|
interface CreateUSVirtualDebitCard_createUSVirtualDebitCard_billingInfo_address {
|
|
1399
|
-
__typename:
|
|
1462
|
+
__typename: 'CardHolderAddress';
|
|
1400
1463
|
street: string | null;
|
|
1401
1464
|
street2: string | null;
|
|
1402
1465
|
city: string | null;
|
|
@@ -1405,19 +1468,19 @@ interface CreateUSVirtualDebitCard_createUSVirtualDebitCard_billingInfo_address
|
|
|
1405
1468
|
countryCode: string | null;
|
|
1406
1469
|
}
|
|
1407
1470
|
interface CreateUSVirtualDebitCard_createUSVirtualDebitCard_billingInfo {
|
|
1408
|
-
__typename:
|
|
1471
|
+
__typename: 'BillingInfo';
|
|
1409
1472
|
holder: string;
|
|
1410
1473
|
phone: string;
|
|
1411
1474
|
email: string;
|
|
1412
1475
|
address: CreateUSVirtualDebitCard_createUSVirtualDebitCard_billingInfo_address | null;
|
|
1413
1476
|
}
|
|
1414
1477
|
interface CreateUSVirtualDebitCard_createUSVirtualDebitCard_paymentAddresses {
|
|
1415
|
-
__typename:
|
|
1478
|
+
__typename: 'PaymentAddress';
|
|
1416
1479
|
network: string;
|
|
1417
1480
|
address: string;
|
|
1418
1481
|
}
|
|
1419
1482
|
interface CreateUSVirtualDebitCard_createUSVirtualDebitCard {
|
|
1420
|
-
__typename:
|
|
1483
|
+
__typename: 'VirtualCard';
|
|
1421
1484
|
id: string;
|
|
1422
1485
|
name: string | null;
|
|
1423
1486
|
userId: string;
|
|
@@ -1453,8 +1516,7 @@ declare class VirtualCardService {
|
|
|
1453
1516
|
create<T extends VirtualCardType>(type: T, input?: CreateInputMapping[T]): Promise<NonNullable<CreateMutationMapping[T]["query"][keyof CreateMutationMapping[T]["query"]]> | null>;
|
|
1454
1517
|
}
|
|
1455
1518
|
|
|
1456
|
-
|
|
1457
|
-
type WebhookEvent = (typeof EVENTS)[number];
|
|
1519
|
+
type WebhookEvent = 'account.created' | 'account.updated' | 'account.deleted' | 'payment.created' | 'payment.updated' | 'payment.completed' | 'payment.refunded';
|
|
1458
1520
|
type IntegratorWebhook = {
|
|
1459
1521
|
id: string;
|
|
1460
1522
|
integratorId: string;
|
|
@@ -1517,4 +1579,5 @@ declare class SpritzApiClient {
|
|
|
1517
1579
|
setApiKey(_apiKey: string): this;
|
|
1518
1580
|
}
|
|
1519
1581
|
|
|
1520
|
-
export {
|
|
1582
|
+
export { BankAccountSubType, BankAccountType, BillType, Environment, PayableAccountType, PaymentNetwork, DirectPaymentStatus as PaymentRequestStatus, PaymentStatus, SpritzApiClient, VirtualCardType };
|
|
1583
|
+
export type { AccountPayments, AccountPaymentsVariables, AccountPayments_paymentsForAccount, BankAccountFragment, BankAccountFragment_bankAccountDetails, BankAccountFragment_bankAccountDetails_CanadianBankAccountDetails, BankAccountFragment_bankAccountDetails_USBankAccountDetails, BankAccountFragment_institution, BankAccountFragment_paymentAddresses, BankAccountInput, BillFragment, BillFragment_billAccountDetails, BillFragment_dataSync, BillFragment_institution, BillFragment_paymentAddresses, ClientOptions, CreateDirectPaymentInput, CreateOnrampPaymentInput, CreatePaymentRequestInput, CurrentUser, CurrentUser_me, GetSpritzPayParams, GetSpritzPayParamsVariables, GetSpritzPayParams_spritzPayParams, OnrampPaymentFragment, OnrampPaymentFragment_depositInstructions, OnrampPayments, OnrampPayments_onrampPayments, OnrampPayments_onrampPayments_depositInstructions, PayableAccountFragment, PayableAccountFragment_BankAccount, PayableAccountFragment_BankAccount_bankAccountDetails, PayableAccountFragment_BankAccount_bankAccountDetails_CanadianBankAccountDetails, PayableAccountFragment_BankAccount_bankAccountDetails_USBankAccountDetails, PayableAccountFragment_BankAccount_dataSync, PayableAccountFragment_BankAccount_institution, PayableAccountFragment_Bill, PayableAccountFragment_Bill_billAccountDetails, PayableAccountFragment_Bill_dataSync, PayableAccountFragment_Bill_institution, PayableAccountFragment_DebitCard, PayableAccountFragment_DebitCard_dataSync, PayableAccountFragment_DebitCard_institution, PayableAccountFragment_VirtualCard, PayableAccountFragment_VirtualCard_billingInfo, PayableAccountFragment_VirtualCard_billingInfo_address, PayableAccountFragment_VirtualCard_dataSync, PayableAccountFragment_VirtualCard_institution, PayableAccountInstitutionFragment, Payment, PaymentFragment, PaymentRequestFragment, PaymentRequestPayment, PaymentRequestPaymentVariables, PaymentRequestPayment_paymentForPaymentRequest, PaymentVariables, Payment_payment, PopularBillInstitutions, PopularBillInstitutionsVariables, PopularBillInstitutions_popularUSBillInstitutions, SearchUSBillInstitutions, SearchUSBillInstitutionsVariables, SearchUSBillInstitutions_searchUSBillInstitutions, TokenBalanceFragment, UserBankAccounts, UserBankAccounts_bankAccounts, UserBankAccounts_bankAccounts_bankAccountDetails, UserBankAccounts_bankAccounts_bankAccountDetails_CanadianBankAccountDetails, UserBankAccounts_bankAccounts_bankAccountDetails_USBankAccountDetails, UserBankAccounts_bankAccounts_institution, UserBankAccounts_bankAccounts_paymentAddresses, UserBills, UserBills_bills, UserBills_bills_billAccountDetails, UserBills_bills_dataSync, UserBills_bills_institution, UserBills_bills_paymentAddresses, UserFragment, UserPayableAccounts, UserPayableAccounts_payableAccounts, UserPayableAccounts_payableAccounts_BankAccount, UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails, UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails_CanadianBankAccountDetails, UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails_USBankAccountDetails, UserPayableAccounts_payableAccounts_BankAccount_dataSync, UserPayableAccounts_payableAccounts_BankAccount_institution, UserPayableAccounts_payableAccounts_Bill, UserPayableAccounts_payableAccounts_Bill_billAccountDetails, UserPayableAccounts_payableAccounts_Bill_dataSync, UserPayableAccounts_payableAccounts_Bill_institution, UserPayableAccounts_payableAccounts_DebitCard, UserPayableAccounts_payableAccounts_DebitCard_dataSync, UserPayableAccounts_payableAccounts_DebitCard_institution, UserPayableAccounts_payableAccounts_VirtualCard, UserPayableAccounts_payableAccounts_VirtualCard_billingInfo, UserPayableAccounts_payableAccounts_VirtualCard_billingInfo_address, UserPayableAccounts_payableAccounts_VirtualCard_dataSync, UserPayableAccounts_payableAccounts_VirtualCard_institution, UserVerification, UserVerification_verification, UserVerification_verification_identity, UserVerification_verification_identity_user, UserVirtualDebitCard, UserVirtualDebitCard_virtualDebitCard, UserVirtualDebitCard_virtualDebitCard_billingInfo, UserVirtualDebitCard_virtualDebitCard_billingInfo_address, UserVirtualDebitCard_virtualDebitCard_paymentAddresses, VirtualDebitCardFragment, VirtualDebitCardFragment_billingInfo, VirtualDebitCardFragment_billingInfo_address, VirtualDebitCardFragment_paymentAddresses, WalletTokenBalances, WalletTokenBalancesVariables, WalletTokenBalances_tokenBalances };
|