diff --git a/src/AtolOnlineClient/Request/V4/ClientReceiptRequest.php b/src/AtolOnlineClient/Request/V4/ClientReceiptRequest.php index 654859a..8113eae 100644 --- a/src/AtolOnlineClient/Request/V4/ClientReceiptRequest.php +++ b/src/AtolOnlineClient/Request/V4/ClientReceiptRequest.php @@ -29,6 +29,24 @@ class ClientReceiptRequest private $phone; + /** + * @var string + * + * @Serializer\Groups({"set", "get"}) + * @Serializer\SerializedName("name") + * @Serializer\Type("string") + */ + private $name; + + /** + * @var string + * + * @Serializer\Groups({"set", "get"}) + * @Serializer\SerializedName("inn") + * @Serializer\Type("string") + */ + private $inn; + public function __construct($email, $phone) { $this->email = $email; @@ -50,4 +68,36 @@ class ClientReceiptRequest { return $this->phone; } + + /** + * @return string + */ + public function getName(): string + { + return $this->name; + } + + /** + * @param string $name + */ + public function setName(string $name): void + { + $this->name = $name; + } + + /** + * @return string + */ + public function getInn(): string + { + return $this->inn; + } + + /** + * @param string $inn + */ + public function setInn(string $inn): void + { + $this->inn = $inn; + } } diff --git a/src/AtolOnlineClient/Request/V4/ReceiptItemRequest.php b/src/AtolOnlineClient/Request/V4/ReceiptItemRequest.php index 49cba55..7bedb5e 100644 --- a/src/AtolOnlineClient/Request/V4/ReceiptItemRequest.php +++ b/src/AtolOnlineClient/Request/V4/ReceiptItemRequest.php @@ -131,6 +131,14 @@ class ReceiptItemRequest */ private $vat; + /** + * @var string + * @Serializer\Groups({"set", "get"}) + * @Serializer\SerializedName("nomenclature_code") + * @Serializer\Type("string") + */ + private $nomenclatureCode; + /** * @return string */ @@ -258,4 +266,20 @@ class ReceiptItemRequest { $this->vat = $vat; } + + /** + * @return string + */ + public function getNomenclatureCode(): string + { + return $this->nomenclatureCode; + } + + /** + * @param string $nomenclatureCode + */ + public function setNomenclatureCode(string $nomenclatureCode): void + { + $this->nomenclatureCode = $nomenclatureCode; + } }