@riocrypto/common 1.0.825 → 1.0.826

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.
@@ -88,7 +88,7 @@ export declare class RioAdminClient {
88
88
  createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
89
89
  getBankPayout(orderId: string): Promise<BankPayout>;
90
90
  createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
91
- createBankAccount(userId: string, country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
91
+ createBankAccount(userId: string, country: Country, fiat: Fiat, accountHolderName: string, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
92
92
  updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
93
93
  deleteBankAccount(id: string): Promise<void>;
94
94
  getFeesByVolume(): Promise<{
@@ -296,12 +296,13 @@ class RioAdminClient {
296
296
  return response.data;
297
297
  });
298
298
  }
299
- createBankAccount(userId, country, fiat, accountNumber, swiftCode, notes) {
299
+ createBankAccount(userId, country, fiat, accountHolderName, accountNumber, swiftCode, notes) {
300
300
  return __awaiter(this, void 0, void 0, function* () {
301
301
  const response = yield this.axios.post(`/api/bank/accounts`, {
302
302
  userId,
303
303
  country,
304
304
  fiat,
305
+ accountHolderName,
305
306
  accountNumber,
306
307
  swiftCode,
307
308
  notes,
@@ -76,7 +76,7 @@ export declare class RioClient {
76
76
  }[]>;
77
77
  createCheckedAddress(address: string, crypto: Crypto): Promise<CheckedAddress>;
78
78
  createBridgePlaidLink(userId: string): Promise<string>;
79
- createBankAccount(userId: string, country: Country, fiat: Fiat, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
79
+ createBankAccount(userId: string, country: Country, fiat: Fiat, accountHolderName: string, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
80
80
  updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
81
81
  getFeesByVolume(): Promise<{
82
82
  days: number;
@@ -246,12 +246,13 @@ class RioClient {
246
246
  return response.data.url;
247
247
  });
248
248
  }
249
- createBankAccount(userId, country, fiat, accountNumber, swiftCode, notes) {
249
+ createBankAccount(userId, country, fiat, accountHolderName, accountNumber, swiftCode, notes) {
250
250
  return __awaiter(this, void 0, void 0, function* () {
251
251
  const response = yield this.axios.post(`/api/bank/accounts`, {
252
252
  userId,
253
253
  country,
254
254
  fiat,
255
+ accountHolderName,
255
256
  accountNumber,
256
257
  swiftCode,
257
258
  notes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.825",
3
+ "version": "1.0.826",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",