@riocrypto/common-server 1.0.1369 → 1.0.1371
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.
|
@@ -12,13 +12,13 @@ declare class ClusterClient {
|
|
|
12
12
|
createBitsoBankAccount(userId: string): Promise<BitsoBankAccount>;
|
|
13
13
|
getBalance(asset: Crypto | Fiat): Promise<number>;
|
|
14
14
|
createPayout(orderId: string, bankAccountId: string): Promise<void>;
|
|
15
|
-
getUSBankAccounts(userId: string
|
|
15
|
+
getUSBankAccounts(userId: string): Promise<{
|
|
16
16
|
id: string;
|
|
17
17
|
bank_name: string;
|
|
18
18
|
account_owner_name: string;
|
|
19
19
|
last_4: string;
|
|
20
20
|
}[]>;
|
|
21
|
-
getBankAccounts(userId: string): Promise<BankAccount[]>;
|
|
21
|
+
getBankAccounts(userId: string, fiat: Fiat, country: Country): Promise<BankAccount[]>;
|
|
22
22
|
getTransactionLimits(userId: string): Promise<{
|
|
23
23
|
limit: number;
|
|
24
24
|
used: number;
|
|
@@ -164,9 +164,9 @@ class ClusterClient {
|
|
|
164
164
|
});
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
-
getUSBankAccounts(userId
|
|
167
|
+
getUSBankAccounts(userId) {
|
|
168
168
|
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
-
const rioResponse = yield this.axios.get(`${this.baseUrl}/api/bank/us/accounts?userId=${userId}
|
|
169
|
+
const rioResponse = yield this.axios.get(`${this.baseUrl}/api/bank/us/accounts?userId=${userId}`, {
|
|
170
170
|
headers: {
|
|
171
171
|
"x-cluster-api-key": this.clusterApiKey,
|
|
172
172
|
},
|
|
@@ -174,9 +174,9 @@ class ClusterClient {
|
|
|
174
174
|
return rioResponse.data;
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
|
-
getBankAccounts(userId) {
|
|
177
|
+
getBankAccounts(userId, fiat, country) {
|
|
178
178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
-
const rioResponse = yield this.axios.get(`${this.baseUrl}/api/bank/accounts?userId=${userId}`, {
|
|
179
|
+
const rioResponse = yield this.axios.get(`${this.baseUrl}/api/bank/accounts?userId=${userId}&fiat=${fiat}&country=${country}`, {
|
|
180
180
|
headers: {
|
|
181
181
|
"x-cluster-api-key": this.clusterApiKey,
|
|
182
182
|
},
|
|
@@ -25,8 +25,8 @@ interface TelegramSessionAttrs {
|
|
|
25
25
|
}
|
|
26
26
|
interface TelegramSessionDoc extends mongoose.Document {
|
|
27
27
|
createdAt: Date;
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
telegramUsername: string;
|
|
29
|
+
telegramChatId: number;
|
|
30
30
|
isVerified: boolean;
|
|
31
31
|
state: string;
|
|
32
32
|
authId?: string;
|