@riocrypto/common 1.0.714 → 1.0.716
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.
|
@@ -63,7 +63,7 @@ export declare class RioClient {
|
|
|
63
63
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
64
64
|
createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
|
|
65
65
|
createBankAccount(country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
|
|
66
|
-
|
|
66
|
+
updateBankAccount(id: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
|
|
67
67
|
getFeesByVolume(): Promise<{
|
|
68
68
|
days: number;
|
|
69
69
|
fee: number;
|
|
@@ -74,6 +74,7 @@ export declare class RioClient {
|
|
|
74
74
|
revenue: number;
|
|
75
75
|
}>;
|
|
76
76
|
getQuote(id: string): Promise<Quote>;
|
|
77
|
+
createVerificationLink(userId: string, firstName: string, lastName: string): Promise<string>;
|
|
77
78
|
getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
|
|
78
79
|
getBankAccounts(page: number, limit: number): Promise<BankAccount[]>;
|
|
79
80
|
getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
|
|
@@ -235,9 +235,17 @@ class RioClient {
|
|
|
235
235
|
return response.data;
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
updateBankAccount(id, country, fiat, accountNumber, swiftCode, notes, approved) {
|
|
239
239
|
return __awaiter(this, void 0, void 0, function* () {
|
|
240
|
-
yield this.axios.
|
|
240
|
+
const response = yield this.axios.patch(`/api/bank/accounts/${id}`, {
|
|
241
|
+
country,
|
|
242
|
+
fiat,
|
|
243
|
+
accountNumber,
|
|
244
|
+
swiftCode,
|
|
245
|
+
notes,
|
|
246
|
+
approved,
|
|
247
|
+
});
|
|
248
|
+
return response.data;
|
|
241
249
|
});
|
|
242
250
|
}
|
|
243
251
|
getFeesByVolume() {
|
|
@@ -258,6 +266,16 @@ class RioClient {
|
|
|
258
266
|
return data;
|
|
259
267
|
});
|
|
260
268
|
}
|
|
269
|
+
createVerificationLink(userId, firstName, lastName) {
|
|
270
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
271
|
+
const { data } = yield this.axios.post("/api/kyc/link", {
|
|
272
|
+
userId,
|
|
273
|
+
firstName,
|
|
274
|
+
lastName,
|
|
275
|
+
});
|
|
276
|
+
return data.link;
|
|
277
|
+
});
|
|
278
|
+
}
|
|
261
279
|
getPaymentMethods(fiat, country) {
|
|
262
280
|
return __awaiter(this, void 0, void 0, function* () {
|
|
263
281
|
const response = yield this.axios.get(`/api/payment-methods?fiat=${fiat}&country=${country}`);
|