@riocrypto/common 1.0.794 → 1.0.796
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.
|
@@ -73,6 +73,7 @@ export declare class RioClient {
|
|
|
73
73
|
last_4: string;
|
|
74
74
|
}[]>;
|
|
75
75
|
createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
|
|
76
|
+
createBridgePlaidLink(userId: string): Promise<string>;
|
|
76
77
|
createBankAccount(userId: string, country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
|
|
77
78
|
updateBankAccount(id: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
|
|
78
79
|
getFeesByVolume(): Promise<{
|
|
@@ -88,6 +89,7 @@ export declare class RioClient {
|
|
|
88
89
|
createVerificationLink(userId: string, firstName: string, lastName: string): Promise<string>;
|
|
89
90
|
getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
|
|
90
91
|
getBankAccounts(page: number, limit: number): Promise<BankAccount[]>;
|
|
92
|
+
getBankAccount(id: string): Promise<BankAccount>;
|
|
91
93
|
getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
|
|
92
94
|
getPartner(partnerId: string): Promise<Partner>;
|
|
93
95
|
createKushkiPayment(orderId: string, token: string): Promise<{
|
|
@@ -238,6 +238,14 @@ class RioClient {
|
|
|
238
238
|
return response.data;
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
+
createBridgePlaidLink(userId) {
|
|
242
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
243
|
+
const response = yield this.axios.post(`/api/bank/us/accounts/link`, {
|
|
244
|
+
userId,
|
|
245
|
+
});
|
|
246
|
+
return response.data.url;
|
|
247
|
+
});
|
|
248
|
+
}
|
|
241
249
|
createBankAccount(userId, country, fiat, accountNumber, swiftCode, notes) {
|
|
242
250
|
return __awaiter(this, void 0, void 0, function* () {
|
|
243
251
|
const response = yield this.axios.post(`/api/bank/accounts`, {
|
|
@@ -306,6 +314,12 @@ class RioClient {
|
|
|
306
314
|
return response.data;
|
|
307
315
|
});
|
|
308
316
|
}
|
|
317
|
+
getBankAccount(id) {
|
|
318
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
319
|
+
const response = yield this.axios.get(`/api/bank/accounts/${id}`);
|
|
320
|
+
return response.data;
|
|
321
|
+
});
|
|
322
|
+
}
|
|
309
323
|
getSupportedPayoutMethods(fiat, country) {
|
|
310
324
|
return __awaiter(this, void 0, void 0, function* () {
|
|
311
325
|
const response = yield this.axios.get(`/api/payout-methods?fiat=${fiat}&country=${country}`);
|