@spritz-finance/service-client 0.2.45 → 0.2.47
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.
|
@@ -69,25 +69,12 @@ export declare enum AccountSyncStatus {
|
|
|
69
69
|
Syncing = "Syncing",
|
|
70
70
|
Unavailable = "Unavailable"
|
|
71
71
|
}
|
|
72
|
-
export declare enum AccountType {
|
|
73
|
-
Business = "BUSINESS",
|
|
74
|
-
Checking = "CHECKING",
|
|
75
|
-
Savings = "SAVINGS"
|
|
76
|
-
}
|
|
77
72
|
export declare type AccountTypePayable = {
|
|
78
73
|
__typename?: 'AccountTypePayable';
|
|
79
74
|
country: Scalars['String']['output'];
|
|
80
75
|
provider: AccountProvider;
|
|
81
76
|
type: AccountPaymentType;
|
|
82
77
|
};
|
|
83
|
-
export declare type AchInstitution = {
|
|
84
|
-
__typename?: 'ACHInstitution';
|
|
85
|
-
id: Scalars['String']['output'];
|
|
86
|
-
isRTPEnabled: Scalars['Boolean']['output'];
|
|
87
|
-
logo?: Maybe<Scalars['String']['output']>;
|
|
88
|
-
name: Scalars['String']['output'];
|
|
89
|
-
routingNumber: Scalars['String']['output'];
|
|
90
|
-
};
|
|
91
78
|
export declare type Address = {
|
|
92
79
|
__typename?: 'Address';
|
|
93
80
|
city?: Maybe<Scalars['String']['output']>;
|
|
@@ -139,17 +126,22 @@ export declare type BankAccount = PayableAccount & {
|
|
|
139
126
|
currency: Scalars['String']['output'];
|
|
140
127
|
dataSync?: Maybe<AccountDataSync>;
|
|
141
128
|
email: Scalars['String']['output'];
|
|
129
|
+
externalId?: Maybe<Scalars['String']['output']>;
|
|
142
130
|
holder: Scalars['String']['output'];
|
|
143
131
|
id: Scalars['ID']['output'];
|
|
144
132
|
institution?: Maybe<PayableAccountInstitution>;
|
|
145
133
|
mask?: Maybe<Scalars['String']['output']>;
|
|
146
134
|
name?: Maybe<Scalars['String']['output']>;
|
|
135
|
+
originalName?: Maybe<Scalars['String']['output']>;
|
|
147
136
|
originator: PayableAccountOriginator;
|
|
148
137
|
ownedByUser: Scalars['Boolean']['output'];
|
|
149
138
|
payable: Scalars['Boolean']['output'];
|
|
150
139
|
paymentCount?: Maybe<Scalars['Int']['output']>;
|
|
140
|
+
testPaymentAvailable: Scalars['Boolean']['output'];
|
|
151
141
|
type: PayableAccountType;
|
|
142
|
+
user: User;
|
|
152
143
|
userId: Scalars['String']['output'];
|
|
144
|
+
verifying: Scalars['Boolean']['output'];
|
|
153
145
|
};
|
|
154
146
|
export declare type BankAccountDetails = CanadianBankAccountDetails | UsBankAccountDetails;
|
|
155
147
|
export declare type BankAccountFeatures = UsBankAccountFeatures;
|
|
@@ -200,48 +192,20 @@ export declare type Bill = PayableAccount & {
|
|
|
200
192
|
createdAt: Scalars['DateTime']['output'];
|
|
201
193
|
currency: Scalars['String']['output'];
|
|
202
194
|
dataSync?: Maybe<AccountDataSync>;
|
|
195
|
+
externalId?: Maybe<Scalars['String']['output']>;
|
|
203
196
|
id: Scalars['ID']['output'];
|
|
204
197
|
institution?: Maybe<PayableAccountInstitution>;
|
|
205
198
|
mask?: Maybe<Scalars['String']['output']>;
|
|
206
199
|
name?: Maybe<Scalars['String']['output']>;
|
|
200
|
+
originalName?: Maybe<Scalars['String']['output']>;
|
|
207
201
|
originator: PayableAccountOriginator;
|
|
208
202
|
payable: Scalars['Boolean']['output'];
|
|
209
203
|
paymentCount?: Maybe<Scalars['Int']['output']>;
|
|
210
|
-
type: PayableAccountType;
|
|
211
|
-
userId: Scalars['String']['output'];
|
|
212
|
-
};
|
|
213
|
-
export declare type BillAccount = {
|
|
214
|
-
__typename?: 'BillAccount';
|
|
215
|
-
accountId: Scalars['String']['output'];
|
|
216
|
-
amountDue?: Maybe<Scalars['Float']['output']>;
|
|
217
|
-
balance?: Maybe<Scalars['Float']['output']>;
|
|
218
|
-
canReceive: Scalars['Boolean']['output'];
|
|
219
|
-
connected: Scalars['Boolean']['output'];
|
|
220
|
-
createdAt?: Maybe<Scalars['DateTime']['output']>;
|
|
221
|
-
destinationAccountId?: Maybe<Scalars['String']['output']>;
|
|
222
|
-
id: Scalars['ID']['output'];
|
|
223
|
-
institution?: Maybe<BillAccountInstitution>;
|
|
224
|
-
lastPaymentAmount?: Maybe<Scalars['Float']['output']>;
|
|
225
|
-
lastPaymentDate?: Maybe<Scalars['DateTime']['output']>;
|
|
226
|
-
lastStatementBalance?: Maybe<Scalars['Float']['output']>;
|
|
227
|
-
lastSync?: Maybe<Scalars['DateTime']['output']>;
|
|
228
|
-
manual?: Maybe<Scalars['Boolean']['output']>;
|
|
229
|
-
mask?: Maybe<Scalars['String']['output']>;
|
|
230
|
-
name: Scalars['String']['output'];
|
|
231
|
-
nextPaymentDueDate?: Maybe<Scalars['DateTime']['output']>;
|
|
232
|
-
nextPaymentMinimumAmount?: Maybe<Scalars['Float']['output']>;
|
|
233
|
-
openedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
234
|
-
originalName: Scalars['String']['output'];
|
|
235
|
-
payments?: Maybe<Scalars['Int']['output']>;
|
|
236
|
-
provider: AccountProvider;
|
|
237
|
-
remainingStatementBalance?: Maybe<Scalars['Float']['output']>;
|
|
238
|
-
syncStatus: BillSyncStatus;
|
|
239
204
|
testPaymentAvailable: Scalars['Boolean']['output'];
|
|
240
|
-
type:
|
|
205
|
+
type: PayableAccountType;
|
|
241
206
|
user: User;
|
|
242
|
-
userId: Scalars['
|
|
243
|
-
|
|
244
|
-
verified: Scalars['Boolean']['output'];
|
|
207
|
+
userId: Scalars['String']['output'];
|
|
208
|
+
verifying: Scalars['Boolean']['output'];
|
|
245
209
|
};
|
|
246
210
|
export declare type BillAccountDetails = {
|
|
247
211
|
__typename?: 'BillAccountDetails';
|
|
@@ -250,20 +214,10 @@ export declare type BillAccountDetails = {
|
|
|
250
214
|
lastPaymentAmount?: Maybe<Scalars['Float']['output']>;
|
|
251
215
|
lastPaymentDate?: Maybe<Scalars['DateTime']['output']>;
|
|
252
216
|
lastStatementBalance?: Maybe<Scalars['Float']['output']>;
|
|
253
|
-
lastSync?: Maybe<Scalars['DateTime']['output']>;
|
|
254
217
|
nextPaymentDueDate?: Maybe<Scalars['DateTime']['output']>;
|
|
255
218
|
nextPaymentMinimumAmount?: Maybe<Scalars['Float']['output']>;
|
|
256
219
|
openedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
257
220
|
remainingStatementBalance?: Maybe<Scalars['Float']['output']>;
|
|
258
|
-
syncStatus?: Maybe<AccountSyncStatus>;
|
|
259
|
-
};
|
|
260
|
-
export declare type BillAccountInstitution = {
|
|
261
|
-
__typename?: 'BillAccountInstitution';
|
|
262
|
-
id: Scalars['ID']['output'];
|
|
263
|
-
institutionId: Scalars['String']['output'];
|
|
264
|
-
logo?: Maybe<Scalars['String']['output']>;
|
|
265
|
-
logoUrl?: Maybe<Scalars['String']['output']>;
|
|
266
|
-
name: Scalars['String']['output'];
|
|
267
221
|
};
|
|
268
222
|
export declare type BillingInfo = {
|
|
269
223
|
__typename?: 'BillingInfo';
|
|
@@ -275,6 +229,7 @@ export declare type BillingInfo = {
|
|
|
275
229
|
export declare type BillInstitution = PayableAccountInstitution & {
|
|
276
230
|
__typename?: 'BillInstitution';
|
|
277
231
|
accountNumberFormats: Array<Scalars['String']['output']>;
|
|
232
|
+
billTypes: Array<Scalars['String']['output']>;
|
|
278
233
|
country: Scalars['String']['output'];
|
|
279
234
|
createdAt: Scalars['DateTime']['output'];
|
|
280
235
|
currency: Scalars['String']['output'];
|
|
@@ -287,12 +242,6 @@ export declare type BillModule = {
|
|
|
287
242
|
payableTypes: Array<AccountTypePayable>;
|
|
288
243
|
status: ModuleStatus;
|
|
289
244
|
};
|
|
290
|
-
export declare enum BillSyncStatus {
|
|
291
|
-
Complete = "Complete",
|
|
292
|
-
Error = "Error",
|
|
293
|
-
InProgress = "InProgress",
|
|
294
|
-
Unavailable = "Unavailable"
|
|
295
|
-
}
|
|
296
245
|
export declare enum BillType {
|
|
297
246
|
AutoLoan = "AutoLoan",
|
|
298
247
|
CreditCard = "CreditCard",
|
|
@@ -335,22 +284,6 @@ export declare type CardTransaction = {
|
|
|
335
284
|
description: Scalars['String']['output'];
|
|
336
285
|
timestamp: Scalars['DateTime']['output'];
|
|
337
286
|
};
|
|
338
|
-
export declare type CheckbookAccount = {
|
|
339
|
-
__typename?: 'CheckbookAccount';
|
|
340
|
-
accountNumber: Scalars['String']['output'];
|
|
341
|
-
createdAt: Scalars['DateTime']['output'];
|
|
342
|
-
email: Scalars['String']['output'];
|
|
343
|
-
holder: Scalars['String']['output'];
|
|
344
|
-
id: Scalars['ID']['output'];
|
|
345
|
-
institution?: Maybe<AchInstitution>;
|
|
346
|
-
institutionId?: Maybe<Scalars['ObjectId']['output']>;
|
|
347
|
-
isRTPEnabled: Scalars['Boolean']['output'];
|
|
348
|
-
name: Scalars['String']['output'];
|
|
349
|
-
ownedByUser: Scalars['Boolean']['output'];
|
|
350
|
-
routingNumber: Scalars['String']['output'];
|
|
351
|
-
type: AccountType;
|
|
352
|
-
userId: Scalars['ObjectId']['output'];
|
|
353
|
-
};
|
|
354
287
|
export declare type CheckbookAddress = {
|
|
355
288
|
__typename?: 'CheckbookAddress';
|
|
356
289
|
city: Scalars['String']['output'];
|
|
@@ -443,15 +376,6 @@ export declare type CognitoKycFlowTemplate = {
|
|
|
443
376
|
id: Scalars['ID']['output'];
|
|
444
377
|
version: Scalars['Int']['output'];
|
|
445
378
|
};
|
|
446
|
-
export declare type CreateAccountInput = {
|
|
447
|
-
accountNumber: Scalars['String']['input'];
|
|
448
|
-
email: Scalars['String']['input'];
|
|
449
|
-
holder: Scalars['String']['input'];
|
|
450
|
-
name: Scalars['String']['input'];
|
|
451
|
-
ownedByUser?: InputMaybe<Scalars['Boolean']['input']>;
|
|
452
|
-
routingNumber: Scalars['String']['input'];
|
|
453
|
-
type: AccountType;
|
|
454
|
-
};
|
|
455
379
|
export declare type CreateDirectPaymentInput = {
|
|
456
380
|
accountId: Scalars['String']['input'];
|
|
457
381
|
amount: Scalars['Float']['input'];
|
|
@@ -495,11 +419,10 @@ export declare type CryptoExchangeRate = {
|
|
|
495
419
|
};
|
|
496
420
|
export declare type DirectPayment = {
|
|
497
421
|
__typename?: 'DirectPayment';
|
|
498
|
-
account
|
|
422
|
+
account?: Maybe<BasicPayableAccount>;
|
|
499
423
|
accountId: Scalars['ObjectId']['output'];
|
|
500
424
|
amount: Scalars['Float']['output'];
|
|
501
425
|
amountDue: Scalars['Float']['output'];
|
|
502
|
-
bill?: Maybe<BillAccount>;
|
|
503
426
|
createdAt: Scalars['DateTime']['output'];
|
|
504
427
|
currentTime?: Maybe<Scalars['DateTime']['output']>;
|
|
505
428
|
feeAmount?: Maybe<Scalars['Float']['output']>;
|
|
@@ -631,6 +554,15 @@ export declare type KycStatus = {
|
|
|
631
554
|
id: Scalars['ID']['output'];
|
|
632
555
|
signature: Scalars['String']['output'];
|
|
633
556
|
};
|
|
557
|
+
export declare type LiquidityLimits = {
|
|
558
|
+
__typename?: 'LiquidityLimits';
|
|
559
|
+
checkbookHighWaterMark: Scalars['Float']['output'];
|
|
560
|
+
checkbookLowWaterMark: Scalars['Float']['output'];
|
|
561
|
+
};
|
|
562
|
+
export declare type LiquidityLimitsInput = {
|
|
563
|
+
checkbookHighWaterMark: Scalars['Float']['input'];
|
|
564
|
+
checkbookLowWaterMark: Scalars['Float']['input'];
|
|
565
|
+
};
|
|
634
566
|
export declare type MemberReferralStats = {
|
|
635
567
|
__typename?: 'MemberReferralStats';
|
|
636
568
|
allTimeEarnings: Scalars['Float']['output'];
|
|
@@ -680,7 +612,6 @@ export declare type MethodFiAccount = {
|
|
|
680
612
|
connected?: Maybe<Scalars['Boolean']['output']>;
|
|
681
613
|
holder_id: Scalars['String']['output'];
|
|
682
614
|
id: Scalars['ID']['output'];
|
|
683
|
-
institution?: Maybe<MethodFiMerchant>;
|
|
684
615
|
integrationId?: Maybe<Scalars['String']['output']>;
|
|
685
616
|
integrationType?: Maybe<Scalars['String']['output']>;
|
|
686
617
|
liability?: Maybe<MethodFiLiability>;
|
|
@@ -823,22 +754,21 @@ export declare enum ModuleStatus {
|
|
|
823
754
|
}
|
|
824
755
|
export declare type Mutation = {
|
|
825
756
|
__typename?: 'Mutation';
|
|
826
|
-
addAccount: MethodFiAccount;
|
|
827
757
|
addAffiliateReferralCode: Scalars['Boolean']['output'];
|
|
828
758
|
addAssociatedWallet: Scalars['Boolean']['output'];
|
|
829
759
|
addSignupCode: Scalars['Boolean']['output'];
|
|
830
760
|
/** @deprecated No longer used */
|
|
831
761
|
addTransactionToDirectPayment: DirectPayment;
|
|
762
|
+
addUSBill: Bill;
|
|
832
763
|
adminCreateDirectPayment: DirectPayment;
|
|
833
764
|
adminIssuePayment?: Maybe<Payment>;
|
|
834
765
|
adminResyncUserProviders?: Maybe<Verification>;
|
|
835
766
|
approvePaymentReversal: Scalars['Boolean']['output'];
|
|
767
|
+
changeBillType: Bill;
|
|
836
768
|
checkbookNotifyFunding: Scalars['Boolean']['output'];
|
|
837
769
|
checkbookSendQueuedPayments?: Maybe<Array<CheckbookPayment>>;
|
|
838
|
-
connectBills: Scalars['Boolean']['output'];
|
|
839
770
|
createApiToken: ApiToken;
|
|
840
771
|
createApiTokenFor?: Maybe<ApiToken>;
|
|
841
|
-
createCheckbookAccount: CheckbookAccount;
|
|
842
772
|
createDirectPayment: DirectPayment;
|
|
843
773
|
createGrowsurfParticipant?: Maybe<GrowsurfParticipant>;
|
|
844
774
|
createIntegrationToken: IntegrationToken;
|
|
@@ -848,17 +778,14 @@ export declare type Mutation = {
|
|
|
848
778
|
createUSBankAccount: BankAccount;
|
|
849
779
|
createUser: User;
|
|
850
780
|
createUSVirtualDebitCard: VirtualCard;
|
|
851
|
-
createVirtualCard: CheckbookVirtualCard;
|
|
852
|
-
deleteBill: Scalars['Boolean']['output'];
|
|
853
|
-
deleteCheckbookAccount: CheckbookAccount;
|
|
854
781
|
deleteDirectPayment: Scalars['Boolean']['output'];
|
|
855
782
|
deletePayableAccount: PayableAccount;
|
|
856
783
|
deleteSubscription: Scalars['Boolean']['output'];
|
|
857
784
|
disableUser?: Maybe<Verification>;
|
|
858
|
-
disconnectBill: Scalars['Boolean']['output'];
|
|
859
785
|
flushBalances: Array<TokenBalance>;
|
|
860
786
|
forcePayment: Payment;
|
|
861
787
|
forceStrictVerification?: Maybe<Verification>;
|
|
788
|
+
forceStrictVerificationUser?: Maybe<Verification>;
|
|
862
789
|
grantCredit: RewardTransaction;
|
|
863
790
|
kycStatusSetUserCompleted: KycStatus;
|
|
864
791
|
lockEntityAuth: MethodFiEntity;
|
|
@@ -868,15 +795,13 @@ export declare type Mutation = {
|
|
|
868
795
|
refreshEntities: Scalars['Boolean']['output'];
|
|
869
796
|
refundPayment: Payment;
|
|
870
797
|
refundPaymentWithCredits: Payment;
|
|
871
|
-
renameBill: BillAccount;
|
|
872
|
-
renameCheckbookAccount: CheckbookAccount;
|
|
873
798
|
renamePayableAccount: PayableAccount;
|
|
874
799
|
resetEntity: Scalars['Boolean']['output'];
|
|
875
800
|
restartFlow: Verification;
|
|
876
801
|
resubmitEntityVerification: Scalars['Boolean']['output'];
|
|
877
|
-
resyncEntityAccounts: Scalars['Boolean']['output'];
|
|
878
802
|
retrySubscriptionCharge: Scalars['Boolean']['output'];
|
|
879
803
|
revokeApiToken: Scalars['Boolean']['output'];
|
|
804
|
+
setLiquidityLimits: LiquidityLimits;
|
|
880
805
|
setupWallet: Scalars['Boolean']['output'];
|
|
881
806
|
setUserAccountType: User;
|
|
882
807
|
setUserLimits: PricingUser;
|
|
@@ -886,16 +811,10 @@ export declare type Mutation = {
|
|
|
886
811
|
updateAnalyticsSession?: Maybe<User>;
|
|
887
812
|
updateAppDomain: Scalars['Boolean']['output'];
|
|
888
813
|
updateAttributionSource?: Maybe<User>;
|
|
889
|
-
updateBillType: BillAccount;
|
|
890
814
|
updateCurrentUser: User;
|
|
891
815
|
updateEntityAuthentication?: Maybe<MethodFiEntity>;
|
|
892
816
|
updateUserTimezone: User;
|
|
893
817
|
};
|
|
894
|
-
export declare type MutationAddAccountArgs = {
|
|
895
|
-
accountId: Scalars['String']['input'];
|
|
896
|
-
merchantId: Scalars['String']['input'];
|
|
897
|
-
type?: InputMaybe<BillType>;
|
|
898
|
-
};
|
|
899
818
|
export declare type MutationAddAffiliateReferralCodeArgs = {
|
|
900
819
|
referralCode: Scalars['String']['input'];
|
|
901
820
|
};
|
|
@@ -908,6 +827,11 @@ export declare type MutationAddSignupCodeArgs = {
|
|
|
908
827
|
export declare type MutationAddTransactionToDirectPaymentArgs = {
|
|
909
828
|
addTransactionToPaymentInput: AddTransactionToPaymentInput;
|
|
910
829
|
};
|
|
830
|
+
export declare type MutationAddUsBillArgs = {
|
|
831
|
+
accountNumber: Scalars['String']['input'];
|
|
832
|
+
institutionId: Scalars['String']['input'];
|
|
833
|
+
type?: InputMaybe<BillType>;
|
|
834
|
+
};
|
|
911
835
|
export declare type MutationAdminCreateDirectPaymentArgs = {
|
|
912
836
|
createDirectPaymentInput: CreateDirectPaymentInput;
|
|
913
837
|
userId: Scalars['String']['input'];
|
|
@@ -921,21 +845,19 @@ export declare type MutationAdminResyncUserProvidersArgs = {
|
|
|
921
845
|
export declare type MutationApprovePaymentReversalArgs = {
|
|
922
846
|
paymentId: Scalars['String']['input'];
|
|
923
847
|
};
|
|
848
|
+
export declare type MutationChangeBillTypeArgs = {
|
|
849
|
+
accountId: Scalars['String']['input'];
|
|
850
|
+
billType: BillType;
|
|
851
|
+
};
|
|
924
852
|
export declare type MutationCheckbookNotifyFundingArgs = {
|
|
925
853
|
notifyFundingInput: CheckbookNotifyFundingInput;
|
|
926
854
|
};
|
|
927
855
|
export declare type MutationCheckbookSendQueuedPaymentsArgs = {
|
|
928
856
|
checkbookSendQueuedPaymentsInput?: InputMaybe<CheckbookSendQueuedPaymentsInput>;
|
|
929
857
|
};
|
|
930
|
-
export declare type MutationConnectBillsArgs = {
|
|
931
|
-
accountIds: Array<Scalars['String']['input']>;
|
|
932
|
-
};
|
|
933
858
|
export declare type MutationCreateApiTokenForArgs = {
|
|
934
859
|
userId: Scalars['String']['input'];
|
|
935
860
|
};
|
|
936
|
-
export declare type MutationCreateCheckbookAccountArgs = {
|
|
937
|
-
createAccountInput: CreateAccountInput;
|
|
938
|
-
};
|
|
939
861
|
export declare type MutationCreateDirectPaymentArgs = {
|
|
940
862
|
createDirectPaymentInput: CreateDirectPaymentInput;
|
|
941
863
|
};
|
|
@@ -959,13 +881,6 @@ export declare type MutationCreateUsBankAccountArgs = {
|
|
|
959
881
|
export declare type MutationCreateUserArgs = {
|
|
960
882
|
createUser: CreateUserInput;
|
|
961
883
|
};
|
|
962
|
-
export declare type MutationDeleteBillArgs = {
|
|
963
|
-
accountId: Scalars['String']['input'];
|
|
964
|
-
provider?: InputMaybe<AccountProvider>;
|
|
965
|
-
};
|
|
966
|
-
export declare type MutationDeleteCheckbookAccountArgs = {
|
|
967
|
-
accountId: Scalars['String']['input'];
|
|
968
|
-
};
|
|
969
884
|
export declare type MutationDeleteDirectPaymentArgs = {
|
|
970
885
|
directPaymentId: Scalars['String']['input'];
|
|
971
886
|
};
|
|
@@ -978,10 +893,6 @@ export declare type MutationDeleteSubscriptionArgs = {
|
|
|
978
893
|
export declare type MutationDisableUserArgs = {
|
|
979
894
|
userId: Scalars['String']['input'];
|
|
980
895
|
};
|
|
981
|
-
export declare type MutationDisconnectBillArgs = {
|
|
982
|
-
accountId: Scalars['String']['input'];
|
|
983
|
-
provider?: InputMaybe<AccountProvider>;
|
|
984
|
-
};
|
|
985
896
|
export declare type MutationFlushBalancesArgs = {
|
|
986
897
|
addresses: Array<Scalars['String']['input']>;
|
|
987
898
|
};
|
|
@@ -1014,15 +925,6 @@ export declare type MutationRefundPaymentArgs = {
|
|
|
1014
925
|
export declare type MutationRefundPaymentWithCreditsArgs = {
|
|
1015
926
|
refundPaymentInput: RefundPaymentWithCreditsInput;
|
|
1016
927
|
};
|
|
1017
|
-
export declare type MutationRenameBillArgs = {
|
|
1018
|
-
accountId: Scalars['String']['input'];
|
|
1019
|
-
name: Scalars['String']['input'];
|
|
1020
|
-
provider?: InputMaybe<AccountProvider>;
|
|
1021
|
-
};
|
|
1022
|
-
export declare type MutationRenameCheckbookAccountArgs = {
|
|
1023
|
-
accountId: Scalars['String']['input'];
|
|
1024
|
-
name: Scalars['String']['input'];
|
|
1025
|
-
};
|
|
1026
928
|
export declare type MutationRenamePayableAccountArgs = {
|
|
1027
929
|
accountId: Scalars['String']['input'];
|
|
1028
930
|
name: Scalars['String']['input'];
|
|
@@ -1037,15 +939,15 @@ export declare type MutationRestartFlowArgs = {
|
|
|
1037
939
|
export declare type MutationResubmitEntityVerificationArgs = {
|
|
1038
940
|
userId: Scalars['String']['input'];
|
|
1039
941
|
};
|
|
1040
|
-
export declare type MutationResyncEntityAccountsArgs = {
|
|
1041
|
-
entityId: Scalars['String']['input'];
|
|
1042
|
-
};
|
|
1043
942
|
export declare type MutationRetrySubscriptionChargeArgs = {
|
|
1044
943
|
subscriptionId: Scalars['String']['input'];
|
|
1045
944
|
};
|
|
1046
945
|
export declare type MutationRevokeApiTokenArgs = {
|
|
1047
946
|
token: Scalars['String']['input'];
|
|
1048
947
|
};
|
|
948
|
+
export declare type MutationSetLiquidityLimitsArgs = {
|
|
949
|
+
limits: LiquidityLimitsInput;
|
|
950
|
+
};
|
|
1049
951
|
export declare type MutationSetupWalletArgs = {
|
|
1050
952
|
account?: InputMaybe<Scalars['String']['input']>;
|
|
1051
953
|
network: Scalars['String']['input'];
|
|
@@ -1078,11 +980,6 @@ export declare type MutationUpdateAppDomainArgs = {
|
|
|
1078
980
|
export declare type MutationUpdateAttributionSourceArgs = {
|
|
1079
981
|
attributionSource: Scalars['String']['input'];
|
|
1080
982
|
};
|
|
1081
|
-
export declare type MutationUpdateBillTypeArgs = {
|
|
1082
|
-
accountId: Scalars['String']['input'];
|
|
1083
|
-
provider?: InputMaybe<AccountProvider>;
|
|
1084
|
-
type: BillType;
|
|
1085
|
-
};
|
|
1086
983
|
export declare type MutationUpdateCurrentUserArgs = {
|
|
1087
984
|
userUpdate: UpdateCurrentUserInput;
|
|
1088
985
|
};
|
|
@@ -1121,15 +1018,20 @@ export declare type PayableAccount = {
|
|
|
1121
1018
|
createdAt: Scalars['DateTime']['output'];
|
|
1122
1019
|
currency: Scalars['String']['output'];
|
|
1123
1020
|
dataSync?: Maybe<AccountDataSync>;
|
|
1021
|
+
externalId?: Maybe<Scalars['String']['output']>;
|
|
1124
1022
|
id: Scalars['ID']['output'];
|
|
1125
1023
|
institution?: Maybe<PayableAccountInstitution>;
|
|
1126
1024
|
mask?: Maybe<Scalars['String']['output']>;
|
|
1127
1025
|
name?: Maybe<Scalars['String']['output']>;
|
|
1026
|
+
originalName?: Maybe<Scalars['String']['output']>;
|
|
1128
1027
|
originator: PayableAccountOriginator;
|
|
1129
1028
|
payable: Scalars['Boolean']['output'];
|
|
1130
1029
|
paymentCount?: Maybe<Scalars['Int']['output']>;
|
|
1030
|
+
testPaymentAvailable: Scalars['Boolean']['output'];
|
|
1131
1031
|
type: PayableAccountType;
|
|
1032
|
+
user: User;
|
|
1132
1033
|
userId: Scalars['String']['output'];
|
|
1034
|
+
verifying: Scalars['Boolean']['output'];
|
|
1133
1035
|
};
|
|
1134
1036
|
export declare type PayableAccountInstitution = {
|
|
1135
1037
|
country: Scalars['String']['output'];
|
|
@@ -1151,9 +1053,8 @@ export declare enum PayableAccountType {
|
|
|
1151
1053
|
export declare type Payment = {
|
|
1152
1054
|
__typename?: 'Payment';
|
|
1153
1055
|
account?: Maybe<BasicPayableAccount>;
|
|
1154
|
-
accountId
|
|
1056
|
+
accountId: Scalars['ObjectId']['output'];
|
|
1155
1057
|
amount?: Maybe<Scalars['Float']['output']>;
|
|
1156
|
-
bill?: Maybe<BillAccount>;
|
|
1157
1058
|
createdAt: Scalars['DateTime']['output'];
|
|
1158
1059
|
deliveryDate?: Maybe<Scalars['DateTime']['output']>;
|
|
1159
1060
|
directPayment?: Maybe<DirectPayment>;
|
|
@@ -1162,7 +1063,6 @@ export declare type Payment = {
|
|
|
1162
1063
|
externalPaymentId?: Maybe<Scalars['ObjectId']['output']>;
|
|
1163
1064
|
feeAmount?: Maybe<Scalars['Float']['output']>;
|
|
1164
1065
|
id: Scalars['ID']['output'];
|
|
1165
|
-
paymentDestination?: Maybe<PaymentDestination>;
|
|
1166
1066
|
paymentProvider: PaymentProvider;
|
|
1167
1067
|
refund?: Maybe<PaymentRefund>;
|
|
1168
1068
|
rewardsAmount?: Maybe<Scalars['Float']['output']>;
|
|
@@ -1173,7 +1073,6 @@ export declare type Payment = {
|
|
|
1173
1073
|
user: User;
|
|
1174
1074
|
userId: Scalars['ObjectId']['output'];
|
|
1175
1075
|
};
|
|
1176
|
-
export declare type PaymentDestination = CheckbookAccount | CheckbookVirtualCard | MethodFiAccount;
|
|
1177
1076
|
export declare type PaymentEventToken = {
|
|
1178
1077
|
__typename?: 'PaymentEventToken';
|
|
1179
1078
|
address: Scalars['String']['output'];
|
|
@@ -1258,15 +1157,6 @@ export declare enum PaymentType {
|
|
|
1258
1157
|
DirectPayment = "DIRECT_PAYMENT",
|
|
1259
1158
|
ScheduledPayment = "SCHEDULED_PAYMENT"
|
|
1260
1159
|
}
|
|
1261
|
-
export declare type PopularBill = {
|
|
1262
|
-
__typename?: 'PopularBill';
|
|
1263
|
-
count: Scalars['Int']['output'];
|
|
1264
|
-
id: Scalars['ID']['output'];
|
|
1265
|
-
institution: BillAccountInstitution;
|
|
1266
|
-
merchantId: Scalars['String']['output'];
|
|
1267
|
-
name: Scalars['String']['output'];
|
|
1268
|
-
type: BillType;
|
|
1269
|
-
};
|
|
1270
1160
|
export declare type PricingUser = {
|
|
1271
1161
|
__typename?: 'PricingUser';
|
|
1272
1162
|
dailyLimit?: Maybe<Scalars['Float']['output']>;
|
|
@@ -1277,8 +1167,6 @@ export declare type PricingUser = {
|
|
|
1277
1167
|
};
|
|
1278
1168
|
export declare type Query = {
|
|
1279
1169
|
__typename?: 'Query';
|
|
1280
|
-
achInstitution?: Maybe<AchInstitution>;
|
|
1281
|
-
activeBills: Array<BillAccount>;
|
|
1282
1170
|
adminCheckbookVirtualCard?: Maybe<CheckbookVirtualCard>;
|
|
1283
1171
|
adminDirectPayment?: Maybe<DirectPayment>;
|
|
1284
1172
|
adminDirectPayments: Array<DirectPayment>;
|
|
@@ -1289,9 +1177,7 @@ export declare type Query = {
|
|
|
1289
1177
|
adminUtxoInvoices: Array<UtxoInvoice>;
|
|
1290
1178
|
apiTokens: Array<ApiToken>;
|
|
1291
1179
|
bankAccounts: Array<BankAccount>;
|
|
1292
|
-
|
|
1293
|
-
/** @deprecated Use billAccounts instead */
|
|
1294
|
-
bills: Array<BillAccount>;
|
|
1180
|
+
bills: Array<Bill>;
|
|
1295
1181
|
brexBalance: BrexBalance;
|
|
1296
1182
|
checkbookPrefundedAccountBalance?: Maybe<Scalars['Float']['output']>;
|
|
1297
1183
|
checkbookVirtualCard?: Maybe<CheckbookVirtualCard>;
|
|
@@ -1299,12 +1185,12 @@ export declare type Query = {
|
|
|
1299
1185
|
circleBalances: CircleBalances;
|
|
1300
1186
|
coinbaseBalance: Scalars['Float']['output'];
|
|
1301
1187
|
cryptoExchangeRate: CryptoExchangeRate;
|
|
1188
|
+
/** @deprecated no longer in use */
|
|
1302
1189
|
directPayment?: Maybe<DirectPayment>;
|
|
1303
1190
|
directPayments: Array<DirectPayment>;
|
|
1304
1191
|
findByWalletAddress: Array<User>;
|
|
1305
1192
|
gasPrice?: Maybe<GasPrice>;
|
|
1306
1193
|
getMethodFiAuthToken?: Maybe<Scalars['String']['output']>;
|
|
1307
|
-
getPayableAccounts: Array<BasicPayableAccount>;
|
|
1308
1194
|
getSpritzSourceAccount?: Maybe<MethodFiAccount>;
|
|
1309
1195
|
getUser: User;
|
|
1310
1196
|
getUserByEmail: User;
|
|
@@ -1312,9 +1198,12 @@ export declare type Query = {
|
|
|
1312
1198
|
getUsers: Array<User>;
|
|
1313
1199
|
growsurfParticipant?: Maybe<GrowsurfParticipant>;
|
|
1314
1200
|
growsurfSecret?: Maybe<Scalars['String']['output']>;
|
|
1201
|
+
/** @deprecated No longer used */
|
|
1315
1202
|
hasBillPayPayments: Scalars['Boolean']['output'];
|
|
1203
|
+
/** @deprecated No longer used */
|
|
1316
1204
|
hasPayments: Scalars['Boolean']['output'];
|
|
1317
1205
|
integrators: Array<Integrator>;
|
|
1206
|
+
liquidityLimits: LiquidityLimits;
|
|
1318
1207
|
me: User;
|
|
1319
1208
|
memberStats?: Maybe<MemberReferralStats>;
|
|
1320
1209
|
merchants: Array<MethodFiMerchant>;
|
|
@@ -1325,6 +1214,7 @@ export declare type Query = {
|
|
|
1325
1214
|
methodFiEntity?: Maybe<MethodFiEntity>;
|
|
1326
1215
|
methodFiWebhooks: Array<MethodFiWebhook>;
|
|
1327
1216
|
notifications: Array<UserNotification>;
|
|
1217
|
+
/** @deprecated no longer in use */
|
|
1328
1218
|
outstandingDirectPayments: Array<DirectPayment>;
|
|
1329
1219
|
paginatedRewardTransactions: PaginatedRewardTransaction;
|
|
1330
1220
|
payableAccounts: Array<PayableAccount>;
|
|
@@ -1335,15 +1225,15 @@ export declare type Query = {
|
|
|
1335
1225
|
payments: Array<Payment>;
|
|
1336
1226
|
paymentsForAccount: Array<Payment>;
|
|
1337
1227
|
paymentsInProgress: Array<Payment>;
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
popularMerchants: Array<MethodFiMerchant>;
|
|
1228
|
+
pendingVerificationBills: Array<Bill>;
|
|
1229
|
+
popularUSBillInstitutions: Array<PayableAccountInstitution>;
|
|
1341
1230
|
referralStats?: Maybe<GrowsurfReferralStats>;
|
|
1342
1231
|
reversals: MethodFiReversal;
|
|
1343
1232
|
rewardsBalance: Scalars['Float']['output'];
|
|
1344
1233
|
rewardTransactions: Array<RewardTransaction>;
|
|
1345
1234
|
scheduledPayments: Array<Payment>;
|
|
1346
1235
|
sdkConfig: Array<Scalars['String']['output']>;
|
|
1236
|
+
searchUSBillInstitutions: Array<BillInstitution>;
|
|
1347
1237
|
spritzPayParams: PaymentParams;
|
|
1348
1238
|
subscriptions: Array<PaymentSubscription>;
|
|
1349
1239
|
tokenBalances: Array<TokenBalance>;
|
|
@@ -1351,14 +1241,16 @@ export declare type Query = {
|
|
|
1351
1241
|
transactionPrice: Scalars['Float']['output'];
|
|
1352
1242
|
transactions: Array<Transaction>;
|
|
1353
1243
|
transactionVolume: Scalars['Float']['output'];
|
|
1244
|
+
tronBalance: Array<TronBalance>;
|
|
1245
|
+
usBankAccountInstitution?: Maybe<BankAccountInstitution>;
|
|
1354
1246
|
/** @deprecated Use bankAccounts instead */
|
|
1355
1247
|
userBankAccounts: Array<BankAccount>;
|
|
1356
|
-
userBills: Array<BillAccount>;
|
|
1357
1248
|
userPayableAccounts: Array<PayableAccount>;
|
|
1358
1249
|
userPayment: Payment;
|
|
1359
1250
|
userPayments: Array<Payment>;
|
|
1360
1251
|
userUpcomingPayments: Array<Payment>;
|
|
1361
1252
|
userVerification?: Maybe<Verification>;
|
|
1253
|
+
userVirtualDebitCard?: Maybe<VirtualCard>;
|
|
1362
1254
|
utxoBalance: UtxoBalance;
|
|
1363
1255
|
validateReferralCode: Scalars['Boolean']['output'];
|
|
1364
1256
|
verification?: Maybe<Verification>;
|
|
@@ -1370,9 +1262,6 @@ export declare type Query = {
|
|
|
1370
1262
|
virtualCards: Array<CheckbookVirtualCard>;
|
|
1371
1263
|
virtualDebitCard?: Maybe<VirtualCard>;
|
|
1372
1264
|
};
|
|
1373
|
-
export declare type QueryAchInstitutionArgs = {
|
|
1374
|
-
routingNumber: Scalars['String']['input'];
|
|
1375
|
-
};
|
|
1376
1265
|
export declare type QueryAdminCheckbookVirtualCardArgs = {
|
|
1377
1266
|
userId: Scalars['String']['input'];
|
|
1378
1267
|
};
|
|
@@ -1415,9 +1304,6 @@ export declare type QueryFindByWalletAddressArgs = {
|
|
|
1415
1304
|
export declare type QueryGasPriceArgs = {
|
|
1416
1305
|
network: Scalars['String']['input'];
|
|
1417
1306
|
};
|
|
1418
|
-
export declare type QueryGetPayableAccountsArgs = {
|
|
1419
|
-
accountIds: Array<Scalars['String']['input']>;
|
|
1420
|
-
};
|
|
1421
1307
|
export declare type QueryGetUserArgs = {
|
|
1422
1308
|
userId: Scalars['String']['input'];
|
|
1423
1309
|
};
|
|
@@ -1462,8 +1348,12 @@ export declare type QueryPaymentsArgs = {
|
|
|
1462
1348
|
export declare type QueryPaymentsForAccountArgs = {
|
|
1463
1349
|
accountId: Scalars['String']['input'];
|
|
1464
1350
|
};
|
|
1465
|
-
export declare type
|
|
1466
|
-
|
|
1351
|
+
export declare type QueryPopularUsBillInstitutionsArgs = {
|
|
1352
|
+
billType?: InputMaybe<BillType>;
|
|
1353
|
+
};
|
|
1354
|
+
export declare type QuerySearchUsBillInstitutionsArgs = {
|
|
1355
|
+
billType?: InputMaybe<BillType>;
|
|
1356
|
+
searchTerm: Scalars['String']['input'];
|
|
1467
1357
|
};
|
|
1468
1358
|
export declare type QuerySpritzPayParamsArgs = {
|
|
1469
1359
|
amount: Scalars['Float']['input'];
|
|
@@ -1485,8 +1375,11 @@ export declare type QueryTransactionPriceArgs = {
|
|
|
1485
1375
|
export declare type QueryTransactionsArgs = {
|
|
1486
1376
|
address: Scalars['String']['input'];
|
|
1487
1377
|
};
|
|
1488
|
-
export declare type
|
|
1489
|
-
|
|
1378
|
+
export declare type QueryTronBalanceArgs = {
|
|
1379
|
+
address: Scalars['String']['input'];
|
|
1380
|
+
};
|
|
1381
|
+
export declare type QueryUsBankAccountInstitutionArgs = {
|
|
1382
|
+
routingNumber: Scalars['String']['input'];
|
|
1490
1383
|
};
|
|
1491
1384
|
export declare type QueryUserPayableAccountsArgs = {
|
|
1492
1385
|
userId: Scalars['String']['input'];
|
|
@@ -1503,6 +1396,9 @@ export declare type QueryUserUpcomingPaymentsArgs = {
|
|
|
1503
1396
|
export declare type QueryUserVerificationArgs = {
|
|
1504
1397
|
userId: Scalars['String']['input'];
|
|
1505
1398
|
};
|
|
1399
|
+
export declare type QueryUserVirtualDebitCardArgs = {
|
|
1400
|
+
userId: Scalars['String']['input'];
|
|
1401
|
+
};
|
|
1506
1402
|
export declare type QueryUtxoBalanceArgs = {
|
|
1507
1403
|
address: Scalars['String']['input'];
|
|
1508
1404
|
network: Scalars['String']['input'];
|
|
@@ -1668,6 +1564,13 @@ export declare type TransactionLog = {
|
|
|
1668
1564
|
transactionHash?: Maybe<Scalars['String']['output']>;
|
|
1669
1565
|
transactionIndex?: Maybe<Scalars['String']['output']>;
|
|
1670
1566
|
};
|
|
1567
|
+
export declare type TronBalance = {
|
|
1568
|
+
__typename?: 'TronBalance';
|
|
1569
|
+
address: Scalars['String']['output'];
|
|
1570
|
+
amount: Scalars['Float']['output'];
|
|
1571
|
+
tokenAddress: Scalars['String']['output'];
|
|
1572
|
+
tokenSymbol: Scalars['String']['output'];
|
|
1573
|
+
};
|
|
1671
1574
|
/** Fields to update on userClient */
|
|
1672
1575
|
export declare type UpdateCurrentUserInput = {
|
|
1673
1576
|
dob?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -1752,13 +1655,15 @@ export declare type UtxoInvoice = {
|
|
|
1752
1655
|
network: Scalars['String']['output'];
|
|
1753
1656
|
paymentReference: Scalars['ObjectId']['output'];
|
|
1754
1657
|
status: UtxoInvoiceStatus;
|
|
1658
|
+
symbol?: Maybe<Scalars['String']['output']>;
|
|
1755
1659
|
tokenAddress?: Maybe<Scalars['String']['output']>;
|
|
1756
1660
|
transaction?: Maybe<UtxoTransaction>;
|
|
1757
1661
|
};
|
|
1758
1662
|
export declare enum UtxoInvoiceStatus {
|
|
1759
1663
|
Confirmed = "CONFIRMED",
|
|
1760
1664
|
Created = "CREATED",
|
|
1761
|
-
Pending = "PENDING"
|
|
1665
|
+
Pending = "PENDING",
|
|
1666
|
+
Transferred = "TRANSFERRED"
|
|
1762
1667
|
}
|
|
1763
1668
|
export declare type UtxoTransaction = {
|
|
1764
1669
|
__typename?: 'UtxoTransaction';
|
|
@@ -1789,16 +1694,21 @@ export declare type VirtualCard = PayableAccount & {
|
|
|
1789
1694
|
createdAt: Scalars['DateTime']['output'];
|
|
1790
1695
|
currency: Scalars['String']['output'];
|
|
1791
1696
|
dataSync?: Maybe<AccountDataSync>;
|
|
1697
|
+
externalId?: Maybe<Scalars['String']['output']>;
|
|
1792
1698
|
id: Scalars['ID']['output'];
|
|
1793
1699
|
institution?: Maybe<PayableAccountInstitution>;
|
|
1794
1700
|
mask?: Maybe<Scalars['String']['output']>;
|
|
1795
1701
|
name?: Maybe<Scalars['String']['output']>;
|
|
1702
|
+
originalName?: Maybe<Scalars['String']['output']>;
|
|
1796
1703
|
originator: PayableAccountOriginator;
|
|
1797
1704
|
payable: Scalars['Boolean']['output'];
|
|
1798
1705
|
paymentCount?: Maybe<Scalars['Int']['output']>;
|
|
1799
1706
|
renderSecret?: Maybe<Scalars['String']['output']>;
|
|
1707
|
+
testPaymentAvailable: Scalars['Boolean']['output'];
|
|
1800
1708
|
type: PayableAccountType;
|
|
1709
|
+
user: User;
|
|
1801
1710
|
userId: Scalars['String']['output'];
|
|
1711
|
+
verifying: Scalars['Boolean']['output'];
|
|
1802
1712
|
virtualCardType: VirtualCardType;
|
|
1803
1713
|
};
|
|
1804
1714
|
export declare type VirtualCardModule = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VirtualCardType = exports.UtxoInvoiceStatus = exports.SubscriptionType = exports.SubscriptionFrequency = exports.SubscriptionErrorType = exports.RewardTransactionType = exports.RewardProvider = exports.RewardCreditSource = exports.PaymentType = exports.PaymentStatus = exports.PaymentProvider = exports.PayableAccountType = exports.PayableAccountOriginator = exports.Network = exports.ModuleStatus = exports.DirectPaymentTransactionReferenceStatus = exports.DirectPaymentStatus = exports.CheckbookPaymentStatus = exports.BillType = exports.
|
|
3
|
+
exports.VirtualCardType = exports.UtxoInvoiceStatus = exports.SubscriptionType = exports.SubscriptionFrequency = exports.SubscriptionErrorType = exports.RewardTransactionType = exports.RewardProvider = exports.RewardCreditSource = exports.PaymentType = exports.PaymentStatus = exports.PaymentProvider = exports.PayableAccountType = exports.PayableAccountOriginator = exports.Network = exports.ModuleStatus = exports.DirectPaymentTransactionReferenceStatus = exports.DirectPaymentStatus = exports.CheckbookPaymentStatus = exports.BillType = exports.BasicPayableAccountType = exports.BankAccountType = exports.BankAccountSubType = exports.AppDomain = exports.AccountSyncStatus = exports.AccountProvider = exports.AccountPaymentType = void 0;
|
|
4
4
|
var AccountPaymentType;
|
|
5
5
|
(function (AccountPaymentType) {
|
|
6
6
|
AccountPaymentType["UsBill"] = "US_BILL";
|
|
@@ -18,12 +18,6 @@ var AccountSyncStatus;
|
|
|
18
18
|
AccountSyncStatus["Syncing"] = "Syncing";
|
|
19
19
|
AccountSyncStatus["Unavailable"] = "Unavailable";
|
|
20
20
|
})(AccountSyncStatus = exports.AccountSyncStatus || (exports.AccountSyncStatus = {}));
|
|
21
|
-
var AccountType;
|
|
22
|
-
(function (AccountType) {
|
|
23
|
-
AccountType["Business"] = "BUSINESS";
|
|
24
|
-
AccountType["Checking"] = "CHECKING";
|
|
25
|
-
AccountType["Savings"] = "SAVINGS";
|
|
26
|
-
})(AccountType = exports.AccountType || (exports.AccountType = {}));
|
|
27
21
|
var AppDomain;
|
|
28
22
|
(function (AppDomain) {
|
|
29
23
|
AppDomain["Quickswap"] = "QUICKSWAP";
|
|
@@ -46,13 +40,6 @@ var BasicPayableAccountType;
|
|
|
46
40
|
BasicPayableAccountType["PayOthers"] = "PAY_OTHERS";
|
|
47
41
|
BasicPayableAccountType["SpritzCard"] = "SPRITZ_CARD";
|
|
48
42
|
})(BasicPayableAccountType = exports.BasicPayableAccountType || (exports.BasicPayableAccountType = {}));
|
|
49
|
-
var BillSyncStatus;
|
|
50
|
-
(function (BillSyncStatus) {
|
|
51
|
-
BillSyncStatus["Complete"] = "Complete";
|
|
52
|
-
BillSyncStatus["Error"] = "Error";
|
|
53
|
-
BillSyncStatus["InProgress"] = "InProgress";
|
|
54
|
-
BillSyncStatus["Unavailable"] = "Unavailable";
|
|
55
|
-
})(BillSyncStatus = exports.BillSyncStatus || (exports.BillSyncStatus = {}));
|
|
56
43
|
var BillType;
|
|
57
44
|
(function (BillType) {
|
|
58
45
|
BillType["AutoLoan"] = "AutoLoan";
|
|
@@ -196,6 +183,7 @@ var UtxoInvoiceStatus;
|
|
|
196
183
|
UtxoInvoiceStatus["Confirmed"] = "CONFIRMED";
|
|
197
184
|
UtxoInvoiceStatus["Created"] = "CREATED";
|
|
198
185
|
UtxoInvoiceStatus["Pending"] = "PENDING";
|
|
186
|
+
UtxoInvoiceStatus["Transferred"] = "TRANSFERRED";
|
|
199
187
|
})(UtxoInvoiceStatus = exports.UtxoInvoiceStatus || (exports.UtxoInvoiceStatus = {}));
|
|
200
188
|
var VirtualCardType;
|
|
201
189
|
(function (VirtualCardType) {
|
|
@@ -55,10 +55,11 @@ declare type PayableAccountModelExtension = {
|
|
|
55
55
|
nickname?: string | null;
|
|
56
56
|
payable: boolean;
|
|
57
57
|
testPaymentAvailable: boolean;
|
|
58
|
+
provider: AccountProvider;
|
|
58
59
|
};
|
|
59
|
-
declare type BillModel = Omit<Bill, 'type'> & PayableAccountModelExtension;
|
|
60
|
-
declare type BankAcountModel = Omit<BankAccount, 'type'> & PayableAccountModelExtension;
|
|
61
|
-
declare type VirtualCardModel = Omit<VirtualCard, 'type'> & PayableAccountModelExtension;
|
|
60
|
+
declare type BillModel = Omit<Bill, 'type' | 'institution'> & PayableAccountModelExtension;
|
|
61
|
+
declare type BankAcountModel = Omit<BankAccount, 'type' | 'institution'> & PayableAccountModelExtension;
|
|
62
|
+
declare type VirtualCardModel = Omit<VirtualCard, 'type' | 'institution'> & PayableAccountModelExtension;
|
|
62
63
|
export declare type PayableAccount = BankAcountModel | VirtualCardModel | BillModel;
|
|
63
64
|
export declare type PayableAccountBankAccount = BankAcountModel;
|
|
64
65
|
export declare type PayableAccountVirtualCard = VirtualCardModel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
interface User {
|
|
2
|
+
export interface User {
|
|
3
3
|
id: string;
|
|
4
4
|
email: string;
|
|
5
5
|
firstName?: string;
|
|
@@ -7,7 +7,16 @@ interface User {
|
|
|
7
7
|
timezone?: string;
|
|
8
8
|
attributionSource?: string;
|
|
9
9
|
appDomain?: string;
|
|
10
|
+
createdAt: string;
|
|
10
11
|
}
|
|
12
|
+
export declare type IntegratorWebhook = {
|
|
13
|
+
id: string;
|
|
14
|
+
integratorId: string;
|
|
15
|
+
failureCount: number;
|
|
16
|
+
events: string[];
|
|
17
|
+
url: string;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
};
|
|
11
20
|
export declare class UsersServiceClient {
|
|
12
21
|
client: AxiosInstance;
|
|
13
22
|
constructor();
|
|
@@ -15,5 +24,5 @@ export declare class UsersServiceClient {
|
|
|
15
24
|
setMembership(userId: string, membership: string): Promise<User>;
|
|
16
25
|
findOrInitialize(email: string): Promise<User>;
|
|
17
26
|
findByEmail(email: string): Promise<User>;
|
|
27
|
+
getIntegratorWebhooks(integratorId: string): Promise<IntegratorWebhook[]>;
|
|
18
28
|
}
|
|
19
|
-
export {};
|
|
@@ -31,5 +31,10 @@ class UsersServiceClient {
|
|
|
31
31
|
.get(`/users/email/${email}`)
|
|
32
32
|
.then((res) => res.data);
|
|
33
33
|
}
|
|
34
|
+
async getIntegratorWebhooks(integratorId) {
|
|
35
|
+
return this.client
|
|
36
|
+
.get(`/integrators/service/webhooks/${integratorId}`)
|
|
37
|
+
.then((res) => res.data);
|
|
38
|
+
}
|
|
34
39
|
}
|
|
35
40
|
exports.UsersServiceClient = UsersServiceClient;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spritz-finance/service-client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.47",
|
|
4
4
|
"description": "Service client",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
"author": "",
|
|
20
20
|
"license": "ISC",
|
|
21
21
|
"dependencies": {
|
|
22
|
+
"@spritz-finance/config": "^0.1.5",
|
|
23
|
+
"@spritz-finance/logger": "^0.1.23",
|
|
22
24
|
"axios": "^0.26.1",
|
|
23
25
|
"axios-oauth-client": "^1.4.4",
|
|
24
26
|
"axios-token-interceptor": "^0.2.0",
|