@spritz-finance/service-client 0.3.133 → 0.3.135
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/lib/graphClient/generated.d.ts +186 -6
- package/lib/lib/graphClient/generated.js +14 -1
- package/lib/payableAccounts/payableAccountsServiceClient.d.ts +16 -0
- package/lib/payableAccounts/types.d.ts +4 -2
- package/lib/rain/rainServiceClient.d.ts +2 -1
- package/lib/rain/rainServiceClient.js +7 -1
- package/lib/rain/types.d.ts +43 -0
- package/lib/rain/types.js +8 -1
- package/package.json +1 -1
|
@@ -130,8 +130,6 @@ export type Address = {
|
|
|
130
130
|
city?: Maybe<Scalars['String']['output']>;
|
|
131
131
|
countryCode?: Maybe<Scalars['String']['output']>;
|
|
132
132
|
postalCode?: Maybe<Scalars['String']['output']>;
|
|
133
|
-
street?: Maybe<Scalars['String']['output']>;
|
|
134
|
-
street2?: Maybe<Scalars['String']['output']>;
|
|
135
133
|
subdivision?: Maybe<Scalars['String']['output']>;
|
|
136
134
|
};
|
|
137
135
|
export type AddressInput = {
|
|
@@ -157,6 +155,10 @@ export type AffiliateCode = {
|
|
|
157
155
|
inviteLink: Scalars['String']['output'];
|
|
158
156
|
userId?: Maybe<Scalars['String']['output']>;
|
|
159
157
|
};
|
|
158
|
+
export declare enum AmountMode {
|
|
159
|
+
AmountReceived = "AMOUNT_RECEIVED",
|
|
160
|
+
TotalAmount = "TOTAL_AMOUNT"
|
|
161
|
+
}
|
|
160
162
|
export type ApiToken = {
|
|
161
163
|
__typename?: 'ApiToken';
|
|
162
164
|
createdAt: Scalars['DateTimeISO']['output'];
|
|
@@ -266,10 +268,9 @@ export type BankAccountInput = {
|
|
|
266
268
|
address?: InputMaybe<BankAccountAddressInput>;
|
|
267
269
|
details?: InputMaybe<Scalars['JSON']['input']>;
|
|
268
270
|
email?: InputMaybe<Scalars['String']['input']>;
|
|
269
|
-
holder?: InputMaybe<Scalars['String']['input']>;
|
|
270
271
|
holderFirstName?: InputMaybe<Scalars['String']['input']>;
|
|
271
272
|
holderLastName?: InputMaybe<Scalars['String']['input']>;
|
|
272
|
-
name
|
|
273
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
273
274
|
ownedByUser?: InputMaybe<Scalars['Boolean']['input']>;
|
|
274
275
|
subType: BankAccountSubType;
|
|
275
276
|
type: BankAccountType;
|
|
@@ -547,12 +548,14 @@ export type BridgeUser = {
|
|
|
547
548
|
id: Scalars['ID']['output'];
|
|
548
549
|
kycLink?: Maybe<Scalars['String']['output']>;
|
|
549
550
|
kycStatus: Scalars['String']['output'];
|
|
551
|
+
kycUpload: Scalars['Boolean']['output'];
|
|
550
552
|
signedAgreementId?: Maybe<Scalars['String']['output']>;
|
|
551
553
|
status: Scalars['String']['output'];
|
|
552
554
|
tosLink?: Maybe<Scalars['String']['output']>;
|
|
553
555
|
tosStatus: Scalars['String']['output'];
|
|
554
556
|
type?: Maybe<Scalars['String']['output']>;
|
|
555
557
|
userId: Scalars['String']['output'];
|
|
558
|
+
wireTransferEnabled: Scalars['Boolean']['output'];
|
|
556
559
|
};
|
|
557
560
|
export type BridgeVirtualAccount = {
|
|
558
561
|
__typename?: 'BridgeVirtualAccount';
|
|
@@ -563,6 +566,7 @@ export type BridgeVirtualAccount = {
|
|
|
563
566
|
deposited: Scalars['Boolean']['output'];
|
|
564
567
|
externalId: Scalars['String']['output'];
|
|
565
568
|
id: Scalars['ID']['output'];
|
|
569
|
+
integratorId?: Maybe<Scalars['String']['output']>;
|
|
566
570
|
microdeposits?: Maybe<Array<Scalars['Float']['output']>>;
|
|
567
571
|
network: Scalars['String']['output'];
|
|
568
572
|
token: Scalars['String']['output'];
|
|
@@ -585,6 +589,8 @@ export type CanadianBankAccountDetails = {
|
|
|
585
589
|
export type CardApplication = {
|
|
586
590
|
__typename?: 'CardApplication';
|
|
587
591
|
applicationCompletionLink?: Maybe<Scalars['String']['output']>;
|
|
592
|
+
balance: Scalars['Float']['output'];
|
|
593
|
+
id: Scalars['String']['output'];
|
|
588
594
|
status: Scalars['String']['output'];
|
|
589
595
|
};
|
|
590
596
|
export type CardApplicationUser = {
|
|
@@ -668,6 +674,8 @@ export type CreateBridgeVirtualAccountInput = {
|
|
|
668
674
|
export type CreateDirectPaymentInput = {
|
|
669
675
|
accountId: Scalars['String']['input'];
|
|
670
676
|
amount: Scalars['Float']['input'];
|
|
677
|
+
/** Specifies whether amount represents the amount received by account or total amount including fees */
|
|
678
|
+
amountMode?: InputMaybe<AmountMode>;
|
|
671
679
|
deliveryMethod?: InputMaybe<PaymentDeliveryMethod>;
|
|
672
680
|
network: Scalars['String']['input'];
|
|
673
681
|
paymentNote?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -927,12 +935,14 @@ export type IdentityModule = {
|
|
|
927
935
|
pendingModuleStatus?: Maybe<ModuleStatus>;
|
|
928
936
|
pendingSessionId?: Maybe<Scalars['String']['output']>;
|
|
929
937
|
pendingTemplateId?: Maybe<Scalars['String']['output']>;
|
|
938
|
+
provider: Scalars['String']['output'];
|
|
930
939
|
sessionId?: Maybe<Scalars['String']['output']>;
|
|
931
940
|
status: ModuleStatus;
|
|
932
941
|
statusLog?: Maybe<Array<StatusLogEntry>>;
|
|
933
942
|
templateId?: Maybe<Scalars['String']['output']>;
|
|
934
943
|
user?: Maybe<UserIdentity>;
|
|
935
944
|
verificationFailures: VerificationFailures;
|
|
945
|
+
verificationMetadata?: Maybe<VerificationMetadata>;
|
|
936
946
|
verificationUrl?: Maybe<Scalars['String']['output']>;
|
|
937
947
|
};
|
|
938
948
|
export type IntegrationToken = {
|
|
@@ -1141,6 +1151,8 @@ export declare enum ModuleStatus {
|
|
|
1141
1151
|
}
|
|
1142
1152
|
export type Mutation = {
|
|
1143
1153
|
__typename?: 'Mutation';
|
|
1154
|
+
activateBillsModule: Verification;
|
|
1155
|
+
activatePhysicalCard: VirtualCard;
|
|
1144
1156
|
activateRecoveryProgram: Scalars['Boolean']['output'];
|
|
1145
1157
|
addAssociatedWallet: Scalars['Boolean']['output'];
|
|
1146
1158
|
addBICToIBANAccount: BankAccount;
|
|
@@ -1151,6 +1163,7 @@ export type Mutation = {
|
|
|
1151
1163
|
adminCreateNewAffiliateCode: Scalars['Boolean']['output'];
|
|
1152
1164
|
adminDeleteAccount: PayableAccount;
|
|
1153
1165
|
adminIssuePayment?: Maybe<Payment>;
|
|
1166
|
+
adminLockVirtualCard: VirtualCard;
|
|
1154
1167
|
adminResyncUserProviders?: Maybe<Verification>;
|
|
1155
1168
|
adminSetReferralProgramStatus?: Maybe<Referral>;
|
|
1156
1169
|
adminSetSetReferrer: Scalars['Boolean']['output'];
|
|
@@ -1175,9 +1188,11 @@ export type Mutation = {
|
|
|
1175
1188
|
createExternalBankAccount: BankAccount;
|
|
1176
1189
|
createIntegrationToken: IntegrationToken;
|
|
1177
1190
|
createIntegrator: Integrator;
|
|
1191
|
+
createOneTimePayment: OneTimePayment;
|
|
1178
1192
|
createOnrampPayment: OnRampPayment;
|
|
1179
1193
|
createSpritzSourceAccount: MethodFiAccount;
|
|
1180
1194
|
createUSBankAccount: BankAccount;
|
|
1195
|
+
createUSPhysicalDebitCard: VirtualCard;
|
|
1181
1196
|
createUSVirtualDebitCard: VirtualCard;
|
|
1182
1197
|
createUnblockKycApplicant: Scalars['Boolean']['output'];
|
|
1183
1198
|
createVirtualAccount: BridgeVirtualAccount;
|
|
@@ -1190,21 +1205,25 @@ export type Mutation = {
|
|
|
1190
1205
|
forceStrictVerification?: Maybe<Verification>;
|
|
1191
1206
|
forceStrictVerificationUser?: Maybe<Verification>;
|
|
1192
1207
|
getAuthenticatedWalletChallenge: AuthenticatedWalletChallenge;
|
|
1193
|
-
getBridgePlaidToken: Scalars['String']['output'];
|
|
1194
1208
|
getKycLinkToken: Scalars['String']['output'];
|
|
1209
|
+
getTosLink: Scalars['String']['output'];
|
|
1210
|
+
getVerificationParams: VerificationParams;
|
|
1195
1211
|
grantCredit: RewardTransaction;
|
|
1196
1212
|
initializeDirectPayment: Scalars['Boolean']['output'];
|
|
1197
1213
|
lockEntityAuth: MethodFiEntity;
|
|
1198
1214
|
markNotificationAsRead?: Maybe<UserNotification>;
|
|
1199
1215
|
markPaymentAsRefunded: Payment;
|
|
1200
1216
|
moveMoney: Scalars['Boolean']['output'];
|
|
1217
|
+
orderPhysicalCard: OneTimePayment;
|
|
1201
1218
|
paymentAddressForceWithdrawal: Scalars['Boolean']['output'];
|
|
1202
1219
|
paymentAddressRescueNative: Scalars['String']['output'];
|
|
1203
1220
|
reactivateBill: Bill;
|
|
1221
|
+
refreshCardBalance: VirtualCard;
|
|
1204
1222
|
refreshEntities: Scalars['Boolean']['output'];
|
|
1205
1223
|
refundPayment: Payment;
|
|
1206
1224
|
refundPaymentWithCredits: Payment;
|
|
1207
1225
|
refundPaymentWithPayment: Payment;
|
|
1226
|
+
reinitiateVerification: Verification;
|
|
1208
1227
|
renamePayableAccount: PayableAccount;
|
|
1209
1228
|
requestAccountDeletion: Scalars['Boolean']['output'];
|
|
1210
1229
|
requestBankAccountVerification: Scalars['Boolean']['output'];
|
|
@@ -1235,7 +1254,9 @@ export type Mutation = {
|
|
|
1235
1254
|
skipAttributionSurvey: Scalars['Boolean']['output'];
|
|
1236
1255
|
submitAttributionSurvey: Scalars['Boolean']['output'];
|
|
1237
1256
|
submitBankAccountVerification: BankAccount;
|
|
1257
|
+
submitFeedback: Scalars['Boolean']['output'];
|
|
1238
1258
|
submitSwapTransaction: SwapTransaction;
|
|
1259
|
+
toggleWireTransferStatus: Scalars['Boolean']['output'];
|
|
1239
1260
|
updateAdIdentifiers: Scalars['Boolean']['output'];
|
|
1240
1261
|
updateAnalyticsSession?: Maybe<User>;
|
|
1241
1262
|
updateAppDomain: Scalars['Boolean']['output'];
|
|
@@ -1249,6 +1270,11 @@ export type Mutation = {
|
|
|
1249
1270
|
updateUserTimezone: User;
|
|
1250
1271
|
updateVirtualCardStatus: VirtualCard;
|
|
1251
1272
|
};
|
|
1273
|
+
export type MutationActivatePhysicalCardArgs = {
|
|
1274
|
+
accountId: Scalars['String']['input'];
|
|
1275
|
+
expirationMonth: Scalars['String']['input'];
|
|
1276
|
+
expirationYear: Scalars['String']['input'];
|
|
1277
|
+
};
|
|
1252
1278
|
export type MutationAddAssociatedWalletArgs = {
|
|
1253
1279
|
address: Scalars['String']['input'];
|
|
1254
1280
|
};
|
|
@@ -1279,6 +1305,10 @@ export type MutationAdminDeleteAccountArgs = {
|
|
|
1279
1305
|
export type MutationAdminIssuePaymentArgs = {
|
|
1280
1306
|
issuePaymentInput: AdminIssuePaymentInput;
|
|
1281
1307
|
};
|
|
1308
|
+
export type MutationAdminLockVirtualCardArgs = {
|
|
1309
|
+
accountId: Scalars['String']['input'];
|
|
1310
|
+
locked: Scalars['Boolean']['input'];
|
|
1311
|
+
};
|
|
1282
1312
|
export type MutationAdminResyncUserProvidersArgs = {
|
|
1283
1313
|
userId: Scalars['String']['input'];
|
|
1284
1314
|
};
|
|
@@ -1357,12 +1387,19 @@ export type MutationCreateIntegratorArgs = {
|
|
|
1357
1387
|
email: Scalars['String']['input'];
|
|
1358
1388
|
name: Scalars['String']['input'];
|
|
1359
1389
|
};
|
|
1390
|
+
export type MutationCreateOneTimePaymentArgs = {
|
|
1391
|
+
input: OneTimePaymentInput;
|
|
1392
|
+
};
|
|
1360
1393
|
export type MutationCreateOnrampPaymentArgs = {
|
|
1361
1394
|
createOnrampPaymentInput: CreateOnrampPaymentInput;
|
|
1362
1395
|
};
|
|
1363
1396
|
export type MutationCreateUsBankAccountArgs = {
|
|
1364
1397
|
createUSAccountInput: UsBankAccountInput;
|
|
1365
1398
|
};
|
|
1399
|
+
export type MutationCreateUsPhysicalDebitCardArgs = {
|
|
1400
|
+
nickname?: InputMaybe<Scalars['String']['input']>;
|
|
1401
|
+
shippingAddress: ShippingAddressInput;
|
|
1402
|
+
};
|
|
1366
1403
|
export type MutationCreateUsVirtualDebitCardArgs = {
|
|
1367
1404
|
nickname?: InputMaybe<Scalars['String']['input']>;
|
|
1368
1405
|
};
|
|
@@ -1403,6 +1440,9 @@ export type MutationGetAuthenticatedWalletChallengeArgs = {
|
|
|
1403
1440
|
export type MutationGetKycLinkTokenArgs = {
|
|
1404
1441
|
enhancedVerification?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1405
1442
|
};
|
|
1443
|
+
export type MutationGetVerificationParamsArgs = {
|
|
1444
|
+
enhancedVerification?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1445
|
+
};
|
|
1406
1446
|
export type MutationGrantCreditArgs = {
|
|
1407
1447
|
amount: Scalars['Float']['input'];
|
|
1408
1448
|
category?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -1424,6 +1464,9 @@ export type MutationMoveMoneyArgs = {
|
|
|
1424
1464
|
from: Scalars['String']['input'];
|
|
1425
1465
|
to: Scalars['String']['input'];
|
|
1426
1466
|
};
|
|
1467
|
+
export type MutationOrderPhysicalCardArgs = {
|
|
1468
|
+
input: OrderPhysicalCardInput;
|
|
1469
|
+
};
|
|
1427
1470
|
export type MutationPaymentAddressForceWithdrawalArgs = {
|
|
1428
1471
|
address: Scalars['String']['input'];
|
|
1429
1472
|
network: Scalars['String']['input'];
|
|
@@ -1438,6 +1481,9 @@ export type MutationReactivateBillArgs = {
|
|
|
1438
1481
|
accountId: Scalars['String']['input'];
|
|
1439
1482
|
userId: Scalars['String']['input'];
|
|
1440
1483
|
};
|
|
1484
|
+
export type MutationRefreshCardBalanceArgs = {
|
|
1485
|
+
accountId: Scalars['String']['input'];
|
|
1486
|
+
};
|
|
1441
1487
|
export type MutationRefundPaymentArgs = {
|
|
1442
1488
|
refundPaymentInput: RefundPaymentInput;
|
|
1443
1489
|
};
|
|
@@ -1447,6 +1493,9 @@ export type MutationRefundPaymentWithCreditsArgs = {
|
|
|
1447
1493
|
export type MutationRefundPaymentWithPaymentArgs = {
|
|
1448
1494
|
refundPaymentInput: RefundPaymentWithPaymentInput;
|
|
1449
1495
|
};
|
|
1496
|
+
export type MutationReinitiateVerificationArgs = {
|
|
1497
|
+
userId: Scalars['String']['input'];
|
|
1498
|
+
};
|
|
1450
1499
|
export type MutationRenamePayableAccountArgs = {
|
|
1451
1500
|
accountId: Scalars['String']['input'];
|
|
1452
1501
|
name: Scalars['String']['input'];
|
|
@@ -1479,6 +1528,7 @@ export type MutationRevokeCreditArgs = {
|
|
|
1479
1528
|
};
|
|
1480
1529
|
export type MutationSetBridgeUserAgreementIdArgs = {
|
|
1481
1530
|
agreementId: Scalars['String']['input'];
|
|
1531
|
+
sessionId?: InputMaybe<Scalars['String']['input']>;
|
|
1482
1532
|
};
|
|
1483
1533
|
export type MutationSetIntegratorArgs = {
|
|
1484
1534
|
integrationKey: Scalars['String']['input'];
|
|
@@ -1534,9 +1584,16 @@ export type MutationSubmitBankAccountVerificationArgs = {
|
|
|
1534
1584
|
accountId: Scalars['String']['input'];
|
|
1535
1585
|
otp: Scalars['String']['input'];
|
|
1536
1586
|
};
|
|
1587
|
+
export type MutationSubmitFeedbackArgs = {
|
|
1588
|
+
feedback: Scalars['String']['input'];
|
|
1589
|
+
};
|
|
1537
1590
|
export type MutationSubmitSwapTransactionArgs = {
|
|
1538
1591
|
transaction: SwapTransactionInput;
|
|
1539
1592
|
};
|
|
1593
|
+
export type MutationToggleWireTransferStatusArgs = {
|
|
1594
|
+
enabled: Scalars['Boolean']['input'];
|
|
1595
|
+
userId: Scalars['String']['input'];
|
|
1596
|
+
};
|
|
1540
1597
|
export type MutationUpdateAdIdentifiersArgs = {
|
|
1541
1598
|
adIdentifiers: AdIdentifiersInput;
|
|
1542
1599
|
};
|
|
@@ -1611,6 +1668,7 @@ export type OnRampPayment = {
|
|
|
1611
1668
|
externalId: Scalars['String']['output'];
|
|
1612
1669
|
feeAmount: Scalars['Float']['output'];
|
|
1613
1670
|
id: Scalars['ID']['output'];
|
|
1671
|
+
integratorId?: Maybe<Scalars['String']['output']>;
|
|
1614
1672
|
network: Scalars['String']['output'];
|
|
1615
1673
|
sourceCurrency: Scalars['String']['output'];
|
|
1616
1674
|
sourceCurrencyAmount: Scalars['Float']['output'];
|
|
@@ -1634,6 +1692,54 @@ export type OnRampTransferSimulationResult = {
|
|
|
1634
1692
|
sourceCurrency: Scalars['String']['output'];
|
|
1635
1693
|
sourceFee: Scalars['Float']['output'];
|
|
1636
1694
|
};
|
|
1695
|
+
export type OneTimePayment = PayableAccount & {
|
|
1696
|
+
__typename?: 'OneTimePayment';
|
|
1697
|
+
amount: Scalars['Int']['output'];
|
|
1698
|
+
country: Scalars['String']['output'];
|
|
1699
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
1700
|
+
currency: Scalars['String']['output'];
|
|
1701
|
+
currentPaymentCount: Scalars['Int']['output'];
|
|
1702
|
+
dataSync?: Maybe<AccountDataSync>;
|
|
1703
|
+
deleted: Scalars['Boolean']['output'];
|
|
1704
|
+
deliveryMethods: Array<PaymentDeliveryMethod>;
|
|
1705
|
+
disabled: Scalars['Boolean']['output'];
|
|
1706
|
+
externalId?: Maybe<Scalars['String']['output']>;
|
|
1707
|
+
feeAmount: Scalars['Int']['output'];
|
|
1708
|
+
id: Scalars['ID']['output'];
|
|
1709
|
+
institution?: Maybe<PayableAccountInstitution>;
|
|
1710
|
+
isConsumed: Scalars['Boolean']['output'];
|
|
1711
|
+
legacyExternalId?: Maybe<Scalars['String']['output']>;
|
|
1712
|
+
mask?: Maybe<Scalars['String']['output']>;
|
|
1713
|
+
maxPaymentCount: Scalars['Int']['output'];
|
|
1714
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
1715
|
+
oneTimePaymentType: OneTimePaymentType;
|
|
1716
|
+
originalName?: Maybe<Scalars['String']['output']>;
|
|
1717
|
+
originator: PayableAccountOriginator;
|
|
1718
|
+
payable: Scalars['Boolean']['output'];
|
|
1719
|
+
paymentCount: Scalars['Int']['output'];
|
|
1720
|
+
paymentVolume: Scalars['Float']['output'];
|
|
1721
|
+
provider: Scalars['String']['output'];
|
|
1722
|
+
referenceId: Scalars['String']['output'];
|
|
1723
|
+
subtype?: Maybe<Scalars['String']['output']>;
|
|
1724
|
+
totalAmount: Scalars['Int']['output'];
|
|
1725
|
+
type: PayableAccountType;
|
|
1726
|
+
user: User;
|
|
1727
|
+
userId: Scalars['String']['output'];
|
|
1728
|
+
verifying: Scalars['Boolean']['output'];
|
|
1729
|
+
};
|
|
1730
|
+
export type OneTimePaymentInput = {
|
|
1731
|
+
amount: Scalars['Int']['input'];
|
|
1732
|
+
country?: InputMaybe<Scalars['String']['input']>;
|
|
1733
|
+
currency?: InputMaybe<Scalars['String']['input']>;
|
|
1734
|
+
feeAmount: Scalars['Int']['input'];
|
|
1735
|
+
maxPaymentCount?: InputMaybe<Scalars['Int']['input']>;
|
|
1736
|
+
oneTimePaymentType: OneTimePaymentType;
|
|
1737
|
+
referenceId: Scalars['String']['input'];
|
|
1738
|
+
subtype?: InputMaybe<Scalars['String']['input']>;
|
|
1739
|
+
};
|
|
1740
|
+
export declare enum OneTimePaymentType {
|
|
1741
|
+
PhysicalCardOrder = "PhysicalCardOrder"
|
|
1742
|
+
}
|
|
1637
1743
|
export type OnrampPaymentDepositInstructions = {
|
|
1638
1744
|
__typename?: 'OnrampPaymentDepositInstructions';
|
|
1639
1745
|
accountHolderName?: Maybe<Scalars['String']['output']>;
|
|
@@ -1659,6 +1765,22 @@ export declare enum OnrampPaymentStatus {
|
|
|
1659
1765
|
Refunded = "REFUNDED",
|
|
1660
1766
|
Reversed = "REVERSED"
|
|
1661
1767
|
}
|
|
1768
|
+
export type OrderCardShippingAddressInput = {
|
|
1769
|
+
city: Scalars['String']['input'];
|
|
1770
|
+
countryCode: Scalars['String']['input'];
|
|
1771
|
+
postalCode: Scalars['String']['input'];
|
|
1772
|
+
street: Scalars['String']['input'];
|
|
1773
|
+
street2?: InputMaybe<Scalars['String']['input']>;
|
|
1774
|
+
subdivision: Scalars['String']['input'];
|
|
1775
|
+
};
|
|
1776
|
+
export type OrderCardShippingInput = {
|
|
1777
|
+
address: OrderCardShippingAddressInput;
|
|
1778
|
+
method?: InputMaybe<Scalars['String']['input']>;
|
|
1779
|
+
phoneNumber?: InputMaybe<Scalars['String']['input']>;
|
|
1780
|
+
};
|
|
1781
|
+
export type OrderPhysicalCardInput = {
|
|
1782
|
+
shipping: OrderCardShippingInput;
|
|
1783
|
+
};
|
|
1662
1784
|
export type PaginatedActivity = {
|
|
1663
1785
|
__typename?: 'PaginatedActivity';
|
|
1664
1786
|
currentPage: Scalars['Float']['output'];
|
|
@@ -1747,6 +1869,7 @@ export declare enum PayableAccountType {
|
|
|
1747
1869
|
Bill = "Bill",
|
|
1748
1870
|
DebitCard = "DebitCard",
|
|
1749
1871
|
DigitalAccount = "DigitalAccount",
|
|
1872
|
+
OneTimePayment = "OneTimePayment",
|
|
1750
1873
|
VirtualCard = "VirtualCard"
|
|
1751
1874
|
}
|
|
1752
1875
|
export type Payment = {
|
|
@@ -1895,6 +2018,17 @@ export type PaymentsFilter = {
|
|
|
1895
2018
|
status?: InputMaybe<Array<PaymentStatus>>;
|
|
1896
2019
|
type?: InputMaybe<PaymentType>;
|
|
1897
2020
|
};
|
|
2021
|
+
export type PersonaInquiry = {
|
|
2022
|
+
__typename?: 'PersonaInquiry';
|
|
2023
|
+
active: Scalars['Boolean']['output'];
|
|
2024
|
+
completedAt?: Maybe<Scalars['DateTimeISO']['output']>;
|
|
2025
|
+
createdAt: Scalars['DateTimeISO']['output'];
|
|
2026
|
+
externalId: Scalars['String']['output'];
|
|
2027
|
+
id: Scalars['String']['output'];
|
|
2028
|
+
startedAt?: Maybe<Scalars['DateTimeISO']['output']>;
|
|
2029
|
+
status: Scalars['String']['output'];
|
|
2030
|
+
userId: Scalars['String']['output'];
|
|
2031
|
+
};
|
|
1898
2032
|
export type PointsBalanceChanges = {
|
|
1899
2033
|
__typename?: 'PointsBalanceChanges';
|
|
1900
2034
|
balance: Scalars['Float']['output'];
|
|
@@ -1935,7 +2069,7 @@ export type Query = {
|
|
|
1935
2069
|
bridgeExternalAccounts: Array<BridgeExternalAccount>;
|
|
1936
2070
|
bridgeTransfer?: Maybe<BridgeTransfer>;
|
|
1937
2071
|
bridgeTransfers: Array<BridgeTransfer>;
|
|
1938
|
-
bridgeUser
|
|
2072
|
+
bridgeUser?: Maybe<BridgeUser>;
|
|
1939
2073
|
btcCashValue: UtxoBalance;
|
|
1940
2074
|
cardApplication: CardApplication;
|
|
1941
2075
|
cardApplicationStatus: Scalars['String']['output'];
|
|
@@ -1989,9 +2123,12 @@ export type Query = {
|
|
|
1989
2123
|
multichainBalances: Array<TokenBalance>;
|
|
1990
2124
|
notificationTokens: Array<UserNotificationToken>;
|
|
1991
2125
|
notifications: Array<UserNotification>;
|
|
2126
|
+
oneTimePaymentByReference?: Maybe<OneTimePayment>;
|
|
2127
|
+
oneTimePayments: Array<OneTimePayment>;
|
|
1992
2128
|
onrampPayments: Array<OnRampPayment>;
|
|
1993
2129
|
/** @deprecated no longer in use */
|
|
1994
2130
|
outstandingDirectPayments: Array<DirectPayment>;
|
|
2131
|
+
outstandingPhysicalCardOrder?: Maybe<OneTimePayment>;
|
|
1995
2132
|
paginatedActivity: PaginatedActivity;
|
|
1996
2133
|
paginatedCardTransactions: PaginatedSimpleTransaction;
|
|
1997
2134
|
paginatedReferralRewards: PaginatedReferralReward;
|
|
@@ -2192,6 +2329,9 @@ export type QueryMerkleCheckAddressArgs = {
|
|
|
2192
2329
|
export type QueryMultichainBalancesArgs = {
|
|
2193
2330
|
address: Scalars['String']['input'];
|
|
2194
2331
|
};
|
|
2332
|
+
export type QueryOneTimePaymentByReferenceArgs = {
|
|
2333
|
+
referenceId: Scalars['String']['input'];
|
|
2334
|
+
};
|
|
2195
2335
|
export type QueryOutstandingDirectPaymentsArgs = {
|
|
2196
2336
|
accountId?: InputMaybe<Scalars['String']['input']>;
|
|
2197
2337
|
};
|
|
@@ -2427,6 +2567,7 @@ export type RelatedCredit = {
|
|
|
2427
2567
|
order: Scalars['Float']['output'];
|
|
2428
2568
|
};
|
|
2429
2569
|
export declare enum RewardCreditSource {
|
|
2570
|
+
Cashback = "CASHBACK",
|
|
2430
2571
|
Compensation = "COMPENSATION",
|
|
2431
2572
|
Contest = "CONTEST",
|
|
2432
2573
|
Other = "OTHER",
|
|
@@ -2468,6 +2609,19 @@ export type SetUserPricingInput = {
|
|
|
2468
2609
|
flatFee: Scalars['Float']['input'];
|
|
2469
2610
|
userId: Scalars['String']['input'];
|
|
2470
2611
|
};
|
|
2612
|
+
export type ShippingAddressInput = {
|
|
2613
|
+
city: Scalars['String']['input'];
|
|
2614
|
+
countryCode: Scalars['String']['input'];
|
|
2615
|
+
postalCode: Scalars['String']['input'];
|
|
2616
|
+
street: Scalars['String']['input'];
|
|
2617
|
+
street2?: InputMaybe<Scalars['String']['input']>;
|
|
2618
|
+
subdivision: Scalars['String']['input'];
|
|
2619
|
+
};
|
|
2620
|
+
export type ShippingInfo = {
|
|
2621
|
+
__typename?: 'ShippingInfo';
|
|
2622
|
+
address?: Maybe<CardHolderAddress>;
|
|
2623
|
+
method: Scalars['String']['output'];
|
|
2624
|
+
};
|
|
2471
2625
|
export type SimpleCardTransaction = {
|
|
2472
2626
|
__typename?: 'SimpleCardTransaction';
|
|
2473
2627
|
amount: Scalars['Float']['output'];
|
|
@@ -2676,6 +2830,7 @@ export type User = {
|
|
|
2676
2830
|
email?: Maybe<Scalars['String']['output']>;
|
|
2677
2831
|
firstName?: Maybe<Scalars['String']['output']>;
|
|
2678
2832
|
id: Scalars['ID']['output'];
|
|
2833
|
+
isVip?: Maybe<Scalars['Boolean']['output']>;
|
|
2679
2834
|
lastActivity?: Maybe<Scalars['DateTimeISO']['output']>;
|
|
2680
2835
|
lastName?: Maybe<Scalars['String']['output']>;
|
|
2681
2836
|
latestSessionId?: Maybe<Scalars['String']['output']>;
|
|
@@ -2692,6 +2847,7 @@ export type User = {
|
|
|
2692
2847
|
timezone?: Maybe<Scalars['String']['output']>;
|
|
2693
2848
|
twitterVerified?: Maybe<Scalars['Boolean']['output']>;
|
|
2694
2849
|
updatedAt: Scalars['DateTimeISO']['output'];
|
|
2850
|
+
vipStatusLastUpdated?: Maybe<Scalars['DateTimeISO']['output']>;
|
|
2695
2851
|
};
|
|
2696
2852
|
export type UserAddress = {
|
|
2697
2853
|
__typename?: 'UserAddress';
|
|
@@ -2790,7 +2946,9 @@ export type Verification = {
|
|
|
2790
2946
|
flows: Array<CognitoKycFlow>;
|
|
2791
2947
|
hasEnhancedVerification: Scalars['Boolean']['output'];
|
|
2792
2948
|
identity: IdentityModule;
|
|
2949
|
+
inquiries: Array<PersonaInquiry>;
|
|
2793
2950
|
methodFiEntity?: Maybe<MethodFiEntity>;
|
|
2951
|
+
provider: Scalars['String']['output'];
|
|
2794
2952
|
unblockUser?: Maybe<UnblockUser>;
|
|
2795
2953
|
userId: Scalars['ObjectID']['output'];
|
|
2796
2954
|
virtualCard: VirtualCardModule;
|
|
@@ -2805,6 +2963,24 @@ export type VerificationFailures = {
|
|
|
2805
2963
|
documentary_verification: VerificationFailureRecord;
|
|
2806
2964
|
risk_check: VerificationFailureRecord;
|
|
2807
2965
|
verify_sms: VerificationFailureRecord;
|
|
2966
|
+
vpn_detected: VerificationFailureRecord;
|
|
2967
|
+
};
|
|
2968
|
+
export type VerificationMetadata = {
|
|
2969
|
+
__typename?: 'VerificationMetadata';
|
|
2970
|
+
details?: Maybe<VerificationMetadataDetails>;
|
|
2971
|
+
failureReason?: Maybe<Scalars['String']['output']>;
|
|
2972
|
+
};
|
|
2973
|
+
export type VerificationMetadataDetails = {
|
|
2974
|
+
__typename?: 'VerificationMetadataDetails';
|
|
2975
|
+
matchedEmail?: Maybe<Scalars['String']['output']>;
|
|
2976
|
+
};
|
|
2977
|
+
export type VerificationParams = {
|
|
2978
|
+
__typename?: 'VerificationParams';
|
|
2979
|
+
inquiryId: Scalars['String']['output'];
|
|
2980
|
+
provider: Scalars['String']['output'];
|
|
2981
|
+
sessionToken?: Maybe<Scalars['String']['output']>;
|
|
2982
|
+
verificationUrl?: Maybe<Scalars['String']['output']>;
|
|
2983
|
+
verificationUrlExpiresAt?: Maybe<Scalars['DateTimeISO']['output']>;
|
|
2808
2984
|
};
|
|
2809
2985
|
export type VirtualAccountDepositInstructions = {
|
|
2810
2986
|
__typename?: 'VirtualAccountDepositInstructions';
|
|
@@ -2815,6 +2991,7 @@ export type VirtualAccountDepositInstructions = {
|
|
|
2815
2991
|
bankRoutingNumber: Scalars['String']['output'];
|
|
2816
2992
|
currency: Scalars['String']['output'];
|
|
2817
2993
|
paymentMethod: Scalars['String']['output'];
|
|
2994
|
+
paymentRails?: Maybe<Array<Scalars['String']['output']>>;
|
|
2818
2995
|
};
|
|
2819
2996
|
export type VirtualCard = PayableAccount & {
|
|
2820
2997
|
__typename?: 'VirtualCard';
|
|
@@ -2842,6 +3019,7 @@ export type VirtualCard = PayableAccount & {
|
|
|
2842
3019
|
paymentVolume: Scalars['Float']['output'];
|
|
2843
3020
|
provider: Scalars['String']['output'];
|
|
2844
3021
|
renderSecret?: Maybe<Scalars['String']['output']>;
|
|
3022
|
+
shippingInfo?: Maybe<ShippingInfo>;
|
|
2845
3023
|
tokenWallets?: Maybe<Array<Scalars['String']['output']>>;
|
|
2846
3024
|
transactions?: Maybe<Array<SimpleCardTransaction>>;
|
|
2847
3025
|
type: PayableAccountType;
|
|
@@ -2859,10 +3037,12 @@ export type VirtualCardModule = {
|
|
|
2859
3037
|
};
|
|
2860
3038
|
export declare enum VirtualCardStatus {
|
|
2861
3039
|
Active = "Active",
|
|
3040
|
+
Cancelled = "Cancelled",
|
|
2862
3041
|
Frozen = "Frozen",
|
|
2863
3042
|
NotActivated = "NotActivated"
|
|
2864
3043
|
}
|
|
2865
3044
|
export declare enum VirtualCardType {
|
|
3045
|
+
UsPhysicalDebitCard = "USPhysicalDebitCard",
|
|
2866
3046
|
UsVirtualDebitCard = "USVirtualDebitCard"
|
|
2867
3047
|
}
|
|
2868
3048
|
export type WalletAccount = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VirtualCardType = exports.VirtualCardStatus = exports.UtxoInvoiceStatus = 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.BridgeTransferState = exports.BridgeTransferOffRampPaymentRail = exports.BridgeNetwork = exports.BillType = exports.BasicPayableAccountType = exports.BankAccountType = exports.BankAccountSubType = exports.BankAccountPaymentType = exports.AppDomain = exports.ActivityType = exports.ActivityStatus = exports.AccountSyncStatus = exports.AccountProvider = void 0;
|
|
3
|
+
exports.VirtualCardType = exports.VirtualCardStatus = exports.UtxoInvoiceStatus = 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.OneTimePaymentType = exports.Network = exports.ModuleStatus = exports.DirectPaymentTransactionReferenceStatus = exports.DirectPaymentStatus = exports.DigitalAccountType = exports.DebitCardNetwork = exports.BridgeTransferState = exports.BridgeTransferOffRampPaymentRail = exports.BridgeNetwork = exports.BillType = exports.BasicPayableAccountType = exports.BankAccountType = exports.BankAccountSubType = exports.BankAccountPaymentType = exports.AppDomain = exports.AmountMode = exports.ActivityType = exports.ActivityStatus = exports.AccountSyncStatus = exports.AccountProvider = void 0;
|
|
4
4
|
var AccountProvider;
|
|
5
5
|
(function (AccountProvider) {
|
|
6
6
|
AccountProvider["Bridge"] = "BRIDGE";
|
|
@@ -35,6 +35,11 @@ var ActivityType;
|
|
|
35
35
|
ActivityType["CryptoPurchase"] = "CryptoPurchase";
|
|
36
36
|
ActivityType["DebitCardPayment"] = "DebitCardPayment";
|
|
37
37
|
})(ActivityType || (exports.ActivityType = ActivityType = {}));
|
|
38
|
+
var AmountMode;
|
|
39
|
+
(function (AmountMode) {
|
|
40
|
+
AmountMode["AmountReceived"] = "AMOUNT_RECEIVED";
|
|
41
|
+
AmountMode["TotalAmount"] = "TOTAL_AMOUNT";
|
|
42
|
+
})(AmountMode || (exports.AmountMode = AmountMode = {}));
|
|
38
43
|
var AppDomain;
|
|
39
44
|
(function (AppDomain) {
|
|
40
45
|
AppDomain["Quickswap"] = "QUICKSWAP";
|
|
@@ -166,6 +171,10 @@ var Network;
|
|
|
166
171
|
Network["Sui"] = "Sui";
|
|
167
172
|
Network["Tron"] = "Tron";
|
|
168
173
|
})(Network || (exports.Network = Network = {}));
|
|
174
|
+
var OneTimePaymentType;
|
|
175
|
+
(function (OneTimePaymentType) {
|
|
176
|
+
OneTimePaymentType["PhysicalCardOrder"] = "PhysicalCardOrder";
|
|
177
|
+
})(OneTimePaymentType || (exports.OneTimePaymentType = OneTimePaymentType = {}));
|
|
169
178
|
var OnrampPaymentStatus;
|
|
170
179
|
(function (OnrampPaymentStatus) {
|
|
171
180
|
OnrampPaymentStatus["AwaitingFunds"] = "AWAITING_FUNDS";
|
|
@@ -188,6 +197,7 @@ var PayableAccountType;
|
|
|
188
197
|
PayableAccountType["Bill"] = "Bill";
|
|
189
198
|
PayableAccountType["DebitCard"] = "DebitCard";
|
|
190
199
|
PayableAccountType["DigitalAccount"] = "DigitalAccount";
|
|
200
|
+
PayableAccountType["OneTimePayment"] = "OneTimePayment";
|
|
191
201
|
PayableAccountType["VirtualCard"] = "VirtualCard";
|
|
192
202
|
})(PayableAccountType || (exports.PayableAccountType = PayableAccountType = {}));
|
|
193
203
|
var PaymentDeliveryMethod;
|
|
@@ -279,6 +289,7 @@ var ReferralTier;
|
|
|
279
289
|
})(ReferralTier || (exports.ReferralTier = ReferralTier = {}));
|
|
280
290
|
var RewardCreditSource;
|
|
281
291
|
(function (RewardCreditSource) {
|
|
292
|
+
RewardCreditSource["Cashback"] = "CASHBACK";
|
|
282
293
|
RewardCreditSource["Compensation"] = "COMPENSATION";
|
|
283
294
|
RewardCreditSource["Contest"] = "CONTEST";
|
|
284
295
|
RewardCreditSource["Other"] = "OTHER";
|
|
@@ -311,10 +322,12 @@ var UtxoInvoiceStatus;
|
|
|
311
322
|
var VirtualCardStatus;
|
|
312
323
|
(function (VirtualCardStatus) {
|
|
313
324
|
VirtualCardStatus["Active"] = "Active";
|
|
325
|
+
VirtualCardStatus["Cancelled"] = "Cancelled";
|
|
314
326
|
VirtualCardStatus["Frozen"] = "Frozen";
|
|
315
327
|
VirtualCardStatus["NotActivated"] = "NotActivated";
|
|
316
328
|
})(VirtualCardStatus || (exports.VirtualCardStatus = VirtualCardStatus = {}));
|
|
317
329
|
var VirtualCardType;
|
|
318
330
|
(function (VirtualCardType) {
|
|
331
|
+
VirtualCardType["UsPhysicalDebitCard"] = "USPhysicalDebitCard";
|
|
319
332
|
VirtualCardType["UsVirtualDebitCard"] = "USVirtualDebitCard";
|
|
320
333
|
})(VirtualCardType || (exports.VirtualCardType = VirtualCardType = {}));
|
|
@@ -32,6 +32,14 @@ export declare function getAccount(accountId: string): Promise<(Omit<import("../
|
|
|
32
32
|
payable: boolean;
|
|
33
33
|
testPaymentAvailable: boolean;
|
|
34
34
|
provider: import("../lib/graphClient/generated").AccountProvider;
|
|
35
|
+
}) | (Omit<import("../lib/graphClient/generated").OneTimePayment, "type" | "institution"> & {
|
|
36
|
+
__t: import("../lib/graphClient/generated").PayableAccountType;
|
|
37
|
+
externalId?: string;
|
|
38
|
+
institutionId?: string;
|
|
39
|
+
nickname?: string;
|
|
40
|
+
payable: boolean;
|
|
41
|
+
testPaymentAvailable: boolean;
|
|
42
|
+
provider: import("../lib/graphClient/generated").AccountProvider;
|
|
35
43
|
})>;
|
|
36
44
|
export declare function getAccountByExternalId(externalId: string): Promise<(Omit<import("../lib/graphClient/generated").Bill, "type" | "institution"> & {
|
|
37
45
|
__t: import("../lib/graphClient/generated").PayableAccountType;
|
|
@@ -65,6 +73,14 @@ export declare function getAccountByExternalId(externalId: string): Promise<(Omi
|
|
|
65
73
|
payable: boolean;
|
|
66
74
|
testPaymentAvailable: boolean;
|
|
67
75
|
provider: import("../lib/graphClient/generated").AccountProvider;
|
|
76
|
+
}) | (Omit<import("../lib/graphClient/generated").OneTimePayment, "type" | "institution"> & {
|
|
77
|
+
__t: import("../lib/graphClient/generated").PayableAccountType;
|
|
78
|
+
externalId?: string;
|
|
79
|
+
institutionId?: string;
|
|
80
|
+
nickname?: string;
|
|
81
|
+
payable: boolean;
|
|
82
|
+
testPaymentAvailable: boolean;
|
|
83
|
+
provider: import("../lib/graphClient/generated").AccountProvider;
|
|
68
84
|
})>;
|
|
69
85
|
export declare function getAccountsForUser(userId: string): Promise<PayableAccount[]>;
|
|
70
86
|
export declare function getAccounts(accountIds: string[]): Promise<PayableAccount[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccountProvider, AccountSyncStatus, BankAccount, Bill, BillType, DebitCard, DigitalAccount, PayableAccountInstitution as GraphInstitution, PayableAccountOriginator, PayableAccountType, VirtualCard } from '../lib/graphClient/generated';
|
|
1
|
+
import { AccountProvider, AccountSyncStatus, BankAccount, Bill, BillType, DebitCard, DigitalAccount, OneTimePayment, PayableAccountInstitution as GraphInstitution, PayableAccountOriginator, PayableAccountType, VirtualCard } from '../lib/graphClient/generated';
|
|
2
2
|
export { AccountSyncStatus, PayableAccountOriginator, } from '../lib/graphClient/generated';
|
|
3
3
|
export declare enum BankAccountSubType {
|
|
4
4
|
Business = "BUSINESS",
|
|
@@ -55,7 +55,9 @@ type BankAcountModel = Omit<BankAccount, 'type' | 'institution'> & PayableAccoun
|
|
|
55
55
|
type VirtualCardModel = Omit<VirtualCard, 'type' | 'institution'> & PayableAccountModelExtension;
|
|
56
56
|
type DebitCardModel = Omit<DebitCard, 'type' | 'institution'> & PayableAccountModelExtension;
|
|
57
57
|
type DigitalAccountModel = Omit<DigitalAccount, 'type' | 'institution'> & PayableAccountModelExtension;
|
|
58
|
-
|
|
58
|
+
type OneTimePaymentModel = Omit<OneTimePayment, 'type' | 'institution'> & PayableAccountModelExtension;
|
|
59
|
+
export type PayableAccount = BankAcountModel | VirtualCardModel | BillModel | DebitCardModel | OneTimePaymentModel;
|
|
60
|
+
export type PayableAccountOneTimePayment = OneTimePaymentModel;
|
|
59
61
|
export type PayableAccountBankAccount = BankAcountModel;
|
|
60
62
|
export type PayableAccountVirtualCard = VirtualCardModel;
|
|
61
63
|
export type PayableAccountBill = BillModel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as RainClient from './rainServiceClient';
|
|
2
2
|
import { VirtualCardStatus } from '../payableAccounts/types';
|
|
3
|
-
import { ApplicationStatus, CardType, CreateRainApplicationInput, RainCard, RainContract, RainUser, ShippingDetails, WithdrawalSignature } from './types';
|
|
3
|
+
import { ApplicationStatus, CardType, CreateRainApplicationInput, OrderPhysicalCardInput, OrderPhysicalCardResponse, RainCard, RainContract, RainUser, ShippingDetails, WithdrawalSignature } from './types';
|
|
4
4
|
export declare function createCardApplication(userId: string, input: CreateRainApplicationInput): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<RainUser>>;
|
|
5
5
|
export declare function getUserDepositAddress({ userId, network, }: {
|
|
6
6
|
userId: string;
|
|
@@ -52,3 +52,4 @@ export declare function adminGetUserInfo({ userId }: {
|
|
|
52
52
|
applicationStatus: ApplicationStatus;
|
|
53
53
|
depositAddress: string;
|
|
54
54
|
}>>;
|
|
55
|
+
export declare function orderPhysicalCard(input: OrderPhysicalCardInput): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<OrderPhysicalCardResponse>>;
|
|
@@ -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.adminGetUserInfo = exports.requestWithdrawalSignature = exports.getLiveBalance = exports.activatePhysicalCard = exports.updateCardStatus = exports.createRainCard = exports.getApplicationStatus = exports.validateContractAddress = exports.getUserDepositAddress = exports.createCardApplication = exports.RainClient = void 0;
|
|
26
|
+
exports.orderPhysicalCard = exports.adminGetUserInfo = exports.requestWithdrawalSignature = exports.getLiveBalance = exports.activatePhysicalCard = exports.updateCardStatus = exports.createRainCard = exports.getApplicationStatus = exports.validateContractAddress = exports.getUserDepositAddress = exports.createCardApplication = exports.RainClient = void 0;
|
|
27
27
|
exports.RainClient = __importStar(require("./rainServiceClient"));
|
|
28
28
|
const serviceClient_1 = require("../serviceClient");
|
|
29
29
|
const RAIN_ENDPOINT = '/rain-v2';
|
|
@@ -105,3 +105,9 @@ async function adminGetUserInfo({ userId }) {
|
|
|
105
105
|
.then((res) => res.data);
|
|
106
106
|
}
|
|
107
107
|
exports.adminGetUserInfo = adminGetUserInfo;
|
|
108
|
+
async function orderPhysicalCard(input) {
|
|
109
|
+
return serviceClient_1.baseClient
|
|
110
|
+
.post(`${RAIN_ENDPOINT}/card/order`, input)
|
|
111
|
+
.then((res) => res.data);
|
|
112
|
+
}
|
|
113
|
+
exports.orderPhysicalCard = orderPhysicalCard;
|
package/lib/rain/types.d.ts
CHANGED
|
@@ -100,3 +100,46 @@ export type WithdrawalSignature = {
|
|
|
100
100
|
boolean
|
|
101
101
|
];
|
|
102
102
|
};
|
|
103
|
+
export interface OrderPhysicalCardInput {
|
|
104
|
+
userId: string;
|
|
105
|
+
shipping: {
|
|
106
|
+
address: {
|
|
107
|
+
street: string;
|
|
108
|
+
street2?: string;
|
|
109
|
+
city: string;
|
|
110
|
+
subdivision: string;
|
|
111
|
+
postalCode: string;
|
|
112
|
+
countryCode: string;
|
|
113
|
+
};
|
|
114
|
+
phoneNumber?: string;
|
|
115
|
+
method?: string;
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
export declare enum CardOrderStatus {
|
|
119
|
+
Pending = "pending",
|
|
120
|
+
Paid = "paid",
|
|
121
|
+
Ordered = "ordered",
|
|
122
|
+
Failed = "failed"
|
|
123
|
+
}
|
|
124
|
+
export interface OrderPhysicalCardResponse {
|
|
125
|
+
id: string;
|
|
126
|
+
userId: string;
|
|
127
|
+
shippingInfo: {
|
|
128
|
+
address: {
|
|
129
|
+
street: string;
|
|
130
|
+
street2?: string;
|
|
131
|
+
city: string;
|
|
132
|
+
subdivision: string;
|
|
133
|
+
postalCode: string;
|
|
134
|
+
countryCode: string;
|
|
135
|
+
};
|
|
136
|
+
country: string;
|
|
137
|
+
phoneNumber?: string;
|
|
138
|
+
method?: string;
|
|
139
|
+
};
|
|
140
|
+
status: CardOrderStatus;
|
|
141
|
+
cardId?: string;
|
|
142
|
+
failureReason?: string;
|
|
143
|
+
createdAt: string;
|
|
144
|
+
updatedAt: string;
|
|
145
|
+
}
|
package/lib/rain/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CardType = exports.ApplicationStatus = exports.CardStatus = void 0;
|
|
3
|
+
exports.CardOrderStatus = exports.CardType = exports.ApplicationStatus = exports.CardStatus = void 0;
|
|
4
4
|
exports.CardStatus = {
|
|
5
5
|
NotActivated: 'notActivated',
|
|
6
6
|
Active: 'active',
|
|
@@ -23,3 +23,10 @@ exports.CardType = {
|
|
|
23
23
|
Physical: 'physical',
|
|
24
24
|
Virtual: 'virtual',
|
|
25
25
|
};
|
|
26
|
+
var CardOrderStatus;
|
|
27
|
+
(function (CardOrderStatus) {
|
|
28
|
+
CardOrderStatus["Pending"] = "pending";
|
|
29
|
+
CardOrderStatus["Paid"] = "paid";
|
|
30
|
+
CardOrderStatus["Ordered"] = "ordered";
|
|
31
|
+
CardOrderStatus["Failed"] = "failed";
|
|
32
|
+
})(CardOrderStatus || (exports.CardOrderStatus = CardOrderStatus = {}));
|