@riocrypto/common-server 1.0.2575 → 1.0.2577
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Quote, Fiat, Crypto, BitsoBankAccount, Side, Country, Order, CryptoAddress, BankAccount, AuthRole, Auth, ImportOrderData, TreasuryProvider, FXProvider, EmarketsFXTrade, ExternalTradingAlgorithm, ExternalTrade, ExternalTradeType, ExternalTradingProvider, ExternalTradingAlgorithmType, STPMXNWithdrawal, AuthPermission, DeferredPaymentType, TwoWaySettlementType, OrderType, EmarketsSettlementType, EmarketsOrderType, BulkBankPayout, BulkCryptoPayout, BulkBankPayment, BulkCryptoPayment, OrderStatus, TWAPSession } from "@riocrypto/common";
|
|
2
|
+
import { STPMXNWithdrawalDoc } from "../models/STP-mxn-withdrawal";
|
|
2
3
|
declare class ClusterClient {
|
|
3
4
|
private baseUrl;
|
|
4
5
|
private clusterApiKey;
|
|
@@ -172,7 +173,7 @@ declare class ClusterClient {
|
|
|
172
173
|
CLABE: string;
|
|
173
174
|
}>;
|
|
174
175
|
getSTPMXNBalance(): Promise<number>;
|
|
175
|
-
createSTPMXNWithdrawal(amount: number, CLABE: string, concepto: string, beneficiaryName: string): Promise<
|
|
176
|
+
createSTPMXNWithdrawal(amount: number, CLABE: string, concepto: string, beneficiaryName: string): Promise<STPMXNWithdrawalDoc>;
|
|
176
177
|
getSTPMXNWithdrawal(id: string): Promise<STPMXNWithdrawal>;
|
|
177
178
|
createBulkBankPayout(userId: string, payoutBankAccountId: string, deferredPaymentType: DeferredPaymentType): Promise<BulkBankPayout>;
|
|
178
179
|
createBulkCryptoPayout(userId: string, payoutAddressId: string, country: Country, deferredPaymentType: DeferredPaymentType): Promise<BulkCryptoPayout>;
|
|
@@ -601,7 +601,8 @@ class ClusterClient {
|
|
|
601
601
|
}
|
|
602
602
|
createSTPMXNWithdrawal(amount, CLABE, concepto, beneficiaryName) {
|
|
603
603
|
return __awaiter(this, void 0, void 0, function* () {
|
|
604
|
-
yield this.axios.post(`${this.baseUrl}/api/bank/accounts/STP/MXN/withdrawals`, { amount, CLABE, concepto, beneficiaryName }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
604
|
+
const response = yield this.axios.post(`${this.baseUrl}/api/bank/accounts/STP/MXN/withdrawals`, { amount, CLABE, concepto, beneficiaryName }, { headers: { "x-cluster-api-key": this.clusterApiKey } });
|
|
605
|
+
return response.data;
|
|
605
606
|
});
|
|
606
607
|
}
|
|
607
608
|
getSTPMXNWithdrawal(id) {
|