From 9c300796b0483ded3c3085dbfa58ea1f44cc6b2f Mon Sep 17 00:00:00 2001 From: Alexey Chelnakov Date: Fri, 21 Jun 2019 12:14:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80?= =?UTF-8?q?=D1=8B:=20=20=20-=20=D0=9A=D0=BE=D0=B4=20=D1=82=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=20receipt=20->=20items=20->=20nomenclature?= =?UTF-8?q?=5Fcode=20(=D1=82=D0=B5=D0=B3=201162);=20=20=20-=20=D0=9F=D0=BE?= =?UTF-8?q?=D0=BA=D1=83=D0=BF=D0=B0=D1=82=D0=B5=D0=BB=D1=8C=20(=D0=BA?= =?UTF-8?q?=D0=BB=D0=B8=D0=B5=D0=BD=D1=82),=20(receipt=20=E2=86=92=20clien?= =?UTF-8?q?t=20=E2=86=92=20name),=20(=D1=82=D0=B5=D0=B3=201227);=20=20=20-?= =?UTF-8?q?=20=D0=98=D0=9D=D0=9D=20=D0=BF=D0=BE=D0=BA=D1=83=D0=BF=D0=B0?= =?UTF-8?q?=D1=82=D0=B5=D0=BB=D1=8F=20(=D0=BA=D0=BB=D0=B8=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=B0),=20(receipt=20=E2=86=92=20client=20=E2=86=92=20in?= =?UTF-8?q?n),=20(=D1=82=D0=B5=D0=B3=201228).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Request/V4/ClientReceiptRequest.php | 50 +++++++++++++++++++ .../Request/V4/ReceiptItemRequest.php | 24 +++++++++ 2 files changed, 74 insertions(+) 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; + } }