@riocrypto/common-server 1.0.2173 → 1.0.2174
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.
|
@@ -29,7 +29,8 @@ declare class ClusterClient {
|
|
|
29
29
|
payoutBankAccountId?: string;
|
|
30
30
|
notes?: string;
|
|
31
31
|
}): Promise<Order>;
|
|
32
|
-
|
|
32
|
+
checkBankPayment(orderId: string): Promise<void>;
|
|
33
|
+
checkCryptoPayment(orderId: string): Promise<void>;
|
|
33
34
|
createBitsoBankAccount(userId: string): Promise<BitsoBankAccount>;
|
|
34
35
|
createAuthWithoutRegistration(phoneNumber: string, firstName: string, lastName: string, role?: AuthRole, telegramUsername?: string, telegramUserId?: string): Promise<Auth>;
|
|
35
36
|
getLiquidityAvailable(): Promise<{
|
|
@@ -164,7 +164,7 @@ class ClusterClient {
|
|
|
164
164
|
return response.data;
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
-
|
|
167
|
+
checkBankPayment(orderId) {
|
|
168
168
|
return __awaiter(this, void 0, void 0, function* () {
|
|
169
169
|
yield this.axios.post(`${this.baseUrl}/api/payments/bank/check`, {
|
|
170
170
|
orderId,
|
|
@@ -175,6 +175,17 @@ class ClusterClient {
|
|
|
175
175
|
});
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
|
+
checkCryptoPayment(orderId) {
|
|
179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
180
|
+
yield this.axios.post(`${this.baseUrl}/api/payments/crypto/check`, {
|
|
181
|
+
orderId,
|
|
182
|
+
}, {
|
|
183
|
+
headers: {
|
|
184
|
+
"x-cluster-api-key": this.clusterApiKey,
|
|
185
|
+
},
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
}
|
|
178
189
|
createBitsoBankAccount(userId) {
|
|
179
190
|
return __awaiter(this, void 0, void 0, function* () {
|
|
180
191
|
const response = yield this.axios.post(`${this.baseUrl}/api/bank/accounts/bitso`, {
|