• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/cashbox/rest/cashboxservice.php
  • Класс: BitrixSaleCashboxRestCashboxService
  • Вызов: CashboxService::getHandlerData
static function getHandlerData(string $code): ?array
{
	static $result = [];

	if (!empty($result[$code]))
	{
		return $result[$code];
	}

	$handlerData = CashboxRestHandlerTable::getList([
		'filter' => ['CODE' => $code],
		'limit' => 1,
	])->fetch();
	if ($handlerData)
	{
		$result[$code] = $handlerData;
	}

	return $result[$code] ?? null;
}