@riocrypto/common 1.0.796 → 1.0.798
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);
|
|
@@ -75,7 +76,7 @@ export declare class RioClient {
|
|
|
75
76
|
createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
|
|
76
77
|
createBridgePlaidLink(userId: string): Promise<string>;
|
|
77
78
|
createBankAccount(userId: string, country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
|
|
78
|
-
updateBankAccount(id: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
|
|
79
|
+
updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
|
|
79
80
|
getFeesByVolume(): Promise<{
|
|
80
81
|
days: number;
|
|
81
82
|
fee: number;
|
|
@@ -88,7 +89,7 @@ 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[]>;
|
|
92
93
|
getBankAccount(id: string): Promise<BankAccount>;
|
|
93
94
|
getSupportedPayoutMethods(fiat: Fiat, country: Country): Promise<PayoutMethod[]>;
|
|
94
95
|
getPartner(partnerId: string): Promise<Partner>;
|
|
@@ -259,9 +259,10 @@ class RioClient {
|
|
|
259
259
|
return response.data;
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
|
-
updateBankAccount(id, country, fiat, accountNumber, swiftCode, notes, approved) {
|
|
262
|
+
updateBankAccount(id, userId, country, fiat, accountNumber, swiftCode, notes, approved) {
|
|
263
263
|
return __awaiter(this, void 0, void 0, function* () {
|
|
264
264
|
const response = yield this.axios.patch(`/api/bank/accounts/${id}`, {
|
|
265
|
+
userId,
|
|
265
266
|
country,
|
|
266
267
|
fiat,
|
|
267
268
|
accountNumber,
|
|
@@ -306,10 +307,11 @@ class RioClient {
|
|
|
306
307
|
return response.data;
|
|
307
308
|
});
|
|
308
309
|
}
|
|
309
|
-
getBankAccounts(page, limit) {
|
|
310
|
+
getBankAccounts(page, limit, query) {
|
|
310
311
|
return __awaiter(this, void 0, void 0, function* () {
|
|
311
312
|
const response = yield this.axios.get(`/api/bank/accounts`, {
|
|
312
|
-
params: { page,
|
|
313
|
+
params: Object.assign({ page,
|
|
314
|
+
limit }, query),
|
|
313
315
|
});
|
|
314
316
|
return response.data;
|
|
315
317
|
});
|