diff --git a/src/Bot/Model/Request/ChatsRequest.php b/src/Bot/Model/Request/ChatsRequest.php index 2b0666c..14a6d92 100644 --- a/src/Bot/Model/Request/ChatsRequest.php +++ b/src/Bot/Model/Request/ChatsRequest.php @@ -23,6 +23,7 @@ use RetailCrm\Mg\Bot\Model\ModelInterface; class ChatsRequest implements ModelInterface { use CommonFields; + use PageLimit; /** * @Type("int") @@ -38,6 +39,13 @@ class ChatsRequest implements ModelInterface */ private $channelType; + /** + * @Type("int") + * @Accessor(getter="getCustomerId",setter="setCustomerId") + * @SkipWhenEmpty() + */ + private $customerId; + /** * @return int */ @@ -69,4 +77,20 @@ class ChatsRequest implements ModelInterface { $this->channelType = $channelType; } + + /** + * @return int|null + */ + public function getCustomerId(): ?int + { + return $this->customerId; + } + + /** + * @param int $customerId + */ + public function setCustomerId($customerId) + { + $this->customerId = $customerId; + } } diff --git a/src/Bot/Model/Request/PageLimit.php b/src/Bot/Model/Request/PageLimit.php new file mode 100644 index 0000000..ccd9e28 --- /dev/null +++ b/src/Bot/Model/Request/PageLimit.php @@ -0,0 +1,48 @@ +limit; + } + + /** + * @param int $limit + */ + public function setLimit($limit) + { + $this->limit = $limit; + } +}