1
0
mirror of synced 2024-11-21 20:46:03 +03:00

Добавлены параметры:

- Код товара receipt -> items -> nomenclature_code (тег 1162);
  - Покупатель (клиент), (receipt → client → name), (тег 1227);
  - ИНН покупателя (клиента), (receipt → client → inn), (тег 1228).
This commit is contained in:
Alexey Chelnakov 2019-06-21 12:14:38 +03:00
parent f21bf18401
commit 9c300796b0
2 changed files with 74 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}