@riocrypto/common-server 1.0.1366 → 1.0.1367

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.
@@ -11,7 +11,7 @@ declare class ClusterClient {
11
11
  confirmPayment(orderId: string): Promise<void>;
12
12
  createBitsoBankAccount(userId: string): Promise<BitsoBankAccount>;
13
13
  getBalance(asset: Crypto | Fiat): Promise<number>;
14
- getUSBankAccounts(userId: string): Promise<{
14
+ getUSBankAccounts(userId: string, fiat: Fiat, country: Country): Promise<{
15
15
  id: string;
16
16
  bank_name: string;
17
17
  account_owner_name: string;
@@ -152,9 +152,9 @@ class ClusterClient {
152
152
  return rioResponse.data.balance;
153
153
  });
154
154
  }
155
- getUSBankAccounts(userId) {
155
+ getUSBankAccounts(userId, fiat, country) {
156
156
  return __awaiter(this, void 0, void 0, function* () {
157
- const rioResponse = yield this.axios.get(`${this.baseUrl}/api/bank/us/accounts?userId=${userId}`, {
157
+ const rioResponse = yield this.axios.get(`${this.baseUrl}/api/bank/us/accounts?userId=${userId}&fiat=${fiat}&country=${country}`, {
158
158
  headers: {
159
159
  "x-cluster-api-key": this.clusterApiKey,
160
160
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1366",
3
+ "version": "1.0.1367",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",