@riocrypto/common-server 1.0.1532 → 1.0.1533
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.
|
@@ -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
|
|
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.
|
|
3
|
+
"version": "1.0.1533",
|
|
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.
|
|
31
|
+
"@riocrypto/common": "^1.0.1373",
|
|
32
32
|
"@types/express": "^4.17.13",
|
|
33
33
|
"axios": "^0.27.2",
|
|
34
34
|
"ccxt": "^3.0.30",
|