@riocrypto/common 1.0.826 → 1.0.828

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, accountHolderName: string, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
91
+ createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, 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, accountHolderName, accountNumber, swiftCode, notes) {
299
+ createBankAccount(userId, country, fiat, bankName, 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
+ bankName,
305
306
  accountHolderName,
306
307
  accountNumber,
307
308
  swiftCode,
@@ -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, accountHolderName: string, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
79
+ createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, 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, accountHolderName, accountNumber, swiftCode, notes) {
249
+ createBankAccount(userId, country, fiat, bankName, 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
+ bankName,
255
256
  accountHolderName,
256
257
  accountNumber,
257
258
  swiftCode,
@@ -2,7 +2,9 @@ import { Country } from "./country";
2
2
  import { Fiat } from "./fiat";
3
3
  export interface BankAccount {
4
4
  id: string;
5
+ createdAt: Date;
5
6
  userId: string;
7
+ bankName: string;
6
8
  accountHolderName: string;
7
9
  country: Country;
8
10
  fiat: Fiat;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.826",
3
+ "version": "1.0.828",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",