| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468 |
- <?php
- namespace AppBundle\Entity\Billing;
- use Doctrine\Common\Collections\ArrayCollection;
- use Doctrine\ORM\Mapping as ORM;
- use Dunglas\ApiBundle\Annotation\Iri;
- use Symfony\Component\Serializer\Annotation\Groups;
- use Symfony\Component\Validator\Constraints as Assert;
- use AppBundle\Entity\Traits\TimestampableEntity;
- use AppBundle\Entity\Traits\CreatorUpdaterEntity;
- /**
- * Paramètres d'un Access pour une Bill
- *
- * @Iri("http://schema.org/BillAccessDetail")
- */
- #[ORM\Entity]
- class BillAccessDetail
- {
- use TimestampableEntity;
- use CreatorUpdaterEntity;
- /**
- * @var int
- */
- #[ORM\Column(type: 'integer')]
- #[ORM\Id]
- #[ORM\GeneratedValue(strategy: 'AUTO')]
- #[Groups(['billaccessdetail', 'billaccounting_list', 'bill_list', 'billcredit_list', 'build_bills'])]
- private $id;
- /**
- * @var int
- */
- #[ORM\Column(type: 'integer')]
- #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billpayment_list_bill', 'billcredit_list_accessdetail'])]
- private $accessId;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billpayment_list_bill', 'billcredit_list_accessdetail'])]
- private $customerId;
- /**
- * @var string
- *
- *
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
- private $familyQuotientSliceName;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
- private $residenceAreaLabel;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Assert\Choice(callback: ['\AppBundle\Enum\Billing\PeriodicityPaymentEnum', 'toArray'])]
- #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
- private $periodicityPayment;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Assert\Choice(callback: ['\AppBundle\Enum\Billing\PaymentChoiceEnum', 'toArray'])]
- #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
- private $paymentChoice;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
- private $streetAddress;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', length: 20, nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
- private $postalCode;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
- private $addressCity;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Assert\Length(max: 255, maxMessage: 'invalid-max-length')]
- #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail'])]
- private $bankName;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', length: 11, nullable: true)]
- #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail', 'build_bills_accessdetail'])]
- private $bic;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', length: 34, nullable: true)]
- #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail', 'build_bills_accessdetail'])]
- private $iban;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail', 'build_bills_accessdetail'])]
- private $holder;
- /**
- * @var string
- */
- #[ORM\Column(type: 'string', length: 35, nullable: true)]
- #[Assert\Type(type: 'string')]
- #[Groups(['billaccessdetail', 'billaccounting_list_accessdetail', 'bill_list_accessdetail', 'billcredit_list_accessdetail', 'build_bills_accessdetail'])]
- #[Assert\Length(max: 35, maxMessage: 'invalid-max-length')]
- private $rum;
- /**
- * Constructor
- */
- public function __construct()
- {
- }
- /**
- * Sets id.
- *
- * @param int $id
- *
- * @return $this
- */
- public function setId($id)
- {
- $this->id = $id;
- return $this;
- }
- /**
- * Gets id.
- *
- * @return int
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set accessId
- *
- * @param integer $accessId
- *
- * @return BillAccessDetail
- */
- public function setAccessId($accessId)
- {
- $this->accessId = $accessId;
- return $this;
- }
- /**
- * Get accessId
- *
- * @return integer
- */
- public function getAccessId()
- {
- return $this->accessId;
- }
- /**
- * Set customerId
- *
- * @param string $customerId
- *
- * @return BillAccessDetail
- */
- public function setCustomerId($customerId)
- {
- $this->customerId = $customerId;
- return $this;
- }
- /**
- * Get customerId
- *
- * @return string
- */
- public function getCustomerId()
- {
- return $this->customerId;
- }
- /**
- * Set familyQuotientSliceName
- *
- * @param string $familyQuotientSliceName
- *
- * @return BillAccessDetail
- */
- public function setFamilyQuotientSliceName($familyQuotientSliceName)
- {
- $this->familyQuotientSliceName = $familyQuotientSliceName;
- return $this;
- }
- /**
- * Get familyQuotientSliceName
- *
- * @return string
- */
- public function getFamilyQuotientSliceName()
- {
- return $this->familyQuotientSliceName;
- }
- /**
- * Set residenceAreaLabel
- *
- * @param string $residenceAreaLabel
- *
- * @return BillAccessDetail
- */
- public function setResidenceAreaLabel($residenceAreaLabel)
- {
- $this->residenceAreaLabel = $residenceAreaLabel;
- return $this;
- }
- /**
- * Get residenceAreaLabel
- *
- * @return string
- */
- public function getResidenceAreaLabel()
- {
- return $this->residenceAreaLabel;
- }
- /**
- * Set periodicityPayment
- *
- * @param string $periodicityPayment
- *
- * @return BillAccessDetail
- */
- public function setPeriodicityPayment($periodicityPayment)
- {
- $this->periodicityPayment = $periodicityPayment;
- return $this;
- }
- /**
- * Get periodicityPayment
- *
- * @return string
- */
- public function getPeriodicityPayment()
- {
- return $this->periodicityPayment;
- }
- /**
- * Set paymentChoice
- *
- * @param string $paymentChoice
- *
- * @return BillAccessDetail
- */
- public function setPaymentChoice($paymentChoice)
- {
- $this->paymentChoice = $paymentChoice;
- return $this;
- }
- /**
- * Get paymentChoice
- *
- * @return string
- */
- public function getPaymentChoice()
- {
- return $this->paymentChoice;
- }
- /**
- * Set streetAddress
- *
- * @param string $streetAddress
- *
- * @return BillAccessDetail
- */
- public function setStreetAddress($streetAddress)
- {
- $this->streetAddress = $streetAddress;
- return $this;
- }
- /**
- * Get streetAddress
- *
- * @return string
- */
- public function getStreetAddress()
- {
- return $this->streetAddress;
- }
- /**
- * Set postalCode
- *
- * @param string $postalCode
- *
- * @return BillAccessDetail
- */
- public function setPostalCode($postalCode)
- {
- $this->postalCode = $postalCode;
- return $this;
- }
- /**
- * Get postalCode
- *
- * @return string
- */
- public function getPostalCode()
- {
- return $this->postalCode;
- }
- /**
- * Set addressCity
- *
- * @param string $addressCity
- *
- * @return BillAccessDetail
- */
- public function setAddressCity($addressCity)
- {
- $this->addressCity = $addressCity;
- return $this;
- }
- /**
- * Get addressCity
- *
- * @return string
- */
- public function getAddressCity()
- {
- return $this->addressCity;
- }
- /**
- * Set bankName
- *
- * @param string $bankName
- *
- * @return BillAccessDetail
- */
- public function setBankName($bankName)
- {
- $this->bankName = $bankName;
- return $this;
- }
- /**
- * Get bankName
- *
- * @return string
- */
- public function getBankName()
- {
- return $this->bankName;
- }
- /**
- * Set bic
- *
- * @param string $bic
- *
- * @return BillAccessDetail
- */
- public function setBic($bic)
- {
- $this->bic = $bic;
- return $this;
- }
- /**
- * Get bic
- *
- * @return string
- */
- public function getBic()
- {
- return $this->bic;
- }
- /**
- * Set iban
- *
- * @param string $iban
- *
- * @return BillAccessDetail
- */
- public function setIban($iban)
- {
- $this->iban = $iban;
- return $this;
- }
- /**
- * Get iban
- *
- * @return string
- */
- public function getIban()
- {
- return $this->iban;
- }
- /**
- * Set holder
- *
- * @param string $holder
- *
- * @return BillAccessDetail
- */
- public function setHolder($holder)
- {
- $this->holder = $holder;
- return $this;
- }
- /**
- * Get holder
- *
- * @return string
- */
- public function getHolder()
- {
- return $this->holder;
- }
- /**
- * Set rum
- *
- * @param string $rum
- *
- * @return BillAccessDetail
- */
- public function setRum($rum)
- {
- $this->rum = $rum;
- return $this;
- }
- /**
- * Get rum
- *
- * @return string
- */
- public function getRum()
- {
- return $this->rum;
- }
- }
|