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/ilovecveti.ru/bitrix/modules/yandex.market/lib/api/partner/outlets/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/modules/yandex.market/lib/api/partner/outlets/request.php
<?php

namespace Yandex\Market\Api\Partner\Outlets;

use Bitrix\Main;
use Yandex\Market;

class Request extends Market\Api\Partner\Reference\Request
{
	protected $page;
	protected $pageSize;
	protected $shopOutletCode;

	public function getPath()
	{
		return '/v2/campaigns/' . $this->getCampaignId() . '/outlets.json';
	}

	public function buildResponse($data)
	{
		return new Response($data);
	}

	public function getQuery()
	{
		$result = [
			'page' => $this->getPage(),
			'pageSize' => $this->getPageSize(),
			'shop_outlet_code' => $this->getShopOutletCode(),
		];

		return array_filter($result, static function($value) { return $value !== null; });
	}

	public function processParameters(array $parameters)
	{
		foreach ($parameters as $name => $value)
		{
			switch ($name)
			{
				case 'page':
					$this->setPage($value);
				break;

				case 'pageSize':
					$this->setPageSize($value);
				break;

				case 'shop_outlet_code':
					$this->setShopOutletCode($value);
				break;

				default:
					throw new Main\ArgumentException('unknown parameter ' . $name);
				break;
			}
		}
	}

	public function setPage($page)
	{
		$this->page = $page;
	}

	public function getPage()
	{
		return $this->page;
	}

	public function setPageSize($pageSize)
	{
		$this->pageSize = $pageSize;
	}

	public function getPageSize()
	{
		return $this->pageSize;
	}

	public function getShopOutletCode()
	{
		return $this->shopOutletCode;
	}

	public function setShopOutletCode($shopOutletCode)
	{
		$this->shopOutletCode = $shopOutletCode;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit