@riocrypto/common 1.0.714 → 1.0.715

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.
@@ -63,7 +63,7 @@ export declare class RioClient {
63
63
  getBankPayout(orderId: string): Promise<BankPayout>;
64
64
  createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
65
65
  createBankAccount(country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
66
- deleteBankAccount(id: string): Promise<void>;
66
+ updateBankAccount(id: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
67
67
  getFeesByVolume(): Promise<{
68
68
  days: number;
69
69
  fee: number;
@@ -235,9 +235,17 @@ class RioClient {
235
235
  return response.data;
236
236
  });
237
237
  }
238
- deleteBankAccount(id) {
238
+ updateBankAccount(id, country, fiat, accountNumber, swiftCode, notes, approved) {
239
239
  return __awaiter(this, void 0, void 0, function* () {
240
- yield this.axios.delete(`/api/bank/accounts/${id}`);
240
+ const response = yield this.axios.patch(`/api/bank/accounts/${id}`, {
241
+ country,
242
+ fiat,
243
+ accountNumber,
244
+ swiftCode,
245
+ notes,
246
+ approved,
247
+ });
248
+ return response.data;
241
249
  });
242
250
  }
243
251
  getFeesByVolume() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.714",
3
+ "version": "1.0.715",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",