<?php
namespace App\Entity;
use App\Entity\File\File;
use App\Repository\OrderRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\MappedSuperclass()
* @ORM\Entity(repositoryClass=OrderRepository::class)
* @ORM\Table(name="`order`")
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="type", type="string")
* @ORM\DiscriminatorMap({"base" = "Order", "eshop" = "OrderEshop"})
* @ORM\HasLifecycleCallbacks
*/
class Order extends AbstractEntity
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $hash;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="orders")
* @ORM\JoinColumn(nullable=false)
*/
private $user;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="orders")
* @ORM\JoinColumn(nullable=true)
*/
private $merchant;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $merchantCode;
/**
* @ORM\Column(type="float")
*/
private $productCount;
/**
* @ORM\Column(type="float")
*/
private $productPrice;
/**
* @ORM\Column(type="float")
*/
private $productTax;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $name;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $surname;
/**
* @ORM\Column(type="string", length=3, nullable=true)
*/
private $personType;
/**
* @ORM\Column(type="string", length=32, nullable=true)
*/
private $nationality;
/**
* @ORM\Column(type="string", length=4, nullable=true)
*/
private $taxResidency;
/**
* @ORM\Column(type="string", length=512, nullable=true)
*/
private $address;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $street;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $town;
/**
* @ORM\Column(type="string", length=6, nullable=true)
*/
private $postal;
/**
* @ORM\Column(type="string", length=512, nullable=true)
*/
private $address2;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $street2;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $town2;
/**
* @ORM\Column(type="string", length=6, nullable=true)
*/
private $postal2;
/**
* @ORM\Column(type="string", length=32, nullable=true)
*/
private $ic;
/**
* @ORM\Column(type="string", length=36, nullable=true)
*/
private $dic;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $birthdate;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $phone;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $email;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $bankName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $bankAccount;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $swift;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $iban;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $idType;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $idNumber;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $idAuthor;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $idValidity;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $businessmanRegistrationPlace;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $businessmanRegistrationNumber;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $companyRegistrationPlace;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $companyRegistrationNumber;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $companyRegistrationPartition;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $companyRegistrationInsertion;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $companyRepresentantive;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $signPlaceUser;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $message;
/**
* @ORM\Column(type="boolean")
*/
private $consent1 = false;
/**
* @ORM\Column(type="boolean")
*/
private $consent2 = false;
/**
* @ORM\Column(type="boolean")
*/
private $consent3 = false;
/**
* @ORM\Column(type="boolean")
*/
private $consent4 = false;
/**
* @ORM\Column(type="boolean")
*/
private $consent5 = false;
/**
* @ORM\Column(type="boolean")
*/
private $consent6 = false;
/**
* @ORM\ManyToOne(targetEntity=Company::class, inversedBy="orders")
* @ORM\JoinColumn(nullable=true)
*/
private $company;
/**
* @ORM\ManyToOne(targetEntity=Product::class, inversedBy="orders")
* @ORM\JoinColumn(nullable=true)
*/
private $product;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $signDateUser;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $signPlaceCompany;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $signDateCompany;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $productInterest;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $productPriceTotal;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $productPriceTotalInWords;
/**
* @ORM\OneToMany(targetEntity=File::class, mappedBy="orderEnt")
*/
private $files;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $apiValidTill;
/**
* @ORM\Column(type="string", length=128, nullable=true)
*/
private $idTypeOther;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $sameAddress = false;
/**
* @ORM\Column(type="boolean")
*/
private $deleted = false;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $dueDate;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $whatGenerated;
/**
* @ORM\Column(type="string", length=6, nullable=true)
*/
private $bankCode;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $apiIncome;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
*/
private $signed = false;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $signed_date;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
*/
private $paid = false;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $paid_date;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
*/
private $vpDelivery = false;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $vpDelivery_date;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
*/
private $sent = false;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $sent_date;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
*/
private $storno = false;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $stornoDate;
/**
* @ORM\Column(type="string", length=64, nullable=true)
*/
private $raynetId;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
*/
private $reinvest = false;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default": "0"})
*/
private $paid2 = false;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $paidDate2;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $productPriceSecondaryTotal;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $productPriceSecondaryTotalInWords;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $inProgress = false;
/**
* @ORM\Column(type="date", nullable=true)
*/
private $inProgressDate;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $sequenceNumber;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $vpProtocolSent;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $vpProtocolBlockedForSend;
/**
* @ORM\OneToMany(targetEntity=InterestPaidoff::class, mappedBy="orderEntity")
*/
private $interestPaidoffs;
/**
* @ORM\Column(type="string", length=15, nullable=true)
*/
private $birthnumber;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $originOfFunds;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $originOfFundsCustom;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $politicallyExposedPerson;
/**
* Order constructor.
*/
public function __construct()
{
$this->files = new ArrayCollection();
$this->interestPaidoffs = new ArrayCollection();
}
/**
* Add hash to order if is not set
*
* @ORM\PrePersist
* @ORM\PreUpdate
*/
public function onPrePersist()
{
parent::onPrePersist();
if (is_null($this->hash)) {
$this->setHash(sha1(md5(time() . time())));
}
}
/**
* @return string (ID:{$this->getId()}) {$this->getName()}
*/
public function __toString(): string
{
return "(ID:{$this->getId()}) {$this->getName()}";
}
/**
* @return int|null
*/
public function getId(): ?int
{
return $this->id;
}
/**
* @return string|null
*/
public function getHash(): ?string
{
return $this->hash;
}
/**
* @param string $hash
* @return $this
*/
public function setHash(string $hash): self
{
$this->hash = $hash;
return $this;
}
/**
* @return User|null
*/
public function getUser(): ?User
{
return $this->user;
}
/**
* @param User|null $user
* @return $this
*/
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
/**
* @return User|null
*/
public function getMerchant(): ?User
{
return $this->merchant;
}
/**
* @param User|null $merchant
* @return $this
*/
public function setMerchant(?User $merchant): self
{
$this->merchant = $merchant;
return $this;
}
/**
* @return string|null
*/
public function getMerchantCode(): ?string
{
return $this->merchantCode;
}
/**
* @param string|null $merchantCode
* @return $this
*/
public function setMerchantCode(?string $merchantCode): self
{
$this->merchantCode = $merchantCode;
return $this;
}
/**
* @return float|null
*/
public function getProductCount(): ?float
{
return $this->productCount;
}
/**
* @param float $productCount
* @return $this
*/
public function setProductCount(float $productCount): self
{
$productCount = str_replace(',', '.', $productCount);
$this->productCount = $productCount;
return $this;
}
/**
* @return float|null
*/
public function getProductPrice(): ?float
{
return $this->productPrice;
}
/**
* @param float $productPrice
* @return $this
*/
public function setProductPrice(float $productPrice): self
{
$productPrice = str_replace(',', '.', $productPrice);
$this->productPrice = $productPrice;
return $this;
}
/**
* @return float|null
*/
public function getProductTax(): ?float
{
return $this->productTax;
}
/**
* @param float $productTax
* @return $this
*/
public function setProductTax(float $productTax): self
{
$productTax = str_replace(',', '.', $productTax);
$this->productTax = $productTax;
return $this;
}
/**
* @return mixed
*/
public function getName()
{
return $this->name;
}
/**
* @param mixed $name
* @return Order
*/
public function setName($name): self
{
$this->name = $name;
return $this;
}
/**
* @return mixed
*/
public function getSurname()
{
return $this->surname;
}
/**
* @param mixed $surname
* @return Order
*/
public function setSurname($surname): self
{
$this->surname = $surname;
return $this;
}
/**
* @return mixed
*/
public function getPersonType()
{
return $this->personType;
}
/**
* @param mixed $personType
* @return Order
*/
public function setPersonType($personType): self
{
$this->personType = $personType;
return $this;
}
/**
* @return mixed
*/
public function getNationality()
{
return $this->nationality;
}
/**
* @param mixed $nationality
*/
public function setNationality($nationality): void
{
$this->nationality = $nationality;
}
/**
* @return mixed
*/
public function getTaxResidency()
{
return $this->taxResidency;
}
/**
* @param mixed $taxResidency
*/
public function setTaxResidency($taxResidency): void
{
$this->taxResidency = $taxResidency;
}
/**
* @return mixed
*/
public function getAddress()
{
if (is_null($this->address)) {
return
trim($this->getStreet() . ", " .
$this->getTown() . ", " .
$this->getPostal(), ", ");
}
return $this->address;
}
/**
* @param mixed $address
*/
public function setAddress($address): void
{
$this->address = $address;
}
/**
* @return mixed
*/
public function getStreet()
{
return $this->street;
}
/**
* @param mixed $street
*/
public function setStreet($street): self
{
$this->street = $street;
return $this;
}
/**
* @return mixed
*/
public function getTown()
{
return $this->town;
}
/**
* @param mixed $town
*/
public function setTown($town): self
{
$this->town = $town;
return $this;
}
/**
* @return mixed
*/
public function getPostal()
{
return $this->postal;
}
/**
* @param mixed $postal
*/
public function setPostal($postal): self
{
$this->postal = $postal;
return $this;
}
/**
* @return mixed
*/
public function getAddress2()
{
if (is_null($this->address2)) {
return
trim($this->getStreet2() . ", " .
$this->getTown2() . ", " .
$this->getPostal2(), ", ");
}
return $this->address2;
}
/**
* @param mixed $address2
*/
public function setAddress2($address2): self
{
$this->address2 = $address2;
return $this;
}
/**
* @return mixed
*/
public function getStreet2()
{
return $this->street2;
}
/**
* @param mixed $street2
*/
public function setStreet2($street2): self
{
$this->street2 = $street2;
return $this;
}
/**
* @return mixed
*/
public function getTown2()
{
return $this->town2;
}
/**
* @param mixed $town2
*/
public function setTown2($town2): self
{
$this->town2 = $town2;
return $this;
}
/**
* @return mixed
*/
public function getPostal2()
{
return $this->postal2;
}
/**
* @param mixed $postal2
*/
public function setPostal2($postal2): self
{
$this->postal2 = $postal2;
return $this;
}
/**
* @return mixed
*/
public function getIc()
{
return $this->ic;
}
/**
* @param mixed $ic
*/
public function setIc($ic): self
{
$this->ic = $ic;
return $this;
}
/**
* @return mixed
*/
public function getDic()
{
return $this->dic;
}
/**
* @param mixed $dic
*/
public function setDic($dic): void
{
$this->dic = $dic;
}
/**
* @return mixed
*/
public function getBirthdate()
{
if($this->getProduct() != null && $this->getProduct()->isUseAdamna() && $this->getBirthnumber() != null){
$birthnumber = $this->getBirthnumber();
$exploded = explode("/", $birthnumber);
$birthdatePart0 = str_split($exploded[0], 2);
return \DateTime::createFromFormat(
'y-m-d',
$birthdatePart0[0] . '-' . $birthdatePart0[1] . '-' . $birthdatePart0[2]
);
}
return $this->birthdate;
}
/**
* @param mixed $birthdate
*/
public function setBirthdate($birthdate): void
{
$this->birthdate = $birthdate;
}
/**
* @return mixed
*/
public function getPhone()
{
return $this->phone;
}
/**
* @param mixed $phone
* @return Order
*/
public function setPhone($phone): self
{
$this->phone = $phone;
return $this;
}
/**
* @return mixed
*/
public function getEmail()
{
return $this->email;
}
/**
* @param mixed $email
* @return Order
*/
public function setEmail($email): self
{
$this->email = $email;
return $this;
}
/**
* @return mixed
*/
public function getBankName()
{
return $this->bankName;
}
/**
* @param mixed $bankName
*/
public function setBankName($bankName): void
{
$this->bankName = $bankName;
}
/**
* @return mixed
*/
public function getBankAccount()
{
return $this->bankAccount;
}
/**
* @param mixed $bankAccount
*/
public function setBankAccount($bankAccount): void
{
$this->bankAccount = $bankAccount;
}
/**
* @return mixed
*/
public function getSwift()
{
return $this->swift;
}
/**
* @param mixed $swift
*/
public function setSwift($swift): void
{
$this->swift = $swift;
}
/**
* @return mixed
*/
public function getIban()
{
return $this->iban;
}
/**
* @param mixed $iban
*/
public function setIban($iban): void
{
$this->iban = $iban;
}
/**
* @return mixed
*/
public function getIdType()
{
return $this->idType;
}
/**
* @param mixed $idType
*/
public function setIdType($idType): void
{
$this->idType = $idType;
}
/**
* @return mixed
*/
public function getIdNumber()
{
return $this->idNumber;
}
/**
* @param mixed $idNumber
*/
public function setIdNumber($idNumber): void
{
$this->idNumber = $idNumber;
}
/**
* @return mixed
*/
public function getIdAuthor()
{
return $this->idAuthor;
}
/**
* @param mixed $idAuthor
*/
public function setIdAuthor($idAuthor): void
{
$this->idAuthor = $idAuthor;
}
/**
* @return mixed
*/
public function getIdValidity()
{
return $this->idValidity;
}
/**
* @param mixed $idValidity
*/
public function setIdValidity($idValidity): void
{
$this->idValidity = $idValidity;
}
/**
* @return mixed
*/
public function getBusinessmanRegistrationPlace()
{
return $this->businessmanRegistrationPlace;
}
/**
* @param mixed $businessmanRegistrationPlace
*/
public function setBusinessmanRegistrationPlace($businessmanRegistrationPlace): void
{
$this->businessmanRegistrationPlace = $businessmanRegistrationPlace;
}
/**
* @return mixed
*/
public function getBusinessmanRegistrationNumber()
{
return $this->businessmanRegistrationNumber;
}
/**
* @param mixed $businessmanRegistrationNumber
*/
public function setBusinessmanRegistrationNumber($businessmanRegistrationNumber): void
{
$this->businessmanRegistrationNumber = $businessmanRegistrationNumber;
}
/**
* @return mixed
*/
public function getCompanyRegistrationPlace()
{
return $this->companyRegistrationPlace;
}
/**
* @param mixed $companyRegistrationPlace
*/
public function setCompanyRegistrationPlace($companyRegistrationPlace): void
{
$this->companyRegistrationPlace = $companyRegistrationPlace;
}
/**
* @return mixed
*/
public function getCompanyRegistrationNumber()
{
return $this->companyRegistrationNumber;
}
/**
* @param mixed $companyRegistrationNumber
*/
public function setCompanyRegistrationNumber($companyRegistrationNumber): void
{
$this->companyRegistrationNumber = $companyRegistrationNumber;
}
/**
* @return mixed
*/
public function getCompanyRegistrationPartition()
{
return $this->companyRegistrationPartition;
}
/**
* @param mixed $companyRegistrationPartition
*/
public function setCompanyRegistrationPartition($companyRegistrationPartition): void
{
$this->companyRegistrationPartition = $companyRegistrationPartition;
}
/**
* @return mixed
*/
public function getCompanyRegistrationInsertion()
{
return $this->companyRegistrationInsertion;
}
/**
* @param mixed $companyRegistrationInsertion
*/
public function setCompanyRegistrationInsertion($companyRegistrationInsertion): void
{
$this->companyRegistrationInsertion = $companyRegistrationInsertion;
}
/**
* @return mixed
*/
public function getCompanyRepresentantive()
{
return $this->companyRepresentantive;
}
/**
* @param mixed $companyRepresentantive
*/
public function setCompanyRepresentantive($companyRepresentantive): void
{
$this->companyRepresentantive = $companyRepresentantive;
}
/**
* @return string|null
*/
public function getSignPlaceUser(): ?string
{
return $this->signPlaceUser;
}
/**
* @param string $signPlaceUser
* @return $this
*/
public function setSignPlaceUser(string $signPlaceUser): self
{
$this->signPlaceUser = $signPlaceUser;
return $this;
}
/**
* @return string|null
*/
public function getMessage(): ?string
{
return $this->message;
}
/**
* @param string|null $message
* @return $this
*/
public function setMessage(?string $message): self
{
$this->message = $message;
return $this;
}
/**
* @return bool|null
*/
public function isConsent1(): ?bool
{
return (bool)$this->consent1;
}
/**
* @param bool $consent1
* @return $this
*/
public function setConsent1(bool $consent1): self
{
$this->consent1 = $consent1;
return $this;
}
/**
* @return mixed
*/
public function getConsent2()
{
return $this->consent2;
}
/**
* @param mixed $consent2
* @return Order
*/
public function setConsent2(bool $consent2): self
{
$this->consent2 = $consent2;
return $this;
}
/**
* @return mixed
*/
public function getConsent3()
{
return $this->consent3;
}
/**
* @param mixed $consent3
* @return Order
*/
public function setConsent3($consent3): self
{
$this->consent3 = $consent3;
return $this;
}
/**
* @return mixed
*/
public function getConsent4()
{
return $this->consent4;
}
/**
* @param mixed $consent4
* @return Order
*/
public function setConsent4($consent4): self
{
$this->consent4 = $consent4;
return $this;
}
/**
* @return mixed
*/
public function getConsent5()
{
return $this->consent5;
}
/**
* @param mixed $consent5
* @return Order
*/
public function setConsent5($consent5): self
{
$this->consent5 = $consent5;
return $this;
}
/**
* @return mixed
*/
public function getConsent6()
{
return $this->consent6;
}
/**
* @param mixed $consent6
* @return Order
*/
public function setConsent6($consent6): self
{
$this->consent6 = $consent6;
return $this;
}
/**
* @return Company|null
*/
public function getCompany(): ?Company
{
return $this->company;
}
/**
* @param Company|null $company
* @return $this
*/
public function setCompany(?Company $company): self
{
$this->company = $company;
return $this;
}
/**
* @return Product|null
*/
public function getProduct(): ?Product
{
return $this->product;
}
/**
* @param Product|null $product
* @return $this
*/
public function setProduct(?Product $product): self
{
$this->product = $product;
return $this;
}
public function getSignDateUser(): ?\DateTimeInterface
{
return $this->signDateUser;
}
public function setSignDateUser(?\DateTimeInterface $signDateUser): self
{
$this->signDateUser = $signDateUser;
return $this;
}
public function getSignPlaceCompany(): ?string
{
return $this->signPlaceCompany;
}
public function setSignPlaceCompany(?string $signPlaceCompany): self
{
$this->signPlaceCompany = $signPlaceCompany;
return $this;
}
public function getSignDateCompany(): ?\DateTimeInterface
{
return $this->signDateCompany;
}
public function setSignDateCompany(?\DateTimeInterface $signDateCompany): self
{
$this->signDateCompany = $signDateCompany;
return $this;
}
public function getProductInterest(): ?float
{
return $this->productInterest;
}
public function setProductInterest($productInterest): self
{
$productInterest = str_replace(',', '.', $productInterest);
$this->productInterest = (float)$productInterest;
return $this;
}
public function getProductPriceTotal(): ?float
{
return $this->productPriceTotal;
}
public function setProductPriceTotal(?float $productPriceTotal): self
{
$productPriceTotal = str_replace(',', '.', $productPriceTotal);
$this->productPriceTotal = $productPriceTotal;
return $this;
}
public function getProductPriceTotalInWords(): ?string
{
return $this->productPriceTotalInWords;
}
public function setProductPriceTotalInWords(?string $productPriceTotalInWords): self
{
$this->productPriceTotalInWords = $productPriceTotalInWords;
return $this;
}
/**
* @return Collection<int, File>
*/
public function getFiles(): Collection
{
return $this->files;
}
public function addFile(File $file): self
{
if (!$this->files->contains($file)) {
$this->files[] = $file;
$file->setOrderEnt($this);
}
return $this;
}
public function removeFile(File $file): self
{
if ($this->files->removeElement($file)) {
// set the owning side to null (unless already changed)
if ($file->getOrderEnt() === $this) {
$file->setOrderEnt(null);
}
}
return $this;
}
public function getApiValidTill(): ?\DateTimeInterface
{
return $this->apiValidTill;
}
public function setApiValidTill(?\DateTimeInterface $apiValidTill): self
{
$this->apiValidTill = $apiValidTill;
return $this;
}
public function getIdTypeOther(): ?string
{
return $this->idTypeOther;
}
public function setIdTypeOther(?string $idTypeOther): self
{
$this->idTypeOther = $idTypeOther;
return $this;
}
public function isSameAddress(): ?bool
{
return (bool)$this->sameAddress;
}
public function setSameAddress(?bool $sameAddress): self
{
$this->sameAddress = $sameAddress;
return $this;
}
public function isDeleted(): ?bool
{
return (bool)$this->deleted;
}
public function setDeleted(bool $deleted): self
{
$this->deleted = $deleted;
return $this;
}
public function getDueDate(): ?\DateTimeInterface
{
return $this->dueDate;
}
public function setDueDate(?\DateTimeInterface $dueDate): self
{
$this->dueDate = $dueDate;
return $this;
}
public function getWhatGenerated(): ?string
{
return $this->whatGenerated;
}
public function setWhatGenerated(?string $whatGenerated): self
{
$this->whatGenerated = $whatGenerated;
return $this;
}
public function getBankCode(): ?string
{
return $this->bankCode;
}
public function setBankCode(?string $bankCode): self
{
$this->bankCode = $bankCode;
return $this;
}
public function getApiIncome(): ?string
{
return $this->apiIncome;
}
public function setApiIncome(?string $apiIncome): self
{
$this->apiIncome = $apiIncome;
return $this;
}
public function isSigned(): ?bool
{
return (boolean)$this->signed;
}
public function setSigned(?bool $signed): self
{
$this->signed = filter_var($signed, FILTER_VALIDATE_BOOLEAN);
return $this;
}
public function getSignedDate(): ?\DateTimeInterface
{
return $this->signed_date;
}
public function setSignedDate(?\DateTimeInterface $signed_date): self
{
$this->signed_date = $signed_date;
return $this;
}
public function isPaid(): ?bool
{
return (boolean)$this->paid;
}
public function setPaid(?bool $paid): self
{
$this->paid = filter_var($paid, FILTER_VALIDATE_BOOLEAN);
return $this;
}
public function getPaidDate(): ?\DateTimeInterface
{
return $this->paid_date;
}
public function setPaidDate(?\DateTimeInterface $paid_date): self
{
$this->paid_date = $paid_date;
return $this;
}
public function isVpDelivery(): ?bool
{
return (boolean)$this->vpDelivery;
}
public function setVpDelivery(?bool $delivery): self
{
$this->vpDelivery = filter_var($delivery, FILTER_VALIDATE_BOOLEAN);
return $this;
}
public function getVpDeliveryDate(): ?\DateTimeInterface
{
return $this->vpDelivery_date;
}
public function setVpDeliveryDate(?\DateTimeInterface $vpDelivery_date): self
{
$this->vpDelivery_date = $vpDelivery_date;
return $this;
}
public function isSent(): ?bool
{
return (boolean)$this->sent;
}
public function setSent(?bool $sent): self
{
$this->sent = filter_var($sent, FILTER_VALIDATE_BOOLEAN);
return $this;
}
public function getSentDate(): ?\DateTimeInterface
{
return $this->sent_date;
}
public function setSentDate(?\DateTimeInterface $sent_date): self
{
$this->sent_date = $sent_date;
return $this;
}
public function isStorno(): ?bool
{
return (boolean)$this->storno;
}
public function setStorno(?bool $storno): self
{
$this->storno = (bool)$storno;
return $this;
}
public function getStornoDate(): ?\DateTimeInterface
{
return $this->stornoDate;
}
public function setStornoDate(?\DateTimeInterface $stornoDate): self
{
$this->stornoDate = $stornoDate;
return $this;
}
public function getRaynetId(): ?string
{
return $this->raynetId;
}
public function setRaynetId(?string $raynetId): self
{
$this->raynetId = $raynetId;
return $this;
}
public function isReinvest(): ?bool
{
return (bool)$this->reinvest;
}
public function setReinvest(?bool $reinvest): self
{
$this->reinvest = $reinvest;
return $this;
}
public function isPaid2(): ?bool
{
return (bool)$this->paid2;
}
public function setPaid2(?bool $paid2): self
{
$this->paid2 = $paid2;
return $this;
}
public function getPaidDate2(): ?\DateTimeInterface
{
return $this->paidDate2;
}
public function setPaidDate2(?\DateTimeInterface $paidDate2): self
{
$this->paidDate2 = $paidDate2;
return $this;
}
public function getProductPriceSecondaryTotal(): ?float
{
return $this->productPriceSecondaryTotal;
}
public function setProductPriceSecondaryTotal(?float $productPriceSecondaryTotal): self
{
$this->productPriceSecondaryTotal = $productPriceSecondaryTotal;
return $this;
}
public function getProductPriceSecondaryTotalInWords(): ?string
{
return $this->productPriceSecondaryTotalInWords;
}
public function setProductPriceSecondaryTotalInWords(?string $productPriceSecondaryTotalInWords): self
{
$this->productPriceSecondaryTotalInWords = $productPriceSecondaryTotalInWords;
return $this;
}
public function isInProgress(): ?bool
{
return (bool)$this->inProgress;
}
public function setInProgress(?bool $inProgress): self
{
$this->inProgress = $inProgress;
return $this;
}
public function getInProgressDate(): ?\DateTimeInterface
{
return $this->inProgressDate;
}
public function setInProgressDate(?\DateTimeInterface $inProgressDate): self
{
$this->inProgressDate = $inProgressDate;
return $this;
}
public function getSequenceNumber(): ?string
{
return $this->sequenceNumber;
}
public function setSequenceNumber(?string $sequenceNumber): self
{
$this->sequenceNumber = $sequenceNumber;
return $this;
}
public function getVpProtocolSent(): ?\DateTimeInterface
{
return $this->vpProtocolSent;
}
public function setVpProtocolSent(?\DateTimeInterface $vpProtocolSent): self
{
$this->vpProtocolSent = $vpProtocolSent;
return $this;
}
public function isVpProtocolBlockedForSend(): ?bool
{
return $this->vpProtocolBlockedForSend;
}
public function setVpProtocolBlockedForSend(?bool $vpProtocolBlockedForSend): self
{
$this->vpProtocolBlockedForSend = $vpProtocolBlockedForSend;
return $this;
}
/**
* @return Collection<int, InterestPaidoff>
*/
public function getInterestPaidoffs(): Collection
{
return $this->interestPaidoffs;
}
public function addInterestPaidoff(InterestPaidoff $interestPaidoff): self
{
if (!$this->interestPaidoffs->contains($interestPaidoff)) {
$this->interestPaidoffs[] = $interestPaidoff;
$interestPaidoff->setOrderEntity($this);
}
return $this;
}
public function removeInterestPaidoff(InterestPaidoff $interestPaidoff): self
{
if ($this->interestPaidoffs->removeElement($interestPaidoff)) {
// set the owning side to null (unless already changed)
if ($interestPaidoff->getOrderEntity() === $this) {
$interestPaidoff->setOrderEntity(null);
}
}
return $this;
}
public function getBirthnumber(): ?string
{
return $this->birthnumber;
}
public function setBirthnumber(?string $birthnumber): self
{
$this->birthnumber = $birthnumber;
return $this;
}
public function getOriginOfFunds(): ?string
{
return $this->originOfFunds;
}
public function setOriginOfFunds(?string $originOfFunds): self
{
$this->originOfFunds = $originOfFunds;
return $this;
}
public function getOriginOfFundsCustom(): ?string
{
return $this->originOfFundsCustom;
}
public function setOriginOfFundsCustom(?string $originOfFundsCustom): self
{
$this->originOfFundsCustom = $originOfFundsCustom;
return $this;
}
public function isPoliticallyExposedPerson(): ?bool
{
return $this->politicallyExposedPerson;
}
public function setPoliticallyExposedPerson(?bool $politicallyExposedPerson): self
{
$this->politicallyExposedPerson = $politicallyExposedPerson;
return $this;
}
}