@riocrypto/common-server 1.0.1532 → 1.0.1534

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.
@@ -50,7 +50,7 @@ class BitsoClient {
50
50
  "Content-Type": "application/json",
51
51
  },
52
52
  data: {
53
- alias: `CLABE for ${(0, common_1.getUserName)(user)} - ${user.id}`,
53
+ alias: `CLABE for ${(0, common_1.getUserName)(user)} - ${bankAccount.id.slice(-4)}`,
54
54
  user_id: this.env === "production" ? "8298933" : "53166",
55
55
  currency: "mxn",
56
56
  taxonomy: {
@@ -175,7 +175,14 @@ declare class BridgeClient {
175
175
  last_4: string;
176
176
  }[]>;
177
177
  exchangePlaidPublicToken(linkToken: string, publicToken: string): Promise<void>;
178
- createExternalAccount(bridgeCustomerId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string): Promise<{
178
+ createExternalAccount(bridgeCustomerId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, address: {
179
+ street_line_1: string;
180
+ street_line_2?: string;
181
+ city: string;
182
+ state: string;
183
+ postal_code: string;
184
+ country: string;
185
+ }): Promise<{
179
186
  id: string;
180
187
  bank_name: string;
181
188
  account_name: string;
@@ -179,7 +179,7 @@ class BridgeClient {
179
179
  return data;
180
180
  });
181
181
  }
182
- createExternalAccount(bridgeCustomerId, bankName, accountNumber, routingNumber, accountOwnerName) {
182
+ createExternalAccount(bridgeCustomerId, bankName, accountNumber, routingNumber, accountOwnerName, address) {
183
183
  return __awaiter(this, void 0, void 0, function* () {
184
184
  const { data } = yield axios_1.default.post(`${this.baseUrl}/v0/customers/${bridgeCustomerId}/external_accounts`, {
185
185
  type: "wire",
@@ -187,6 +187,7 @@ class BridgeClient {
187
187
  account_number: accountNumber,
188
188
  routing_number: routingNumber,
189
189
  account_owner_name: accountOwnerName,
190
+ address,
190
191
  }, {
191
192
  headers: {
192
193
  "Api-Key": this.apiKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1532",
3
+ "version": "1.0.1534",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/storage": "^6.9.5",
29
29
  "@google-cloud/vision": "^4.0.2",
30
30
  "@hyperdx/node-opentelemetry": "^0.4.2",
31
- "@riocrypto/common": "^1.0.1371",
31
+ "@riocrypto/common": "^1.0.1375",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^0.27.2",
34
34
  "ccxt": "^3.0.30",