@riocrypto/common 1.0.648 → 1.0.650
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.
|
@@ -69,7 +69,8 @@ export declare class RioAdminClient {
|
|
|
69
69
|
createBankPayout(oid: string, accountNumber: string, swiftCode?: string): Promise<BankPayout>;
|
|
70
70
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
71
71
|
createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
|
|
72
|
-
createBankAccount(country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
|
|
72
|
+
createBankAccount(userId: string, country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
|
|
73
|
+
updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
|
|
73
74
|
deleteBankAccount(id: string): Promise<void>;
|
|
74
75
|
getFeesByVolume(): Promise<{
|
|
75
76
|
days: number;
|
|
@@ -248,9 +248,10 @@ class RioAdminClient {
|
|
|
248
248
|
return response.data;
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
|
-
createBankAccount(country, fiat, accountNumber, swiftCode, notes) {
|
|
251
|
+
createBankAccount(userId, country, fiat, accountNumber, swiftCode, notes) {
|
|
252
252
|
return __awaiter(this, void 0, void 0, function* () {
|
|
253
253
|
const response = yield this.axios.post(`/api/bank/accounts`, {
|
|
254
|
+
userId,
|
|
254
255
|
country,
|
|
255
256
|
fiat,
|
|
256
257
|
accountNumber,
|
|
@@ -260,6 +261,20 @@ class RioAdminClient {
|
|
|
260
261
|
return response.data;
|
|
261
262
|
});
|
|
262
263
|
}
|
|
264
|
+
updateBankAccount(id, userId, country, fiat, accountNumber, swiftCode, notes, approved) {
|
|
265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
+
const response = yield this.axios.patch(`/api/bank/accounts/${id}`, {
|
|
267
|
+
userId,
|
|
268
|
+
country,
|
|
269
|
+
fiat,
|
|
270
|
+
accountNumber,
|
|
271
|
+
swiftCode,
|
|
272
|
+
notes,
|
|
273
|
+
approved,
|
|
274
|
+
});
|
|
275
|
+
return response.data;
|
|
276
|
+
});
|
|
277
|
+
}
|
|
263
278
|
deleteBankAccount(id) {
|
|
264
279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
265
280
|
yield this.axios.delete(`/api/bank/accounts/${id}`);
|