src/Entity/PreOrder.php line 48

  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\PreOrderRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use Symfony\Component\Serializer\Annotation\Groups;
  10. use Symfony\Component\Serializer\Annotation\MaxDepth;
  11. use ApiPlatform\Metadata\ApiFilter;
  12. use ApiPlatform\Doctrine\Orm\Filter\SearchFilter;
  13. use ApiPlatform\Serializer\Filter\GroupFilter;
  14. use Symfony\Bridge\Doctrine\Types\UlidType;
  15. use Symfony\Component\Uid\Ulid;
  16. use Symfony\Bridge\Doctrine\IdGenerator\UlidGenerator;
  17. #[ORM\Entity(repositoryClassPreOrderRepository::class)]
  18. #[ApiResource(
  19.     normalizationContext: ['groups' => ['pre_order:read']],
  20.     denormalizationContext: ['groups' => ['pre_order:write']],
  21.     order: ['id' => 'DESC'],
  22. )]
  23. #[ORM\HasLifecycleCallbacks
  24. #[ApiFilter(
  25.     SearchFilter::class, 
  26.     properties: [
  27.         'code1c' => 'exact'
  28.         'account.name' => 'ipartial'
  29.         'account.manager' => 'exact'
  30.         'manager.username' => 'ipartial'
  31.         'manager.firstName' => 'ipartial'
  32.         'manager.lastName' => 'ipartial'
  33.         'synced' => 'exact',  
  34.         'client.id' => 'exact',
  35.         'ulid' => 'exact',
  36.     ]
  37. )]
  38. #[ApiFilter(GroupFilter::class, arguments: ['parameterName' => 'g''overrideDefaultGroups' => true])]
  39. class PreOrder
  40. {
  41.     #[ORM\Id]
  42.     #[ORM\GeneratedValue]
  43.     #[ORM\Column]
  44.     #[Groups(['pre_order_product:read''pre_order:read''pre_order:write''order:read''order_product:read''load_invoice:read'])]
  45.     private ?int $id null;
  46.     #[Groups(['pre_order:read''pre_order:write','order:read''order_product:read''load_invoice:read'])]
  47.     #[ORM\Column(length255nullabletrue)]
  48.     private ?string $name null;
  49.     #[Groups(['pre_order:read''pre_order:write''order:read''order_product:read''load_invoice:read'])]
  50.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  51.     private ?\DateTimeInterface $dateEntered null;
  52.     #[Groups(['pre_order:read''pre_order:write'])]
  53.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  54.     private ?\DateTimeInterface $dateModified null;
  55.     #[Groups(['pre_order:read''pre_order:write'])]
  56.     #[ORM\ManyToOne]
  57.     #[MaxDepth(1)]
  58.     private ?User $createdBy null;
  59.     // #[Groups(['pre_order:read', 'pre_order:write', 'order:read', 'order_product:read', 'load_invoice:read'])]
  60.     #[ORM\ManyToOne]
  61.     #[MaxDepth(1)]
  62.     private ?User $modifiedUser null;
  63.     #[Groups(['pre_order:read''pre_order:write''order:read''order_product:read''load_invoice:read'])]
  64.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  65.     private ?\DateTimeInterface $dateOrder null;
  66.     #[Groups(['pre_order:read''pre_order:write'])]
  67.     #[ORM\Column(length100nullabletrue)]
  68.     private ?string $status null;
  69.     #[Groups(['pre_order:read''pre_order:write'])]
  70.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  71.     private ?string $description null;
  72.     #[Groups(['pre_order:read''pre_order:write'])]
  73.     #[ORM\Column(length20nullabletrue)]
  74.     private ?string $paymentMethod null;
  75.     #[Groups(['pre_order:read''pre_order:write''order:read''order_product:read''load_invoice:read'])]
  76.     #[ORM\Column(nullabletrue)]
  77.     private ?float $sumOrdered null;
  78.     #[Groups(['pre_order:read''pre_order:write'])]
  79.     #[ORM\Column(length10nullabletrue)]
  80.     private ?string $curency null;
  81.     #[Groups(['pre_order:read''pre_order:write'])]
  82.     #[ORM\Column(nullabletrue)]
  83.     private ?float $curencyRate null;
  84.     #[Groups(['pre_order:read''pre_order:write'])]
  85.     #[ORM\Column(nullabletrue)]
  86.     private ?float $discountTotal null;
  87.     #[Groups(['pre_order:read''pre_order:write'])]
  88.     #[ORM\Column(nullabletrue)]
  89.     private ?int $discountPercent null;
  90.     #[Groups(['pre_order:read''pre_order:write'])]
  91.     #[ORM\Column(length100nullabletrue)]
  92.     private ?string $shippingAddressStreet null;
  93.     #[Groups(['pre_order:read''pre_order:write'])]
  94.     #[ORM\Column(length100nullabletrue)]
  95.     private ?string $shippingAddressCity null;
  96.     #[Groups(['pre_order:read''pre_order:write'])]
  97.     #[ORM\Column(length100nullabletrue)]
  98.     private ?string $shippingAddressBuilding null;
  99.     #[ORM\Column(length100nullabletrue)]
  100.     private ?string $shippingAddressPost null;
  101.     #[Groups(['pre_order:read''pre_order:write'])]
  102.     #[ORM\Column(length100nullabletrue)]
  103.     private ?string $shippingAddressCountry null;
  104.     #[Groups(['pre_order:read''pre_order:write'])]
  105.     #[ORM\Column(length100nullabletrue)]
  106.     private ?string $shippingAddressDate null;
  107.     #[Groups(['pre_order:read''pre_order:write'])]
  108.     #[ORM\Column(nullabletrue)]
  109.     private ?int $copyOrderId null;
  110.     #[MaxDepth(3)]
  111.     #[Groups(['pre_order:read''pre_order:write'])]
  112.     #[ORM\OneToMany(mappedBy'preOrder'targetEntityPreOrderProduct::class, cascade:['persist'])]
  113.     private Collection $preOrderProducts;
  114.     #[MaxDepth(1)]
  115.     #[Groups(['pre_order:read''pre_order:write'])]
  116.     #[ORM\OneToMany(mappedBy'preOrder'targetEntityOrders::class)]
  117.     private Collection $orders;
  118.     #[MaxDepth(1)]
  119.     #[Groups(['pre_order:read''pre_order:write'])]
  120.     #[ORM\OneToMany(mappedBy'pre_order'targetEntityLoadInvoice::class)]
  121.     private Collection $loadInvoices;
  122.     #[MaxDepth(1)]
  123.     #[Groups(['pre_order:write',   'load_invoice:read'])]
  124.     #[ORM\OneToMany(mappedBy'pre_order'targetEntityAccepted::class)]
  125.     private Collection $accepteds;
  126.     #[MaxDepth(1)]
  127.     #[Groups(['pre_order:write'])]
  128.     #[ORM\OneToMany(mappedBy'pre_order_product'targetEntityLoadInvoiceProduct::class)]
  129.     private Collection $loadInvoiceProducts;
  130.     #[Groups(['pre_order:read''pre_order:write'])]
  131.     #[ORM\ManyToOne(inversedBy'preOrders')]
  132.     #[MaxDepth(1)]
  133.     private ?Accounts $account null;
  134.     #[Groups(['pre_order:read''pre_order:write'])]
  135.     #[ORM\Column(nullabletrue)]
  136.     private ?bool $synced false;
  137.     #[Groups(['pre_order:client''pre_order:write'])]
  138.     #[ORM\ManyToOne(inversedBy'preOrders')]
  139.     private ?User $client null
  140.     #[Groups(['pre_order:read''pre_order:write'])]
  141.     #[ORM\ManyToOne(inversedBy'ManagerPreOrders')]
  142.     private ?User $manager null;
  143.     #[Groups(['pre_order:read''pre_order:write'])]
  144.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  145.     private ?\DateTimeInterface $dateDelivery null;
  146.     #[Groups(['pre_order:read''pre_order:write'])]
  147.     #[ORM\Column(length255nullabletrue)]
  148.     private ?string $deliveryMethod null;
  149.     #[Groups(['pre_order:read''pre_order:write'])]
  150.     #[ORM\Column(length100nullabletrue)]
  151.     private ?string $postOffice null;
  152.     #[Groups(['pre_order:read''pre_order:write'])]
  153.     #[ORM\Column(length255nullabletrue)]
  154.     private ?string $storeAddress null;
  155.     #[Groups(['pre_order:read''pre_order:write'])]
  156.     #[ORM\Column(length255nullabletrue)]
  157.     private ?string $commentBuilding null;
  158.     #[Groups(['pre_order:read''pre_order:write'])]
  159.     #[ORM\Column(nullabletrue)]
  160.     private ?bool $notCall null;
  161.     #
  162.     #[Groups(['pre_order_product:read''pre_order:read''pre_order:write''order:read''order_product:read''load_invoice:read'])]
  163.     #[ORM\ManyToMany(targetEntityFees::class, mappedBy'pre_orders')]
  164.     private Collection $fees;
  165.     #[Groups(['pre_order:read''pre_order:write'])]
  166.     #[ORM\ManyToOne(inversedBy'pre_orders')]
  167.     private ?Coupons $coupons null;
  168.     #[Groups(['pre_order:read''pre_order:write'])]
  169.     #[ORM\ManyToOne(inversedBy'preOrders')]
  170.     private ?AccountAddress $address null;
  171.     #[Groups(['pre_order:read''pre_order:write'])]
  172.     #[ORM\Column(length100nullabletrue)]
  173.     private ?string $shippingMethod null;
  174.     #[Groups(['pre_order:read''pre_order:write'])]
  175.     #[ORM\Column(nullabletrue)]
  176.     private ?bool $dontCallMe null;
  177.     #[ORM\Column(typeTypes::GUIDnullabletrue)]
  178.     private ?string $guid null;
  179.     #[ORM\Column(type'ulid'nullabletrue)]
  180.     private ?Ulid $ulid null;
  181.     #[Groups(['pre_order_product:read''pre_order:read''pre_order:write''order:read''order_product:read''load_invoice:read'])]
  182.     #[ORM\Column(length100nullabletrue)]
  183.     private ?string $paymentStatus null;
  184.     #[Groups(['pre_order:read''pre_order:write'])]
  185.     #[ORM\Column(nullabletrue)]
  186.     private ?array $shippingReceiver null;
  187.     #[Groups(['pre_order:read''pre_order:write'])]
  188.     #[ORM\Column(nullabletrue)]
  189.     private ?array $paymentData null;
  190.     #[Groups(['pre_order:read''pre_order:write''order:read''order_product:read''load_invoice:read'])]
  191.     #[ORM\Column(length255nullabletrue)]
  192.     private ?string $ttn null;
  193.     public function __construct()
  194.     {
  195.         $this->preOrderProducts = new ArrayCollection();
  196.         $this->orders = new ArrayCollection();
  197.         $this->loadInvoices = new ArrayCollection();
  198.         $this->accepteds = new ArrayCollection();
  199.         $this->loadInvoiceProducts = new ArrayCollection();
  200.         $this->fees = new ArrayCollection();
  201.     }
  202.     public function getId(): ?int
  203.     {
  204.         return $this->id;
  205.     }
  206.     public function getName(): ?string
  207.     {
  208.         return $this->name;
  209.     }
  210.     public function setName(?string $name): self
  211.     {
  212.         $this->name $name;
  213.         return $this;
  214.     }
  215.     public function getDateEntered(): ?\DateTimeInterface
  216.     {
  217.         return $this->dateEntered;
  218.     }
  219.     public function setDateEntered(?\DateTimeInterface $dateEntered): self
  220.     {
  221.         $this->dateEntered $dateEntered;
  222.         return $this;
  223.     }
  224.     public function getDateModified(): ?\DateTimeInterface
  225.     {
  226.         return $this->dateModified;
  227.     }
  228.     public function setDateModified(?\DateTimeInterface $dateModified): self
  229.     {
  230.         $this->dateModified $dateModified;
  231.         return $this;
  232.     }
  233.     public function getCreatedBy(): ?User
  234.     {
  235.         return $this->createdBy;
  236.     }
  237.     public function setCreatedBy(?User $createdBy): self
  238.     {
  239.         $this->createdBy $createdBy;
  240.         return $this;
  241.     }
  242.     public function getModifiedUser(): ?User
  243.     {
  244.         return $this->modifiedUser;
  245.     }
  246.     public function setModifiedUser(?User $modifiedUser): self
  247.     {
  248.         $this->modifiedUser $modifiedUser;
  249.         return $this;
  250.     }
  251.     public function getDateOrder(): ?\DateTimeInterface
  252.     {
  253.         return $this->dateOrder;
  254.     }
  255.     public function setDateOrder(?\DateTimeInterface $dateOrder): self
  256.     {
  257.         $this->dateOrder $dateOrder;
  258.         return $this;
  259.     }
  260.     public function getStatus(): ?string
  261.     {
  262.         return $this->status;
  263.     }
  264.     public function setStatus(?string $status): self
  265.     {
  266.         $this->status $status;
  267.         return $this;
  268.     }
  269.     public function getDescription(): ?string
  270.     {
  271.         return $this->description;
  272.     }
  273.     public function setDescription(?string $description): self
  274.     {
  275.         $this->description $description;
  276.         return $this;
  277.     }
  278.     public function getPaymentMethod(): ?string
  279.     {
  280.         return $this->paymentMethod;
  281.     }
  282.     public function setPaymentMethod(?string $paymentMethod): self
  283.     {
  284.         $this->paymentMethod $paymentMethod;
  285.         return $this;
  286.     }
  287.     public function getSumOrdered(): ?float
  288.     {
  289.         return $this->sumOrdered;
  290.     }
  291.     public function setSumOrdered(?float $sumOrdered): self
  292.     {
  293.         $this->sumOrdered $sumOrdered;
  294.         return $this;
  295.     }
  296.     public function getCurency(): ?string
  297.     {
  298.         return $this->curency;
  299.     }
  300.     public function setCurency(?string $curency): self
  301.     {
  302.         $this->curency $curency;
  303.         return $this;
  304.     }
  305.     public function getCurencyRate(): ?float
  306.     {
  307.         return $this->curencyRate;
  308.     }
  309.     public function setCurencyRate(?float $curencyRate): self
  310.     {
  311.         $this->curencyRate $curencyRate;
  312.         return $this;
  313.     }
  314.     public function getDiscountTotal(): ?float
  315.     {
  316.         return $this->discountTotal;
  317.     }
  318.     public function setDiscountTotal(?float $discountTotal): self
  319.     {
  320.         $this->discountTotal $discountTotal;
  321.         return $this;
  322.     }
  323.     public function getDiscountPercent(): ?int
  324.     {
  325.         return $this->discountPercent;
  326.     }
  327.     public function setDiscountPercent(?int $discountPercent): self
  328.     {
  329.         $this->discountPercent $discountPercent;
  330.         return $this;
  331.     }
  332.     public function getShippingAddressStreet(): ?string
  333.     {
  334.         return $this->shippingAddressStreet;
  335.     }
  336.     public function setShippingAddressStreet(?string $shippingAddressStreet): self
  337.     {
  338.         $this->shippingAddressStreet $shippingAddressStreet;
  339.         return $this;
  340.     }
  341.     public function getShippingAddressCity(): ?string
  342.     {
  343.         return $this->shippingAddressCity;
  344.     }
  345.     public function setShippingAddressCity(?string $shippingAddressCity): self
  346.     {
  347.         $this->shippingAddressCity $shippingAddressCity;
  348.         return $this;
  349.     }
  350.     public function getShippingAddressBuilding(): ?string
  351.     {
  352.         return $this->shippingAddressBuilding;
  353.     }
  354.     public function setShippingAddressBuilding(?string $shippingAddressBuilding): self
  355.     {
  356.         $this->shippingAddressBuilding $shippingAddressBuilding;
  357.         return $this;
  358.     }
  359.     public function getShippingAddressPost(): ?string
  360.     {
  361.         return $this->shippingAddressPost;
  362.     }
  363.     public function setShippingAddressPost(?string $shippingAddressPost): self
  364.     {
  365.         $this->shippingAddressPost $shippingAddressPost;
  366.         return $this;
  367.     }
  368.     public function getShippingAddressCountry(): ?string
  369.     {
  370.         return $this->shippingAddressCountry;
  371.     }
  372.     public function setShippingAddressCountry(?string $shippingAddressCountry): self
  373.     {
  374.         $this->shippingAddressCountry $shippingAddressCountry;
  375.         return $this;
  376.     }
  377.     public function getShippingAddressDate(): ?string
  378.     {
  379.         return $this->shippingAddressDate;
  380.     }
  381.     public function setShippingAddressDate(?string $shippingAddressDate): self
  382.     {
  383.         $this->shippingAddressDate $shippingAddressDate;
  384.         return $this;
  385.     }
  386.     public function getCopyOrderId(): ?int
  387.     {
  388.         return $this->copyOrderId;
  389.     }
  390.     public function setCopyOrderId(?int $copyOrderId): self
  391.     {
  392.         $this->copyOrderId $copyOrderId;
  393.         return $this;
  394.     }
  395.     /**
  396.      * @return Collection<int, PreOrderProduct>
  397.      */
  398.     public function getPreOrderProducts(): Collection
  399.     {
  400.         return $this->preOrderProducts;
  401.     }
  402.     public function addPreOrderProduct(PreOrderProduct $preOrderProduct): self
  403.     {
  404.         if (!$this->preOrderProducts->contains($preOrderProduct)) {
  405.             $this->preOrderProducts->add($preOrderProduct);
  406.             $preOrderProduct->setPreOrder($this);
  407.         }
  408.         return $this;
  409.     }
  410.     public function removePreOrderProduct(PreOrderProduct $preOrderProduct): self
  411.     {
  412.         if ($this->preOrderProducts->removeElement($preOrderProduct)) {
  413.             // set the owning side to null (unless already changed)
  414.             if ($preOrderProduct->getPreOrder() === $this) {
  415.                 $preOrderProduct->setPreOrder(null);
  416.             }
  417.         }
  418.         return $this;
  419.     }
  420.     /**
  421.      * @return Collection<int, Orders>
  422.      */
  423.     public function getOrders(): Collection
  424.     {
  425.         return $this->orders;
  426.     }
  427.     public function addOrder(Orders $order): self
  428.     {
  429.         if (!$this->orders->contains($order)) {
  430.             $this->orders->add($order);
  431.             $order->setPreOrder($this);
  432.         }
  433.         return $this;
  434.     }
  435.     public function removeOrder(Orders $order): self
  436.     {
  437.         if ($this->orders->removeElement($order)) {
  438.             // set the owning side to null (unless already changed)
  439.             if ($order->getPreOrder() === $this) {
  440.                 $order->setPreOrder(null);
  441.             }
  442.         }
  443.         return $this;
  444.     }
  445.     /**
  446.      * @return Collection<int, LoadInvoice>
  447.      */
  448.     public function getLoadInvoices(): Collection
  449.     {
  450.         return $this->loadInvoices;
  451.     }
  452.     public function addLoadInvoice(LoadInvoice $loadInvoice): self
  453.     {
  454.         if (!$this->loadInvoices->contains($loadInvoice)) {
  455.             $this->loadInvoices->add($loadInvoice);
  456.             $loadInvoice->setPreOrder($this);
  457.         }
  458.         return $this;
  459.     }
  460.     public function removeLoadInvoice(LoadInvoice $loadInvoice): self
  461.     {
  462.         if ($this->loadInvoices->removeElement($loadInvoice)) {
  463.             // set the owning side to null (unless already changed)
  464.             if ($loadInvoice->getPreOrder() === $this) {
  465.                 $loadInvoice->setPreOrder(null);
  466.             }
  467.         }
  468.         return $this;
  469.     }
  470.     /**
  471.      * @return Collection<int, Accepted>
  472.      */
  473.     public function getAccepteds(): Collection
  474.     {
  475.         return $this->accepteds;
  476.     }
  477.     public function addAccepted(Accepted $accepted): self
  478.     {
  479.         if (!$this->accepteds->contains($accepted)) {
  480.             $this->accepteds->add($accepted);
  481.             $accepted->setPreOrder($this);
  482.         }
  483.         return $this;
  484.     }
  485.     public function removeAccepted(Accepted $accepted): self
  486.     {
  487.         if ($this->accepteds->removeElement($accepted)) {
  488.             // set the owning side to null (unless already changed)
  489.             if ($accepted->getPreOrder() === $this) {
  490.                 $accepted->setPreOrder(null);
  491.             }
  492.         }
  493.         return $this;
  494.     }
  495.     /**
  496.      * @return Collection<int, LoadInvoiceProduct>
  497.      */
  498.     public function getLoadInvoiceProducts(): Collection
  499.     {
  500.         return $this->loadInvoiceProducts;
  501.     }
  502.     public function addLoadInvoiceProduct(LoadInvoiceProduct $loadInvoiceProduct): self
  503.     {
  504.         if (!$this->loadInvoiceProducts->contains($loadInvoiceProduct)) {
  505.             $this->loadInvoiceProducts->add($loadInvoiceProduct);
  506.             $loadInvoiceProduct->setPreOrderProduct($this);
  507.         }
  508.         return $this;
  509.     }
  510.     public function removeLoadInvoiceProduct(LoadInvoiceProduct $loadInvoiceProduct): self
  511.     {
  512.         if ($this->loadInvoiceProducts->removeElement($loadInvoiceProduct)) {
  513.             // set the owning side to null (unless already changed)
  514.             if ($loadInvoiceProduct->getPreOrderProduct() === $this) {
  515.                 $loadInvoiceProduct->setPreOrderProduct(null);
  516.             }
  517.         }
  518.         return $this;
  519.     }
  520.     public function getAccount(): ?Accounts
  521.     {
  522.         return $this->account;
  523.     }
  524.     public function setAccount(?Accounts $account): self
  525.     {
  526.         $this->account $account;
  527.         return $this;
  528.     }
  529.     public function isSynced(): ?bool
  530.     {
  531.         return $this->synced;
  532.     }
  533.     public function setSynced(?bool $synced): self
  534.     {
  535.         $this->synced $synced;
  536.         return $this;
  537.     }
  538.     #[ORM\PrePersist]
  539.     public function setCreatedAtValue(): void
  540.     {
  541.         $this->dateEntered = new \DateTime();
  542.     }
  543.     // #[ORM\PrePersist]
  544.     #[ORM\PreUpdate]
  545.     public function setUpdatedAtValue(): void
  546.     {
  547.         $this->dateModified = new \DateTime();
  548.     }
  549.     public function getClient(): ?User
  550.     {
  551.         return $this->client;
  552.     }
  553.     public function setClient(?User $client): self
  554.     {
  555.         $this->client $client;
  556.         return $this;
  557.     }
  558.     public function getManager(): ?User
  559.     {
  560.         return $this->manager;
  561.     }
  562.     public function setManager(?User $manager): self
  563.     {
  564.         $this->manager $manager;
  565.         return $this;
  566.     }
  567.     public function getDateDelivery(): ?\DateTimeInterface
  568.     {
  569.         return $this->dateDelivery;
  570.     }
  571.     public function setDateDelivery(?\DateTimeInterface $dateDelivery): static
  572.     {
  573.         $this->dateDelivery $dateDelivery;
  574.         return $this;
  575.     }
  576.     
  577.     /**
  578.      * @return Collection<int, Fees>
  579.      */
  580.     public function getFees(): Collection
  581.     {
  582.         return $this->fees;
  583.     }
  584.     public function addFee(Fees $fee): self
  585.     {
  586.         if (!$this->fees->contains($fee)) {
  587.             $this->fees->add($fee);
  588.             $fee->addPreOrder($this);
  589.         }
  590.         return $this;
  591.     }
  592.     public function getDeliveryMethod(): ?string
  593.     {
  594.         return $this->deliveryMethod;
  595.     }
  596.     public function setDeliveryMethod(string $deliveryMethod): static
  597.     {
  598.         $this->deliveryMethod $deliveryMethod;
  599.         return $this;
  600.     }
  601.     
  602.     public function removeFee(Fees $fee): self
  603.     {
  604.         if ($this->fees->removeElement($fee)) {
  605.             $fee->removePreOrder($this);
  606.         }
  607.         return $this;
  608.     }
  609.     public function getPostOffice(): ?string
  610.     {
  611.         return $this->postOffice;
  612.     }
  613.     public function setPostOffice(?string $postOffice): static
  614.     {
  615.         $this->postOffice $postOffice;
  616.         return $this;
  617.     }
  618.     public function getStoreAddress(): ?string
  619.     {
  620.         return $this->storeAddress;
  621.     }
  622.     public function setStoreAddress(?string $storeAddress): static
  623.     {
  624.         $this->storeAddress $storeAddress;
  625.         return $this;
  626.     }
  627.     public function getCommentBuilding(): ?string
  628.     {
  629.         return $this->commentBuilding;
  630.     }
  631.     public function setCommentBuilding(?string $commentBuilding): static
  632.     {
  633.         $this->commentBuilding $commentBuilding;
  634.         return $this;
  635.     }
  636.     public function isNotCall(): ?bool
  637.     {
  638.         return $this->notCall;
  639.     }
  640.     public function setNotCall(?bool $notCall): static
  641.     {
  642.         $this->notCall $notCall;
  643.         
  644.         return $this;
  645.     }
  646.     public function getCoupons(): ?Coupons
  647.     {
  648.         return $this->coupons;
  649.     }
  650.     public function setCoupons(?Coupons $coupons): self
  651.     {
  652.         $this->coupons $coupons;
  653.         return $this;
  654.     }
  655.     public function getAddress(): ?AccountAddress
  656.     {
  657.         return $this->address;
  658.     }
  659.     public function setAddress(?AccountAddress $address): self
  660.     {
  661.         $this->address $address;
  662.         return $this;
  663.     }
  664.     public function getShippingMethod(): ?string
  665.     {
  666.         return $this->shippingMethod;
  667.     }
  668.     public function setShippingMethod(?string $shippingMethod): static
  669.     {
  670.         $this->shippingMethod $shippingMethod;
  671.         return $this;
  672.     }
  673.     public function isDontCallMe(): ?bool
  674.     {
  675.         return $this->dontCallMe;
  676.     }
  677.     public function setDontCallMe(?bool $dontCallMe): static
  678.     {
  679.         $this->dontCallMe $dontCallMe;
  680.         return $this;
  681.     }
  682.     public function getGuid(): ?string
  683.     {
  684.         return $this->guid;
  685.     }
  686.     public function setGuid(?string $guid): static
  687.     {
  688.         $this->guid $guid;
  689.         return $this;
  690.     }
  691.     public function getUlid(): ?Ulid
  692.     {
  693.         return $this->ulid;
  694.     }
  695.     public function setUlid(Ulid $ulid): static
  696.     {
  697.         $this->ulid $ulid;
  698.         return $this;
  699.     }
  700.     public function getPaymentStatus(): ?string
  701.     {
  702.         return $this->paymentStatus;
  703.     }
  704.     public function setPaymentStatus(?string $paymentStatus): static
  705.     {
  706.         $this->paymentStatus $paymentStatus;
  707.         return $this;
  708.     }
  709.     public function getShippingReceiver(): ?array
  710.     {
  711.         return $this->shippingReceiver;
  712.     }
  713.     public function setShippingReceiver(?array $shippingReceiver): static
  714.     {
  715.         $this->shippingReceiver $shippingReceiver;
  716.         return $this;
  717.     }
  718.     public function getPaymentData(): ?array
  719.     {
  720.         return $this->paymentData;
  721.     }
  722.     public function setPaymentData(?array $paymentData): static
  723.     {
  724.         $this->paymentData $paymentData;
  725.         return $this;
  726.     }
  727.     public function getTtn(): ?string
  728.     {
  729.         return $this->ttn;
  730.     }
  731.     public function setTtn(?string $ttn): static
  732.     {
  733.         $this->ttn $ttn;
  734.         return $this;
  735.     }
  736. }