@riocrypto/common-server 1.0.1794 → 1.0.1795
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.
|
@@ -205,9 +205,6 @@ class BridgeClient {
|
|
|
205
205
|
}
|
|
206
206
|
createExternalAccount(bridgeCustomerId, bankName, accountNumber, routingNumber, accountOwnerName, address) {
|
|
207
207
|
return __awaiter(this, void 0, void 0, function* () {
|
|
208
|
-
if ([common_1.RioEnv.Sandbox, common_1.RioEnv.Local].includes(process.env.RIO_ENV)) {
|
|
209
|
-
throw new Error("Bridge external accounts are disabled in sandbox mode.");
|
|
210
|
-
}
|
|
211
208
|
const { data } = yield axios_with_logging_1.default.post(`${this.baseUrl}/v0/customers/${bridgeCustomerId}/external_accounts`, {
|
|
212
209
|
type: "wire",
|
|
213
210
|
bank_name: bankName,
|