- Модуль: voximplant
- Путь к файлу: ~/bitrix/modules/voximplant/lib/integration/pull.php
- Класс: BitrixVoximplantIntegrationPull
- Вызов: Pull::sendBalanceUpdate
static function sendBalanceUpdate($newBalance, $currency)
{
if(!Loader::includeModule("pull"))
{
return;
}
if(BitrixMainLoader::includeModule('currency'))
{
$balanceFormatted = CCurrencyLang::CurrencyFormat($newBalance, $currency, false);
}
else
{
$balanceFormatted = number_format($newBalance, 2);
}
CPullWatch::AddToStack(
static::BALANCE_PUSH_TAG,
[
"module_id" => "voximplant",
"command" => "balanceUpdate",
"params" => [
"balance" => $newBalance,
"currency" => $currency,
"balanceFormatted" => $balanceFormatted
]
]
);
}