@riocrypto/common 1.0.1135 → 1.0.1136

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.
@@ -34,7 +34,6 @@ import { ChainedQuoteInput } from "../types/chained-quote-input";
34
34
  import { ChainedQuote } from "../types/chained-quote";
35
35
  import { ChainedOrderInput } from "../types/chained-order-input";
36
36
  import { InternalSwap } from "../types/internal-swap";
37
- import { CountryOfOrigin } from "../types/country-of-origin";
38
37
  import { BridgeExternalAccountQuery } from "../types/bridge-external-account-query";
39
38
  export declare class RioAdminClient {
40
39
  private axios;
@@ -100,7 +99,7 @@ export declare class RioAdminClient {
100
99
  createBridgePlaidLink(userId: string): Promise<string>;
101
100
  refreshAdminToken(): Promise<void>;
102
101
  createOrder(order: OrderInput): Promise<Order>;
103
- createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, streetLine1: string, streetLine2: string, city: string, state: string, postalCode: string, country: CountryOfOrigin): Promise<string>;
102
+ createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string): Promise<string>;
104
103
  getChainedOrders(page: number, limit?: number, query?: ChainedOrderQuery): Promise<ChainedOrder[]>;
105
104
  getChainedQuote(id: string): Promise<ChainedQuote>;
106
105
  getChainedOrder(id: string): Promise<ChainedOrder>;
@@ -299,7 +299,7 @@ class RioAdminClient {
299
299
  return response.data;
300
300
  });
301
301
  }
302
- createBridgeExternalAccount(userId, bankName, accountNumber, routingNumber, accountOwnerName, streetLine1, streetLine2, city, state, postalCode, country) {
302
+ createBridgeExternalAccount(userId, bankName, accountNumber, routingNumber, accountOwnerName) {
303
303
  return __awaiter(this, void 0, void 0, function* () {
304
304
  const response = yield this.axios.post("/api/bank/us/accounts", {
305
305
  userId,
@@ -307,12 +307,6 @@ class RioAdminClient {
307
307
  accountNumber,
308
308
  routingNumber,
309
309
  accountOwnerName,
310
- streetLine1,
311
- streetLine2,
312
- city,
313
- state,
314
- postalCode,
315
- country,
316
310
  });
317
311
  return response.data.id;
318
312
  });
@@ -29,7 +29,6 @@ import { ChainedQuote } from "../types/chained-quote";
29
29
  import { ChainedOrderInput } from "../types/chained-order-input";
30
30
  import { ChainedOrder } from "../types/chained-order";
31
31
  import { ChainedOrderQuery } from "../types/chained-order-query";
32
- import { CountryOfOrigin } from "../types/country-of-origin";
33
32
  import { BridgeExternalAccountQuery } from "../types/bridge-external-account-query";
34
33
  import { SecurityQuestion } from "../types/security-question";
35
34
  export declare class RioClient {
@@ -89,7 +88,7 @@ export declare class RioClient {
89
88
  getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
90
89
  createCryptoAddress(address: string, crypto: Crypto, userId?: string, label?: string): Promise<CryptoAddress>;
91
90
  createBridgePlaidLink(userId: string): Promise<string>;
92
- createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, streetLine1: string, streetLine2: string, city: string, state: string, postalCode: string, country: CountryOfOrigin): Promise<string>;
91
+ createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string): Promise<string>;
93
92
  createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, CLABE?: string, CCI?: string, notes?: string): Promise<BankAccount>;
94
93
  updateBankAccount(id: string, country?: Country, fiat?: Fiat, bankName?: string, accountHolderName?: string, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
95
94
  getFeesByVolume(): Promise<{
@@ -307,7 +307,7 @@ class RioClient {
307
307
  return response.data.url;
308
308
  });
309
309
  }
310
- createBridgeExternalAccount(userId, bankName, accountNumber, routingNumber, accountOwnerName, streetLine1, streetLine2, city, state, postalCode, country) {
310
+ createBridgeExternalAccount(userId, bankName, accountNumber, routingNumber, accountOwnerName) {
311
311
  return __awaiter(this, void 0, void 0, function* () {
312
312
  const response = yield this.axios.post("/api/bank/us/accounts", {
313
313
  userId,
@@ -315,12 +315,6 @@ class RioClient {
315
315
  accountNumber,
316
316
  routingNumber,
317
317
  accountOwnerName,
318
- streetLine1,
319
- streetLine2,
320
- city,
321
- state,
322
- postalCode,
323
- country,
324
318
  });
325
319
  return response.data.id;
326
320
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1135",
3
+ "version": "1.0.1136",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",