@riocrypto/common 1.0.1372 → 1.0.1374

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.
@@ -143,7 +143,13 @@ export declare class RioAdminClient {
143
143
  createBridgePlaidLink(userId: string): Promise<string>;
144
144
  refreshAdminToken(): Promise<void>;
145
145
  createOrder(order: OrderInput): Promise<Order>;
146
- createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string): Promise<string>;
146
+ createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, address: {
147
+ street1: string;
148
+ street2?: string;
149
+ city: string;
150
+ state: string;
151
+ postalCode: CountryOfOrigin;
152
+ }): Promise<string>;
147
153
  getChainedOrders(page: number, limit?: number, query?: ChainedOrderQuery): Promise<ChainedOrder[]>;
148
154
  getChainedQuote(id: string): Promise<ChainedQuote>;
149
155
  getChainedOrder(id: string): Promise<ChainedOrder>;
@@ -460,7 +460,7 @@ class RioAdminClient {
460
460
  return response.data;
461
461
  });
462
462
  }
463
- createBridgeExternalAccount(userId, bankName, accountNumber, routingNumber, accountOwnerName) {
463
+ createBridgeExternalAccount(userId, bankName, accountNumber, routingNumber, accountOwnerName, address) {
464
464
  return __awaiter(this, void 0, void 0, function* () {
465
465
  const response = yield this.axios.post("/api/bank/us/accounts", {
466
466
  userId,
@@ -468,6 +468,7 @@ class RioAdminClient {
468
468
  accountNumber,
469
469
  routingNumber,
470
470
  accountOwnerName,
471
+ address,
471
472
  });
472
473
  return response.data.id;
473
474
  });
@@ -135,7 +135,13 @@ export declare class RioClient {
135
135
  getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
136
136
  createCryptoAddress(address: string, crypto: Crypto, userId?: string, label?: string): Promise<CryptoAddress>;
137
137
  createBridgePlaidLink(userId: string): Promise<string>;
138
- createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string): Promise<string>;
138
+ createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, address: {
139
+ street1: string;
140
+ street2?: string;
141
+ city: string;
142
+ state: string;
143
+ postalCode: CountryOfOrigin;
144
+ }): Promise<string>;
139
145
  createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, CLABE?: string, CCI?: string, notes?: string): Promise<BankAccount>;
140
146
  updateBankAccount(id: string, data: {
141
147
  country?: Country;
@@ -479,7 +479,7 @@ class RioClient {
479
479
  return response.data.url;
480
480
  });
481
481
  }
482
- createBridgeExternalAccount(userId, bankName, accountNumber, routingNumber, accountOwnerName) {
482
+ createBridgeExternalAccount(userId, bankName, accountNumber, routingNumber, accountOwnerName, address) {
483
483
  return __awaiter(this, void 0, void 0, function* () {
484
484
  const response = yield this.axios.post("/api/bank/us/accounts", {
485
485
  userId,
@@ -487,6 +487,7 @@ class RioClient {
487
487
  accountNumber,
488
488
  routingNumber,
489
489
  accountOwnerName,
490
+ address,
490
491
  });
491
492
  return response.data.id;
492
493
  });
@@ -1,4 +1,7 @@
1
1
  export declare const validateBusinessName: (name: string) => {
2
2
  isValid: boolean;
3
3
  message: string;
4
- } | undefined;
4
+ } | {
5
+ isValid: boolean;
6
+ message?: undefined;
7
+ };
@@ -16,5 +16,6 @@ const validateBusinessName = (name) => {
16
16
  message: `Business name can only contain letters, numbers, spaces, and ,'- characters`,
17
17
  };
18
18
  }
19
+ return { isValid: true };
19
20
  };
20
21
  exports.validateBusinessName = validateBusinessName;
@@ -1,4 +1,7 @@
1
1
  export declare const validateIndividualName: (name: string, label: string) => {
2
2
  isValid: boolean;
3
3
  message: string;
4
- } | undefined;
4
+ } | {
5
+ isValid: boolean;
6
+ message?: undefined;
7
+ };
@@ -16,5 +16,6 @@ const validateIndividualName = (name, label) => {
16
16
  message: `${label} can only contain alphabets, spaces, hyphens, and apostrophes`,
17
17
  };
18
18
  }
19
+ return { isValid: true };
19
20
  };
20
21
  exports.validateIndividualName = validateIndividualName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1372",
3
+ "version": "1.0.1374",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",