@riocrypto/common 1.0.600 → 1.0.602
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);
|
|
@@ -70,7 +71,9 @@ export declare class RioClient {
|
|
|
70
71
|
createBankPayout(oid: string, accountNumber: string, swiftCode?: string): Promise<BankPayout>;
|
|
71
72
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
72
73
|
createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
|
|
74
|
+
createBankAccount(country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string): Promise<BankAccount>;
|
|
73
75
|
getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
|
|
76
|
+
getBankAccounts(): Promise<BankAccount[]>;
|
|
74
77
|
getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
|
|
75
78
|
getPartner(partnerId: string): Promise<Partner>;
|
|
76
79
|
createKushkiPayment(orderId: string, token: string): Promise<{
|
|
@@ -239,12 +239,29 @@ class RioClient {
|
|
|
239
239
|
return response.data;
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
+
createBankAccount(country, fiat, accountNumber, swiftCode) {
|
|
243
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
244
|
+
const response = yield this.axios.post(`/api/bank/account`, {
|
|
245
|
+
country,
|
|
246
|
+
fiat,
|
|
247
|
+
accountNumber,
|
|
248
|
+
swiftCode,
|
|
249
|
+
});
|
|
250
|
+
return response.data;
|
|
251
|
+
});
|
|
252
|
+
}
|
|
242
253
|
getPaymentMethods(fiat, country) {
|
|
243
254
|
return __awaiter(this, void 0, void 0, function* () {
|
|
244
255
|
const response = yield this.axios.get(`/api/payment-methods?fiat=${fiat}&country=${country}`);
|
|
245
256
|
return response.data;
|
|
246
257
|
});
|
|
247
258
|
}
|
|
259
|
+
getBankAccounts() {
|
|
260
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
261
|
+
const response = yield this.axios.get(`/api/bank/accounts`);
|
|
262
|
+
return response.data;
|
|
263
|
+
});
|
|
264
|
+
}
|
|
248
265
|
getSupportedPayoutMethods(fiat, country) {
|
|
249
266
|
return __awaiter(this, void 0, void 0, function* () {
|
|
250
267
|
const response = yield this.axios.get(`/api/payout-methods?fiat=${fiat}&country=${country}`);
|