1
0
mirror of synced 2024-11-24 22:16:08 +03:00

Fix vats request (#11)

This commit is contained in:
Vragov Roman 2019-08-26 12:04:00 +03:00 committed by Alexey
parent ffd5b85fe0
commit ae80596b33

View File

@ -50,9 +50,9 @@ class ReceiptRequest
private $payments; private $payments;
/** /**
* @var \AtolOnlineClient\Request\V4\VatReceiptRequest[] * @var \AtolOnlineClient\Request\V4\VatReceiptRequest[]|null
* "minItems": 1, "maxItems": 6, * "minItems": 1, "maxItems": 6,
* required *
* @Serializer\Groups({"set", "get"}) * @Serializer\Groups({"set", "get"})
* @Serializer\SerializedName("vats") * @Serializer\SerializedName("vats")
* @Serializer\Type("array<AtolOnlineClient\Request\V4\VatReceiptRequest>") * @Serializer\Type("array<AtolOnlineClient\Request\V4\VatReceiptRequest>")
@ -133,17 +133,17 @@ class ReceiptRequest
} }
/** /**
* @return VatReceiptRequest[] * @return VatReceiptRequest[]|null
*/ */
public function getVats(): array public function getVats(): ?array
{ {
return $this->vats; return $this->vats;
} }
/** /**
* @param VatReceiptRequest[] $vats * @param VatReceiptRequest[]|null $vats
*/ */
public function setVats(array $vats): void public function setVats(?array $vats): void
{ {
$this->vats = $vats; $this->vats = $vats;
} }