2020-09-28 17:18:21 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* PHP version 7.3
|
|
|
|
*
|
|
|
|
* @category TestRequest
|
|
|
|
* @package RetailCrm\Test
|
|
|
|
* @author RetailCRM <integration@retailcrm.ru>
|
|
|
|
* @license MIT
|
|
|
|
* @link http://retailcrm.ru
|
|
|
|
* @see http://help.retailcrm.ru
|
|
|
|
*/
|
|
|
|
namespace RetailCrm\Test;
|
|
|
|
|
|
|
|
use JMS\Serializer\Annotation as JMS;
|
2020-09-29 13:10:54 +03:00
|
|
|
use Psr\Http\Message\UploadedFileInterface;
|
|
|
|
use RetailCrm\Interfaces\FileItemInterface;
|
2020-09-28 17:18:21 +03:00
|
|
|
use RetailCrm\Model\Request\BaseRequest;
|
|
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class TestRequest
|
|
|
|
*
|
|
|
|
* @category TestRequest
|
|
|
|
* @package RetailCrm\Test
|
|
|
|
* @author RetailDriver LLC <integration@retailcrm.ru>
|
|
|
|
* @license MIT
|
|
|
|
* @link http://retailcrm.ru
|
|
|
|
* @see https://help.retailcrm.ru
|
|
|
|
*/
|
|
|
|
class TestSignerRequest extends BaseRequest
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string $serviceName
|
|
|
|
*
|
|
|
|
* @JMS\Type("string")
|
|
|
|
* @JMS\SerializedName("service_name")
|
|
|
|
* @Assert\NotBlank()
|
|
|
|
*/
|
|
|
|
public $serviceName;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string $outRef
|
|
|
|
*
|
|
|
|
* @JMS\Type("string")
|
|
|
|
* @JMS\SerializedName("out_ref")
|
|
|
|
* @Assert\NotBlank()
|
|
|
|
*/
|
|
|
|
public $outRef;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string $sendType
|
|
|
|
*
|
|
|
|
* @JMS\Type("string")
|
|
|
|
* @JMS\SerializedName("send_type")
|
|
|
|
* @Assert\NotBlank()
|
|
|
|
*/
|
|
|
|
public $sendType;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string $logisitics_no
|
|
|
|
*
|
|
|
|
* @JMS\Type("string")
|
|
|
|
* @JMS\SerializedName("logisitics_no")
|
|
|
|
* @Assert\NotBlank()
|
|
|
|
*/
|
|
|
|
public $logisticsNo;
|
2020-09-29 13:10:54 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var FileItemInterface $document
|
|
|
|
*
|
|
|
|
* @JMS\Type("FileItemInterface")
|
|
|
|
* @JMS\SerializedName("document")
|
|
|
|
*/
|
|
|
|
public $document;
|
2020-09-28 17:18:21 +03:00
|
|
|
}
|