| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <?php
- declare(strict_types=1);
- namespace App\ApiResources\Dolibarr;
- use ApiPlatform\Core\Annotation\ApiProperty;
- use ApiPlatform\Core\Annotation\ApiResource;
- use Symfony\Component\Serializer\Annotation\Groups;
- /**
- * Bill of a society, retrieved from dolibarr
- */
- #[ApiResource]
- class DolibarrBill
- {
- /**
- * Id of the dolibarr bill ( = invoice)
- */
- #[ApiProperty(identifier: true)]
- #[Groups('dolibarr_get')]
- private int $id;
- /**
- * Bill reference
- */
- #[Groups('dolibarr_get')]
- private string $ref;
- /**
- * Date of the bill
- */
- #[Groups('dolibarr_get')]
- private \DateTime $date;
- /**
- * Amount (tax excluded)
- */
- #[Groups('dolibarr_get')]
- private float $taxExcludedAmount;
- /**
- * Amount (tax included)
- */
- #[Groups('dolibarr_get')]
- private float $taxIncludedAmount;
- /**
- * Is the bill paid or not
- */
- #[Groups('dolibarr_get')]
- private bool $paid;
- public function getId(): int
- {
- return $this->id;
- }
- public function setId(int $id): self
- {
- $this->id = $id;
- return $this;
- }
- public function getRef(): string
- {
- return $this->ref;
- }
- public function setRef(string $ref): self
- {
- $this->ref = $ref;
- return $this;
- }
- public function getDate(): \DateTime
- {
- return $this->date;
- }
- public function setDate(\DateTime $date): self
- {
- $this->date = $date;
- return $this;
- }
- /**
- * @return float
- */
- public function getTaxExcludedAmount(): float
- {
- return $this->taxExcludedAmount;
- }
- /**
- * @param float $taxExcludedAmount
- */
- public function setTaxExcludedAmount(float $taxExcludedAmount): self
- {
- $this->taxExcludedAmount = $taxExcludedAmount;
- return $this;
- }
- /**
- * @return float
- */
- public function getTaxIncludedAmount(): float
- {
- return $this->taxIncludedAmount;
- }
- /**
- * @param float $taxIncludedAmount
- */
- public function setTaxIncludedAmount(float $taxIncludedAmount): self
- {
- $this->taxIncludedAmount = $taxIncludedAmount;
- return $this;
- }
- public function getPaid(): bool
- {
- return $this->paid;
- }
- public function setPaid(bool $paid): self
- {
- $this->paid = $paid;
- return $this;
- }
- }
|