@riocrypto/common 1.0.649 → 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.
@@ -70,6 +70,7 @@ export declare class RioAdminClient {
70
70
  getBankPayout(orderId: string): Promise<BankPayout>;
71
71
  createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
72
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;
@@ -261,6 +261,20 @@ class RioAdminClient {
261
261
  return response.data;
262
262
  });
263
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
+ }
264
278
  deleteBankAccount(id) {
265
279
  return __awaiter(this, void 0, void 0, function* () {
266
280
  yield this.axios.delete(`/api/bank/accounts/${id}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.649",
3
+ "version": "1.0.650",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",