@riocrypto/common 1.0.953 → 1.0.955

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.
@@ -37,6 +37,7 @@ export declare class RioAdminClient {
37
37
  quote: Quote;
38
38
  sufficientLiquidity: boolean;
39
39
  }>;
40
+ updateQuote(id: string, update: any): Promise<Quote>;
40
41
  getQuote(id: string): Promise<Quote>;
41
42
  getUsers(page: number, limit?: number, query?: UserQuery): Promise<User[]>;
42
43
  signinAdmin(email: string, password: string, authenticatorCode: string): Promise<any>;
@@ -103,7 +104,7 @@ export declare class RioAdminClient {
103
104
  getBankPayout(orderId: string): Promise<BankPayout>;
104
105
  getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
105
106
  createCryptoAddress(address: string, crypto: Crypto, userId: string, label?: string): Promise<CryptoAddress>;
106
- createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
107
+ createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, CCI?: string, notes?: string): Promise<BankAccount>;
107
108
  updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, bankName?: string, accountHolderName?: string, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
108
109
  deleteBankAccount(id: string): Promise<void>;
109
110
  getFeesByVolume(): Promise<{
@@ -38,6 +38,12 @@ class RioAdminClient {
38
38
  return data;
39
39
  });
40
40
  }
41
+ updateQuote(id, update) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ const { data } = yield this.axios.patch(`/api/quotes/${id}`, update);
44
+ return data;
45
+ });
46
+ }
41
47
  getQuote(id) {
42
48
  return __awaiter(this, void 0, void 0, function* () {
43
49
  const { data } = yield this.axios.get(`/api/quotes/${id}`);
@@ -357,7 +363,7 @@ class RioAdminClient {
357
363
  return response.data;
358
364
  });
359
365
  }
360
- createBankAccount(userId, country, fiat, bankName, accountHolderName, accountNumber, swiftCode, notes) {
366
+ createBankAccount(userId, country, fiat, bankName, accountHolderName, accountNumber, swiftCode, CCI, notes) {
361
367
  return __awaiter(this, void 0, void 0, function* () {
362
368
  const response = yield this.axios.post(`/api/bank/accounts`, {
363
369
  userId,
@@ -367,6 +373,7 @@ class RioAdminClient {
367
373
  accountHolderName,
368
374
  accountNumber,
369
375
  swiftCode,
376
+ CCI,
370
377
  notes,
371
378
  });
372
379
  return response.data;
@@ -78,7 +78,7 @@ export declare class RioClient {
78
78
  getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
79
79
  createCryptoAddress(address: string, crypto: Crypto, userId?: string, label?: string): Promise<CryptoAddress>;
80
80
  createBridgePlaidLink(userId: string): Promise<string>;
81
- createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, notes?: string): Promise<BankAccount>;
81
+ createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, CCI?: string, notes?: string): Promise<BankAccount>;
82
82
  updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
83
83
  getFeesByVolume(): Promise<{
84
84
  days: number;
@@ -257,7 +257,7 @@ class RioClient {
257
257
  return response.data.url;
258
258
  });
259
259
  }
260
- createBankAccount(userId, country, fiat, bankName, accountHolderName, accountNumber, swiftCode, notes) {
260
+ createBankAccount(userId, country, fiat, bankName, accountHolderName, accountNumber, swiftCode, CCI, notes) {
261
261
  return __awaiter(this, void 0, void 0, function* () {
262
262
  const response = yield this.axios.post(`/api/bank/accounts`, {
263
263
  userId,
@@ -267,6 +267,7 @@ class RioClient {
267
267
  accountHolderName,
268
268
  accountNumber,
269
269
  swiftCode,
270
+ CCI,
270
271
  notes,
271
272
  });
272
273
  return response.data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.953",
3
+ "version": "1.0.955",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",