@riocrypto/common-server 1.0.1795 → 1.0.1797

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,6 +205,9 @@ 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
+ }
208
211
  const { data } = yield axios_with_logging_1.default.post(`${this.baseUrl}/v0/customers/${bridgeCustomerId}/external_accounts`, {
209
212
  type: "wire",
210
213
  bank_name: bankName,
@@ -36,7 +36,6 @@ interface OrderAttrs {
36
36
  discount?: number;
37
37
  markup?: number;
38
38
  expiredQuotes?: string[];
39
- externalAccountId?: string;
40
39
  partner?: Partner;
41
40
  imported?: boolean;
42
41
  managedWallet?: boolean;
@@ -84,7 +83,6 @@ interface OrderDoc extends Document {
84
83
  wireMessage?: string;
85
84
  markup?: number;
86
85
  expiredQuotes?: string[];
87
- externalAccountId?: string;
88
86
  partner?: Partner;
89
87
  imported?: boolean;
90
88
  managedWallet?: boolean;
@@ -157,9 +157,6 @@ const buildOrder = (mongoose) => {
157
157
  markup: {
158
158
  type: Number,
159
159
  },
160
- externalAccountId: {
161
- type: String,
162
- },
163
160
  expiredQuotes: [
164
161
  {
165
162
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1795",
3
+ "version": "1.0.1797",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",