@spritz-finance/api-client 0.0.11 → 0.0.12
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.
|
@@ -30,16 +30,18 @@ declare enum DirectPaymentStatus {
|
|
|
30
30
|
}
|
|
31
31
|
declare enum ModuleStatus {
|
|
32
32
|
ACTIVE = "ACTIVE",
|
|
33
|
+
DISABLED = "DISABLED",
|
|
33
34
|
FAILED = "FAILED",
|
|
34
35
|
INITIALIZED = "INITIALIZED",
|
|
35
36
|
LOADING = "LOADING",
|
|
37
|
+
RETRY = "RETRY",
|
|
36
38
|
UNAVAILABLE = "UNAVAILABLE",
|
|
37
39
|
UNINITIALIZED = "UNINITIALIZED"
|
|
38
40
|
}
|
|
39
41
|
declare enum PayableAccountType {
|
|
40
42
|
BankAccount = "BankAccount",
|
|
41
43
|
Bill = "Bill",
|
|
42
|
-
|
|
44
|
+
VirtualCard = "VirtualCard"
|
|
43
45
|
}
|
|
44
46
|
declare enum PaymentStatus {
|
|
45
47
|
CANCELLED = "CANCELLED",
|
|
@@ -53,6 +55,9 @@ declare enum PaymentStatus {
|
|
|
53
55
|
SCHEDULED = "SCHEDULED",
|
|
54
56
|
SENT = "SENT"
|
|
55
57
|
}
|
|
58
|
+
declare enum VirtualCardType {
|
|
59
|
+
USVirtualDebitCard = "USVirtualDebitCard"
|
|
60
|
+
}
|
|
56
61
|
interface CreateDirectPaymentInput {
|
|
57
62
|
accountId: string;
|
|
58
63
|
amount: number;
|
|
@@ -73,9 +78,47 @@ interface USBankAccountInput {
|
|
|
73
78
|
subType: BankAccountSubType;
|
|
74
79
|
}
|
|
75
80
|
|
|
76
|
-
interface
|
|
77
|
-
__typename: '
|
|
81
|
+
interface CreateUSBankAccount_createUSBankAccount_bankAccountDetails_CanadianBankAccountDetails {
|
|
82
|
+
__typename: 'CanadianBankAccountDetails';
|
|
83
|
+
}
|
|
84
|
+
interface CreateUSBankAccount_createUSBankAccount_bankAccountDetails_USBankAccountDetails {
|
|
85
|
+
__typename: 'USBankAccountDetails';
|
|
86
|
+
routingNumber: string;
|
|
87
|
+
}
|
|
88
|
+
type CreateUSBankAccount_createUSBankAccount_bankAccountDetails = CreateUSBankAccount_createUSBankAccount_bankAccountDetails_CanadianBankAccountDetails | CreateUSBankAccount_createUSBankAccount_bankAccountDetails_USBankAccountDetails;
|
|
89
|
+
interface CreateUSBankAccount_createUSBankAccount_institution {
|
|
90
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
91
|
+
id: string;
|
|
92
|
+
name: string;
|
|
93
|
+
logo: string | null;
|
|
94
|
+
country: string;
|
|
95
|
+
currency: string;
|
|
96
|
+
}
|
|
97
|
+
interface CreateUSBankAccount_createUSBankAccount {
|
|
98
|
+
__typename: 'BankAccount';
|
|
99
|
+
id: string;
|
|
100
|
+
name: string | null;
|
|
101
|
+
userId: string;
|
|
102
|
+
country: string;
|
|
103
|
+
currency: string;
|
|
104
|
+
createdAt: any;
|
|
105
|
+
type: PayableAccountType;
|
|
106
|
+
accountNumber: string;
|
|
107
|
+
bankAccountType: BankAccountType;
|
|
108
|
+
bankAccountSubType: BankAccountSubType;
|
|
109
|
+
holder: string;
|
|
110
|
+
email: string;
|
|
111
|
+
ownedByUser: boolean;
|
|
112
|
+
bankAccountDetails: CreateUSBankAccount_createUSBankAccount_bankAccountDetails;
|
|
113
|
+
institution: CreateUSBankAccount_createUSBankAccount_institution | null;
|
|
78
114
|
}
|
|
115
|
+
interface CreateUSBankAccount {
|
|
116
|
+
createUSBankAccount: CreateUSBankAccount_createUSBankAccount;
|
|
117
|
+
}
|
|
118
|
+
interface CreateUSBankAccountVariables {
|
|
119
|
+
createUSAccountInput: USBankAccountInput;
|
|
120
|
+
}
|
|
121
|
+
|
|
79
122
|
interface DeleteBankAccount_deletePayableAccount_BankAccount_bankAccountDetails_CanadianBankAccountDetails {
|
|
80
123
|
__typename: 'CanadianBankAccountDetails';
|
|
81
124
|
}
|
|
@@ -88,7 +131,7 @@ interface DeleteBankAccount_deletePayableAccount_BankAccount_institution {
|
|
|
88
131
|
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
89
132
|
id: string;
|
|
90
133
|
name: string;
|
|
91
|
-
logo: string;
|
|
134
|
+
logo: string | null;
|
|
92
135
|
country: string;
|
|
93
136
|
currency: string;
|
|
94
137
|
}
|
|
@@ -110,11 +153,7 @@ interface DeleteBankAccount_deletePayableAccount_BankAccount {
|
|
|
110
153
|
bankAccountDetails: DeleteBankAccount_deletePayableAccount_BankAccount_bankAccountDetails;
|
|
111
154
|
institution: DeleteBankAccount_deletePayableAccount_BankAccount_institution | null;
|
|
112
155
|
}
|
|
113
|
-
type DeleteBankAccount_deletePayableAccount = DeleteBankAccount_deletePayableAccount_Bill | DeleteBankAccount_deletePayableAccount_BankAccount;
|
|
114
156
|
|
|
115
|
-
interface RenameBankAccount_renamePayableAccount_Bill {
|
|
116
|
-
__typename: 'Bill';
|
|
117
|
-
}
|
|
118
157
|
interface RenameBankAccount_renamePayableAccount_BankAccount_bankAccountDetails_CanadianBankAccountDetails {
|
|
119
158
|
__typename: 'CanadianBankAccountDetails';
|
|
120
159
|
}
|
|
@@ -127,7 +166,7 @@ interface RenameBankAccount_renamePayableAccount_BankAccount_institution {
|
|
|
127
166
|
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
128
167
|
id: string;
|
|
129
168
|
name: string;
|
|
130
|
-
logo: string;
|
|
169
|
+
logo: string | null;
|
|
131
170
|
country: string;
|
|
132
171
|
currency: string;
|
|
133
172
|
}
|
|
@@ -149,7 +188,6 @@ interface RenameBankAccount_renamePayableAccount_BankAccount {
|
|
|
149
188
|
bankAccountDetails: RenameBankAccount_renamePayableAccount_BankAccount_bankAccountDetails;
|
|
150
189
|
institution: RenameBankAccount_renamePayableAccount_BankAccount_institution | null;
|
|
151
190
|
}
|
|
152
|
-
type RenameBankAccount_renamePayableAccount = RenameBankAccount_renamePayableAccount_Bill | RenameBankAccount_renamePayableAccount_BankAccount;
|
|
153
191
|
|
|
154
192
|
interface AccountPayments_paymentsForAccount {
|
|
155
193
|
__typename: 'Payment';
|
|
@@ -180,7 +218,7 @@ interface BankAccountFragment_institution {
|
|
|
180
218
|
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
181
219
|
id: string;
|
|
182
220
|
name: string;
|
|
183
|
-
logo: string;
|
|
221
|
+
logo: string | null;
|
|
184
222
|
country: string;
|
|
185
223
|
currency: string;
|
|
186
224
|
}
|
|
@@ -242,7 +280,7 @@ interface PayableAccountFragment_Bill_institution {
|
|
|
242
280
|
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
243
281
|
id: string;
|
|
244
282
|
name: string;
|
|
245
|
-
logo: string;
|
|
283
|
+
logo: string | null;
|
|
246
284
|
country: string;
|
|
247
285
|
currency: string;
|
|
248
286
|
}
|
|
@@ -269,7 +307,7 @@ interface PayableAccountFragment_BankAccount_institution {
|
|
|
269
307
|
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
270
308
|
id: string;
|
|
271
309
|
name: string;
|
|
272
|
-
logo: string;
|
|
310
|
+
logo: string | null;
|
|
273
311
|
country: string;
|
|
274
312
|
currency: string;
|
|
275
313
|
}
|
|
@@ -291,7 +329,47 @@ interface PayableAccountFragment_BankAccount {
|
|
|
291
329
|
bankAccountDetails: PayableAccountFragment_BankAccount_bankAccountDetails;
|
|
292
330
|
institution: PayableAccountFragment_BankAccount_institution | null;
|
|
293
331
|
}
|
|
294
|
-
|
|
332
|
+
interface PayableAccountFragment_VirtualCard_billingInfo_address {
|
|
333
|
+
__typename: 'CardHolderAddress';
|
|
334
|
+
street: string | null;
|
|
335
|
+
street2: string | null;
|
|
336
|
+
city: string | null;
|
|
337
|
+
subdivision: string | null;
|
|
338
|
+
postalCode: string | null;
|
|
339
|
+
countryCode: string | null;
|
|
340
|
+
}
|
|
341
|
+
interface PayableAccountFragment_VirtualCard_billingInfo {
|
|
342
|
+
__typename: 'BillingInfo';
|
|
343
|
+
holder: string;
|
|
344
|
+
phone: string;
|
|
345
|
+
email: string;
|
|
346
|
+
address: PayableAccountFragment_VirtualCard_billingInfo_address | null;
|
|
347
|
+
}
|
|
348
|
+
interface PayableAccountFragment_VirtualCard_institution {
|
|
349
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
350
|
+
id: string;
|
|
351
|
+
name: string;
|
|
352
|
+
logo: string | null;
|
|
353
|
+
country: string;
|
|
354
|
+
currency: string;
|
|
355
|
+
}
|
|
356
|
+
interface PayableAccountFragment_VirtualCard {
|
|
357
|
+
__typename: 'VirtualCard';
|
|
358
|
+
id: string;
|
|
359
|
+
name: string | null;
|
|
360
|
+
userId: string;
|
|
361
|
+
country: string;
|
|
362
|
+
currency: string;
|
|
363
|
+
createdAt: any;
|
|
364
|
+
type: PayableAccountType;
|
|
365
|
+
mask: string | null;
|
|
366
|
+
balance: number;
|
|
367
|
+
renderSecret: string | null;
|
|
368
|
+
virtualCardType: VirtualCardType;
|
|
369
|
+
billingInfo: PayableAccountFragment_VirtualCard_billingInfo | null;
|
|
370
|
+
institution: PayableAccountFragment_VirtualCard_institution | null;
|
|
371
|
+
}
|
|
372
|
+
type PayableAccountFragment = PayableAccountFragment_Bill | PayableAccountFragment_BankAccount | PayableAccountFragment_VirtualCard;
|
|
295
373
|
|
|
296
374
|
interface PaymentFragment {
|
|
297
375
|
__typename: 'Payment';
|
|
@@ -364,23 +442,23 @@ interface TransactionPriceVariables {
|
|
|
364
442
|
amount: number;
|
|
365
443
|
}
|
|
366
444
|
|
|
367
|
-
interface
|
|
445
|
+
interface UserBankAccounts_bankAccounts_bankAccountDetails_CanadianBankAccountDetails {
|
|
368
446
|
__typename: 'CanadianBankAccountDetails';
|
|
369
447
|
}
|
|
370
|
-
interface
|
|
448
|
+
interface UserBankAccounts_bankAccounts_bankAccountDetails_USBankAccountDetails {
|
|
371
449
|
__typename: 'USBankAccountDetails';
|
|
372
450
|
routingNumber: string;
|
|
373
451
|
}
|
|
374
|
-
type
|
|
375
|
-
interface
|
|
452
|
+
type UserBankAccounts_bankAccounts_bankAccountDetails = UserBankAccounts_bankAccounts_bankAccountDetails_CanadianBankAccountDetails | UserBankAccounts_bankAccounts_bankAccountDetails_USBankAccountDetails;
|
|
453
|
+
interface UserBankAccounts_bankAccounts_institution {
|
|
376
454
|
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
377
455
|
id: string;
|
|
378
456
|
name: string;
|
|
379
|
-
logo: string;
|
|
457
|
+
logo: string | null;
|
|
380
458
|
country: string;
|
|
381
459
|
currency: string;
|
|
382
460
|
}
|
|
383
|
-
interface
|
|
461
|
+
interface UserBankAccounts_bankAccounts {
|
|
384
462
|
__typename: 'BankAccount';
|
|
385
463
|
id: string;
|
|
386
464
|
name: string | null;
|
|
@@ -395,11 +473,11 @@ interface UserBankAccounts_userBankAccounts {
|
|
|
395
473
|
holder: string;
|
|
396
474
|
email: string;
|
|
397
475
|
ownedByUser: boolean;
|
|
398
|
-
bankAccountDetails:
|
|
399
|
-
institution:
|
|
476
|
+
bankAccountDetails: UserBankAccounts_bankAccounts_bankAccountDetails;
|
|
477
|
+
institution: UserBankAccounts_bankAccounts_institution | null;
|
|
400
478
|
}
|
|
401
479
|
interface UserBankAccounts {
|
|
402
|
-
|
|
480
|
+
bankAccounts: UserBankAccounts_bankAccounts[];
|
|
403
481
|
}
|
|
404
482
|
|
|
405
483
|
interface UserFragment {
|
|
@@ -419,7 +497,7 @@ interface UserPayableAccounts_payableAccounts_Bill_institution {
|
|
|
419
497
|
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
420
498
|
id: string;
|
|
421
499
|
name: string;
|
|
422
|
-
logo: string;
|
|
500
|
+
logo: string | null;
|
|
423
501
|
country: string;
|
|
424
502
|
currency: string;
|
|
425
503
|
}
|
|
@@ -438,7 +516,7 @@ interface UserPayableAccounts_payableAccounts_BankAccount_institution {
|
|
|
438
516
|
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
439
517
|
id: string;
|
|
440
518
|
name: string;
|
|
441
|
-
logo: string;
|
|
519
|
+
logo: string | null;
|
|
442
520
|
country: string;
|
|
443
521
|
currency: string;
|
|
444
522
|
}
|
|
@@ -468,24 +546,64 @@ interface UserPayableAccounts_payableAccounts_BankAccount {
|
|
|
468
546
|
ownedByUser: boolean;
|
|
469
547
|
bankAccountDetails: UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails;
|
|
470
548
|
}
|
|
471
|
-
|
|
549
|
+
interface UserPayableAccounts_payableAccounts_VirtualCard_institution {
|
|
550
|
+
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
551
|
+
id: string;
|
|
552
|
+
name: string;
|
|
553
|
+
logo: string | null;
|
|
554
|
+
country: string;
|
|
555
|
+
currency: string;
|
|
556
|
+
}
|
|
557
|
+
interface UserPayableAccounts_payableAccounts_VirtualCard_billingInfo_address {
|
|
558
|
+
__typename: 'CardHolderAddress';
|
|
559
|
+
street: string | null;
|
|
560
|
+
street2: string | null;
|
|
561
|
+
city: string | null;
|
|
562
|
+
subdivision: string | null;
|
|
563
|
+
postalCode: string | null;
|
|
564
|
+
countryCode: string | null;
|
|
565
|
+
}
|
|
566
|
+
interface UserPayableAccounts_payableAccounts_VirtualCard_billingInfo {
|
|
567
|
+
__typename: 'BillingInfo';
|
|
568
|
+
holder: string;
|
|
569
|
+
phone: string;
|
|
570
|
+
email: string;
|
|
571
|
+
address: UserPayableAccounts_payableAccounts_VirtualCard_billingInfo_address | null;
|
|
572
|
+
}
|
|
573
|
+
interface UserPayableAccounts_payableAccounts_VirtualCard {
|
|
574
|
+
__typename: 'VirtualCard';
|
|
575
|
+
id: string;
|
|
576
|
+
name: string | null;
|
|
577
|
+
userId: string;
|
|
578
|
+
country: string;
|
|
579
|
+
currency: string;
|
|
580
|
+
createdAt: any;
|
|
581
|
+
type: PayableAccountType;
|
|
582
|
+
institution: UserPayableAccounts_payableAccounts_VirtualCard_institution | null;
|
|
583
|
+
mask: string | null;
|
|
584
|
+
balance: number;
|
|
585
|
+
renderSecret: string | null;
|
|
586
|
+
virtualCardType: VirtualCardType;
|
|
587
|
+
billingInfo: UserPayableAccounts_payableAccounts_VirtualCard_billingInfo | null;
|
|
588
|
+
}
|
|
589
|
+
type UserPayableAccounts_payableAccounts = UserPayableAccounts_payableAccounts_Bill | UserPayableAccounts_payableAccounts_BankAccount | UserPayableAccounts_payableAccounts_VirtualCard;
|
|
472
590
|
interface UserPayableAccounts {
|
|
473
591
|
payableAccounts: UserPayableAccounts_payableAccounts[];
|
|
474
592
|
}
|
|
475
593
|
|
|
476
594
|
interface UserVerification_verification_identity_user {
|
|
477
595
|
__typename: 'UserIdentity';
|
|
478
|
-
firstName: string;
|
|
479
|
-
lastName: string;
|
|
480
|
-
email: string;
|
|
481
|
-
completedAt: string;
|
|
596
|
+
firstName: string | null;
|
|
597
|
+
lastName: string | null;
|
|
598
|
+
email: string | null;
|
|
599
|
+
completedAt: string | null;
|
|
482
600
|
}
|
|
483
601
|
interface UserVerification_verification_identity {
|
|
484
602
|
__typename: 'IdentityModule';
|
|
485
603
|
status: ModuleStatus;
|
|
486
|
-
country: string;
|
|
604
|
+
country: string | null;
|
|
487
605
|
verificationUrl: string | null;
|
|
488
|
-
user: UserVerification_verification_identity_user;
|
|
606
|
+
user: UserVerification_verification_identity_user | null;
|
|
489
607
|
}
|
|
490
608
|
interface UserVerification_verification {
|
|
491
609
|
__typename: 'Verification';
|
|
@@ -493,7 +611,74 @@ interface UserVerification_verification {
|
|
|
493
611
|
identity: UserVerification_verification_identity;
|
|
494
612
|
}
|
|
495
613
|
interface UserVerification {
|
|
496
|
-
verification: UserVerification_verification;
|
|
614
|
+
verification: UserVerification_verification | null;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
interface UserVirtualDebitCard_virtualDebitCard_billingInfo_address {
|
|
618
|
+
__typename: 'CardHolderAddress';
|
|
619
|
+
street: string | null;
|
|
620
|
+
street2: string | null;
|
|
621
|
+
city: string | null;
|
|
622
|
+
subdivision: string | null;
|
|
623
|
+
postalCode: string | null;
|
|
624
|
+
countryCode: string | null;
|
|
625
|
+
}
|
|
626
|
+
interface UserVirtualDebitCard_virtualDebitCard_billingInfo {
|
|
627
|
+
__typename: 'BillingInfo';
|
|
628
|
+
holder: string;
|
|
629
|
+
phone: string;
|
|
630
|
+
email: string;
|
|
631
|
+
address: UserVirtualDebitCard_virtualDebitCard_billingInfo_address | null;
|
|
632
|
+
}
|
|
633
|
+
interface UserVirtualDebitCard_virtualDebitCard {
|
|
634
|
+
__typename: 'VirtualCard';
|
|
635
|
+
id: string;
|
|
636
|
+
name: string | null;
|
|
637
|
+
userId: string;
|
|
638
|
+
country: string;
|
|
639
|
+
currency: string;
|
|
640
|
+
createdAt: any;
|
|
641
|
+
type: PayableAccountType;
|
|
642
|
+
mask: string | null;
|
|
643
|
+
balance: number;
|
|
644
|
+
renderSecret: string | null;
|
|
645
|
+
virtualCardType: VirtualCardType;
|
|
646
|
+
billingInfo: UserVirtualDebitCard_virtualDebitCard_billingInfo | null;
|
|
647
|
+
}
|
|
648
|
+
interface UserVirtualDebitCard {
|
|
649
|
+
virtualDebitCard: UserVirtualDebitCard_virtualDebitCard | null;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
interface VirtualDebitCardFragment_billingInfo_address {
|
|
653
|
+
__typename: 'CardHolderAddress';
|
|
654
|
+
street: string | null;
|
|
655
|
+
street2: string | null;
|
|
656
|
+
city: string | null;
|
|
657
|
+
subdivision: string | null;
|
|
658
|
+
postalCode: string | null;
|
|
659
|
+
countryCode: string | null;
|
|
660
|
+
}
|
|
661
|
+
interface VirtualDebitCardFragment_billingInfo {
|
|
662
|
+
__typename: 'BillingInfo';
|
|
663
|
+
holder: string;
|
|
664
|
+
phone: string;
|
|
665
|
+
email: string;
|
|
666
|
+
address: VirtualDebitCardFragment_billingInfo_address | null;
|
|
667
|
+
}
|
|
668
|
+
interface VirtualDebitCardFragment {
|
|
669
|
+
__typename: 'VirtualCard';
|
|
670
|
+
id: string;
|
|
671
|
+
name: string | null;
|
|
672
|
+
userId: string;
|
|
673
|
+
country: string;
|
|
674
|
+
currency: string;
|
|
675
|
+
createdAt: any;
|
|
676
|
+
type: PayableAccountType;
|
|
677
|
+
mask: string | null;
|
|
678
|
+
balance: number;
|
|
679
|
+
renderSecret: string | null;
|
|
680
|
+
virtualCardType: VirtualCardType;
|
|
681
|
+
billingInfo: VirtualDebitCardFragment_billingInfo | null;
|
|
497
682
|
}
|
|
498
683
|
|
|
499
684
|
interface WalletTokenBalances_tokenBalances {
|
|
@@ -526,47 +711,6 @@ interface WalletTokenBalancesVariables {
|
|
|
526
711
|
network?: string | null;
|
|
527
712
|
}
|
|
528
713
|
|
|
529
|
-
interface CreateUSBankAccount_createUSBankAccount_bankAccountDetails_CanadianBankAccountDetails {
|
|
530
|
-
__typename: 'CanadianBankAccountDetails';
|
|
531
|
-
}
|
|
532
|
-
interface CreateUSBankAccount_createUSBankAccount_bankAccountDetails_USBankAccountDetails {
|
|
533
|
-
__typename: 'USBankAccountDetails';
|
|
534
|
-
routingNumber: string;
|
|
535
|
-
}
|
|
536
|
-
type CreateUSBankAccount_createUSBankAccount_bankAccountDetails = CreateUSBankAccount_createUSBankAccount_bankAccountDetails_CanadianBankAccountDetails | CreateUSBankAccount_createUSBankAccount_bankAccountDetails_USBankAccountDetails;
|
|
537
|
-
interface CreateUSBankAccount_createUSBankAccount_institution {
|
|
538
|
-
__typename: 'BankAccountInstitution' | 'BillInstitution';
|
|
539
|
-
id: string;
|
|
540
|
-
name: string;
|
|
541
|
-
logo: string;
|
|
542
|
-
country: string;
|
|
543
|
-
currency: string;
|
|
544
|
-
}
|
|
545
|
-
interface CreateUSBankAccount_createUSBankAccount {
|
|
546
|
-
__typename: 'BankAccount';
|
|
547
|
-
id: string;
|
|
548
|
-
name: string | null;
|
|
549
|
-
userId: string;
|
|
550
|
-
country: string;
|
|
551
|
-
currency: string;
|
|
552
|
-
createdAt: any;
|
|
553
|
-
type: PayableAccountType;
|
|
554
|
-
accountNumber: string;
|
|
555
|
-
bankAccountType: BankAccountType;
|
|
556
|
-
bankAccountSubType: BankAccountSubType;
|
|
557
|
-
holder: string;
|
|
558
|
-
email: string;
|
|
559
|
-
ownedByUser: boolean;
|
|
560
|
-
bankAccountDetails: CreateUSBankAccount_createUSBankAccount_bankAccountDetails;
|
|
561
|
-
institution: CreateUSBankAccount_createUSBankAccount_institution | null;
|
|
562
|
-
}
|
|
563
|
-
interface CreateUSBankAccount {
|
|
564
|
-
createUSBankAccount: CreateUSBankAccount_createUSBankAccount;
|
|
565
|
-
}
|
|
566
|
-
interface CreateUSBankAccountVariables {
|
|
567
|
-
createUSAccountInput: USBankAccountInput;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
714
|
interface QueryParams<V = any> {
|
|
571
715
|
query: DocumentNode;
|
|
572
716
|
variables?: V;
|
|
@@ -591,9 +735,9 @@ type CreateMutationMapping = {
|
|
|
591
735
|
declare class BankAccountService {
|
|
592
736
|
private client;
|
|
593
737
|
constructor(client: GraphClient);
|
|
594
|
-
list(): Promise<
|
|
595
|
-
rename(accountId: string, name: string): Promise<
|
|
596
|
-
delete(accountId: string): Promise<
|
|
738
|
+
list(): Promise<UserBankAccounts_bankAccounts[]>;
|
|
739
|
+
rename(accountId: string, name: string): Promise<RenameBankAccount_renamePayableAccount_BankAccount>;
|
|
740
|
+
delete(accountId: string): Promise<DeleteBankAccount_deletePayableAccount_BankAccount>;
|
|
597
741
|
create<T extends BankAccountType>(type: T, input: CreateInputMapping[T]): Promise<NonNullable<CreateMutationMapping[T]["query"][keyof CreateMutationMapping[T]["query"]]> | null>;
|
|
598
742
|
}
|
|
599
743
|
|
|
@@ -660,8 +804,9 @@ declare class UserService {
|
|
|
660
804
|
private client;
|
|
661
805
|
constructor(client: GraphClient);
|
|
662
806
|
createUser(args: CreateUserArgs): Promise<CreateUserResponse>;
|
|
807
|
+
create(args: CreateUserArgs): Promise<CreateUserResponse>;
|
|
663
808
|
getCurrentUser(): Promise<CurrentUser_me>;
|
|
664
|
-
getUserVerification(): Promise<UserVerification_verification>;
|
|
809
|
+
getUserVerification(): Promise<UserVerification_verification | null>;
|
|
665
810
|
}
|
|
666
811
|
|
|
667
812
|
type ClientParams = {
|
|
@@ -684,4 +829,4 @@ declare class SpritzApiClient {
|
|
|
684
829
|
setApiKey(_apiKey: string): this;
|
|
685
830
|
}
|
|
686
831
|
|
|
687
|
-
export { AccountPayments, AccountPaymentsVariables, AccountPayments_paymentsForAccount, AccountProvider, BankAccountFragment, BankAccountFragment_bankAccountDetails, BankAccountFragment_bankAccountDetails_CanadianBankAccountDetails, BankAccountFragment_bankAccountDetails_USBankAccountDetails, BankAccountFragment_institution, BankAccountSubType, BankAccountType, CreateDirectPaymentInput, CreatePaymentRequestInput, CurrentUser, CurrentUser_me, DirectPaymentStatus, Environment, GetSpritzPayParams, GetSpritzPayParamsVariables, GetSpritzPayParams_spritzPayParams, ModuleStatus, PayableAccountFragment, PayableAccountFragment_BankAccount, PayableAccountFragment_BankAccount_bankAccountDetails, PayableAccountFragment_BankAccount_bankAccountDetails_CanadianBankAccountDetails, PayableAccountFragment_BankAccount_bankAccountDetails_USBankAccountDetails, PayableAccountFragment_BankAccount_institution, PayableAccountFragment_Bill, PayableAccountFragment_Bill_institution, PayableAccountType, PaymentFragment, PaymentNetwork, PaymentRequestFragment, PaymentRequestPayment, PaymentRequestPaymentVariables, PaymentRequestPayment_paymentForPaymentRequest, PaymentStatus, SpritzApiClient, TokenBalanceFragment, TransactionPrice, TransactionPriceVariables, USBankAccountInput, UserBankAccounts,
|
|
832
|
+
export { AccountPayments, AccountPaymentsVariables, AccountPayments_paymentsForAccount, AccountProvider, BankAccountFragment, BankAccountFragment_bankAccountDetails, BankAccountFragment_bankAccountDetails_CanadianBankAccountDetails, BankAccountFragment_bankAccountDetails_USBankAccountDetails, BankAccountFragment_institution, BankAccountSubType, BankAccountType, CreateDirectPaymentInput, CreatePaymentRequestInput, CurrentUser, CurrentUser_me, DirectPaymentStatus, Environment, GetSpritzPayParams, GetSpritzPayParamsVariables, GetSpritzPayParams_spritzPayParams, ModuleStatus, PayableAccountFragment, PayableAccountFragment_BankAccount, PayableAccountFragment_BankAccount_bankAccountDetails, PayableAccountFragment_BankAccount_bankAccountDetails_CanadianBankAccountDetails, PayableAccountFragment_BankAccount_bankAccountDetails_USBankAccountDetails, PayableAccountFragment_BankAccount_institution, PayableAccountFragment_Bill, PayableAccountFragment_Bill_institution, PayableAccountFragment_VirtualCard, PayableAccountFragment_VirtualCard_billingInfo, PayableAccountFragment_VirtualCard_billingInfo_address, PayableAccountFragment_VirtualCard_institution, PayableAccountType, PaymentFragment, PaymentNetwork, PaymentRequestFragment, PaymentRequestPayment, PaymentRequestPaymentVariables, PaymentRequestPayment_paymentForPaymentRequest, PaymentStatus, SpritzApiClient, TokenBalanceFragment, TransactionPrice, TransactionPriceVariables, USBankAccountInput, UserBankAccounts, UserBankAccounts_bankAccounts, UserBankAccounts_bankAccounts_bankAccountDetails, UserBankAccounts_bankAccounts_bankAccountDetails_CanadianBankAccountDetails, UserBankAccounts_bankAccounts_bankAccountDetails_USBankAccountDetails, UserBankAccounts_bankAccounts_institution, UserFragment, UserPayableAccounts, UserPayableAccounts_payableAccounts, UserPayableAccounts_payableAccounts_BankAccount, UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails, UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails_CanadianBankAccountDetails, UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails_USBankAccountDetails, UserPayableAccounts_payableAccounts_BankAccount_institution, UserPayableAccounts_payableAccounts_Bill, UserPayableAccounts_payableAccounts_Bill_institution, UserPayableAccounts_payableAccounts_VirtualCard, UserPayableAccounts_payableAccounts_VirtualCard_billingInfo, UserPayableAccounts_payableAccounts_VirtualCard_billingInfo_address, UserPayableAccounts_payableAccounts_VirtualCard_institution, UserVerification, UserVerification_verification, UserVerification_verification_identity, UserVerification_verification_identity_user, UserVirtualDebitCard, UserVirtualDebitCard_virtualDebitCard, UserVirtualDebitCard_virtualDebitCard_billingInfo, UserVirtualDebitCard_virtualDebitCard_billingInfo_address, VirtualCardType, VirtualDebitCardFragment, VirtualDebitCardFragment_billingInfo, VirtualDebitCardFragment_billingInfo_address, WalletTokenBalances, WalletTokenBalancesVariables, WalletTokenBalances_tokenBalances };
|