• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Sale/Reservation/ReservationService.php
  • Класс: Bitrix\Crm\Service\Sale\Reservation\ReservationService
  • Вызов: ReservationService::reservationProductsByPayment
public function reservationProductsByPayment(Payment $payment): Result
{
	$result = new Result();

	$binding = $payment->getOrder()->getEntityBinding();
	if (!$binding)
	{
		$result->addError(
			new Error('Order not binded')
		);
		return $result;
	}

	$ownerTypeId = $binding->getOwnerTypeId();
	$ownerId = $binding->getOwnerId();

	return $this->reservationProducts($ownerTypeId, $ownerId);
}