• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/cashbox/cashboxrest.php
  • Класс: BitrixSaleCashboxCashboxRest
  • Вызов: CashboxRest::validate
public function validate(): Result
{
	$result = parent::validate();

	// check whether the specified handler actually exists
	$handlerCode = $this->getHandlerCode();
	$handlerList = Manager::getRestHandlersList();
	if (!isset($handlerList[$handlerCode]))
	{
		$result->addError(
			new MainError(
				Loc::getMessage(
					"SALE_CASHBOX_REST_HANDLER_NOT_FOUND",
					["#HANDLER_CODE#" => $handlerCode]
				)
			)
		);
	}

	return $result;
}