@riocrypto/common 1.0.1436 → 1.0.1438

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.
@@ -177,6 +177,9 @@ export declare class RioAdminClient {
177
177
  approved?: boolean;
178
178
  }): Promise<BankAccount>;
179
179
  deleteBankAccount(id: string): Promise<void>;
180
+ createRioBankAccount(country: Country, fiat: Fiat, bankName?: string, companyName?: string, companyAddress?: string, accountNumber?: string, CLABE?: string, CCI?: string, RUC?: string, RFC?: string): Promise<BankAccount>;
181
+ updateRioBankAccount(id: string, country?: Country, fiat?: Fiat, bankName?: string, companyName?: string, companyAddress?: string, accountNumber?: string, CLABE?: string, CCI?: string, RUC?: string, RFC?: string): Promise<BankAccount>;
182
+ getRioBankAccounts(page: number, limit: number, query?: BankAccountQuery): Promise<BankAccount[]>;
180
183
  deleteAddress(id: string): Promise<void>;
181
184
  getFeesByVolume(): Promise<{
182
185
  days: number;
@@ -671,6 +671,49 @@ class RioAdminClient {
671
671
  yield this.axios.delete(`/api/bank/accounts/${id}`);
672
672
  });
673
673
  }
674
+ createRioBankAccount(country, fiat, bankName, companyName, companyAddress, accountNumber, CLABE, CCI, RUC, RFC) {
675
+ return __awaiter(this, void 0, void 0, function* () {
676
+ const response = yield this.axios.post(`/api/bank/accounts/rio`, {
677
+ country,
678
+ fiat,
679
+ bankName,
680
+ accountNumber,
681
+ CLABE,
682
+ CCI,
683
+ RUC,
684
+ RFC,
685
+ companyName,
686
+ companyAddress,
687
+ });
688
+ return response.data;
689
+ });
690
+ }
691
+ updateRioBankAccount(id, country, fiat, bankName, companyName, companyAddress, accountNumber, CLABE, CCI, RUC, RFC) {
692
+ return __awaiter(this, void 0, void 0, function* () {
693
+ const response = yield this.axios.patch(`/api/bank/accounts/rio/${id}`, {
694
+ country,
695
+ fiat,
696
+ bankName,
697
+ accountNumber,
698
+ CLABE,
699
+ CCI,
700
+ RUC,
701
+ RFC,
702
+ companyName,
703
+ companyAddress,
704
+ });
705
+ return response.data;
706
+ });
707
+ }
708
+ getRioBankAccounts(page, limit, query) {
709
+ return __awaiter(this, void 0, void 0, function* () {
710
+ const response = yield this.axios.get(`/api/bank/accounts/rio`, {
711
+ params: Object.assign({ page,
712
+ limit }, query),
713
+ });
714
+ return response.data;
715
+ });
716
+ }
674
717
  deleteAddress(id) {
675
718
  return __awaiter(this, void 0, void 0, function* () {
676
719
  yield this.axios.delete(`/api/addresses/${id}`);
@@ -1,5 +1,6 @@
1
1
  import { Country } from "./country";
2
2
  import { CountryOfOrigin } from "./country-of-origin";
3
+ import { Fiat } from "./fiat";
3
4
  import { ImmigrationStatus } from "./immigration-status";
4
5
  import { OnboardingStatus } from "./onboarding-status";
5
6
  import { PlatformFeeRange } from "./platform-fee-range";
@@ -103,7 +104,9 @@ export declare type UserInput = {
103
104
  quotationTime?: number;
104
105
  rioBankAccount?: {
105
106
  [country in Country]?: {
106
- id: string;
107
+ [fiat in Fiat]?: {
108
+ id: string;
109
+ };
107
110
  };
108
111
  };
109
112
  } & (UserType.Individual extends UserType ? IndividualUser : {}) & (UserType.Business extends UserType ? BusinessUser : {});
@@ -6,6 +6,7 @@ import { UserAttribute } from "./user-attribute";
6
6
  import { UserType } from "./user-type";
7
7
  import { ImmigrationStatus } from "./immigration-status";
8
8
  import { Country } from "./country";
9
+ import { Fiat } from "./fiat";
9
10
  declare type IndividualUser = {
10
11
  individualData?: {
11
12
  firstName?: string;
@@ -107,7 +108,9 @@ export declare type UserUpdate = {
107
108
  quotationTime?: number;
108
109
  rioBankAccount?: {
109
110
  [country in Country]?: {
110
- id: string;
111
+ [fiat in Fiat]?: {
112
+ id: string;
113
+ };
111
114
  };
112
115
  };
113
116
  } & (UserType.Individual extends UserType ? IndividualUser : {}) & (UserType.Business extends UserType ? BusinessUser : {});
@@ -6,6 +6,7 @@ import { UserAttribute } from "./user-attribute";
6
6
  import { UserType } from "./user-type";
7
7
  import { ImmigrationStatus } from "./immigration-status";
8
8
  import { Country } from "./country";
9
+ import { Fiat } from "./fiat";
9
10
  declare type IndividualUser = {
10
11
  id: string;
11
12
  individualData?: {
@@ -109,7 +110,9 @@ export declare type User = {
109
110
  quotationTime?: number;
110
111
  rioBankAccount?: {
111
112
  [country in Country]?: {
112
- id: string;
113
+ [fiat in Fiat]?: {
114
+ id: string;
115
+ };
113
116
  };
114
117
  };
115
118
  } & (UserType.Individual extends UserType ? IndividualUser : {}) & (UserType.Business extends UserType ? BusinessUser : {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1436",
3
+ "version": "1.0.1438",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",