@riocrypto/common-server 1.0.1174 → 1.0.1176
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,7 @@ 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,
|
|
178
|
+
createExternalAccount(bridgeCustomerId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, address: {
|
|
179
179
|
streetLine1: string;
|
|
180
180
|
streetLine2?: string;
|
|
181
181
|
city: string;
|
|
@@ -179,16 +179,22 @@ class BridgeClient {
|
|
|
179
179
|
return data;
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
createExternalAccount(bridgeCustomerId, bankName,
|
|
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",
|
|
186
186
|
bank_name: bankName,
|
|
187
|
-
account_name: accountName,
|
|
188
187
|
account_number: accountNumber,
|
|
189
188
|
routing_number: routingNumber,
|
|
190
189
|
account_owner_name: accountOwnerName,
|
|
191
|
-
address
|
|
190
|
+
address: {
|
|
191
|
+
street_line_1: address.streetLine1,
|
|
192
|
+
street_line_2: address.streetLine2,
|
|
193
|
+
city: address.city,
|
|
194
|
+
state: address.state,
|
|
195
|
+
postal_code: address.postalCode,
|
|
196
|
+
country: "USA",
|
|
197
|
+
},
|
|
192
198
|
}, {
|
|
193
199
|
headers: {
|
|
194
200
|
"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.1176",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@aws-sdk/client-s3": "^3.297.0",
|
|
27
27
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
28
28
|
"@google-cloud/storage": "^6.9.5",
|
|
29
|
-
"@riocrypto/common": "^1.0.
|
|
29
|
+
"@riocrypto/common": "^1.0.1058",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^0.27.2",
|
|
32
32
|
"ccxt": "^3.0.30",
|