@riocrypto/common 1.0.795 → 1.0.797
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.
|
@@ -22,6 +22,7 @@ import { Crypto } from "../types/crypto";
|
|
|
22
22
|
import { QuoteInput } from "../types/quote-input";
|
|
23
23
|
import { UserQuery } from "../types/user-query";
|
|
24
24
|
import { OrderQuery } from "../types/order-query";
|
|
25
|
+
import { BankAccountQuery } from "../types/bank-account-query";
|
|
25
26
|
export declare class RioClient {
|
|
26
27
|
private axios;
|
|
27
28
|
constructor(axios: AxiosStatic | AxiosInstance);
|
|
@@ -88,7 +89,8 @@ export declare class RioClient {
|
|
|
88
89
|
getQuote(id: string): Promise<Quote>;
|
|
89
90
|
createVerificationLink(userId: string, firstName: string, lastName: string): Promise<string>;
|
|
90
91
|
getPaymentMethods(fiat: Fiat, country: Country): Promise<PaymentMethod[]>;
|
|
91
|
-
getBankAccounts(page: number, limit: number): Promise<BankAccount[]>;
|
|
92
|
+
getBankAccounts(page: number, limit: number, query?: BankAccountQuery): Promise<BankAccount[]>;
|
|
93
|
+
getBankAccount(id: string): Promise<BankAccount>;
|
|
92
94
|
getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
|
|
93
95
|
getPartner(partnerId: string): Promise<Partner>;
|
|
94
96
|
createKushkiPayment(orderId: string, token: string): Promise<{
|
|
@@ -306,14 +306,21 @@ class RioClient {
|
|
|
306
306
|
return response.data;
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
|
-
getBankAccounts(page, limit) {
|
|
309
|
+
getBankAccounts(page, limit, query) {
|
|
310
310
|
return __awaiter(this, void 0, void 0, function* () {
|
|
311
311
|
const response = yield this.axios.get(`/api/bank/accounts`, {
|
|
312
|
-
params: { page,
|
|
312
|
+
params: Object.assign({ page,
|
|
313
|
+
limit }, query),
|
|
313
314
|
});
|
|
314
315
|
return response.data;
|
|
315
316
|
});
|
|
316
317
|
}
|
|
318
|
+
getBankAccount(id) {
|
|
319
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
320
|
+
const response = yield this.axios.get(`/api/bank/accounts/${id}`);
|
|
321
|
+
return response.data;
|
|
322
|
+
});
|
|
323
|
+
}
|
|
317
324
|
getSupportedPayoutMethods(fiat, country) {
|
|
318
325
|
return __awaiter(this, void 0, void 0, function* () {
|
|
319
326
|
const response = yield this.axios.get(`/api/payout-methods?fiat=${fiat}&country=${country}`);
|