• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/cashbox/cashboxorangedata.php
  • Класс: BitrixSaleCashboxCashboxOrangeData
  • Вызов: CashboxOrangeData::checkInternal
protected function checkInternal($url)
{
	$result = new Result();

	$header = $this->getCheckQueryHeaders($url);
	$queryResult = $this->send($url, $header);

	if (!$queryResult->isSuccess())
	{
		return $result->addErrors($queryResult->getErrors());
	}

	$data = $queryResult->getData();

	$response = $this->decode($data['content']);
	if ($response === false)
	{
		return $result->addError(new ErrorsError(LocalizationLoc::getMessage('SALE_CASHBOX_ORANGE_DATA_ERROR_CHECK_CHECK')));
	}

	return static::applyCheckResult($response);
}