• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/cashbox/rest/checkservice.php
  • Класс: BitrixSaleCashboxRestCheckService
  • Вызов: CheckService::checkParamsBeforeApplyCheck
static function checkParamsBeforeApplyCheck($params)
{
	if (!$params['UUID'])
	{
		throw new RestException('Parameter UUID is not defined', self::ERROR_CHECK_FAILURE);
	}

	$checkInfo = CheckManager::getCheckInfoByExternalUuid($params['UUID']);
	if (!$checkInfo)
	{
		throw new RestException('Check not found', self::ERROR_CHECK_NOT_FOUND);
	}
}