@riocrypto/common 1.0.599 → 1.0.601
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.
|
@@ -20,6 +20,7 @@ import { User } from "../types/user";
|
|
|
20
20
|
import { UserInput } from "../types/user-input";
|
|
21
21
|
import { UserUpdate } from "../types/user-update";
|
|
22
22
|
import { BankPayment } from "../types/bank-payment";
|
|
23
|
+
import { BankAccount } from "../types/bank-account";
|
|
23
24
|
export declare class RioClient {
|
|
24
25
|
private axios;
|
|
25
26
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -71,6 +72,7 @@ export declare class RioClient {
|
|
|
71
72
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
72
73
|
createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
|
|
73
74
|
getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
|
|
75
|
+
getBankAccounts(): Promise<BankAccount[]>;
|
|
74
76
|
getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
|
|
75
77
|
getPartner(partnerId: string): Promise<Partner>;
|
|
76
78
|
createKushkiPayment(orderId: string, token: string): Promise<{
|
|
@@ -245,6 +245,12 @@ class RioClient {
|
|
|
245
245
|
return response.data;
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
|
+
getBankAccounts() {
|
|
249
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
250
|
+
const response = yield this.axios.get(`/api/bank/accounts`);
|
|
251
|
+
return response.data;
|
|
252
|
+
});
|
|
253
|
+
}
|
|
248
254
|
getSupportedPayoutMethods(fiat, country) {
|
|
249
255
|
return __awaiter(this, void 0, void 0, function* () {
|
|
250
256
|
const response = yield this.axios.get(`/api/payout-methods?fiat=${fiat}&country=${country}`);
|