@riocrypto/common 1.0.1440 → 1.0.1442

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.
@@ -179,8 +179,9 @@ export declare class RioAdminClient {
179
179
  }): Promise<BankAccount>;
180
180
  deleteBankAccount(id: string): Promise<void>;
181
181
  createRioBankAccount(country: Country, fiat: Fiat, bankName?: string, bankAddress?: string, companyName?: string, companyAddress?: string, accountNumber?: string, CLABE?: string, CCI?: string, RUC?: string, RFC?: string): Promise<RioBankAccount>;
182
- updateRioBankAccount(id: string, country?: Country, fiat?: Fiat, bankName?: string, companyName?: string, companyAddress?: string, accountNumber?: string, CLABE?: string, CCI?: string, RUC?: string, RFC?: string): Promise<RioBankAccount>;
182
+ updateRioBankAccount(id: string, country?: Country, fiat?: Fiat, bankName?: string, bankAddress?: string, companyName?: string, companyAddress?: string, accountNumber?: string, CLABE?: string, CCI?: string, RUC?: string, RFC?: string): Promise<RioBankAccount>;
183
183
  getRioBankAccounts(page: number, limit: number, query?: BankAccountQuery): Promise<RioBankAccount[]>;
184
+ deleteRioBankAccount(id: string): Promise<void>;
184
185
  deleteAddress(id: string): Promise<void>;
185
186
  getFeesByVolume(): Promise<{
186
187
  days: number;
@@ -689,12 +689,13 @@ class RioAdminClient {
689
689
  return response.data;
690
690
  });
691
691
  }
692
- updateRioBankAccount(id, country, fiat, bankName, companyName, companyAddress, accountNumber, CLABE, CCI, RUC, RFC) {
692
+ updateRioBankAccount(id, country, fiat, bankName, bankAddress, companyName, companyAddress, accountNumber, CLABE, CCI, RUC, RFC) {
693
693
  return __awaiter(this, void 0, void 0, function* () {
694
694
  const response = yield this.axios.patch(`/api/bank/accounts/rio/${id}`, {
695
695
  country,
696
696
  fiat,
697
697
  bankName,
698
+ bankAddress,
698
699
  accountNumber,
699
700
  CLABE,
700
701
  CCI,
@@ -715,6 +716,11 @@ class RioAdminClient {
715
716
  return response.data;
716
717
  });
717
718
  }
719
+ deleteRioBankAccount(id) {
720
+ return __awaiter(this, void 0, void 0, function* () {
721
+ yield this.axios.delete(`/api/bank/accounts/rio/${id}`);
722
+ });
723
+ }
718
724
  deleteAddress(id) {
719
725
  return __awaiter(this, void 0, void 0, function* () {
720
726
  yield this.axios.delete(`/api/addresses/${id}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1440",
3
+ "version": "1.0.1442",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",