1
0
mirror of synced 2024-11-22 11:56:03 +03:00

update ChatsRequest

This commit is contained in:
Pavel 2022-11-16 09:54:56 +03:00
parent 6fbddeb2a9
commit 92a0eb0c0b
2 changed files with 72 additions and 0 deletions

View File

@ -23,6 +23,7 @@ use RetailCrm\Mg\Bot\Model\ModelInterface;
class ChatsRequest implements ModelInterface class ChatsRequest implements ModelInterface
{ {
use CommonFields; use CommonFields;
use PageLimit;
/** /**
* @Type("int") * @Type("int")
@ -38,6 +39,13 @@ class ChatsRequest implements ModelInterface
*/ */
private $channelType; private $channelType;
/**
* @Type("int")
* @Accessor(getter="getCustomerId",setter="setCustomerId")
* @SkipWhenEmpty()
*/
private $customerId;
/** /**
* @return int * @return int
*/ */
@ -69,4 +77,20 @@ class ChatsRequest implements ModelInterface
{ {
$this->channelType = $channelType; $this->channelType = $channelType;
} }
/**
* @return int|null
*/
public function getCustomerId(): ?int
{
return $this->customerId;
}
/**
* @param int $customerId
*/
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
} }

View File

@ -0,0 +1,48 @@
<?php
/**
* PHP version 7.1
*
* Page limit
*
* @package RetailCrm\Mg\Bot\Model\Request
*/
namespace RetailCrm\Mg\Bot\Model\Request;
use JMS\Serializer\Annotation\Accessor;
use JMS\Serializer\Annotation\SkipWhenEmpty;
use JMS\Serializer\Annotation\Type;
/**
* PageLimit trait
*
* @package RetailCrm\Mg\Bot\Model\Request
*/
trait PageLimit
{
/**
* @var int
*
* @Type("int")
* @Accessor(getter="getLimit",setter="setLimit")
* @SkipWhenEmpty
*/
private $limit;
/**
* @return int|null
*/
public function getLimit(): ?int
{
return $this->limit;
}
/**
* @param int $limit
*/
public function setLimit($limit)
{
$this->limit = $limit;
}
}