• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/integration/service/command/batch/statistics.php
  • Класс: BitrixSaleExchangeIntegrationServiceCommandBatchStatistics
  • Вызов: Statistics::init
public function init($params)
{
	foreach($params as $index=>$item)
	{
		$this->collection->addItem(
			Item::create(
				(new Order())
					->setEntityId($index)
					->setEntityTypeId(EntityType::ORDER)
					->setDateUpdate($item['dateUpdate'])
					->setCurrency($item['currency'])
					->setProviderId($item['providerId'])
					->setStatus($item['status'])
					->setXmlId($item['xmlId'])
					->setAmount($item['amount']))
				->setInternalIndex($index)
		);
	}

	return $this;
}