@riocrypto/common 1.0.1172 → 1.0.1173

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.
@@ -121,7 +121,18 @@ export declare class RioAdminClient {
121
121
  sufficientLiquidity: boolean;
122
122
  }>;
123
123
  createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, CLABE?: string, CCI?: string, notes?: string): Promise<BankAccount>;
124
- updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, bankName?: string, accountHolderName?: string, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
124
+ updateBankAccount(id: string, data: {
125
+ country?: Country;
126
+ fiat?: Fiat;
127
+ bankName?: string;
128
+ accountHolderName?: string;
129
+ accountNumber?: string;
130
+ swiftCode?: string;
131
+ CCI?: string;
132
+ CLABE?: string;
133
+ notes?: string;
134
+ approved?: boolean;
135
+ }): Promise<BankAccount>;
125
136
  deleteBankAccount(id: string): Promise<void>;
126
137
  getFeesByVolume(): Promise<{
127
138
  days: number;
@@ -460,19 +460,9 @@ class RioAdminClient {
460
460
  return response.data;
461
461
  });
462
462
  }
463
- updateBankAccount(id, userId, country, fiat, bankName, accountHolderName, accountNumber, swiftCode, notes, approved) {
463
+ updateBankAccount(id, data) {
464
464
  return __awaiter(this, void 0, void 0, function* () {
465
- const response = yield this.axios.patch(`/api/bank/accounts/${id}`, {
466
- userId,
467
- country,
468
- fiat,
469
- bankName,
470
- accountHolderName,
471
- accountNumber,
472
- swiftCode,
473
- notes,
474
- approved,
475
- });
465
+ const response = yield this.axios.patch(`/api/bank/accounts/${id}`, data);
476
466
  return response.data;
477
467
  });
478
468
  }
@@ -96,7 +96,17 @@ export declare class RioClient {
96
96
  createBridgePlaidLink(userId: string): Promise<string>;
97
97
  createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string): Promise<string>;
98
98
  createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, CLABE?: string, CCI?: string, notes?: string): Promise<BankAccount>;
99
- updateBankAccount(id: string, country?: Country, fiat?: Fiat, bankName?: string, accountHolderName?: string, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
99
+ updateBankAccount(id: string, data: {
100
+ country?: Country;
101
+ fiat?: Fiat;
102
+ bankName?: string;
103
+ accountHolderName?: string;
104
+ accountNumber?: string;
105
+ swiftCode?: string;
106
+ CCI?: string;
107
+ CLABE?: string;
108
+ notes?: string;
109
+ }): Promise<BankAccount>;
100
110
  getFeesByVolume(): Promise<{
101
111
  days: number;
102
112
  fee: number;
@@ -361,18 +361,9 @@ class RioClient {
361
361
  return response.data;
362
362
  });
363
363
  }
364
- updateBankAccount(id, country, fiat, bankName, accountHolderName, accountNumber, swiftCode, notes, approved) {
364
+ updateBankAccount(id, data) {
365
365
  return __awaiter(this, void 0, void 0, function* () {
366
- const response = yield this.axios.patch(`/api/bank/accounts/${id}`, {
367
- country,
368
- fiat,
369
- bankName,
370
- accountHolderName,
371
- accountNumber,
372
- swiftCode,
373
- notes,
374
- approved,
375
- });
366
+ const response = yield this.axios.patch(`/api/bank/accounts/${id}`, data);
376
367
  return response.data;
377
368
  });
378
369
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1172",
3
+ "version": "1.0.1173",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",