@spritz-finance/api-client 0.1.2 → 0.1.3

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.
@@ -10,6 +10,12 @@ declare enum AccountProvider {
10
10
  CHECKBOOK = "CHECKBOOK",
11
11
  METHOD_FI = "METHOD_FI"
12
12
  }
13
+ declare enum AccountSyncStatus {
14
+ Active = "Active",
15
+ Error = "Error",
16
+ Syncing = "Syncing",
17
+ Unavailable = "Unavailable"
18
+ }
13
19
  declare enum BankAccountSubType {
14
20
  Business = "Business",
15
21
  Checking = "Checking",
@@ -18,6 +24,16 @@ declare enum BankAccountSubType {
18
24
  declare enum BankAccountType {
19
25
  USBankAccount = "USBankAccount"
20
26
  }
27
+ declare enum BillType {
28
+ AutoLoan = "AutoLoan",
29
+ CreditCard = "CreditCard",
30
+ Loan = "Loan",
31
+ MobilePhone = "MobilePhone",
32
+ Mortgage = "Mortgage",
33
+ StudentLoan = "StudentLoan",
34
+ Unknown = "Unknown",
35
+ Utility = "Utility"
36
+ }
21
37
  declare enum DirectPaymentStatus {
22
38
  COMPLETED = "COMPLETED",
23
39
  CONFIRMED = "CONFIRMED",
@@ -38,6 +54,10 @@ declare enum ModuleStatus {
38
54
  UNAVAILABLE = "UNAVAILABLE",
39
55
  UNINITIALIZED = "UNINITIALIZED"
40
56
  }
57
+ declare enum PayableAccountOriginator {
58
+ Provider = "Provider",
59
+ User = "User"
60
+ }
41
61
  declare enum PayableAccountType {
42
62
  BankAccount = "BankAccount",
43
63
  Bill = "Bill",
@@ -130,6 +150,46 @@ interface BankAccountFragment {
130
150
  institution: BankAccountFragment_institution | null;
131
151
  }
132
152
 
153
+ interface BillFragment_billAccountDetails {
154
+ __typename: 'BillAccountDetails';
155
+ balance: number | null;
156
+ amountDue: number | null;
157
+ openedAt: any | null;
158
+ lastPaymentAmount: number | null;
159
+ lastPaymentDate: any | null;
160
+ nextPaymentDueDate: any | null;
161
+ nextPaymentMinimumAmount: number | null;
162
+ lastStatementBalance: number | null;
163
+ remainingStatementBalance: number | null;
164
+ }
165
+ interface BillFragment_dataSync {
166
+ __typename: 'AccountDataSync';
167
+ lastSync: any | null;
168
+ syncStatus: AccountSyncStatus | null;
169
+ }
170
+ interface BillFragment_institution {
171
+ __typename: 'BankAccountInstitution' | 'BillInstitution';
172
+ id: string;
173
+ name: string;
174
+ logo: string | null;
175
+ }
176
+ interface BillFragment {
177
+ __typename: 'Bill';
178
+ id: string;
179
+ name: string | null;
180
+ userId: string;
181
+ country: string;
182
+ currency: string;
183
+ originator: PayableAccountOriginator;
184
+ payable: boolean;
185
+ verifying: boolean;
186
+ billType: BillType;
187
+ createdAt: any;
188
+ billAccountDetails: BillFragment_billAccountDetails | null;
189
+ dataSync: BillFragment_dataSync | null;
190
+ institution: BillFragment_institution | null;
191
+ }
192
+
133
193
  interface CurrentUser_me {
134
194
  __typename: 'User';
135
195
  id: string;
@@ -165,25 +225,6 @@ interface GetSpritzPayParamsVariables {
165
225
  network: string;
166
226
  }
167
227
 
168
- interface PayableAccountFragment_Bill_institution {
169
- __typename: 'BankAccountInstitution' | 'BillInstitution';
170
- id: string;
171
- name: string;
172
- logo: string | null;
173
- country: string;
174
- currency: string;
175
- }
176
- interface PayableAccountFragment_Bill {
177
- __typename: 'Bill';
178
- id: string;
179
- name: string | null;
180
- userId: string;
181
- country: string;
182
- currency: string;
183
- createdAt: any;
184
- type: PayableAccountType;
185
- institution: PayableAccountFragment_Bill_institution | null;
186
- }
187
228
  interface PayableAccountFragment_BankAccount_bankAccountDetails_CanadianBankAccountDetails {
188
229
  __typename: 'CanadianBankAccountDetails';
189
230
  }
@@ -192,13 +233,16 @@ interface PayableAccountFragment_BankAccount_bankAccountDetails_USBankAccountDet
192
233
  routingNumber: string;
193
234
  }
194
235
  type PayableAccountFragment_BankAccount_bankAccountDetails = PayableAccountFragment_BankAccount_bankAccountDetails_CanadianBankAccountDetails | PayableAccountFragment_BankAccount_bankAccountDetails_USBankAccountDetails;
236
+ interface PayableAccountFragment_BankAccount_dataSync {
237
+ __typename: 'AccountDataSync';
238
+ lastSync: any | null;
239
+ syncStatus: AccountSyncStatus | null;
240
+ }
195
241
  interface PayableAccountFragment_BankAccount_institution {
196
242
  __typename: 'BankAccountInstitution' | 'BillInstitution';
197
243
  id: string;
198
244
  name: string;
199
245
  logo: string | null;
200
- country: string;
201
- currency: string;
202
246
  }
203
247
  interface PayableAccountFragment_BankAccount {
204
248
  __typename: 'BankAccount';
@@ -207,8 +251,10 @@ interface PayableAccountFragment_BankAccount {
207
251
  userId: string;
208
252
  country: string;
209
253
  currency: string;
210
- createdAt: any;
254
+ payable: boolean;
255
+ originator: PayableAccountOriginator;
211
256
  type: PayableAccountType;
257
+ createdAt: any;
212
258
  accountNumber: string;
213
259
  bankAccountType: BankAccountType;
214
260
  bankAccountSubType: BankAccountSubType;
@@ -216,6 +262,7 @@ interface PayableAccountFragment_BankAccount {
216
262
  email: string;
217
263
  ownedByUser: boolean;
218
264
  bankAccountDetails: PayableAccountFragment_BankAccount_bankAccountDetails;
265
+ dataSync: PayableAccountFragment_BankAccount_dataSync | null;
219
266
  institution: PayableAccountFragment_BankAccount_institution | null;
220
267
  }
221
268
  interface PayableAccountFragment_VirtualCard_billingInfo_address {
@@ -234,13 +281,16 @@ interface PayableAccountFragment_VirtualCard_billingInfo {
234
281
  email: string;
235
282
  address: PayableAccountFragment_VirtualCard_billingInfo_address | null;
236
283
  }
284
+ interface PayableAccountFragment_VirtualCard_dataSync {
285
+ __typename: 'AccountDataSync';
286
+ lastSync: any | null;
287
+ syncStatus: AccountSyncStatus | null;
288
+ }
237
289
  interface PayableAccountFragment_VirtualCard_institution {
238
290
  __typename: 'BankAccountInstitution' | 'BillInstitution';
239
291
  id: string;
240
292
  name: string;
241
293
  logo: string | null;
242
- country: string;
243
- currency: string;
244
294
  }
245
295
  interface PayableAccountFragment_VirtualCard {
246
296
  __typename: 'VirtualCard';
@@ -249,16 +299,69 @@ interface PayableAccountFragment_VirtualCard {
249
299
  userId: string;
250
300
  country: string;
251
301
  currency: string;
252
- createdAt: any;
302
+ payable: boolean;
303
+ originator: PayableAccountOriginator;
253
304
  type: PayableAccountType;
305
+ createdAt: any;
254
306
  mask: string | null;
255
307
  balance: number;
256
308
  renderSecret: string | null;
257
309
  virtualCardType: VirtualCardType;
258
310
  billingInfo: PayableAccountFragment_VirtualCard_billingInfo | null;
311
+ dataSync: PayableAccountFragment_VirtualCard_dataSync | null;
259
312
  institution: PayableAccountFragment_VirtualCard_institution | null;
260
313
  }
261
- type PayableAccountFragment = PayableAccountFragment_Bill | PayableAccountFragment_BankAccount | PayableAccountFragment_VirtualCard;
314
+ interface PayableAccountFragment_Bill_billAccountDetails {
315
+ __typename: 'BillAccountDetails';
316
+ balance: number | null;
317
+ amountDue: number | null;
318
+ openedAt: any | null;
319
+ lastPaymentAmount: number | null;
320
+ lastPaymentDate: any | null;
321
+ nextPaymentDueDate: any | null;
322
+ nextPaymentMinimumAmount: number | null;
323
+ lastStatementBalance: number | null;
324
+ remainingStatementBalance: number | null;
325
+ }
326
+ interface PayableAccountFragment_Bill_dataSync {
327
+ __typename: 'AccountDataSync';
328
+ lastSync: any | null;
329
+ syncStatus: AccountSyncStatus | null;
330
+ }
331
+ interface PayableAccountFragment_Bill_institution {
332
+ __typename: 'BankAccountInstitution' | 'BillInstitution';
333
+ id: string;
334
+ name: string;
335
+ logo: string | null;
336
+ }
337
+ interface PayableAccountFragment_Bill {
338
+ __typename: 'Bill';
339
+ id: string;
340
+ name: string | null;
341
+ userId: string;
342
+ country: string;
343
+ currency: string;
344
+ payable: boolean;
345
+ originator: PayableAccountOriginator;
346
+ type: PayableAccountType;
347
+ createdAt: any;
348
+ billType: BillType;
349
+ verifying: boolean;
350
+ billAccountDetails: PayableAccountFragment_Bill_billAccountDetails | null;
351
+ dataSync: PayableAccountFragment_Bill_dataSync | null;
352
+ institution: PayableAccountFragment_Bill_institution | null;
353
+ }
354
+ type PayableAccountFragment = PayableAccountFragment_BankAccount | PayableAccountFragment_VirtualCard | PayableAccountFragment_Bill;
355
+
356
+ interface PayableAccountInstitutionFragment {
357
+ __typename: 'BankAccountInstitution' | 'BillInstitution';
358
+ id: string;
359
+ country: string;
360
+ currency: string;
361
+ createdAt: any;
362
+ name: string;
363
+ logo: string | null;
364
+ }
262
365
 
263
366
  interface PaymentFragment {
264
367
  __typename: 'Payment';
@@ -301,6 +404,39 @@ interface PaymentRequestPaymentVariables {
301
404
  paymentRequestId: string;
302
405
  }
303
406
 
407
+ interface PopularBillInstitutions_popularUSBillInstitutions {
408
+ __typename: 'BankAccountInstitution' | 'BillInstitution';
409
+ id: string;
410
+ country: string;
411
+ currency: string;
412
+ createdAt: any;
413
+ name: string;
414
+ logo: string | null;
415
+ }
416
+ interface PopularBillInstitutions {
417
+ popularUSBillInstitutions: PopularBillInstitutions_popularUSBillInstitutions[];
418
+ }
419
+ interface PopularBillInstitutionsVariables {
420
+ billType?: BillType | null;
421
+ }
422
+
423
+ interface SearchUSBillInstitutions_searchUSBillInstitutions {
424
+ __typename: 'BillInstitution';
425
+ id: string;
426
+ country: string;
427
+ currency: string;
428
+ createdAt: any;
429
+ name: string;
430
+ logo: string | null;
431
+ }
432
+ interface SearchUSBillInstitutions {
433
+ searchUSBillInstitutions: SearchUSBillInstitutions_searchUSBillInstitutions[];
434
+ }
435
+ interface SearchUSBillInstitutionsVariables {
436
+ searchTerm: string;
437
+ billType?: BillType | null;
438
+ }
439
+
304
440
  interface TokenBalanceFragment {
305
441
  __typename: 'TokenBalance';
306
442
  /**
@@ -369,6 +505,49 @@ interface UserBankAccounts {
369
505
  bankAccounts: UserBankAccounts_bankAccounts[];
370
506
  }
371
507
 
508
+ interface UserBills_bills_billAccountDetails {
509
+ __typename: 'BillAccountDetails';
510
+ balance: number | null;
511
+ amountDue: number | null;
512
+ openedAt: any | null;
513
+ lastPaymentAmount: number | null;
514
+ lastPaymentDate: any | null;
515
+ nextPaymentDueDate: any | null;
516
+ nextPaymentMinimumAmount: number | null;
517
+ lastStatementBalance: number | null;
518
+ remainingStatementBalance: number | null;
519
+ }
520
+ interface UserBills_bills_dataSync {
521
+ __typename: 'AccountDataSync';
522
+ lastSync: any | null;
523
+ syncStatus: AccountSyncStatus | null;
524
+ }
525
+ interface UserBills_bills_institution {
526
+ __typename: 'BankAccountInstitution' | 'BillInstitution';
527
+ id: string;
528
+ name: string;
529
+ logo: string | null;
530
+ }
531
+ interface UserBills_bills {
532
+ __typename: 'Bill';
533
+ id: string;
534
+ name: string | null;
535
+ userId: string;
536
+ country: string;
537
+ currency: string;
538
+ originator: PayableAccountOriginator;
539
+ payable: boolean;
540
+ verifying: boolean;
541
+ billType: BillType;
542
+ createdAt: any;
543
+ billAccountDetails: UserBills_bills_billAccountDetails | null;
544
+ dataSync: UserBills_bills_dataSync | null;
545
+ institution: UserBills_bills_institution | null;
546
+ }
547
+ interface UserBills {
548
+ bills: UserBills_bills[];
549
+ }
550
+
372
551
  interface UserFragment {
373
552
  __typename: 'User';
374
553
  id: string;
@@ -382,32 +561,16 @@ interface UserFragment {
382
561
  timezone: string;
383
562
  }
384
563
 
385
- interface UserPayableAccounts_payableAccounts_Bill_institution {
386
- __typename: 'BankAccountInstitution' | 'BillInstitution';
387
- id: string;
388
- name: string;
389
- logo: string | null;
390
- country: string;
391
- currency: string;
392
- }
393
- interface UserPayableAccounts_payableAccounts_Bill {
394
- __typename: 'Bill';
395
- id: string;
396
- name: string | null;
397
- userId: string;
398
- country: string;
399
- currency: string;
400
- createdAt: any;
401
- type: PayableAccountType;
402
- institution: UserPayableAccounts_payableAccounts_Bill_institution | null;
564
+ interface UserPayableAccounts_payableAccounts_BankAccount_dataSync {
565
+ __typename: 'AccountDataSync';
566
+ lastSync: any | null;
567
+ syncStatus: AccountSyncStatus | null;
403
568
  }
404
569
  interface UserPayableAccounts_payableAccounts_BankAccount_institution {
405
570
  __typename: 'BankAccountInstitution' | 'BillInstitution';
406
571
  id: string;
407
572
  name: string;
408
573
  logo: string | null;
409
- country: string;
410
- currency: string;
411
574
  }
412
575
  interface UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails_CanadianBankAccountDetails {
413
576
  __typename: 'CanadianBankAccountDetails';
@@ -424,8 +587,11 @@ interface UserPayableAccounts_payableAccounts_BankAccount {
424
587
  userId: string;
425
588
  country: string;
426
589
  currency: string;
427
- createdAt: any;
590
+ payable: boolean;
591
+ originator: PayableAccountOriginator;
428
592
  type: PayableAccountType;
593
+ createdAt: any;
594
+ dataSync: UserPayableAccounts_payableAccounts_BankAccount_dataSync | null;
429
595
  institution: UserPayableAccounts_payableAccounts_BankAccount_institution | null;
430
596
  accountNumber: string;
431
597
  bankAccountType: BankAccountType;
@@ -435,13 +601,16 @@ interface UserPayableAccounts_payableAccounts_BankAccount {
435
601
  ownedByUser: boolean;
436
602
  bankAccountDetails: UserPayableAccounts_payableAccounts_BankAccount_bankAccountDetails;
437
603
  }
604
+ interface UserPayableAccounts_payableAccounts_VirtualCard_dataSync {
605
+ __typename: 'AccountDataSync';
606
+ lastSync: any | null;
607
+ syncStatus: AccountSyncStatus | null;
608
+ }
438
609
  interface UserPayableAccounts_payableAccounts_VirtualCard_institution {
439
610
  __typename: 'BankAccountInstitution' | 'BillInstitution';
440
611
  id: string;
441
612
  name: string;
442
613
  logo: string | null;
443
- country: string;
444
- currency: string;
445
614
  }
446
615
  interface UserPayableAccounts_payableAccounts_VirtualCard_billingInfo_address {
447
616
  __typename: 'CardHolderAddress';
@@ -466,8 +635,11 @@ interface UserPayableAccounts_payableAccounts_VirtualCard {
466
635
  userId: string;
467
636
  country: string;
468
637
  currency: string;
469
- createdAt: any;
638
+ payable: boolean;
639
+ originator: PayableAccountOriginator;
470
640
  type: PayableAccountType;
641
+ createdAt: any;
642
+ dataSync: UserPayableAccounts_payableAccounts_VirtualCard_dataSync | null;
471
643
  institution: UserPayableAccounts_payableAccounts_VirtualCard_institution | null;
472
644
  mask: string | null;
473
645
  balance: number;
@@ -475,7 +647,47 @@ interface UserPayableAccounts_payableAccounts_VirtualCard {
475
647
  virtualCardType: VirtualCardType;
476
648
  billingInfo: UserPayableAccounts_payableAccounts_VirtualCard_billingInfo | null;
477
649
  }
478
- type UserPayableAccounts_payableAccounts = UserPayableAccounts_payableAccounts_Bill | UserPayableAccounts_payableAccounts_BankAccount | UserPayableAccounts_payableAccounts_VirtualCard;
650
+ interface UserPayableAccounts_payableAccounts_Bill_dataSync {
651
+ __typename: 'AccountDataSync';
652
+ lastSync: any | null;
653
+ syncStatus: AccountSyncStatus | null;
654
+ }
655
+ interface UserPayableAccounts_payableAccounts_Bill_institution {
656
+ __typename: 'BankAccountInstitution' | 'BillInstitution';
657
+ id: string;
658
+ name: string;
659
+ logo: string | null;
660
+ }
661
+ interface UserPayableAccounts_payableAccounts_Bill_billAccountDetails {
662
+ __typename: 'BillAccountDetails';
663
+ balance: number | null;
664
+ amountDue: number | null;
665
+ openedAt: any | null;
666
+ lastPaymentAmount: number | null;
667
+ lastPaymentDate: any | null;
668
+ nextPaymentDueDate: any | null;
669
+ nextPaymentMinimumAmount: number | null;
670
+ lastStatementBalance: number | null;
671
+ remainingStatementBalance: number | null;
672
+ }
673
+ interface UserPayableAccounts_payableAccounts_Bill {
674
+ __typename: 'Bill';
675
+ id: string;
676
+ name: string | null;
677
+ userId: string;
678
+ country: string;
679
+ currency: string;
680
+ payable: boolean;
681
+ originator: PayableAccountOriginator;
682
+ type: PayableAccountType;
683
+ createdAt: any;
684
+ dataSync: UserPayableAccounts_payableAccounts_Bill_dataSync | null;
685
+ institution: UserPayableAccounts_payableAccounts_Bill_institution | null;
686
+ billType: BillType;
687
+ verifying: boolean;
688
+ billAccountDetails: UserPayableAccounts_payableAccounts_Bill_billAccountDetails | null;
689
+ }
690
+ type UserPayableAccounts_payableAccounts = UserPayableAccounts_payableAccounts_BankAccount | UserPayableAccounts_payableAccounts_VirtualCard | UserPayableAccounts_payableAccounts_Bill;
479
691
  interface UserPayableAccounts {
480
692
  payableAccounts: UserPayableAccounts_payableAccounts[];
481
693
  }
@@ -608,13 +820,16 @@ interface CreateUSBankAccount_createUSBankAccount_bankAccountDetails_USBankAccou
608
820
  routingNumber: string;
609
821
  }
610
822
  type CreateUSBankAccount_createUSBankAccount_bankAccountDetails = CreateUSBankAccount_createUSBankAccount_bankAccountDetails_CanadianBankAccountDetails | CreateUSBankAccount_createUSBankAccount_bankAccountDetails_USBankAccountDetails;
823
+ interface CreateUSBankAccount_createUSBankAccount_dataSync {
824
+ __typename: 'AccountDataSync';
825
+ lastSync: any | null;
826
+ syncStatus: AccountSyncStatus | null;
827
+ }
611
828
  interface CreateUSBankAccount_createUSBankAccount_institution {
612
829
  __typename: 'BankAccountInstitution' | 'BillInstitution';
613
830
  id: string;
614
831
  name: string;
615
832
  logo: string | null;
616
- country: string;
617
- currency: string;
618
833
  }
619
834
  interface CreateUSBankAccount_createUSBankAccount {
620
835
  __typename: 'BankAccount';
@@ -623,8 +838,10 @@ interface CreateUSBankAccount_createUSBankAccount {
623
838
  userId: string;
624
839
  country: string;
625
840
  currency: string;
626
- createdAt: any;
841
+ payable: boolean;
842
+ originator: PayableAccountOriginator;
627
843
  type: PayableAccountType;
844
+ createdAt: any;
628
845
  accountNumber: string;
629
846
  bankAccountType: BankAccountType;
630
847
  bankAccountSubType: BankAccountSubType;
@@ -632,6 +849,7 @@ interface CreateUSBankAccount_createUSBankAccount {
632
849
  email: string;
633
850
  ownedByUser: boolean;
634
851
  bankAccountDetails: CreateUSBankAccount_createUSBankAccount_bankAccountDetails;
852
+ dataSync: CreateUSBankAccount_createUSBankAccount_dataSync | null;
635
853
  institution: CreateUSBankAccount_createUSBankAccount_institution | null;
636
854
  }
637
855
  interface CreateUSBankAccount {
@@ -641,13 +859,16 @@ interface CreateUSBankAccountVariables {
641
859
  createUSAccountInput: USBankAccountInput;
642
860
  }
643
861
 
862
+ interface DeletePayableAccount_deletePayableAccount_BankAccount_dataSync {
863
+ __typename: 'AccountDataSync';
864
+ lastSync: any | null;
865
+ syncStatus: AccountSyncStatus | null;
866
+ }
644
867
  interface DeletePayableAccount_deletePayableAccount_BankAccount_institution {
645
868
  __typename: 'BankAccountInstitution' | 'BillInstitution';
646
869
  id: string;
647
870
  name: string;
648
871
  logo: string | null;
649
- country: string;
650
- currency: string;
651
872
  }
652
873
  interface DeletePayableAccount_deletePayableAccount_BankAccount_bankAccountDetails_CanadianBankAccountDetails {
653
874
  __typename: 'CanadianBankAccountDetails';
@@ -664,8 +885,11 @@ interface DeletePayableAccount_deletePayableAccount_BankAccount {
664
885
  userId: string;
665
886
  country: string;
666
887
  currency: string;
667
- createdAt: any;
888
+ payable: boolean;
889
+ originator: PayableAccountOriginator;
668
890
  type: PayableAccountType;
891
+ createdAt: any;
892
+ dataSync: DeletePayableAccount_deletePayableAccount_BankAccount_dataSync | null;
669
893
  institution: DeletePayableAccount_deletePayableAccount_BankAccount_institution | null;
670
894
  accountNumber: string;
671
895
  bankAccountType: BankAccountType;
@@ -675,7 +899,50 @@ interface DeletePayableAccount_deletePayableAccount_BankAccount {
675
899
  ownedByUser: boolean;
676
900
  bankAccountDetails: DeletePayableAccount_deletePayableAccount_BankAccount_bankAccountDetails;
677
901
  }
902
+ interface DeletePayableAccount_deletePayableAccount_Bill_dataSync {
903
+ __typename: 'AccountDataSync';
904
+ lastSync: any | null;
905
+ syncStatus: AccountSyncStatus | null;
906
+ }
907
+ interface DeletePayableAccount_deletePayableAccount_Bill_institution {
908
+ __typename: 'BankAccountInstitution' | 'BillInstitution';
909
+ id: string;
910
+ name: string;
911
+ logo: string | null;
912
+ }
913
+ interface DeletePayableAccount_deletePayableAccount_Bill_billAccountDetails {
914
+ __typename: 'BillAccountDetails';
915
+ balance: number | null;
916
+ amountDue: number | null;
917
+ openedAt: any | null;
918
+ lastPaymentAmount: number | null;
919
+ lastPaymentDate: any | null;
920
+ nextPaymentDueDate: any | null;
921
+ nextPaymentMinimumAmount: number | null;
922
+ lastStatementBalance: number | null;
923
+ remainingStatementBalance: number | null;
924
+ }
925
+ interface DeletePayableAccount_deletePayableAccount_Bill {
926
+ __typename: 'Bill';
927
+ id: string;
928
+ name: string | null;
929
+ userId: string;
930
+ country: string;
931
+ currency: string;
932
+ payable: boolean;
933
+ originator: PayableAccountOriginator;
934
+ type: PayableAccountType;
935
+ createdAt: any;
936
+ dataSync: DeletePayableAccount_deletePayableAccount_Bill_dataSync | null;
937
+ institution: DeletePayableAccount_deletePayableAccount_Bill_institution | null;
938
+ billType: BillType;
939
+ verifying: boolean;
940
+ billAccountDetails: DeletePayableAccount_deletePayableAccount_Bill_billAccountDetails | null;
941
+ }
678
942
 
943
+ interface RenameBankAccount_renamePayableAccount_Bill {
944
+ __typename: 'Bill' | 'VirtualCard';
945
+ }
679
946
  interface RenameBankAccount_renamePayableAccount_BankAccount_bankAccountDetails_CanadianBankAccountDetails {
680
947
  __typename: 'CanadianBankAccountDetails';
681
948
  }
@@ -741,6 +1008,62 @@ declare class BankAccountService {
741
1008
  create<T extends BankAccountType>(type: T, input: CreateInputMapping$1[T]): Promise<NonNullable<CreateMutationMapping$1[T]["query"][keyof CreateMutationMapping$1[T]["query"]]> | null>;
742
1009
  }
743
1010
 
1011
+ interface CreateUSBill_addUSBill_billAccountDetails {
1012
+ __typename: 'BillAccountDetails';
1013
+ balance: number | null;
1014
+ amountDue: number | null;
1015
+ openedAt: any | null;
1016
+ lastPaymentAmount: number | null;
1017
+ lastPaymentDate: any | null;
1018
+ nextPaymentDueDate: any | null;
1019
+ nextPaymentMinimumAmount: number | null;
1020
+ lastStatementBalance: number | null;
1021
+ remainingStatementBalance: number | null;
1022
+ }
1023
+ interface CreateUSBill_addUSBill_dataSync {
1024
+ __typename: 'AccountDataSync';
1025
+ lastSync: any | null;
1026
+ syncStatus: AccountSyncStatus | null;
1027
+ }
1028
+ interface CreateUSBill_addUSBill_institution {
1029
+ __typename: 'BankAccountInstitution' | 'BillInstitution';
1030
+ id: string;
1031
+ name: string;
1032
+ logo: string | null;
1033
+ }
1034
+ interface CreateUSBill_addUSBill {
1035
+ __typename: 'Bill';
1036
+ id: string;
1037
+ name: string | null;
1038
+ userId: string;
1039
+ country: string;
1040
+ currency: string;
1041
+ originator: PayableAccountOriginator;
1042
+ payable: boolean;
1043
+ verifying: boolean;
1044
+ billType: BillType;
1045
+ createdAt: any;
1046
+ billAccountDetails: CreateUSBill_addUSBill_billAccountDetails | null;
1047
+ dataSync: CreateUSBill_addUSBill_dataSync | null;
1048
+ institution: CreateUSBill_addUSBill_institution | null;
1049
+ }
1050
+
1051
+ declare class BillService {
1052
+ private client;
1053
+ constructor(client: GraphClient);
1054
+ list(): Promise<UserBills_bills[]>;
1055
+ rename(accountId: string, name: string): Promise<RenameBankAccount_renamePayableAccount_Bill>;
1056
+ delete(accountId: string): Promise<DeletePayableAccount_deletePayableAccount_Bill>;
1057
+ add(institutionId: string, accountNumber: string, type?: BillType): Promise<CreateUSBill_addUSBill>;
1058
+ }
1059
+
1060
+ declare class InstitutionService {
1061
+ private client;
1062
+ constructor(client: GraphClient);
1063
+ popularUSBillInstitutions(type?: BillType): Promise<PopularBillInstitutions_popularUSBillInstitutions[]>;
1064
+ searchUSBillInstitutions(searchTerm: string, type?: BillType): Promise<SearchUSBillInstitutions_searchUSBillInstitutions[]>;
1065
+ }
1066
+
744
1067
  declare class PaymentService {
745
1068
  private client;
746
1069
  constructor(client: GraphClient);
@@ -804,7 +1127,7 @@ declare class UserService {
804
1127
  private client;
805
1128
  constructor(client: GraphClient);
806
1129
  createUser(args: CreateUserArgs): Promise<CreateUserResponse>;
807
- create(args: CreateUserArgs): Promise<CreateUserResponse | undefined>;
1130
+ create(args: CreateUserArgs): Promise<CreateUserResponse>;
808
1131
  getCurrentUser(): Promise<CurrentUser_me>;
809
1132
  getUserVerification(): Promise<UserVerification_verification | null>;
810
1133
  }
@@ -876,10 +1199,12 @@ declare class SpritzApiClient {
876
1199
  paymentRequest: PaymentRequestService;
877
1200
  payment: PaymentService;
878
1201
  virtualCard: VirtualCardService;
1202
+ bill: BillService;
1203
+ institution: InstitutionService;
879
1204
  constructor(apiKey: string, integrationKey: string, environment: Environment);
880
1205
  static initialize({ environment, apiKey, integrationKey }: ClientParams): SpritzApiClient;
881
1206
  private init;
882
1207
  setApiKey(_apiKey: string): this;
883
1208
  }
884
1209
 
885
- export { AccountPayments, AccountPaymentsVariables, AccountPayments_paymentsForAccount, BankAccountFragment, BankAccountFragment_bankAccountDetails, BankAccountFragment_bankAccountDetails_CanadianBankAccountDetails, BankAccountFragment_bankAccountDetails_USBankAccountDetails, BankAccountFragment_institution, BankAccountSubType, BankAccountType, CreateDirectPaymentInput, CreatePaymentRequestInput, CurrentUser, CurrentUser_me, Environment, GetSpritzPayParams, GetSpritzPayParamsVariables, GetSpritzPayParams_spritzPayParams, 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, DirectPaymentStatus as PaymentRequestStatus, 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 };
1210
+ export { AccountPayments, AccountPaymentsVariables, AccountPayments_paymentsForAccount, BankAccountFragment, BankAccountFragment_bankAccountDetails, BankAccountFragment_bankAccountDetails_CanadianBankAccountDetails, BankAccountFragment_bankAccountDetails_USBankAccountDetails, BankAccountFragment_institution, BankAccountSubType, BankAccountType, BillFragment, BillFragment_billAccountDetails, BillFragment_dataSync, BillFragment_institution, BillType, CreateDirectPaymentInput, CreatePaymentRequestInput, CurrentUser, CurrentUser_me, Environment, GetSpritzPayParams, GetSpritzPayParamsVariables, GetSpritzPayParams_spritzPayParams, 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_VirtualCard, PayableAccountFragment_VirtualCard_billingInfo, PayableAccountFragment_VirtualCard_billingInfo_address, PayableAccountFragment_VirtualCard_dataSync, PayableAccountFragment_VirtualCard_institution, PayableAccountInstitutionFragment, PayableAccountType, PaymentFragment, PaymentNetwork, PaymentRequestFragment, PaymentRequestPayment, PaymentRequestPaymentVariables, PaymentRequestPayment_paymentForPaymentRequest, DirectPaymentStatus as PaymentRequestStatus, PaymentStatus, PopularBillInstitutions, PopularBillInstitutionsVariables, PopularBillInstitutions_popularUSBillInstitutions, SearchUSBillInstitutions, SearchUSBillInstitutionsVariables, SearchUSBillInstitutions_searchUSBillInstitutions, SpritzApiClient, TokenBalanceFragment, TransactionPrice, TransactionPriceVariables, USBankAccountInput, UserBankAccounts, UserBankAccounts_bankAccounts, UserBankAccounts_bankAccounts_bankAccountDetails, UserBankAccounts_bankAccounts_bankAccountDetails_CanadianBankAccountDetails, UserBankAccounts_bankAccounts_bankAccountDetails_USBankAccountDetails, UserBankAccounts_bankAccounts_institution, UserBills, UserBills_bills, UserBills_bills_billAccountDetails, UserBills_bills_dataSync, UserBills_bills_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_dataSync, UserPayableAccounts_payableAccounts_BankAccount_institution, UserPayableAccounts_payableAccounts_Bill, UserPayableAccounts_payableAccounts_Bill_billAccountDetails, UserPayableAccounts_payableAccounts_Bill_dataSync, UserPayableAccounts_payableAccounts_Bill_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, VirtualCardType, VirtualDebitCardFragment, VirtualDebitCardFragment_billingInfo, VirtualDebitCardFragment_billingInfo_address, WalletTokenBalances, WalletTokenBalancesVariables, WalletTokenBalances_tokenBalances };