@riocrypto/common 1.0.793 → 1.0.795
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.
|
@@ -62,8 +62,19 @@ export declare class RioClient {
|
|
|
62
62
|
getOrder(id: string): Promise<Order>;
|
|
63
63
|
createBankPayout(oid: string, accountNumber: string, swiftCode?: string): Promise<BankPayout>;
|
|
64
64
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
65
|
+
getBridgeOnboardingLinks(userId: string): Promise<{
|
|
66
|
+
tosLink: string;
|
|
67
|
+
kycLink: string;
|
|
68
|
+
}>;
|
|
69
|
+
getBridgeExternalAccounts(userId: string): Promise<{
|
|
70
|
+
id: string;
|
|
71
|
+
bank_name: string;
|
|
72
|
+
account_owner_name: string;
|
|
73
|
+
last_4: string;
|
|
74
|
+
}[]>;
|
|
65
75
|
createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
|
|
66
|
-
|
|
76
|
+
createBridgePlaidLink(userId: string): Promise<string>;
|
|
77
|
+
createBankAccount(userId: string, country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
|
|
67
78
|
updateBankAccount(id: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
|
|
68
79
|
getFeesByVolume(): Promise<{
|
|
69
80
|
days: number;
|
|
@@ -213,6 +213,22 @@ class RioClient {
|
|
|
213
213
|
return response.data;
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
+
getBridgeOnboardingLinks(userId) {
|
|
217
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
218
|
+
const { data } = yield this.axios.get(`/api/users/${userId}/us/onboarding-links`);
|
|
219
|
+
return data;
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
getBridgeExternalAccounts(userId) {
|
|
223
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
224
|
+
const { data } = yield this.axios.get(`/api/bank/us/accounts`, {
|
|
225
|
+
params: {
|
|
226
|
+
userId,
|
|
227
|
+
},
|
|
228
|
+
});
|
|
229
|
+
return data;
|
|
230
|
+
});
|
|
231
|
+
}
|
|
216
232
|
createCheckedAddress(address, crypto) {
|
|
217
233
|
return __awaiter(this, void 0, void 0, function* () {
|
|
218
234
|
const response = yield this.axios.post(`/api/kyt/address`, {
|
|
@@ -222,9 +238,18 @@ class RioClient {
|
|
|
222
238
|
return response.data;
|
|
223
239
|
});
|
|
224
240
|
}
|
|
225
|
-
|
|
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
|
+
}
|
|
249
|
+
createBankAccount(userId, country, fiat, accountNumber, swiftCode, notes) {
|
|
226
250
|
return __awaiter(this, void 0, void 0, function* () {
|
|
227
251
|
const response = yield this.axios.post(`/api/bank/accounts`, {
|
|
252
|
+
userId,
|
|
228
253
|
country,
|
|
229
254
|
fiat,
|
|
230
255
|
accountNumber,
|