@riocrypto/common 1.0.1068 → 1.0.1069
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.
|
@@ -103,7 +103,7 @@ export declare class RioAdminClient {
|
|
|
103
103
|
}>;
|
|
104
104
|
refreshAdminToken(): Promise<void>;
|
|
105
105
|
createOrder(order: OrderInput): Promise<Order>;
|
|
106
|
-
createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, streetLine1: string, streetLine2: string, city: string, state: string, postalCode: string): Promise<string>;
|
|
106
|
+
createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, streetLine1: string, streetLine2: string, city: string, state: string, postalCode: string, country: Country): Promise<string>;
|
|
107
107
|
getChainedOrders(page: number, limit?: number, query?: ChainedOrderQuery): Promise<ChainedOrder[]>;
|
|
108
108
|
getChainedQuote(id: string): Promise<ChainedQuote>;
|
|
109
109
|
getChainedOrder(id: string): Promise<ChainedOrder>;
|
|
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RioAdminClient = void 0;
|
|
13
|
-
const country_1 = require("../types/country");
|
|
14
13
|
class RioAdminClient {
|
|
15
14
|
constructor(axios) {
|
|
16
15
|
this.axios = axios;
|
|
@@ -317,7 +316,7 @@ class RioAdminClient {
|
|
|
317
316
|
return response.data;
|
|
318
317
|
});
|
|
319
318
|
}
|
|
320
|
-
createBridgeExternalAccount(userId, bankName, accountNumber, routingNumber, accountOwnerName, streetLine1, streetLine2, city, state, postalCode) {
|
|
319
|
+
createBridgeExternalAccount(userId, bankName, accountNumber, routingNumber, accountOwnerName, streetLine1, streetLine2, city, state, postalCode, country) {
|
|
321
320
|
return __awaiter(this, void 0, void 0, function* () {
|
|
322
321
|
const response = yield this.axios.post("/api/bank/us/accounts", {
|
|
323
322
|
userId,
|
|
@@ -330,7 +329,7 @@ class RioAdminClient {
|
|
|
330
329
|
city,
|
|
331
330
|
state,
|
|
332
331
|
postalCode,
|
|
333
|
-
country
|
|
332
|
+
country,
|
|
334
333
|
});
|
|
335
334
|
return response.data.id;
|
|
336
335
|
});
|
|
@@ -88,7 +88,7 @@ export declare class RioClient {
|
|
|
88
88
|
getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
|
|
89
89
|
createCryptoAddress(address: string, crypto: Crypto, userId?: string, label?: string): Promise<CryptoAddress>;
|
|
90
90
|
createBridgePlaidLink(userId: string): Promise<string>;
|
|
91
|
-
createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, streetLine1: string, streetLine2: string, city: string, state: string, postalCode: string): Promise<string>;
|
|
91
|
+
createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, streetLine1: string, streetLine2: string, city: string, state: string, postalCode: string, country: Country): Promise<string>;
|
|
92
92
|
createBankAccount(userId: string, country: Country, fiat: Fiat, bankName: string, accountHolderName: string, accountNumber: string, swiftCode?: string, CCI?: string, notes?: string): Promise<BankAccount>;
|
|
93
93
|
updateBankAccount(id: string, userId?: string, country?: Country, fiat?: Fiat, accountNumber?: string, swiftCode?: string, notes?: string, approved?: boolean): Promise<BankAccount>;
|
|
94
94
|
getFeesByVolume(): Promise<{
|
|
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RioClient = void 0;
|
|
13
|
-
const country_1 = require("../types/country");
|
|
14
13
|
class RioClient {
|
|
15
14
|
constructor(axios) {
|
|
16
15
|
this.axios = axios;
|
|
@@ -294,7 +293,7 @@ class RioClient {
|
|
|
294
293
|
return response.data.url;
|
|
295
294
|
});
|
|
296
295
|
}
|
|
297
|
-
createBridgeExternalAccount(userId, bankName, accountNumber, routingNumber, accountOwnerName, streetLine1, streetLine2, city, state, postalCode) {
|
|
296
|
+
createBridgeExternalAccount(userId, bankName, accountNumber, routingNumber, accountOwnerName, streetLine1, streetLine2, city, state, postalCode, country) {
|
|
298
297
|
return __awaiter(this, void 0, void 0, function* () {
|
|
299
298
|
const response = yield this.axios.post("/api/bank/us/accounts", {
|
|
300
299
|
userId,
|
|
@@ -307,7 +306,7 @@ class RioClient {
|
|
|
307
306
|
city,
|
|
308
307
|
state,
|
|
309
308
|
postalCode,
|
|
310
|
-
country
|
|
309
|
+
country,
|
|
311
310
|
});
|
|
312
311
|
return response.data.id;
|
|
313
312
|
});
|