@riocrypto/common-server 1.0.1248 → 1.0.1250
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,14 +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, accountNumber: string, routingNumber: string, accountOwnerName: string
|
|
179
|
-
streetLine1: string;
|
|
180
|
-
streetLine2?: string;
|
|
181
|
-
city: string;
|
|
182
|
-
state: string;
|
|
183
|
-
postalCode: string;
|
|
184
|
-
country: string;
|
|
185
|
-
}): Promise<{
|
|
178
|
+
createExternalAccount(bridgeCustomerId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string): Promise<{
|
|
186
179
|
id: string;
|
|
187
180
|
bank_name: string;
|
|
188
181
|
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) {
|
|
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,14 +187,6 @@ class BridgeClient {
|
|
|
187
187
|
account_number: accountNumber,
|
|
188
188
|
routing_number: routingNumber,
|
|
189
189
|
account_owner_name: accountOwnerName,
|
|
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: address.country,
|
|
197
|
-
},
|
|
198
190
|
}, {
|
|
199
191
|
headers: {
|
|
200
192
|
"Api-Key": this.apiKey,
|