@spritz-finance/service-client 0.3.36 → 0.3.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/liabilities/liabilitiesServiceClient.d.ts +2 -1
- package/lib/liabilities/liabilitiesServiceClient.js +7 -1
- package/lib/liabilities/types.d.ts +12 -0
- package/lib/lib/graphClient/generated.d.ts +370 -37
- package/lib/lib/graphClient/generated.js +27 -1
- package/lib/onramp/onrampServiceClient.d.ts +2 -1
- package/lib/onramp/onrampServiceClient.js +7 -1
- package/lib/onramp/types.d.ts +19 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as LiabilitiesClient from './liabilitiesServiceClient';
|
|
2
2
|
import { CheckbookUser } from '../lib/graphClient/generated';
|
|
3
3
|
import { ExternalBillInput } from '../payableAccounts/types';
|
|
4
|
-
import { CheckbookCardResponse, CheckbookDebitCardResponse, CheckbookUpdateCardResponse, CreateCheckbookUserParams, CreateDebitCardInput, CreateEntityParams, MethodFiEntity, RewardTransaction } from './types';
|
|
4
|
+
import { CheckbookCardResponse, CheckbookDebitCardResponse, CheckbookDigitalAccountResponse, CheckbookUpdateCardResponse, CreateCheckbookUserParams, CreateDebitCardInput, CreateDigitalAccountInput, CreateEntityParams, MethodFiEntity, RewardTransaction } from './types';
|
|
5
5
|
export declare function getRewardTransaction(transactionId: string): Promise<RewardTransaction>;
|
|
6
6
|
export declare function createMethodFiEntity(args: CreateEntityParams): Promise<MethodFiEntity>;
|
|
7
7
|
export declare function getMethodFiEntity(userId: string): Promise<MethodFiEntity>;
|
|
@@ -10,6 +10,7 @@ export declare function upsertCheckbookUser(args: CreateCheckbookUserParams): Pr
|
|
|
10
10
|
export declare function getCheckbookUser(userId: string): Promise<CheckbookUser>;
|
|
11
11
|
export declare function createCheckbookVirtualCard(userId: string): Promise<CheckbookCardResponse>;
|
|
12
12
|
export declare function createCheckbookDebitCard(input: CreateDebitCardInput): Promise<CheckbookDebitCardResponse>;
|
|
13
|
+
export declare function createCheckbookDigitalAccount(input: CreateDigitalAccountInput): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<CheckbookDigitalAccountResponse>>;
|
|
13
14
|
export declare function createUSBillFromAccountNumber(userId: string, accountNumber: string, merchantId: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<ExternalBillInput>>;
|
|
14
15
|
export declare function getVirtualCardBalance(cardExternalId: string, userId: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<number>>;
|
|
15
16
|
export declare function getUserIdForDirectPayment(directPaymentId: string): Promise<string>;
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.getRewardTransactionsFor = exports.addPromotionCredit = exports.updateCheckbookVirtualCard = exports.getUserIdForDirectPayment = exports.getVirtualCardBalance = exports.createUSBillFromAccountNumber = exports.createCheckbookDebitCard = exports.createCheckbookVirtualCard = exports.getCheckbookUser = exports.upsertCheckbookUser = exports.createCheckbookUser = exports.getMethodFiEntity = exports.createMethodFiEntity = exports.getRewardTransaction = exports.LiabilitiesClient = void 0;
|
|
26
|
+
exports.getRewardTransactionsFor = exports.addPromotionCredit = exports.updateCheckbookVirtualCard = exports.getUserIdForDirectPayment = exports.getVirtualCardBalance = exports.createUSBillFromAccountNumber = exports.createCheckbookDigitalAccount = exports.createCheckbookDebitCard = exports.createCheckbookVirtualCard = exports.getCheckbookUser = exports.upsertCheckbookUser = exports.createCheckbookUser = exports.getMethodFiEntity = exports.createMethodFiEntity = exports.getRewardTransaction = exports.LiabilitiesClient = void 0;
|
|
27
27
|
exports.LiabilitiesClient = __importStar(require("./liabilitiesServiceClient"));
|
|
28
28
|
const serviceClient_1 = require("../serviceClient");
|
|
29
29
|
const LIABILITIES_ENDPOINT = '/liabilities';
|
|
@@ -75,6 +75,12 @@ async function createCheckbookDebitCard(input) {
|
|
|
75
75
|
.then((res) => res.data);
|
|
76
76
|
}
|
|
77
77
|
exports.createCheckbookDebitCard = createCheckbookDebitCard;
|
|
78
|
+
async function createCheckbookDigitalAccount(input) {
|
|
79
|
+
return serviceClient_1.baseClient
|
|
80
|
+
.post(`${LIABILITIES_ENDPOINT}/digital-account/create`, input)
|
|
81
|
+
.then((res) => res.data);
|
|
82
|
+
}
|
|
83
|
+
exports.createCheckbookDigitalAccount = createCheckbookDigitalAccount;
|
|
78
84
|
async function createUSBillFromAccountNumber(userId, accountNumber, merchantId) {
|
|
79
85
|
return serviceClient_1.baseClient
|
|
80
86
|
.post(`${LIABILITIES_ENDPOINT}/methodFi/bill/user/${userId}`, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DigitalAccountType } from '../lib/graphClient/generated';
|
|
1
2
|
export declare enum RewardProvider {
|
|
2
3
|
INTERNAL = "INTERNAL",
|
|
3
4
|
REFERRAL_ROCK = "REFERRAL_ROCK",
|
|
@@ -168,6 +169,11 @@ export type CreateDebitCardInput = {
|
|
|
168
169
|
cardNumber: string;
|
|
169
170
|
expirationDate: string;
|
|
170
171
|
};
|
|
172
|
+
export type CreateDigitalAccountInput = {
|
|
173
|
+
userId: string;
|
|
174
|
+
identifier: string;
|
|
175
|
+
type: DigitalAccountType;
|
|
176
|
+
};
|
|
171
177
|
export type CheckbookDebitCardResponse = {
|
|
172
178
|
userId: string;
|
|
173
179
|
externalId: string;
|
|
@@ -175,6 +181,12 @@ export type CheckbookDebitCardResponse = {
|
|
|
175
181
|
cardNumber: string;
|
|
176
182
|
expirationDate: string;
|
|
177
183
|
};
|
|
184
|
+
export type CheckbookDigitalAccountResponse = {
|
|
185
|
+
userId: string;
|
|
186
|
+
externalId: string;
|
|
187
|
+
type: string;
|
|
188
|
+
identifier: string;
|
|
189
|
+
};
|
|
178
190
|
export type CheckbookUpdateCardResponse = {
|
|
179
191
|
userId: string;
|
|
180
192
|
externalId: string;
|
|
@@ -70,9 +70,14 @@ export declare enum AccountSyncStatus {
|
|
|
70
70
|
Syncing = "Syncing",
|
|
71
71
|
Unavailable = "Unavailable"
|
|
72
72
|
}
|
|
73
|
-
export type
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
export type AdIdentifierInput = {
|
|
74
|
+
gclid?: InputMaybe<Scalars['String']['input']>;
|
|
75
|
+
twclid?: InputMaybe<Scalars['String']['input']>;
|
|
76
|
+
};
|
|
77
|
+
export type AdIdentifiersInput = {
|
|
78
|
+
fbclid?: InputMaybe<Scalars['String']['input']>;
|
|
79
|
+
gclid?: InputMaybe<Scalars['String']['input']>;
|
|
80
|
+
twclid?: InputMaybe<Scalars['String']['input']>;
|
|
76
81
|
};
|
|
77
82
|
export type Address = {
|
|
78
83
|
__typename?: 'Address';
|
|
@@ -83,11 +88,29 @@ export type Address = {
|
|
|
83
88
|
street2?: Maybe<Scalars['String']['output']>;
|
|
84
89
|
subdivision?: Maybe<Scalars['String']['output']>;
|
|
85
90
|
};
|
|
91
|
+
export type AddressInput = {
|
|
92
|
+
address_line_1: Scalars['String']['input'];
|
|
93
|
+
address_line_2?: InputMaybe<Scalars['String']['input']>;
|
|
94
|
+
city: Scalars['String']['input'];
|
|
95
|
+
post_code: Scalars['String']['input'];
|
|
96
|
+
};
|
|
86
97
|
export type AdminIssuePaymentInput = {
|
|
87
98
|
accountId: Scalars['String']['input'];
|
|
88
99
|
amount: Scalars['Float']['input'];
|
|
100
|
+
instant?: InputMaybe<Scalars['Boolean']['input']>;
|
|
89
101
|
userId: Scalars['String']['input'];
|
|
90
102
|
};
|
|
103
|
+
export type AffiliateCode = {
|
|
104
|
+
__typename?: 'AffiliateCode';
|
|
105
|
+
assigned: Scalars['Boolean']['output'];
|
|
106
|
+
assignedAt?: Maybe<Scalars['DateTimeISO']['output']>;
|
|
107
|
+
code: Scalars['String']['output'];
|
|
108
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
109
|
+
email?: Maybe<Scalars['String']['output']>;
|
|
110
|
+
id: Scalars['ID']['output'];
|
|
111
|
+
inviteLink: Scalars['String']['output'];
|
|
112
|
+
userId?: Maybe<Scalars['String']['output']>;
|
|
113
|
+
};
|
|
91
114
|
export type ApiToken = {
|
|
92
115
|
__typename?: 'ApiToken';
|
|
93
116
|
createdAt: Scalars['DateTimeISO']['output'];
|
|
@@ -118,6 +141,11 @@ export type AvailableVirtualCardType = {
|
|
|
118
141
|
__typename?: 'AvailableVirtualCardType';
|
|
119
142
|
type: Scalars['String']['output'];
|
|
120
143
|
};
|
|
144
|
+
export type BalanceChange = {
|
|
145
|
+
__typename?: 'BalanceChange';
|
|
146
|
+
absoluteChange: Scalars['Float']['output'];
|
|
147
|
+
percentageChange: Scalars['Float']['output'];
|
|
148
|
+
};
|
|
121
149
|
export type BankAccount = PayableAccount & {
|
|
122
150
|
__typename?: 'BankAccount';
|
|
123
151
|
accountNumber: Scalars['String']['output'];
|
|
@@ -129,7 +157,9 @@ export type BankAccount = PayableAccount & {
|
|
|
129
157
|
createdAt: Scalars['DateTimeISO']['output'];
|
|
130
158
|
currency: Scalars['String']['output'];
|
|
131
159
|
dataSync?: Maybe<AccountDataSync>;
|
|
160
|
+
deleted: Scalars['Boolean']['output'];
|
|
132
161
|
deliveryMethods: Array<PaymentDeliveryMethod>;
|
|
162
|
+
disabled: Scalars['Boolean']['output'];
|
|
133
163
|
email?: Maybe<Scalars['String']['output']>;
|
|
134
164
|
externalId?: Maybe<Scalars['String']['output']>;
|
|
135
165
|
holder: Scalars['String']['output'];
|
|
@@ -224,7 +254,9 @@ export type Bill = PayableAccount & {
|
|
|
224
254
|
createdAt: Scalars['DateTimeISO']['output'];
|
|
225
255
|
currency: Scalars['String']['output'];
|
|
226
256
|
dataSync?: Maybe<AccountDataSync>;
|
|
257
|
+
deleted: Scalars['Boolean']['output'];
|
|
227
258
|
deliveryMethods: Array<PaymentDeliveryMethod>;
|
|
259
|
+
disabled: Scalars['Boolean']['output'];
|
|
228
260
|
externalId?: Maybe<Scalars['String']['output']>;
|
|
229
261
|
id: Scalars['ID']['output'];
|
|
230
262
|
institution?: Maybe<PayableAccountInstitution>;
|
|
@@ -317,7 +349,10 @@ export type BrexBalance = {
|
|
|
317
349
|
};
|
|
318
350
|
export type BridgeUser = {
|
|
319
351
|
__typename?: 'BridgeUser';
|
|
352
|
+
email: Scalars['String']['output'];
|
|
320
353
|
error?: Maybe<Scalars['String']['output']>;
|
|
354
|
+
externalId: Scalars['String']['output'];
|
|
355
|
+
has_accepted_terms_of_service: Scalars['Boolean']['output'];
|
|
321
356
|
id: Scalars['ID']['output'];
|
|
322
357
|
kycLink?: Maybe<Scalars['String']['output']>;
|
|
323
358
|
kycStatus: Scalars['String']['output'];
|
|
@@ -415,6 +450,7 @@ export type CheckbookSendQueuedPaymentsInput = {
|
|
|
415
450
|
export type CheckbookUser = {
|
|
416
451
|
__typename?: 'CheckbookUser';
|
|
417
452
|
address: CheckbookAddress;
|
|
453
|
+
dob: Scalars['String']['output'];
|
|
418
454
|
email: Scalars['String']['output'];
|
|
419
455
|
firstName: Scalars['String']['output'];
|
|
420
456
|
id: Scalars['ID']['output'];
|
|
@@ -435,7 +471,6 @@ export type CognitoKycFlow = {
|
|
|
435
471
|
shareable_url?: Maybe<Scalars['String']['output']>;
|
|
436
472
|
status: Scalars['String']['output'];
|
|
437
473
|
template: CognitoKycFlowTemplate;
|
|
438
|
-
userCompleted: Scalars['Boolean']['output'];
|
|
439
474
|
userId: Scalars['ObjectID']['output'];
|
|
440
475
|
};
|
|
441
476
|
export type CognitoKycFlowTemplate = {
|
|
@@ -453,6 +488,8 @@ export type CreateDirectPaymentInput = {
|
|
|
453
488
|
amount: Scalars['Float']['input'];
|
|
454
489
|
deliveryMethod?: InputMaybe<PaymentDeliveryMethod>;
|
|
455
490
|
network: Scalars['String']['input'];
|
|
491
|
+
paymentNote?: InputMaybe<Scalars['String']['input']>;
|
|
492
|
+
pointsRedemptionId?: InputMaybe<Scalars['String']['input']>;
|
|
456
493
|
provider?: InputMaybe<AccountProvider>;
|
|
457
494
|
/** The amount of rewards balance to apply to the payment */
|
|
458
495
|
rewardsAmount?: InputMaybe<Scalars['Float']['input']>;
|
|
@@ -497,12 +534,15 @@ export type CryptoExchangeRate = {
|
|
|
497
534
|
};
|
|
498
535
|
export type DebitCard = PayableAccount & {
|
|
499
536
|
__typename?: 'DebitCard';
|
|
537
|
+
cardNumber: Scalars['String']['output'];
|
|
500
538
|
country: Scalars['String']['output'];
|
|
501
539
|
createdAt: Scalars['DateTimeISO']['output'];
|
|
502
540
|
currency: Scalars['String']['output'];
|
|
503
541
|
dataSync?: Maybe<AccountDataSync>;
|
|
504
542
|
debitCardNetwork: DebitCardNetwork;
|
|
543
|
+
deleted: Scalars['Boolean']['output'];
|
|
505
544
|
deliveryMethods: Array<PaymentDeliveryMethod>;
|
|
545
|
+
disabled: Scalars['Boolean']['output'];
|
|
506
546
|
expirationDate: Scalars['String']['output'];
|
|
507
547
|
externalId?: Maybe<Scalars['String']['output']>;
|
|
508
548
|
id: Scalars['ID']['output'];
|
|
@@ -539,6 +579,42 @@ export type DebitCardPayable = {
|
|
|
539
579
|
__typename?: 'DebitCardPayable';
|
|
540
580
|
country: Scalars['String']['output'];
|
|
541
581
|
};
|
|
582
|
+
export type DigitalAccount = PayableAccount & {
|
|
583
|
+
__typename?: 'DigitalAccount';
|
|
584
|
+
country: Scalars['String']['output'];
|
|
585
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
586
|
+
currency: Scalars['String']['output'];
|
|
587
|
+
dataSync?: Maybe<AccountDataSync>;
|
|
588
|
+
deleted: Scalars['Boolean']['output'];
|
|
589
|
+
deliveryMethods: Array<PaymentDeliveryMethod>;
|
|
590
|
+
digitalAccountType: DigitalAccountType;
|
|
591
|
+
disabled: Scalars['Boolean']['output'];
|
|
592
|
+
externalId?: Maybe<Scalars['String']['output']>;
|
|
593
|
+
id: Scalars['ID']['output'];
|
|
594
|
+
institution?: Maybe<PayableAccountInstitution>;
|
|
595
|
+
mask?: Maybe<Scalars['String']['output']>;
|
|
596
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
597
|
+
originalName?: Maybe<Scalars['String']['output']>;
|
|
598
|
+
originator: PayableAccountOriginator;
|
|
599
|
+
payable: Scalars['Boolean']['output'];
|
|
600
|
+
paymentCount: Scalars['Int']['output'];
|
|
601
|
+
paymentVolume: Scalars['Float']['output'];
|
|
602
|
+
provider: Scalars['String']['output'];
|
|
603
|
+
type: PayableAccountType;
|
|
604
|
+
user: User;
|
|
605
|
+
userId: Scalars['String']['output'];
|
|
606
|
+
verifying: Scalars['Boolean']['output'];
|
|
607
|
+
};
|
|
608
|
+
export type DigitalAccountInput = {
|
|
609
|
+
identifier: Scalars['String']['input'];
|
|
610
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
611
|
+
type: DigitalAccountType;
|
|
612
|
+
};
|
|
613
|
+
export declare enum DigitalAccountType {
|
|
614
|
+
PayPal = "PayPal",
|
|
615
|
+
Venmo = "Venmo",
|
|
616
|
+
Zelle = "Zelle"
|
|
617
|
+
}
|
|
542
618
|
export type DirectPayment = {
|
|
543
619
|
__typename?: 'DirectPayment';
|
|
544
620
|
account?: Maybe<BasicPayableAccount>;
|
|
@@ -549,21 +625,24 @@ export type DirectPayment = {
|
|
|
549
625
|
currentTime?: Maybe<Scalars['DateTimeISO']['output']>;
|
|
550
626
|
deliveryMethod?: Maybe<Scalars['String']['output']>;
|
|
551
627
|
feeAmount?: Maybe<Scalars['Float']['output']>;
|
|
628
|
+
feeDiscount: Scalars['Float']['output'];
|
|
552
629
|
id: Scalars['ID']['output'];
|
|
553
630
|
invoice?: Maybe<UtxoInvoice>;
|
|
554
631
|
isToPaymentAddress?: Maybe<Scalars['Boolean']['output']>;
|
|
555
632
|
network: Scalars['String']['output'];
|
|
633
|
+
outputAsset?: Maybe<PaymentAsset>;
|
|
556
634
|
payableAccount: PayableAccount;
|
|
635
|
+
paymentAsset?: Maybe<PaymentAsset>;
|
|
557
636
|
paymentId: Scalars['ObjectID']['output'];
|
|
558
|
-
provider: AccountProvider;
|
|
559
637
|
rewardsAmount?: Maybe<Scalars['Float']['output']>;
|
|
560
638
|
source: PaymentSource;
|
|
561
639
|
status: DirectPaymentStatus;
|
|
562
|
-
subscriptionId?: Maybe<Scalars['
|
|
640
|
+
subscriptionId?: Maybe<Scalars['String']['output']>;
|
|
563
641
|
targetCurrency?: Maybe<Scalars['String']['output']>;
|
|
564
642
|
targetCurrencyAmount: Scalars['Float']['output'];
|
|
565
643
|
targetCurrencyFee: Scalars['Float']['output'];
|
|
566
644
|
targetCurrencyRate: Scalars['Float']['output'];
|
|
645
|
+
testPayment: Scalars['Boolean']['output'];
|
|
567
646
|
toAddress?: Maybe<Scalars['String']['output']>;
|
|
568
647
|
tokenAddress: Scalars['String']['output'];
|
|
569
648
|
totalAmount: Scalars['Float']['output'];
|
|
@@ -580,6 +659,7 @@ export declare enum DirectPaymentStatus {
|
|
|
580
659
|
Created = "CREATED",
|
|
581
660
|
Failed = "FAILED",
|
|
582
661
|
FailedValidation = "FAILED_VALIDATION",
|
|
662
|
+
InsufficientFunds = "INSUFFICIENT_FUNDS",
|
|
583
663
|
Pending = "PENDING",
|
|
584
664
|
Refunded = "REFUNDED",
|
|
585
665
|
TransactionFailed = "TRANSACTION_FAILED",
|
|
@@ -588,7 +668,7 @@ export declare enum DirectPaymentStatus {
|
|
|
588
668
|
export type DirectPaymentTransactionReference = {
|
|
589
669
|
__typename?: 'DirectPaymentTransactionReference';
|
|
590
670
|
asset?: Maybe<Scalars['String']['output']>;
|
|
591
|
-
from?: Maybe<Scalars['String']['output']
|
|
671
|
+
from?: Maybe<Array<Scalars['String']['output']>>;
|
|
592
672
|
hash: Scalars['String']['output'];
|
|
593
673
|
link: Scalars['String']['output'];
|
|
594
674
|
network: Scalars['String']['output'];
|
|
@@ -629,6 +709,7 @@ export type FeeCalculation = {
|
|
|
629
709
|
__typename?: 'FeeCalculation';
|
|
630
710
|
amount: Scalars['Float']['output'];
|
|
631
711
|
feeAmount: Scalars['Float']['output'];
|
|
712
|
+
feeDiscount: Scalars['Float']['output'];
|
|
632
713
|
minimumFeeApplied: Scalars['Boolean']['output'];
|
|
633
714
|
totalAmount: Scalars['Float']['output'];
|
|
634
715
|
};
|
|
@@ -649,12 +730,15 @@ export type IdentityModule = {
|
|
|
649
730
|
__typename?: 'IdentityModule';
|
|
650
731
|
accountType?: Maybe<Scalars['String']['output']>;
|
|
651
732
|
business?: Maybe<BusinessIdentity>;
|
|
733
|
+
canRetry: Scalars['Boolean']['output'];
|
|
652
734
|
country?: Maybe<Scalars['String']['output']>;
|
|
735
|
+
lastFailureReason?: Maybe<Scalars['String']['output']>;
|
|
653
736
|
sessionId?: Maybe<Scalars['String']['output']>;
|
|
654
737
|
status: ModuleStatus;
|
|
655
738
|
statusLog?: Maybe<Array<StatusLogEntry>>;
|
|
656
739
|
templateId?: Maybe<Scalars['String']['output']>;
|
|
657
740
|
user?: Maybe<UserIdentity>;
|
|
741
|
+
verificationFailures: VerificationFailures;
|
|
658
742
|
verificationUrl?: Maybe<Scalars['String']['output']>;
|
|
659
743
|
};
|
|
660
744
|
export type IntegrationToken = {
|
|
@@ -666,6 +750,7 @@ export type IntegrationToken = {
|
|
|
666
750
|
};
|
|
667
751
|
export type Integrator = {
|
|
668
752
|
__typename?: 'Integrator';
|
|
753
|
+
_id: Scalars['String']['output'];
|
|
669
754
|
email: Scalars['String']['output'];
|
|
670
755
|
id: Scalars['ID']['output'];
|
|
671
756
|
integrationTokens: Array<IntegrationToken>;
|
|
@@ -870,15 +955,18 @@ export type Mutation = {
|
|
|
870
955
|
__typename?: 'Mutation';
|
|
871
956
|
addAssociatedWallet: Scalars['Boolean']['output'];
|
|
872
957
|
addSignupCode: Scalars['Boolean']['output'];
|
|
873
|
-
/** @deprecated No longer used */
|
|
874
|
-
addTransactionToDirectPayment: DirectPayment;
|
|
875
958
|
addUSBill: Bill;
|
|
959
|
+
adminCreateNewAffiliateCode: Scalars['Boolean']['output'];
|
|
960
|
+
adminDeleteAccount: PayableAccount;
|
|
876
961
|
adminIssuePayment?: Maybe<Payment>;
|
|
877
962
|
adminResyncUserProviders?: Maybe<Verification>;
|
|
963
|
+
adminSetReferralProgramStatus?: Maybe<Referral>;
|
|
964
|
+
adminSetSetReferrer: Scalars['Boolean']['output'];
|
|
878
965
|
approvePaymentReversal: Scalars['Boolean']['output'];
|
|
879
966
|
associateNotificationToken: UserNotificationToken;
|
|
880
967
|
cancelOnrampPayment: Scalars['Boolean']['output'];
|
|
881
968
|
cancelPayment: Payment;
|
|
969
|
+
cancelQueuedPayment: Scalars['Boolean']['output'];
|
|
882
970
|
changeBillType: Bill;
|
|
883
971
|
checkbookNotifyFunding: Scalars['Boolean']['output'];
|
|
884
972
|
checkbookReleasePayment?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -888,6 +976,7 @@ export type Mutation = {
|
|
|
888
976
|
createApiTokenFor?: Maybe<ApiToken>;
|
|
889
977
|
createBankAccount: BankAccount;
|
|
890
978
|
createDebitCard: DebitCard;
|
|
979
|
+
createDigitalPaymentAccount: DigitalAccount;
|
|
891
980
|
createDirectPayment: DirectPayment;
|
|
892
981
|
createIntegrationToken: IntegrationToken;
|
|
893
982
|
createIntegrator: Integrator;
|
|
@@ -898,27 +987,29 @@ export type Mutation = {
|
|
|
898
987
|
createUSVirtualDebitCard: VirtualCard;
|
|
899
988
|
createUser: User;
|
|
900
989
|
createVirtualAccount: BridgeVirtualAccount;
|
|
901
|
-
deleteDirectPayment: Scalars['Boolean']['output'];
|
|
902
990
|
deletePayableAccount: PayableAccount;
|
|
903
991
|
deleteSubscription: Scalars['Boolean']['output'];
|
|
904
992
|
disableUser?: Maybe<Verification>;
|
|
905
993
|
dismissItem: Scalars['Boolean']['output'];
|
|
906
|
-
finishBridgeUserSetup: BridgeUser;
|
|
907
994
|
flushBalances: Array<TokenBalance>;
|
|
908
995
|
forcePayment: Payment;
|
|
909
996
|
forceStrictVerification?: Maybe<Verification>;
|
|
910
997
|
forceStrictVerificationUser?: Maybe<Verification>;
|
|
998
|
+
getKycLinkToken: Scalars['String']['output'];
|
|
911
999
|
grantCredit: RewardTransaction;
|
|
912
|
-
|
|
1000
|
+
initializeDirectPayment: Scalars['Boolean']['output'];
|
|
913
1001
|
lockEntityAuth: MethodFiEntity;
|
|
914
1002
|
markNotificationAsRead?: Maybe<UserNotification>;
|
|
1003
|
+
markPaymentAsRefunded: Payment;
|
|
915
1004
|
methodFiUpdateSSN: MethodFiEntity;
|
|
916
1005
|
moveMoney: Scalars['Boolean']['output'];
|
|
917
|
-
paymentAddressForceWithdrawal: Scalars['
|
|
1006
|
+
paymentAddressForceWithdrawal: Scalars['Boolean']['output'];
|
|
918
1007
|
paymentAddressRescueNative: Scalars['String']['output'];
|
|
1008
|
+
reactivateBill: Bill;
|
|
919
1009
|
refreshEntities: Scalars['Boolean']['output'];
|
|
920
1010
|
refundPayment: Payment;
|
|
921
1011
|
refundPaymentWithCredits: Payment;
|
|
1012
|
+
refundPaymentWithPayment: Payment;
|
|
922
1013
|
renamePayableAccount: PayableAccount;
|
|
923
1014
|
requestAccountDeletion: Scalars['Boolean']['output'];
|
|
924
1015
|
requestBankAccountVerification: Scalars['Boolean']['output'];
|
|
@@ -926,8 +1017,11 @@ export type Mutation = {
|
|
|
926
1017
|
resetEntity: Scalars['Boolean']['output'];
|
|
927
1018
|
restartFlow: Verification;
|
|
928
1019
|
resubmitEntityVerification: Scalars['Boolean']['output'];
|
|
1020
|
+
resyncBridgeUser: BridgeUser;
|
|
1021
|
+
retryFailedVerification: Verification;
|
|
929
1022
|
retrySubscriptionCharge: Scalars['Boolean']['output'];
|
|
930
1023
|
revokeApiToken: Scalars['Boolean']['output'];
|
|
1024
|
+
revokeCredit: RewardTransaction;
|
|
931
1025
|
scheduleSendSetupReminder: Scalars['Boolean']['output'];
|
|
932
1026
|
setBridgeUserAgreementId: BridgeUser;
|
|
933
1027
|
setIntegrator: Scalars['Boolean']['output'];
|
|
@@ -945,6 +1039,8 @@ export type Mutation = {
|
|
|
945
1039
|
skipAttributionSurvey: Scalars['Boolean']['output'];
|
|
946
1040
|
submitAttributionSurvey: Scalars['Boolean']['output'];
|
|
947
1041
|
submitBankAccountVerification: BankAccount;
|
|
1042
|
+
submitSwapTransaction: SwapTransaction;
|
|
1043
|
+
updateAdIdentifiers: Scalars['Boolean']['output'];
|
|
948
1044
|
updateAnalyticsSession?: Maybe<User>;
|
|
949
1045
|
updateAppDomain: Scalars['Boolean']['output'];
|
|
950
1046
|
updateAttributionSource?: Maybe<User>;
|
|
@@ -959,22 +1055,33 @@ export type MutationAddAssociatedWalletArgs = {
|
|
|
959
1055
|
address: Scalars['String']['input'];
|
|
960
1056
|
};
|
|
961
1057
|
export type MutationAddSignupCodeArgs = {
|
|
1058
|
+
identifiers?: InputMaybe<AdIdentifierInput>;
|
|
962
1059
|
signupCode: Scalars['String']['input'];
|
|
963
1060
|
};
|
|
964
|
-
export type MutationAddTransactionToDirectPaymentArgs = {
|
|
965
|
-
addTransactionToPaymentInput: AddTransactionToPaymentInput;
|
|
966
|
-
};
|
|
967
1061
|
export type MutationAddUsBillArgs = {
|
|
968
1062
|
accountNumber: Scalars['String']['input'];
|
|
969
1063
|
institutionId: Scalars['String']['input'];
|
|
970
1064
|
type?: InputMaybe<BillType>;
|
|
971
1065
|
};
|
|
1066
|
+
export type MutationAdminDeleteAccountArgs = {
|
|
1067
|
+
accountId: Scalars['String']['input'];
|
|
1068
|
+
userId: Scalars['String']['input'];
|
|
1069
|
+
};
|
|
972
1070
|
export type MutationAdminIssuePaymentArgs = {
|
|
973
1071
|
issuePaymentInput: AdminIssuePaymentInput;
|
|
974
1072
|
};
|
|
975
1073
|
export type MutationAdminResyncUserProvidersArgs = {
|
|
976
1074
|
userId: Scalars['String']['input'];
|
|
977
1075
|
};
|
|
1076
|
+
export type MutationAdminSetReferralProgramStatusArgs = {
|
|
1077
|
+
note?: InputMaybe<Scalars['String']['input']>;
|
|
1078
|
+
status: ReferralProgramStatus;
|
|
1079
|
+
userId: Scalars['String']['input'];
|
|
1080
|
+
};
|
|
1081
|
+
export type MutationAdminSetSetReferrerArgs = {
|
|
1082
|
+
referrer: Scalars['String']['input'];
|
|
1083
|
+
userId: Scalars['String']['input'];
|
|
1084
|
+
};
|
|
978
1085
|
export type MutationApprovePaymentReversalArgs = {
|
|
979
1086
|
paymentId: Scalars['String']['input'];
|
|
980
1087
|
};
|
|
@@ -987,6 +1094,9 @@ export type MutationCancelOnrampPaymentArgs = {
|
|
|
987
1094
|
export type MutationCancelPaymentArgs = {
|
|
988
1095
|
paymentId: Scalars['String']['input'];
|
|
989
1096
|
};
|
|
1097
|
+
export type MutationCancelQueuedPaymentArgs = {
|
|
1098
|
+
paymentId: Scalars['String']['input'];
|
|
1099
|
+
};
|
|
990
1100
|
export type MutationChangeBillTypeArgs = {
|
|
991
1101
|
accountId: Scalars['String']['input'];
|
|
992
1102
|
billType: BillType;
|
|
@@ -1002,7 +1112,7 @@ export type MutationCheckbookSendQueuedPaymentsArgs = {
|
|
|
1002
1112
|
};
|
|
1003
1113
|
export type MutationCheckbookSetReleaseDateArgs = {
|
|
1004
1114
|
paymentId: Scalars['String']['input'];
|
|
1005
|
-
releaseDate?: InputMaybe<Scalars['
|
|
1115
|
+
releaseDate?: InputMaybe<Scalars['String']['input']>;
|
|
1006
1116
|
};
|
|
1007
1117
|
export type MutationCreateApiTokenForArgs = {
|
|
1008
1118
|
integratorId?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -1014,6 +1124,9 @@ export type MutationCreateBankAccountArgs = {
|
|
|
1014
1124
|
export type MutationCreateDebitCardArgs = {
|
|
1015
1125
|
createDebitCardInput: DebitCardInput;
|
|
1016
1126
|
};
|
|
1127
|
+
export type MutationCreateDigitalPaymentAccountArgs = {
|
|
1128
|
+
createAccountInput: DigitalAccountInput;
|
|
1129
|
+
};
|
|
1017
1130
|
export type MutationCreateDirectPaymentArgs = {
|
|
1018
1131
|
createDirectPaymentInput: CreateDirectPaymentInput;
|
|
1019
1132
|
};
|
|
@@ -1043,9 +1156,6 @@ export type MutationCreateUserArgs = {
|
|
|
1043
1156
|
export type MutationCreateVirtualAccountArgs = {
|
|
1044
1157
|
createBridgeVirtualAccountInput: CreateBridgeVirtualAccountInput;
|
|
1045
1158
|
};
|
|
1046
|
-
export type MutationDeleteDirectPaymentArgs = {
|
|
1047
|
-
directPaymentId: Scalars['String']['input'];
|
|
1048
|
-
};
|
|
1049
1159
|
export type MutationDeletePayableAccountArgs = {
|
|
1050
1160
|
accountId: Scalars['String']['input'];
|
|
1051
1161
|
};
|
|
@@ -1058,9 +1168,6 @@ export type MutationDisableUserArgs = {
|
|
|
1058
1168
|
export type MutationDismissItemArgs = {
|
|
1059
1169
|
property: Scalars['String']['input'];
|
|
1060
1170
|
};
|
|
1061
|
-
export type MutationFinishBridgeUserSetupArgs = {
|
|
1062
|
-
ssn: Scalars['String']['input'];
|
|
1063
|
-
};
|
|
1064
1171
|
export type MutationFlushBalancesArgs = {
|
|
1065
1172
|
addresses: Array<Scalars['String']['input']>;
|
|
1066
1173
|
};
|
|
@@ -1080,9 +1187,16 @@ export type MutationGrantCreditArgs = {
|
|
|
1080
1187
|
reason?: InputMaybe<Scalars['String']['input']>;
|
|
1081
1188
|
userId: Scalars['String']['input'];
|
|
1082
1189
|
};
|
|
1190
|
+
export type MutationInitializeDirectPaymentArgs = {
|
|
1191
|
+
directPaymentId: Scalars['String']['input'];
|
|
1192
|
+
transactionHash: Scalars['String']['input'];
|
|
1193
|
+
};
|
|
1083
1194
|
export type MutationMarkNotificationAsReadArgs = {
|
|
1084
1195
|
notificationId: Scalars['String']['input'];
|
|
1085
1196
|
};
|
|
1197
|
+
export type MutationMarkPaymentAsRefundedArgs = {
|
|
1198
|
+
paymentId: Scalars['String']['input'];
|
|
1199
|
+
};
|
|
1086
1200
|
export type MutationMethodFiUpdateSsnArgs = {
|
|
1087
1201
|
ssn: Scalars['String']['input'];
|
|
1088
1202
|
};
|
|
@@ -1094,7 +1208,6 @@ export type MutationMoveMoneyArgs = {
|
|
|
1094
1208
|
export type MutationPaymentAddressForceWithdrawalArgs = {
|
|
1095
1209
|
address: Scalars['String']['input'];
|
|
1096
1210
|
network: Scalars['String']['input'];
|
|
1097
|
-
token: Scalars['String']['input'];
|
|
1098
1211
|
validate: Scalars['Boolean']['input'];
|
|
1099
1212
|
};
|
|
1100
1213
|
export type MutationPaymentAddressRescueNativeArgs = {
|
|
@@ -1102,12 +1215,19 @@ export type MutationPaymentAddressRescueNativeArgs = {
|
|
|
1102
1215
|
network: Scalars['String']['input'];
|
|
1103
1216
|
to: Scalars['String']['input'];
|
|
1104
1217
|
};
|
|
1218
|
+
export type MutationReactivateBillArgs = {
|
|
1219
|
+
accountId: Scalars['String']['input'];
|
|
1220
|
+
userId: Scalars['String']['input'];
|
|
1221
|
+
};
|
|
1105
1222
|
export type MutationRefundPaymentArgs = {
|
|
1106
1223
|
refundPaymentInput: RefundPaymentInput;
|
|
1107
1224
|
};
|
|
1108
1225
|
export type MutationRefundPaymentWithCreditsArgs = {
|
|
1109
1226
|
refundPaymentInput: RefundPaymentWithCreditsInput;
|
|
1110
1227
|
};
|
|
1228
|
+
export type MutationRefundPaymentWithPaymentArgs = {
|
|
1229
|
+
refundPaymentInput: RefundPaymentWithPaymentInput;
|
|
1230
|
+
};
|
|
1111
1231
|
export type MutationRenamePayableAccountArgs = {
|
|
1112
1232
|
accountId: Scalars['String']['input'];
|
|
1113
1233
|
name: Scalars['String']['input'];
|
|
@@ -1134,6 +1254,10 @@ export type MutationRetrySubscriptionChargeArgs = {
|
|
|
1134
1254
|
export type MutationRevokeApiTokenArgs = {
|
|
1135
1255
|
token: Scalars['String']['input'];
|
|
1136
1256
|
};
|
|
1257
|
+
export type MutationRevokeCreditArgs = {
|
|
1258
|
+
amount: Scalars['Float']['input'];
|
|
1259
|
+
userId: Scalars['String']['input'];
|
|
1260
|
+
};
|
|
1137
1261
|
export type MutationSetBridgeUserAgreementIdArgs = {
|
|
1138
1262
|
agreementId: Scalars['String']['input'];
|
|
1139
1263
|
};
|
|
@@ -1188,15 +1312,22 @@ export type MutationSubmitBankAccountVerificationArgs = {
|
|
|
1188
1312
|
accountId: Scalars['String']['input'];
|
|
1189
1313
|
otp: Scalars['String']['input'];
|
|
1190
1314
|
};
|
|
1315
|
+
export type MutationSubmitSwapTransactionArgs = {
|
|
1316
|
+
transaction: SwapTransactionInput;
|
|
1317
|
+
};
|
|
1318
|
+
export type MutationUpdateAdIdentifiersArgs = {
|
|
1319
|
+
adIdentifiers: AdIdentifiersInput;
|
|
1320
|
+
};
|
|
1191
1321
|
export type MutationUpdateAnalyticsSessionArgs = {
|
|
1192
1322
|
gclid?: InputMaybe<Scalars['String']['input']>;
|
|
1193
|
-
sessionId
|
|
1323
|
+
sessionId?: InputMaybe<Scalars['String']['input']>;
|
|
1194
1324
|
};
|
|
1195
1325
|
export type MutationUpdateAppDomainArgs = {
|
|
1196
1326
|
appDomain: AppDomain;
|
|
1197
1327
|
};
|
|
1198
1328
|
export type MutationUpdateAttributionSourceArgs = {
|
|
1199
1329
|
attributionSource: Scalars['String']['input'];
|
|
1330
|
+
utms?: InputMaybe<UtmInput>;
|
|
1200
1331
|
};
|
|
1201
1332
|
export type MutationUpdateCurrentUserArgs = {
|
|
1202
1333
|
userUpdate: UpdateCurrentUserInput;
|
|
@@ -1226,6 +1357,7 @@ export declare enum Network {
|
|
|
1226
1357
|
Ethereum = "Ethereum",
|
|
1227
1358
|
Optimism = "Optimism",
|
|
1228
1359
|
Polygon = "Polygon",
|
|
1360
|
+
Solana = "Solana",
|
|
1229
1361
|
Tron = "Tron"
|
|
1230
1362
|
}
|
|
1231
1363
|
export type OnRampPayment = {
|
|
@@ -1269,6 +1401,13 @@ export declare enum OnrampPaymentStatus {
|
|
|
1269
1401
|
OnHold = "ON_HOLD",
|
|
1270
1402
|
Pending = "PENDING"
|
|
1271
1403
|
}
|
|
1404
|
+
export type PaginatedPayment = {
|
|
1405
|
+
__typename?: 'PaginatedPayment';
|
|
1406
|
+
currentPage: Scalars['Float']['output'];
|
|
1407
|
+
items: Array<Payment>;
|
|
1408
|
+
pages: Scalars['Float']['output'];
|
|
1409
|
+
totalCount: Scalars['Float']['output'];
|
|
1410
|
+
};
|
|
1272
1411
|
export type PaginatedReferral = {
|
|
1273
1412
|
__typename?: 'PaginatedReferral';
|
|
1274
1413
|
currentPage: Scalars['Float']['output'];
|
|
@@ -1306,7 +1445,9 @@ export type PayableAccount = {
|
|
|
1306
1445
|
createdAt: Scalars['DateTimeISO']['output'];
|
|
1307
1446
|
currency: Scalars['String']['output'];
|
|
1308
1447
|
dataSync?: Maybe<AccountDataSync>;
|
|
1448
|
+
deleted: Scalars['Boolean']['output'];
|
|
1309
1449
|
deliveryMethods: Array<PaymentDeliveryMethod>;
|
|
1450
|
+
disabled: Scalars['Boolean']['output'];
|
|
1310
1451
|
externalId?: Maybe<Scalars['String']['output']>;
|
|
1311
1452
|
id: Scalars['ID']['output'];
|
|
1312
1453
|
institution?: Maybe<PayableAccountInstitution>;
|
|
@@ -1339,6 +1480,7 @@ export declare enum PayableAccountType {
|
|
|
1339
1480
|
BankAccount = "BankAccount",
|
|
1340
1481
|
Bill = "Bill",
|
|
1341
1482
|
DebitCard = "DebitCard",
|
|
1483
|
+
DigitalAccount = "DigitalAccount",
|
|
1342
1484
|
VirtualCard = "VirtualCard"
|
|
1343
1485
|
}
|
|
1344
1486
|
export type Payment = {
|
|
@@ -1350,22 +1492,25 @@ export type Payment = {
|
|
|
1350
1492
|
deliveryDate?: Maybe<Scalars['DateTimeISO']['output']>;
|
|
1351
1493
|
deliveryMethod?: Maybe<PaymentDeliveryMethod>;
|
|
1352
1494
|
directPayment?: Maybe<DirectPayment>;
|
|
1353
|
-
directPaymentId?: Maybe<Scalars['
|
|
1495
|
+
directPaymentId?: Maybe<Scalars['String']['output']>;
|
|
1354
1496
|
error?: Maybe<Scalars['String']['output']>;
|
|
1355
1497
|
externalPayment?: Maybe<ExternalPayment>;
|
|
1356
|
-
externalPaymentId?: Maybe<Scalars['
|
|
1498
|
+
externalPaymentId?: Maybe<Scalars['String']['output']>;
|
|
1357
1499
|
feeAmount?: Maybe<Scalars['Float']['output']>;
|
|
1358
1500
|
id: Scalars['ID']['output'];
|
|
1501
|
+
outputAsset?: Maybe<PaymentAsset>;
|
|
1502
|
+
partnerFee: Scalars['Float']['output'];
|
|
1359
1503
|
payableAccount: PayableAccount;
|
|
1504
|
+
paymentAsset?: Maybe<PaymentAsset>;
|
|
1360
1505
|
paymentCurrency?: Maybe<Scalars['String']['output']>;
|
|
1361
1506
|
paymentProvider: PaymentProvider;
|
|
1362
1507
|
paymentRequestId?: Maybe<Scalars['String']['output']>;
|
|
1363
1508
|
refund?: Maybe<PaymentRefund>;
|
|
1364
1509
|
rewardsAmount?: Maybe<Scalars['Float']['output']>;
|
|
1365
|
-
rewardsTransaction?: Maybe<Scalars['
|
|
1510
|
+
rewardsTransaction?: Maybe<Scalars['String']['output']>;
|
|
1366
1511
|
source: PaymentSource;
|
|
1367
1512
|
status: PaymentStatus;
|
|
1368
|
-
subscriptionId?: Maybe<Scalars['
|
|
1513
|
+
subscriptionId?: Maybe<Scalars['String']['output']>;
|
|
1369
1514
|
targetCurrency?: Maybe<Scalars['String']['output']>;
|
|
1370
1515
|
targetCurrencyAmount: Scalars['Float']['output'];
|
|
1371
1516
|
targetCurrencyFee: Scalars['Float']['output'];
|
|
@@ -1385,6 +1530,16 @@ export type PaymentAddress = {
|
|
|
1385
1530
|
network: Scalars['String']['output'];
|
|
1386
1531
|
userId: Scalars['ObjectID']['output'];
|
|
1387
1532
|
};
|
|
1533
|
+
export type PaymentAsset = {
|
|
1534
|
+
__typename?: 'PaymentAsset';
|
|
1535
|
+
quantity: Scalars['Float']['output'];
|
|
1536
|
+
spread: Scalars['Float']['output'];
|
|
1537
|
+
symbol: Scalars['String']['output'];
|
|
1538
|
+
usdMarketRate: Scalars['Float']['output'];
|
|
1539
|
+
usdQuotedRate: Scalars['Float']['output'];
|
|
1540
|
+
usdValue: Scalars['Float']['output'];
|
|
1541
|
+
usdValueQuoted: Scalars['Float']['output'];
|
|
1542
|
+
};
|
|
1388
1543
|
export declare enum PaymentDeliveryMethod {
|
|
1389
1544
|
Instant = "INSTANT",
|
|
1390
1545
|
Standard = "STANDARD"
|
|
@@ -1400,11 +1555,14 @@ export type PaymentEventToken = {
|
|
|
1400
1555
|
export type PaymentLimits = {
|
|
1401
1556
|
__typename?: 'PaymentLimits';
|
|
1402
1557
|
absolute: Scalars['Float']['output'];
|
|
1558
|
+
dailyRemainingVolume: Scalars['Float']['output'];
|
|
1403
1559
|
delay: Scalars['Float']['output'];
|
|
1560
|
+
instantPaymentLimit: Scalars['Float']['output'];
|
|
1561
|
+
perTransaction: Scalars['Float']['output'];
|
|
1404
1562
|
};
|
|
1405
1563
|
export type PaymentLimitsInput = {
|
|
1406
1564
|
accountId: Scalars['String']['input'];
|
|
1407
|
-
type
|
|
1565
|
+
type?: InputMaybe<Scalars['String']['input']>;
|
|
1408
1566
|
};
|
|
1409
1567
|
export type PaymentParams = {
|
|
1410
1568
|
__typename?: 'PaymentParams';
|
|
@@ -1422,12 +1580,15 @@ export declare enum PaymentProvider {
|
|
|
1422
1580
|
}
|
|
1423
1581
|
export type PaymentRefund = {
|
|
1424
1582
|
__typename?: 'PaymentRefund';
|
|
1425
|
-
amount
|
|
1583
|
+
amount?: Maybe<Scalars['Float']['output']>;
|
|
1426
1584
|
hash?: Maybe<Scalars['String']['output']>;
|
|
1585
|
+
paymentId?: Maybe<Scalars['String']['output']>;
|
|
1586
|
+
refundType?: Maybe<Scalars['String']['output']>;
|
|
1427
1587
|
to?: Maybe<Scalars['String']['output']>;
|
|
1428
1588
|
};
|
|
1429
1589
|
export declare enum PaymentSource {
|
|
1430
1590
|
Admin = "Admin",
|
|
1591
|
+
ExodusDappBrowser = "ExodusDappBrowser",
|
|
1431
1592
|
External = "External",
|
|
1432
1593
|
Integrator = "Integrator",
|
|
1433
1594
|
Mobile = "Mobile",
|
|
@@ -1435,6 +1596,7 @@ export declare enum PaymentSource {
|
|
|
1435
1596
|
MobileIos = "MobileIOS",
|
|
1436
1597
|
PaymentAddress = "PaymentAddress",
|
|
1437
1598
|
Subscription = "Subscription",
|
|
1599
|
+
SuiWalletDappBrowser = "SuiWalletDappBrowser",
|
|
1438
1600
|
Web = "Web",
|
|
1439
1601
|
Widget = "Widget"
|
|
1440
1602
|
}
|
|
@@ -1489,6 +1651,12 @@ export type PaymentsFilter = {
|
|
|
1489
1651
|
status?: InputMaybe<Array<PaymentStatus>>;
|
|
1490
1652
|
type?: InputMaybe<PaymentType>;
|
|
1491
1653
|
};
|
|
1654
|
+
export type PointsBalanceChanges = {
|
|
1655
|
+
__typename?: 'PointsBalanceChanges';
|
|
1656
|
+
balance: Scalars['Float']['output'];
|
|
1657
|
+
changes7Days: BalanceChange;
|
|
1658
|
+
changes30Days: BalanceChange;
|
|
1659
|
+
};
|
|
1492
1660
|
export type PricingUser = {
|
|
1493
1661
|
__typename?: 'PricingUser';
|
|
1494
1662
|
dailyLimit?: Maybe<Scalars['Float']['output']>;
|
|
@@ -1499,15 +1667,19 @@ export type PricingUser = {
|
|
|
1499
1667
|
};
|
|
1500
1668
|
export type Query = {
|
|
1501
1669
|
__typename?: 'Query';
|
|
1502
|
-
adminBridgeUser
|
|
1670
|
+
adminBridgeUser?: Maybe<BridgeUser>;
|
|
1503
1671
|
adminDirectPayment?: Maybe<DirectPayment>;
|
|
1504
1672
|
adminDirectPayments: Array<DirectPayment>;
|
|
1673
|
+
adminGetAffiliates: Array<Referral>;
|
|
1674
|
+
adminGetUnassignedAffiliateCodes: Array<AffiliateCode>;
|
|
1505
1675
|
adminOnrampPayments: Array<OnRampPayment>;
|
|
1676
|
+
adminPaginatedPayments: PaginatedPayment;
|
|
1506
1677
|
adminPaginatedReferrals: PaginatedReferral;
|
|
1507
1678
|
adminPayments: Array<Payment>;
|
|
1508
|
-
adminPaymentsCount: Scalars['
|
|
1679
|
+
adminPaymentsCount: Scalars['Float']['output'];
|
|
1509
1680
|
adminRecentPayments: Array<Payment>;
|
|
1510
1681
|
adminReferralParticipant?: Maybe<Referral>;
|
|
1682
|
+
adminSyncBridgeUser: BridgeUser;
|
|
1511
1683
|
adminUtxoInvoices: Array<UtxoInvoice>;
|
|
1512
1684
|
adminVirtualAccounts: Array<BridgeVirtualAccount>;
|
|
1513
1685
|
apiTokens: Array<ApiToken>;
|
|
@@ -1524,9 +1696,12 @@ export type Query = {
|
|
|
1524
1696
|
cryptoExchangeRate: CryptoExchangeRate;
|
|
1525
1697
|
dashCashValue: UtxoBalance;
|
|
1526
1698
|
debitCards: Array<DebitCard>;
|
|
1699
|
+
decrypt: Scalars['String']['output'];
|
|
1700
|
+
digitalAccounts: Array<DigitalAccount>;
|
|
1527
1701
|
/** @deprecated no longer in use */
|
|
1528
1702
|
directPayment?: Maybe<DirectPayment>;
|
|
1529
1703
|
directPayments: Array<DirectPayment>;
|
|
1704
|
+
encrypt: Scalars['String']['output'];
|
|
1530
1705
|
estimateTransactionInput: Scalars['Float']['output'];
|
|
1531
1706
|
exchangeRate: ExchangeRate;
|
|
1532
1707
|
feeCalculator: FeeCalculation;
|
|
@@ -1542,6 +1717,7 @@ export type Query = {
|
|
|
1542
1717
|
hasBillPayPayments: Scalars['Boolean']['output'];
|
|
1543
1718
|
/** @deprecated No longer used */
|
|
1544
1719
|
hasPayments: Scalars['Boolean']['output'];
|
|
1720
|
+
inactiveBills: Array<Bill>;
|
|
1545
1721
|
integrators: Array<Integrator>;
|
|
1546
1722
|
liquidityLimits: LiquidityLimits;
|
|
1547
1723
|
me: User;
|
|
@@ -1574,6 +1750,7 @@ export type Query = {
|
|
|
1574
1750
|
paymentsInProgress: Array<Payment>;
|
|
1575
1751
|
pendingVerificationBills: Array<Bill>;
|
|
1576
1752
|
points: Scalars['Int']['output'];
|
|
1753
|
+
pointsBalanceChanges: PointsBalanceChanges;
|
|
1577
1754
|
popularUSBillInstitutions: Array<PayableAccountInstitution>;
|
|
1578
1755
|
referralParticipant?: Maybe<Referral>;
|
|
1579
1756
|
reversals: MethodFiReversal;
|
|
@@ -1583,12 +1760,15 @@ export type Query = {
|
|
|
1583
1760
|
scheduledPayments: Array<Payment>;
|
|
1584
1761
|
sdkConfig: Array<Scalars['String']['output']>;
|
|
1585
1762
|
searchUSBillInstitutions: Array<BillInstitution>;
|
|
1763
|
+
solanaParams: SolanaParamsResponse;
|
|
1586
1764
|
spritzPayParams: PaymentParams;
|
|
1587
1765
|
subscriptions: Array<PaymentSubscription>;
|
|
1588
1766
|
tokenBalances: Array<TokenBalance>;
|
|
1589
1767
|
totalTokenBalance: Scalars['Float']['output'];
|
|
1590
1768
|
transactionPrice: Scalars['Float']['output'];
|
|
1769
|
+
transactionPriceWithDiscount: TransactionPriceWithDiscount;
|
|
1591
1770
|
tronBalance: Array<TronBalance>;
|
|
1771
|
+
unblockExchangeRates: Array<UnblockExchangeRateResponse>;
|
|
1592
1772
|
unblockKycToken?: Maybe<Scalars['String']['output']>;
|
|
1593
1773
|
unblockPortal?: Maybe<UnblockVirtualAccount>;
|
|
1594
1774
|
unblockUser?: Maybe<UnblockUser>;
|
|
@@ -1624,6 +1804,12 @@ export type QueryAdminDirectPaymentsArgs = {
|
|
|
1624
1804
|
export type QueryAdminOnrampPaymentsArgs = {
|
|
1625
1805
|
userId: Scalars['String']['input'];
|
|
1626
1806
|
};
|
|
1807
|
+
export type QueryAdminPaginatedPaymentsArgs = {
|
|
1808
|
+
filter?: InputMaybe<PaymentsFilter>;
|
|
1809
|
+
page?: Scalars['Int']['input'];
|
|
1810
|
+
perPage?: Scalars['Int']['input'];
|
|
1811
|
+
userId?: InputMaybe<Scalars['String']['input']>;
|
|
1812
|
+
};
|
|
1627
1813
|
export type QueryAdminPaginatedReferralsArgs = {
|
|
1628
1814
|
page?: Scalars['Int']['input'];
|
|
1629
1815
|
perPage?: Scalars['Int']['input'];
|
|
@@ -1644,6 +1830,9 @@ export type QueryAdminRecentPaymentsArgs = {
|
|
|
1644
1830
|
export type QueryAdminReferralParticipantArgs = {
|
|
1645
1831
|
userId: Scalars['String']['input'];
|
|
1646
1832
|
};
|
|
1833
|
+
export type QueryAdminSyncBridgeUserArgs = {
|
|
1834
|
+
userId: Scalars['String']['input'];
|
|
1835
|
+
};
|
|
1647
1836
|
export type QueryAdminVirtualAccountsArgs = {
|
|
1648
1837
|
userId: Scalars['String']['input'];
|
|
1649
1838
|
};
|
|
@@ -1667,9 +1856,15 @@ export type QueryCryptoExchangeRateArgs = {
|
|
|
1667
1856
|
export type QueryDashCashValueArgs = {
|
|
1668
1857
|
address: Scalars['String']['input'];
|
|
1669
1858
|
};
|
|
1859
|
+
export type QueryDecryptArgs = {
|
|
1860
|
+
input: Scalars['String']['input'];
|
|
1861
|
+
};
|
|
1670
1862
|
export type QueryDirectPaymentArgs = {
|
|
1671
1863
|
paymentId: Scalars['String']['input'];
|
|
1672
1864
|
};
|
|
1865
|
+
export type QueryEncryptArgs = {
|
|
1866
|
+
input: Scalars['String']['input'];
|
|
1867
|
+
};
|
|
1673
1868
|
export type QueryEstimateTransactionInputArgs = {
|
|
1674
1869
|
accountId?: InputMaybe<Scalars['String']['input']>;
|
|
1675
1870
|
deliveryMethod?: InputMaybe<PaymentDeliveryMethod>;
|
|
@@ -1687,6 +1882,7 @@ export type QueryFeeCalculatorArgs = {
|
|
|
1687
1882
|
currency: Scalars['String']['input'];
|
|
1688
1883
|
deliveryMethod?: InputMaybe<PaymentDeliveryMethod>;
|
|
1689
1884
|
network: Scalars['String']['input'];
|
|
1885
|
+
source?: InputMaybe<Scalars['String']['input']>;
|
|
1690
1886
|
token: Scalars['String']['input'];
|
|
1691
1887
|
};
|
|
1692
1888
|
export type QueryFindByWalletAddressArgs = {
|
|
@@ -1707,6 +1903,9 @@ export type QueryGetUserPricingArgs = {
|
|
|
1707
1903
|
export type QueryGetUsersArgs = {
|
|
1708
1904
|
searchText?: InputMaybe<Scalars['String']['input']>;
|
|
1709
1905
|
};
|
|
1906
|
+
export type QueryInactiveBillsArgs = {
|
|
1907
|
+
userId: Scalars['String']['input'];
|
|
1908
|
+
};
|
|
1710
1909
|
export type QueryMerchantsArgs = {
|
|
1711
1910
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
1712
1911
|
type?: InputMaybe<BillType>;
|
|
@@ -1763,6 +1962,12 @@ export type QuerySearchUsBillInstitutionsArgs = {
|
|
|
1763
1962
|
billType?: InputMaybe<BillType>;
|
|
1764
1963
|
searchTerm: Scalars['String']['input'];
|
|
1765
1964
|
};
|
|
1965
|
+
export type QuerySolanaParamsArgs = {
|
|
1966
|
+
amount: Scalars['Float']['input'];
|
|
1967
|
+
reference: Scalars['String']['input'];
|
|
1968
|
+
signer: Scalars['String']['input'];
|
|
1969
|
+
tokenAddress: Scalars['String']['input'];
|
|
1970
|
+
};
|
|
1766
1971
|
export type QuerySpritzPayParamsArgs = {
|
|
1767
1972
|
amount: Scalars['Float']['input'];
|
|
1768
1973
|
network: Scalars['String']['input'];
|
|
@@ -1784,6 +1989,13 @@ export type QueryTransactionPriceArgs = {
|
|
|
1784
1989
|
network: Scalars['String']['input'];
|
|
1785
1990
|
token?: InputMaybe<Scalars['String']['input']>;
|
|
1786
1991
|
};
|
|
1992
|
+
export type QueryTransactionPriceWithDiscountArgs = {
|
|
1993
|
+
accountId: Scalars['String']['input'];
|
|
1994
|
+
amount: Scalars['Float']['input'];
|
|
1995
|
+
deliveryMethod?: InputMaybe<PaymentDeliveryMethod>;
|
|
1996
|
+
network: Scalars['String']['input'];
|
|
1997
|
+
token?: InputMaybe<Scalars['String']['input']>;
|
|
1998
|
+
};
|
|
1787
1999
|
export type QueryTronBalanceArgs = {
|
|
1788
2000
|
address: Scalars['String']['input'];
|
|
1789
2001
|
};
|
|
@@ -1824,16 +2036,23 @@ export type QueryVirtualCardDetailsArgs = {
|
|
|
1824
2036
|
};
|
|
1825
2037
|
export type Referral = {
|
|
1826
2038
|
__typename?: 'Referral';
|
|
2039
|
+
adminReferrerEmail?: Maybe<Scalars['String']['output']>;
|
|
2040
|
+
canViewShareLink: Scalars['Boolean']['output'];
|
|
1827
2041
|
createdAt: Scalars['DateTimeISO']['output'];
|
|
2042
|
+
email: Scalars['String']['output'];
|
|
1828
2043
|
id: Scalars['ID']['output'];
|
|
1829
2044
|
maskedEmail: Scalars['String']['output'];
|
|
1830
2045
|
note?: Maybe<Scalars['String']['output']>;
|
|
2046
|
+
ongoingTransactionCount: Scalars['Float']['output'];
|
|
2047
|
+
ongoingTransactionVolume: Scalars['Float']['output'];
|
|
1831
2048
|
pendingVolume: Scalars['Float']['output'];
|
|
1832
2049
|
referralClubRewards: Scalars['Float']['output'];
|
|
1833
2050
|
referralClubStatus?: Maybe<ReferralClubStatus>;
|
|
1834
2051
|
referralClubTransactionVolume: Scalars['Float']['output'];
|
|
1835
2052
|
referralClubUserCount: Scalars['Float']['output'];
|
|
1836
2053
|
referralCode: Scalars['String']['output'];
|
|
2054
|
+
referralProgramEligibility: ReferralProgramEligibility;
|
|
2055
|
+
referralProgramStatus: ReferralProgramStatus;
|
|
1837
2056
|
referralStatus: ReferralStatus;
|
|
1838
2057
|
referralTier?: Maybe<ReferralTier>;
|
|
1839
2058
|
referralsConverted: Scalars['Float']['output'];
|
|
@@ -1841,6 +2060,7 @@ export type Referral = {
|
|
|
1841
2060
|
referrerRewards: Scalars['Float']['output'];
|
|
1842
2061
|
rewardsCheckedAt?: Maybe<Scalars['DateTimeISO']['output']>;
|
|
1843
2062
|
shareUrl: Scalars['String']['output'];
|
|
2063
|
+
statusLog?: Maybe<Array<ReferralStatusLogEntry>>;
|
|
1844
2064
|
successfulSignups: Scalars['Float']['output'];
|
|
1845
2065
|
totalRewards: Scalars['Float']['output'];
|
|
1846
2066
|
userId: Scalars['String']['output'];
|
|
@@ -1849,6 +2069,16 @@ export declare enum ReferralClubStatus {
|
|
|
1849
2069
|
Affiliate = "Affiliate",
|
|
1850
2070
|
Elite = "Elite"
|
|
1851
2071
|
}
|
|
2072
|
+
export declare enum ReferralProgramEligibility {
|
|
2073
|
+
RequirementsMet = "RequirementsMet",
|
|
2074
|
+
RequirementsNotMet = "RequirementsNotMet"
|
|
2075
|
+
}
|
|
2076
|
+
export declare enum ReferralProgramStatus {
|
|
2077
|
+
Active = "Active",
|
|
2078
|
+
Affiliate = "Affiliate",
|
|
2079
|
+
AlwaysEligible = "AlwaysEligible",
|
|
2080
|
+
Disabled = "Disabled"
|
|
2081
|
+
}
|
|
1852
2082
|
export type ReferralReward = {
|
|
1853
2083
|
__typename?: 'ReferralReward';
|
|
1854
2084
|
amount: Scalars['Float']['output'];
|
|
@@ -1862,17 +2092,25 @@ export type ReferralReward = {
|
|
|
1862
2092
|
userId: Scalars['String']['output'];
|
|
1863
2093
|
};
|
|
1864
2094
|
export declare enum ReferralRewardType {
|
|
2095
|
+
AffiliateRevenueShare = "AffiliateRevenueShare",
|
|
1865
2096
|
Referral = "Referral",
|
|
1866
2097
|
ReferralClub = "ReferralClub",
|
|
1867
2098
|
Referrer = "Referrer"
|
|
1868
2099
|
}
|
|
1869
2100
|
export declare enum ReferralStatus {
|
|
2101
|
+
AffiliateReferral = "AffiliateReferral",
|
|
1870
2102
|
Converted = "Converted",
|
|
1871
2103
|
Disabled = "Disabled",
|
|
1872
2104
|
Expired = "Expired",
|
|
1873
2105
|
NotReferred = "NotReferred",
|
|
1874
2106
|
Pending = "Pending"
|
|
1875
2107
|
}
|
|
2108
|
+
export type ReferralStatusLogEntry = {
|
|
2109
|
+
__typename?: 'ReferralStatusLogEntry';
|
|
2110
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
2111
|
+
note?: Maybe<Scalars['String']['output']>;
|
|
2112
|
+
status: ReferralProgramStatus;
|
|
2113
|
+
};
|
|
1876
2114
|
export declare enum ReferralTier {
|
|
1877
2115
|
Local = "Local",
|
|
1878
2116
|
Tourist = "Tourist",
|
|
@@ -1888,6 +2126,10 @@ export type RefundPaymentWithCreditsInput = {
|
|
|
1888
2126
|
amount: Scalars['Float']['input'];
|
|
1889
2127
|
paymentId: Scalars['String']['input'];
|
|
1890
2128
|
};
|
|
2129
|
+
export type RefundPaymentWithPaymentInput = {
|
|
2130
|
+
amount: Scalars['Float']['input'];
|
|
2131
|
+
paymentId: Scalars['String']['input'];
|
|
2132
|
+
};
|
|
1891
2133
|
export type RelatedCredit = {
|
|
1892
2134
|
__typename?: 'RelatedCredit';
|
|
1893
2135
|
amountSpent: Scalars['Float']['output'];
|
|
@@ -1950,9 +2192,16 @@ export type SimpleCardTransaction = {
|
|
|
1950
2192
|
amount: Scalars['Float']['output'];
|
|
1951
2193
|
currency: Scalars['String']['output'];
|
|
1952
2194
|
description: Scalars['String']['output'];
|
|
2195
|
+
externalId?: Maybe<Scalars['String']['output']>;
|
|
1953
2196
|
id: Scalars['ID']['output'];
|
|
2197
|
+
status?: Maybe<Scalars['String']['output']>;
|
|
1954
2198
|
timestamp: Scalars['DateTimeISO']['output'];
|
|
1955
2199
|
};
|
|
2200
|
+
export type SolanaParamsResponse = {
|
|
2201
|
+
__typename?: 'SolanaParamsResponse';
|
|
2202
|
+
transaction: Scalars['JSON']['output'];
|
|
2203
|
+
transactionSerialized: Scalars['String']['output'];
|
|
2204
|
+
};
|
|
1956
2205
|
export type StatusLogEntry = {
|
|
1957
2206
|
__typename?: 'StatusLogEntry';
|
|
1958
2207
|
createdAt: Scalars['DateTimeISO']['output'];
|
|
@@ -1989,6 +2238,38 @@ export declare enum SubscriptionType {
|
|
|
1989
2238
|
Autopay = "AUTOPAY",
|
|
1990
2239
|
Reminder = "REMINDER"
|
|
1991
2240
|
}
|
|
2241
|
+
export type SwapTransaction = {
|
|
2242
|
+
__typename?: 'SwapTransaction';
|
|
2243
|
+
address: Scalars['String']['output'];
|
|
2244
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
2245
|
+
fromAmount: Scalars['Float']['output'];
|
|
2246
|
+
fromAmountRaw: Scalars['String']['output'];
|
|
2247
|
+
fromTokenAddress: Scalars['String']['output'];
|
|
2248
|
+
fromTokenDecimals: Scalars['Float']['output'];
|
|
2249
|
+
fromTokenSymbol: Scalars['String']['output'];
|
|
2250
|
+
id: Scalars['ID']['output'];
|
|
2251
|
+
network: Scalars['String']['output'];
|
|
2252
|
+
toAmount: Scalars['Float']['output'];
|
|
2253
|
+
toAmountRaw: Scalars['String']['output'];
|
|
2254
|
+
toTokenAddress: Scalars['String']['output'];
|
|
2255
|
+
toTokenDecimals: Scalars['Float']['output'];
|
|
2256
|
+
toTokenSymbol: Scalars['String']['output'];
|
|
2257
|
+
transactionHash: Scalars['String']['output'];
|
|
2258
|
+
userId: Scalars['String']['output'];
|
|
2259
|
+
};
|
|
2260
|
+
export type SwapTransactionInput = {
|
|
2261
|
+
address: Scalars['String']['input'];
|
|
2262
|
+
fromAmountRaw: Scalars['String']['input'];
|
|
2263
|
+
fromTokenAddress: Scalars['String']['input'];
|
|
2264
|
+
fromTokenDecimals: Scalars['Float']['input'];
|
|
2265
|
+
fromTokenSymbol: Scalars['String']['input'];
|
|
2266
|
+
network: Scalars['String']['input'];
|
|
2267
|
+
toAmountRaw: Scalars['String']['input'];
|
|
2268
|
+
toTokenAddress: Scalars['String']['input'];
|
|
2269
|
+
toTokenDecimals: Scalars['Float']['input'];
|
|
2270
|
+
toTokenSymbol: Scalars['String']['input'];
|
|
2271
|
+
transactionHash: Scalars['String']['input'];
|
|
2272
|
+
};
|
|
1992
2273
|
export type TokenBalance = {
|
|
1993
2274
|
__typename?: 'TokenBalance';
|
|
1994
2275
|
/** Token contract address */
|
|
@@ -2011,8 +2292,15 @@ export type TokenPreferencesInput = {
|
|
|
2011
2292
|
chain?: InputMaybe<Scalars['String']['input']>;
|
|
2012
2293
|
otp: Scalars['String']['input'];
|
|
2013
2294
|
targetAddress?: InputMaybe<Scalars['String']['input']>;
|
|
2295
|
+
targetAddressType?: InputMaybe<Scalars['String']['input']>;
|
|
2296
|
+
targetAddressVasp?: InputMaybe<Scalars['String']['input']>;
|
|
2014
2297
|
token?: InputMaybe<Scalars['String']['input']>;
|
|
2015
2298
|
};
|
|
2299
|
+
export type TransactionPriceWithDiscount = {
|
|
2300
|
+
__typename?: 'TransactionPriceWithDiscount';
|
|
2301
|
+
feeAmount: Scalars['Float']['output'];
|
|
2302
|
+
feeDiscount: Scalars['Float']['output'];
|
|
2303
|
+
};
|
|
2016
2304
|
export type TronBalance = {
|
|
2017
2305
|
__typename?: 'TronBalance';
|
|
2018
2306
|
address: Scalars['String']['output'];
|
|
@@ -2042,6 +2330,12 @@ export type UsBankAccountInput = {
|
|
|
2042
2330
|
routingNumber: Scalars['String']['input'];
|
|
2043
2331
|
subType: BankAccountSubType;
|
|
2044
2332
|
};
|
|
2333
|
+
export type UnblockExchangeRateResponse = {
|
|
2334
|
+
__typename?: 'UnblockExchangeRateResponse';
|
|
2335
|
+
baseCurrency: Scalars['String']['output'];
|
|
2336
|
+
targetCurrency: Scalars['String']['output'];
|
|
2337
|
+
targetCurrencyRate: Scalars['Float']['output'];
|
|
2338
|
+
};
|
|
2045
2339
|
export type UnblockPreference = {
|
|
2046
2340
|
__typename?: 'UnblockPreference';
|
|
2047
2341
|
chain: Scalars['String']['output'];
|
|
@@ -2052,6 +2346,7 @@ export type UnblockPreference = {
|
|
|
2052
2346
|
};
|
|
2053
2347
|
export type UnblockUser = {
|
|
2054
2348
|
__typename?: 'UnblockUser';
|
|
2349
|
+
address?: Maybe<UserAddress>;
|
|
2055
2350
|
country: Scalars['String']['output'];
|
|
2056
2351
|
date_of_birth: Scalars['String']['output'];
|
|
2057
2352
|
externalId: Scalars['String']['output'];
|
|
@@ -2064,6 +2359,7 @@ export type UnblockUser = {
|
|
|
2064
2359
|
userId: Scalars['ObjectID']['output'];
|
|
2065
2360
|
};
|
|
2066
2361
|
export type UnblockUserInput = {
|
|
2362
|
+
address?: InputMaybe<AddressInput>;
|
|
2067
2363
|
dob?: InputMaybe<Scalars['String']['input']>;
|
|
2068
2364
|
firstName?: InputMaybe<Scalars['String']['input']>;
|
|
2069
2365
|
lastName?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2101,13 +2397,13 @@ export type User = {
|
|
|
2101
2397
|
associatedWallets: Array<Scalars['String']['output']>;
|
|
2102
2398
|
attributionSource?: Maybe<Scalars['String']['output']>;
|
|
2103
2399
|
attributionSurvey?: Maybe<AttributionSurvey>;
|
|
2400
|
+
authenticatedWallets: Array<Scalars['String']['output']>;
|
|
2104
2401
|
createdAt: Scalars['DateTimeISO']['output'];
|
|
2105
2402
|
deleted?: Maybe<Scalars['Boolean']['output']>;
|
|
2106
2403
|
dismissedItems?: Maybe<DismissedItems>;
|
|
2107
2404
|
dob?: Maybe<Scalars['String']['output']>;
|
|
2108
|
-
email
|
|
2405
|
+
email?: Maybe<Scalars['String']['output']>;
|
|
2109
2406
|
firstName?: Maybe<Scalars['String']['output']>;
|
|
2110
|
-
growsurfId?: Maybe<Scalars['String']['output']>;
|
|
2111
2407
|
id: Scalars['ID']['output'];
|
|
2112
2408
|
kycStatus: KycStatus;
|
|
2113
2409
|
lastActivity?: Maybe<Scalars['DateTimeISO']['output']>;
|
|
@@ -2115,15 +2411,25 @@ export type User = {
|
|
|
2115
2411
|
latestSessionId?: Maybe<Scalars['String']['output']>;
|
|
2116
2412
|
membership?: Maybe<Scalars['String']['output']>;
|
|
2117
2413
|
methodFiEntity?: Maybe<MethodFiEntity>;
|
|
2414
|
+
onboardingJourney?: Maybe<Scalars['String']['output']>;
|
|
2118
2415
|
phone?: Maybe<Scalars['String']['output']>;
|
|
2119
2416
|
picture?: Maybe<Scalars['String']['output']>;
|
|
2417
|
+
promotionCode?: Maybe<Scalars['String']['output']>;
|
|
2120
2418
|
rewardsBalance: Scalars['Float']['output'];
|
|
2121
2419
|
rewardsTransactions: Array<RewardTransaction>;
|
|
2122
|
-
sub
|
|
2123
|
-
timezone
|
|
2420
|
+
sub?: Maybe<Scalars['String']['output']>;
|
|
2421
|
+
timezone?: Maybe<Scalars['String']['output']>;
|
|
2124
2422
|
twitterVerified?: Maybe<Scalars['Boolean']['output']>;
|
|
2125
2423
|
updatedAt: Scalars['DateTimeISO']['output'];
|
|
2126
2424
|
};
|
|
2425
|
+
export type UserAddress = {
|
|
2426
|
+
__typename?: 'UserAddress';
|
|
2427
|
+
address_line_1: Scalars['String']['output'];
|
|
2428
|
+
address_line_2?: Maybe<Scalars['String']['output']>;
|
|
2429
|
+
city: Scalars['String']['output'];
|
|
2430
|
+
country: Scalars['String']['output'];
|
|
2431
|
+
post_code: Scalars['String']['output'];
|
|
2432
|
+
};
|
|
2127
2433
|
export type UserIdentity = {
|
|
2128
2434
|
__typename?: 'UserIdentity';
|
|
2129
2435
|
completedAt?: Maybe<Scalars['String']['output']>;
|
|
@@ -2146,6 +2452,12 @@ export type UserNotificationToken = {
|
|
|
2146
2452
|
token: Scalars['String']['output'];
|
|
2147
2453
|
userId: Scalars['ObjectID']['output'];
|
|
2148
2454
|
};
|
|
2455
|
+
export type UtmInput = {
|
|
2456
|
+
campaign?: InputMaybe<Scalars['String']['input']>;
|
|
2457
|
+
medium?: InputMaybe<Scalars['String']['input']>;
|
|
2458
|
+
referringDomain?: InputMaybe<Scalars['String']['input']>;
|
|
2459
|
+
source?: InputMaybe<Scalars['String']['input']>;
|
|
2460
|
+
};
|
|
2149
2461
|
export type UtxoBalance = {
|
|
2150
2462
|
__typename?: 'UtxoBalance';
|
|
2151
2463
|
address: Scalars['String']['output'];
|
|
@@ -2160,8 +2472,14 @@ export type UtxoInvoice = {
|
|
|
2160
2472
|
amountFiatAdjusted?: Maybe<Scalars['Float']['output']>;
|
|
2161
2473
|
directPayment: DirectPayment;
|
|
2162
2474
|
expiry: Scalars['DateTimeISO']['output'];
|
|
2475
|
+
marketRate?: Maybe<Scalars['Float']['output']>;
|
|
2476
|
+
memo?: Maybe<Scalars['String']['output']>;
|
|
2163
2477
|
network: Scalars['String']['output'];
|
|
2478
|
+
originalTokenAddress?: Maybe<Scalars['String']['output']>;
|
|
2164
2479
|
paymentReference: Scalars['ObjectID']['output'];
|
|
2480
|
+
quotedRate?: Maybe<Scalars['Float']['output']>;
|
|
2481
|
+
spread?: Maybe<Scalars['Float']['output']>;
|
|
2482
|
+
spreadAmount?: Maybe<Scalars['Float']['output']>;
|
|
2165
2483
|
status: UtxoInvoiceStatus;
|
|
2166
2484
|
symbol?: Maybe<Scalars['String']['output']>;
|
|
2167
2485
|
tokenAddress?: Maybe<Scalars['String']['output']>;
|
|
@@ -2171,6 +2489,7 @@ export declare enum UtxoInvoiceStatus {
|
|
|
2171
2489
|
Confirmed = "CONFIRMED",
|
|
2172
2490
|
Created = "CREATED",
|
|
2173
2491
|
Insufficcient = "INSUFFICCIENT",
|
|
2492
|
+
Overpaid = "OVERPAID",
|
|
2174
2493
|
Pending = "PENDING",
|
|
2175
2494
|
Transferred = "TRANSFERRED"
|
|
2176
2495
|
}
|
|
@@ -2181,6 +2500,7 @@ export type UtxoTransaction = {
|
|
|
2181
2500
|
blockTimestamp?: Maybe<Scalars['DateTimeISO']['output']>;
|
|
2182
2501
|
direction: Scalars['String']['output'];
|
|
2183
2502
|
firstSeenInMempool: Scalars['DateTimeISO']['output'];
|
|
2503
|
+
from?: Maybe<Array<Scalars['String']['output']>>;
|
|
2184
2504
|
transactionId: Scalars['String']['output'];
|
|
2185
2505
|
};
|
|
2186
2506
|
export type Verification = {
|
|
@@ -2197,6 +2517,17 @@ export type Verification = {
|
|
|
2197
2517
|
userId: Scalars['ObjectID']['output'];
|
|
2198
2518
|
virtualCard: VirtualCardModule;
|
|
2199
2519
|
};
|
|
2520
|
+
export type VerificationFailureRecord = {
|
|
2521
|
+
__typename?: 'VerificationFailureRecord';
|
|
2522
|
+
count: Scalars['Float']['output'];
|
|
2523
|
+
lastFailedAt?: Maybe<Scalars['DateTimeISO']['output']>;
|
|
2524
|
+
};
|
|
2525
|
+
export type VerificationFailures = {
|
|
2526
|
+
__typename?: 'VerificationFailures';
|
|
2527
|
+
documentary_verification: VerificationFailureRecord;
|
|
2528
|
+
risk_check: VerificationFailureRecord;
|
|
2529
|
+
verify_sms: VerificationFailureRecord;
|
|
2530
|
+
};
|
|
2200
2531
|
export type VirtualAccountDepositInstructions = {
|
|
2201
2532
|
__typename?: 'VirtualAccountDepositInstructions';
|
|
2202
2533
|
bankAccountNumber: Scalars['String']['output'];
|
|
@@ -2215,7 +2546,9 @@ export type VirtualCard = PayableAccount & {
|
|
|
2215
2546
|
createdAt: Scalars['DateTimeISO']['output'];
|
|
2216
2547
|
currency: Scalars['String']['output'];
|
|
2217
2548
|
dataSync?: Maybe<AccountDataSync>;
|
|
2549
|
+
deleted: Scalars['Boolean']['output'];
|
|
2218
2550
|
deliveryMethods: Array<PaymentDeliveryMethod>;
|
|
2551
|
+
disabled: Scalars['Boolean']['output'];
|
|
2219
2552
|
externalId?: Maybe<Scalars['String']['output']>;
|
|
2220
2553
|
id: Scalars['ID']['output'];
|
|
2221
2554
|
institution?: Maybe<PayableAccountInstitution>;
|
|
@@ -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.ReferralTier = exports.ReferralStatus = exports.ReferralRewardType = exports.ReferralClubStatus = exports.PaymentType = exports.PaymentStatus = exports.PaymentSource = exports.PaymentProvider = exports.PaymentDeliveryMethod = exports.PayableAccountType = exports.PayableAccountOriginator = exports.OnrampPaymentStatus = exports.Network = exports.ModuleStatus = exports.DirectPaymentTransactionReferenceStatus = exports.DirectPaymentStatus = exports.DebitCardNetwork = exports.CheckbookPaymentStatus = exports.BillType = exports.BasicPayableAccountType = exports.BankAccountType = exports.BankAccountSubType = exports.BankAccountPaymentType = exports.AppDomain = exports.AccountSyncStatus = exports.AccountProvider = void 0;
|
|
3
|
+
exports.VirtualCardType = exports.UtxoInvoiceStatus = exports.SubscriptionType = exports.SubscriptionFrequency = exports.SubscriptionErrorType = exports.RewardTransactionType = exports.RewardProvider = exports.RewardCreditSource = exports.ReferralTier = exports.ReferralStatus = exports.ReferralRewardType = exports.ReferralProgramStatus = exports.ReferralProgramEligibility = exports.ReferralClubStatus = exports.PaymentType = exports.PaymentStatus = exports.PaymentSource = exports.PaymentProvider = exports.PaymentDeliveryMethod = exports.PayableAccountType = exports.PayableAccountOriginator = exports.OnrampPaymentStatus = exports.Network = exports.ModuleStatus = exports.DirectPaymentTransactionReferenceStatus = exports.DirectPaymentStatus = exports.DigitalAccountType = exports.DebitCardNetwork = exports.CheckbookPaymentStatus = exports.BillType = exports.BasicPayableAccountType = exports.BankAccountType = exports.BankAccountSubType = exports.BankAccountPaymentType = exports.AppDomain = exports.AccountSyncStatus = exports.AccountProvider = void 0;
|
|
4
4
|
var AccountProvider;
|
|
5
5
|
(function (AccountProvider) {
|
|
6
6
|
AccountProvider["Checkbook"] = "CHECKBOOK";
|
|
@@ -76,6 +76,12 @@ var DebitCardNetwork;
|
|
|
76
76
|
DebitCardNetwork["Mastercard"] = "Mastercard";
|
|
77
77
|
DebitCardNetwork["Visa"] = "Visa";
|
|
78
78
|
})(DebitCardNetwork || (exports.DebitCardNetwork = DebitCardNetwork = {}));
|
|
79
|
+
var DigitalAccountType;
|
|
80
|
+
(function (DigitalAccountType) {
|
|
81
|
+
DigitalAccountType["PayPal"] = "PayPal";
|
|
82
|
+
DigitalAccountType["Venmo"] = "Venmo";
|
|
83
|
+
DigitalAccountType["Zelle"] = "Zelle";
|
|
84
|
+
})(DigitalAccountType || (exports.DigitalAccountType = DigitalAccountType = {}));
|
|
79
85
|
var DirectPaymentStatus;
|
|
80
86
|
(function (DirectPaymentStatus) {
|
|
81
87
|
DirectPaymentStatus["Completed"] = "COMPLETED";
|
|
@@ -83,6 +89,7 @@ var DirectPaymentStatus;
|
|
|
83
89
|
DirectPaymentStatus["Created"] = "CREATED";
|
|
84
90
|
DirectPaymentStatus["Failed"] = "FAILED";
|
|
85
91
|
DirectPaymentStatus["FailedValidation"] = "FAILED_VALIDATION";
|
|
92
|
+
DirectPaymentStatus["InsufficientFunds"] = "INSUFFICIENT_FUNDS";
|
|
86
93
|
DirectPaymentStatus["Pending"] = "PENDING";
|
|
87
94
|
DirectPaymentStatus["Refunded"] = "REFUNDED";
|
|
88
95
|
DirectPaymentStatus["TransactionFailed"] = "TRANSACTION_FAILED";
|
|
@@ -115,6 +122,7 @@ var Network;
|
|
|
115
122
|
Network["Ethereum"] = "Ethereum";
|
|
116
123
|
Network["Optimism"] = "Optimism";
|
|
117
124
|
Network["Polygon"] = "Polygon";
|
|
125
|
+
Network["Solana"] = "Solana";
|
|
118
126
|
Network["Tron"] = "Tron";
|
|
119
127
|
})(Network || (exports.Network = Network = {}));
|
|
120
128
|
var OnrampPaymentStatus;
|
|
@@ -136,6 +144,7 @@ var PayableAccountType;
|
|
|
136
144
|
PayableAccountType["BankAccount"] = "BankAccount";
|
|
137
145
|
PayableAccountType["Bill"] = "Bill";
|
|
138
146
|
PayableAccountType["DebitCard"] = "DebitCard";
|
|
147
|
+
PayableAccountType["DigitalAccount"] = "DigitalAccount";
|
|
139
148
|
PayableAccountType["VirtualCard"] = "VirtualCard";
|
|
140
149
|
})(PayableAccountType || (exports.PayableAccountType = PayableAccountType = {}));
|
|
141
150
|
var PaymentDeliveryMethod;
|
|
@@ -152,6 +161,7 @@ var PaymentProvider;
|
|
|
152
161
|
var PaymentSource;
|
|
153
162
|
(function (PaymentSource) {
|
|
154
163
|
PaymentSource["Admin"] = "Admin";
|
|
164
|
+
PaymentSource["ExodusDappBrowser"] = "ExodusDappBrowser";
|
|
155
165
|
PaymentSource["External"] = "External";
|
|
156
166
|
PaymentSource["Integrator"] = "Integrator";
|
|
157
167
|
PaymentSource["Mobile"] = "Mobile";
|
|
@@ -159,6 +169,7 @@ var PaymentSource;
|
|
|
159
169
|
PaymentSource["MobileIos"] = "MobileIOS";
|
|
160
170
|
PaymentSource["PaymentAddress"] = "PaymentAddress";
|
|
161
171
|
PaymentSource["Subscription"] = "Subscription";
|
|
172
|
+
PaymentSource["SuiWalletDappBrowser"] = "SuiWalletDappBrowser";
|
|
162
173
|
PaymentSource["Web"] = "Web";
|
|
163
174
|
PaymentSource["Widget"] = "Widget";
|
|
164
175
|
})(PaymentSource || (exports.PaymentSource = PaymentSource = {}));
|
|
@@ -186,14 +197,28 @@ var ReferralClubStatus;
|
|
|
186
197
|
ReferralClubStatus["Affiliate"] = "Affiliate";
|
|
187
198
|
ReferralClubStatus["Elite"] = "Elite";
|
|
188
199
|
})(ReferralClubStatus || (exports.ReferralClubStatus = ReferralClubStatus = {}));
|
|
200
|
+
var ReferralProgramEligibility;
|
|
201
|
+
(function (ReferralProgramEligibility) {
|
|
202
|
+
ReferralProgramEligibility["RequirementsMet"] = "RequirementsMet";
|
|
203
|
+
ReferralProgramEligibility["RequirementsNotMet"] = "RequirementsNotMet";
|
|
204
|
+
})(ReferralProgramEligibility || (exports.ReferralProgramEligibility = ReferralProgramEligibility = {}));
|
|
205
|
+
var ReferralProgramStatus;
|
|
206
|
+
(function (ReferralProgramStatus) {
|
|
207
|
+
ReferralProgramStatus["Active"] = "Active";
|
|
208
|
+
ReferralProgramStatus["Affiliate"] = "Affiliate";
|
|
209
|
+
ReferralProgramStatus["AlwaysEligible"] = "AlwaysEligible";
|
|
210
|
+
ReferralProgramStatus["Disabled"] = "Disabled";
|
|
211
|
+
})(ReferralProgramStatus || (exports.ReferralProgramStatus = ReferralProgramStatus = {}));
|
|
189
212
|
var ReferralRewardType;
|
|
190
213
|
(function (ReferralRewardType) {
|
|
214
|
+
ReferralRewardType["AffiliateRevenueShare"] = "AffiliateRevenueShare";
|
|
191
215
|
ReferralRewardType["Referral"] = "Referral";
|
|
192
216
|
ReferralRewardType["ReferralClub"] = "ReferralClub";
|
|
193
217
|
ReferralRewardType["Referrer"] = "Referrer";
|
|
194
218
|
})(ReferralRewardType || (exports.ReferralRewardType = ReferralRewardType = {}));
|
|
195
219
|
var ReferralStatus;
|
|
196
220
|
(function (ReferralStatus) {
|
|
221
|
+
ReferralStatus["AffiliateReferral"] = "AffiliateReferral";
|
|
197
222
|
ReferralStatus["Converted"] = "Converted";
|
|
198
223
|
ReferralStatus["Disabled"] = "Disabled";
|
|
199
224
|
ReferralStatus["Expired"] = "Expired";
|
|
@@ -250,6 +275,7 @@ var UtxoInvoiceStatus;
|
|
|
250
275
|
UtxoInvoiceStatus["Confirmed"] = "CONFIRMED";
|
|
251
276
|
UtxoInvoiceStatus["Created"] = "CREATED";
|
|
252
277
|
UtxoInvoiceStatus["Insufficcient"] = "INSUFFICCIENT";
|
|
278
|
+
UtxoInvoiceStatus["Overpaid"] = "OVERPAID";
|
|
253
279
|
UtxoInvoiceStatus["Pending"] = "PENDING";
|
|
254
280
|
UtxoInvoiceStatus["Transferred"] = "TRANSFERRED";
|
|
255
281
|
})(UtxoInvoiceStatus || (exports.UtxoInvoiceStatus = UtxoInvoiceStatus = {}));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * as OnrampClient from './onrampServiceClient';
|
|
2
2
|
import { OnRampPayment } from '../lib/graphClient/generated';
|
|
3
|
-
import { SyncOnrampTransferInput } from './types';
|
|
3
|
+
import { BridgeUser, SyncOnrampTransferInput } from './types';
|
|
4
4
|
export declare function syncTransfer(input: SyncOnrampTransferInput): Promise<OnRampPayment>;
|
|
5
5
|
export declare function getUserCompletedPayments(userId: string): Promise<OnRampPayment[]>;
|
|
6
|
+
export declare function upsertBridgeUser(input: string): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<BridgeUser>>;
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.getUserCompletedPayments = exports.syncTransfer = exports.OnrampClient = void 0;
|
|
26
|
+
exports.upsertBridgeUser = exports.getUserCompletedPayments = exports.syncTransfer = exports.OnrampClient = void 0;
|
|
27
27
|
exports.OnrampClient = __importStar(require("./onrampServiceClient"));
|
|
28
28
|
const serviceClient_1 = require("../serviceClient");
|
|
29
29
|
const ONRAMP_ENDPOINT = '/bridge';
|
|
@@ -39,3 +39,9 @@ async function getUserCompletedPayments(userId) {
|
|
|
39
39
|
.then((res) => res.data);
|
|
40
40
|
}
|
|
41
41
|
exports.getUserCompletedPayments = getUserCompletedPayments;
|
|
42
|
+
async function upsertBridgeUser(input) {
|
|
43
|
+
return serviceClient_1.baseClient
|
|
44
|
+
.post(`${ONRAMP_ENDPOINT}/user`, input)
|
|
45
|
+
.then((res) => res.data);
|
|
46
|
+
}
|
|
47
|
+
exports.upsertBridgeUser = upsertBridgeUser;
|
package/lib/onramp/types.d.ts
CHANGED
|
@@ -16,3 +16,22 @@ export type SyncOnrampTransferInput = {
|
|
|
16
16
|
sourceCurrency: string;
|
|
17
17
|
userId: string;
|
|
18
18
|
};
|
|
19
|
+
export type CreateBridgeUserParams = {
|
|
20
|
+
userId: string;
|
|
21
|
+
address: {
|
|
22
|
+
street?: string;
|
|
23
|
+
street2?: string;
|
|
24
|
+
city?: string;
|
|
25
|
+
subdivision?: string;
|
|
26
|
+
postalCode?: string;
|
|
27
|
+
countryCode: string;
|
|
28
|
+
};
|
|
29
|
+
email: string;
|
|
30
|
+
firstName: string;
|
|
31
|
+
lastName: string;
|
|
32
|
+
};
|
|
33
|
+
export type BridgeUser = {
|
|
34
|
+
id: string;
|
|
35
|
+
userId: string;
|
|
36
|
+
externalId: string;
|
|
37
|
+
};
|