src/Entity/System/Order.php line 24

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: Toni Peral <toniperal.a4b@gmail.com>
  5.  * Date: 10/3/20
  6.  * Time: 13:35
  7.  */
  8. namespace App\Entity\System;
  9. use Doctrine\Common\Collections\ArrayCollection;
  10. use Doctrine\Common\Collections\Collection;
  11. use Doctrine\ORM\Mapping as ORM;
  12. use Doctrine\ORM\Mapping\OneToOne;
  13. /**
  14.  * Order
  15.  *
  16.  * @ORM\Table(name="ps_orders")
  17.  *
  18.  * @ORM\Entity(repositoryClass="App\Repository\System\OrderRepository")
  19.  */
  20. class Order
  21. {
  22.     /**
  23.      * @ORM\Id()
  24.      *
  25.      * @ORM\GeneratedValue()
  26.      *
  27.      * @ORM\Column(type="integer", name="id_order")
  28.      */
  29.     private $id;
  30.     /**
  31.      * One Order has One Cart.
  32.      *
  33.      * @var Cart
  34.      *
  35.      * @OneToOne(targetEntity="App\Entity\System\Cart", mappedBy="order")
  36.      */
  37.     private $cart;
  38.     /**
  39.      * @var string|null
  40.      *
  41.      * @ORM\Column(type="string", length=9, nullable=true)
  42.      */
  43.     private $reference;
  44.     /**
  45.      * @var int
  46.      *
  47.      * @ORM\Column(type="integer", length=10)
  48.      */
  49.     private $idCarrier;
  50.     /**
  51.      * @var Customer
  52.      *
  53.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Customer", inversedBy="orders")
  54.      *
  55.      * @ORM\JoinColumn(nullable=false, name="id_customer", referencedColumnName="id_customer")
  56.      */
  57.     private $customer;
  58.     /**
  59.      * @var int|null
  60.      *
  61.      * @ORM\Column(type="integer", length=10, nullable=true)
  62.      */
  63.     private $idVoucher;
  64.     /**
  65.      * @var int
  66.      *
  67.      * @ORM\Column(type="integer", length=10)
  68.      */
  69.     private $idCart;
  70.     /**
  71.      * @var int
  72.      *
  73.      * @ORM\Column(type="integer", length=10)
  74.      */
  75.     private $idCurrency;
  76.     /**
  77.      * @var Address
  78.      *
  79.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Address")
  80.      *
  81.      * @ORM\JoinColumn(name="id_address_delivery", referencedColumnName="id_address")
  82.      */
  83.     private $deliveryAddress;
  84.     /**
  85.      * @var Address
  86.      *
  87.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Address")
  88.      *
  89.      * @ORM\JoinColumn(name="id_address_invoice", referencedColumnName="id_address")
  90.      */
  91.     private $invoiceAddress;
  92.     /**
  93.      * @var int
  94.      *
  95.      * @ORM\Column(type="integer", length=10, name="id_order_state")
  96.      */
  97.     private $orderStatus;
  98.     /**
  99.      * @var Language|null
  100.      *
  101.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Language")
  102.      *
  103.      * @ORM\JoinColumn(name="id_lang", referencedColumnName="id_lang", nullable=true)
  104.      */
  105.     private $language;
  106.     /**
  107.      * @var string
  108.      *
  109.      * @ORM\Column(type="string", length=32, options={"default" : "-1"})
  110.      */
  111.     private $secureKey;
  112.     /**
  113.      * @var string
  114.      *
  115.      * @ORM\Column(type="string", length=255)
  116.      */
  117.     private $payment;
  118.     /**
  119.      * @var float
  120.      *
  121.      * @ORM\Column(type="decimal", precision=13, scale=6, options={"default" : 1.000000})
  122.      */
  123.     private $conversionRate;
  124.     /**
  125.      * @var string|null
  126.      *
  127.      * @ORM\Column(type="string", length=255, nullable=true)
  128.      */
  129.     private $module;
  130.     /**
  131.      * @var bool
  132.      *
  133.      * @ORM\Column(type="boolean", columnDefinition="tinyint(1)", options={"default" : 0})
  134.      */
  135.     private $recyclable;
  136.     /**
  137.      * @var string|null
  138.      *
  139.      * @ORM\Column(type="string", length=32, nullable=true)
  140.      */
  141.     private $shippingNumber;
  142.     /**
  143.      * @var bool
  144.      *
  145.      * @ORM\Column(type="boolean", columnDefinition="tinyint(1)", options={"default" : 0})
  146.      */
  147.     private $dropshipping;
  148.     /**
  149.      * @var float
  150.      *
  151.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  152.      */
  153.     private $totalDiscounts;
  154.     /**
  155.      * @var float
  156.      *
  157.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  158.      */
  159.     private $totalDiscountsTaxIncl;
  160.     /**
  161.      * @var float
  162.      *
  163.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  164.      */
  165.     private $totalDiscountsTaxExcl;
  166.     /**
  167.      * @var float
  168.      *
  169.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  170.      */
  171.     private $totalPaid;
  172.     /**
  173.      * @var float
  174.      *
  175.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  176.      */
  177.     private $totalPaidTaxIncl;
  178.     /**
  179.      * @var float
  180.      *
  181.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  182.      */
  183.     private $totalPaidTaxExcl;
  184.     /**
  185.      * @var float
  186.      *
  187.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  188.      */
  189.     private $totalPaidReal;
  190.     /**
  191.      * @var float
  192.      *
  193.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  194.      */
  195.     private $totalProducts;
  196.     /**
  197.      * @var float
  198.      *
  199.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  200.      */
  201.     private $totalProductsWt;
  202.     /**
  203.      * @var float
  204.      *
  205.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  206.      */
  207.     private $totalShipping;
  208.     /**
  209.      * @var float
  210.      *
  211.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  212.      */
  213.     private $totalShippingTaxIncl;
  214.     /**
  215.      * @var float
  216.      *
  217.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  218.      */
  219.     private $totalShippingTaxExcl;
  220.     /**
  221.      * @var float
  222.      *
  223.      * @ORM\Column(type="decimal", precision=10, scale=3, options={"default" : 0.000})
  224.      */
  225.     private $carrierTaxRate;
  226.     /**
  227.      * @var float
  228.      *
  229.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  230.      */
  231.     private $totalWrapping;
  232.     /**
  233.      * @var float
  234.      *
  235.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  236.      */
  237.     private $totalWrappingTaxIncl;
  238.     /**
  239.      * @var float
  240.      *
  241.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  242.      */
  243.     private $totalWrappingTaxExcl;
  244.     /**
  245.      * @var int|null
  246.      *
  247.      * @ORM\Column(type="integer", length=10, nullable=true, options={"default" : 0})
  248.      */
  249.     private $invoiceNumber;
  250.     /**
  251.      * @var int
  252.      *
  253.      * @ORM\Column(type="integer", length=10, options={"default" : 0})
  254.      */
  255.     private $deliveryNumber;
  256.     /**
  257.      * @var \DateTime|null
  258.      *
  259.      * @ORM\Column(type="datetime", nullable=true)
  260.      */
  261.     private $invoiceDate;
  262.     /**
  263.      * @var \DateTime|null
  264.      *
  265.      * @ORM\Column(type="datetime", nullable=true)
  266.      */
  267.     private $deliveryDate;
  268.     /**
  269.      * @var int
  270.      *
  271.      * @ORM\Column(type="integer", length=1, options={"default" : 0})
  272.      */
  273.     private $valid;
  274.     /**
  275.      * @var bool
  276.      *
  277.      * @ORM\Column(type="boolean", columnDefinition="tinyint(4)", options={"default" : 0})
  278.      */
  279.     private $validateTransfer;
  280.     /**
  281.      * @var string|null
  282.      *
  283.      * @ORM\Column(type="string", length=50, nullable=true)
  284.      */
  285.     private $refOrderSupplier;
  286.     /**
  287.      * @var \DateTime
  288.      *
  289.      * @ORM\Column(type="datetime")
  290.      */
  291.     private $dateAdd;
  292.     /**
  293.      * @var \DateTime
  294.      *
  295.      * @ORM\Column(type="datetime")
  296.      */
  297.     private $dateUpd;
  298.     /**
  299.      * @var float
  300.      *
  301.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  302.      */
  303.     private $purse;
  304.     /**
  305.      * @var float
  306.      *
  307.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  308.      */
  309.     private $dropshippingQty;
  310.     /**
  311.      * @var float
  312.      *
  313.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  314.      */
  315.     private $paymentMethodCost;
  316.     /**
  317.      * @var float
  318.      *
  319.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00})
  320.      */
  321.     private $dropshippingCost;
  322.     /**
  323.      * @var bool
  324.      *
  325.      * @ORM\Column(type="boolean", columnDefinition="tinyint(4)", options={"default" : 0})
  326.      */
  327.     private $re;
  328.     /**
  329.      * @var string|null
  330.      *
  331.      * @ORM\Column(type="string", length=254, nullable=true)
  332.      */
  333.     private $transactionId;
  334.     /**
  335.      * @var string|null
  336.      *
  337.      * @ORM\Column(type="string", length=40, nullable=true)
  338.      */
  339.     private $commentCarrier;
  340.     /**
  341.      * @var bool|null
  342.      *
  343.      * @ORM\Column(type="boolean", columnDefinition="tinyint(1)", nullable=true, options={"default" : 0})
  344.      */
  345.     private $refund;
  346.     /**
  347.      * @var bool|null
  348.      *
  349.      * @ORM\Column(type="boolean", columnDefinition="tinyint(1)", nullable=true, options={"default" : 0})
  350.      */
  351.     private $fullRefund;
  352.     /**
  353.      * @var string|null
  354.      *
  355.      * @ORM\Column(type="string", columnDefinition="enum('1', '2', '3','4')", options={"default" : "1"}, nullable=true)
  356.      */
  357.     private $intracomunitario;
  358.     /**
  359.      * @var bool|null
  360.      *
  361.      * @ORM\Column(type="boolean", columnDefinition="tinyint(4)", nullable=true)
  362.      */
  363.     private $isTracking;
  364.     /**
  365.      * @var bool|null
  366.      *
  367.      * @ORM\Column(type="boolean", columnDefinition="tinyint(4)", options={"default" : 0}, nullable=true)
  368.      */
  369.     private $stateDropshipping;
  370.     /**
  371.      * @var float|null
  372.      *
  373.      * @ORM\Column(type="float", options={"default" : 0}, nullable=true)
  374.      */
  375.     private $volWeight;
  376.     /**
  377.      * @var int|null
  378.      *
  379.      * @ORM\Column(type="integer", length=11, options={"default" : 0}, nullable=true)
  380.      */
  381.     private $idCarrierMaster;
  382.     /**
  383.      * @var string|null
  384.      *
  385.      * @ORM\Column(type="string", length=15, options={"default" : "0"}, nullable=true)
  386.      */
  387.     private $idOrderParent;
  388.     /**
  389.      * @var bool|null
  390.      *
  391.      * @ORM\Column(type="boolean", columnDefinition="tinyint(1)", options={"default" : 0}, nullable=true)
  392.      */
  393.     private $quantityStockSupplier;
  394.     /**
  395.      * @var bool|null
  396.      *
  397.      * @ORM\Column(name="quantity_stock_supplier_3_5", type="boolean", columnDefinition="tinyint(1)", options={"default" : 0}, nullable=true)
  398.      */
  399.     private $quantityStockSupplier3To5;
  400.     /**
  401.      * @var bool|null
  402.      *
  403.      * @ORM\Column(type="boolean", columnDefinition="tinyint(1)", options={"default" : 0}, nullable=true)
  404.      */
  405.     private $quantityFutureStock;
  406.     /**
  407.      * @var int|null
  408.      *
  409.      * @ORM\Column(type="integer", length=10, options={"default" : 0}, nullable=true)
  410.      */
  411.     private $idPack;
  412.     /**
  413.      * @var \DateTime|null
  414.      *
  415.      * @ORM\Column(type="datetime", nullable=true)
  416.      */
  417.     private $deliveredDate;
  418.     /**
  419.      * @var bool|null
  420.      *
  421.      * @ORM\Column(type="boolean", name="sujeto_pasivo", columnDefinition="tinyint(1)", options={"default" : 0}, nullable=true)
  422.      */
  423.     private $passiveSubject;
  424.     /**
  425.      * @var float|null
  426.      *
  427.      * @ORM\Column(type="decimal", precision=17, scale=2, options={"default" : 0.00}, nullable=true)
  428.      */
  429.     private $rapelAmount;
  430.     /**
  431.      * @var bool|null
  432.      *
  433.      * @ORM\Column(type="boolean", columnDefinition="tinyint(1)", options={"default" : 0}, nullable=true)
  434.      */
  435.     private $api;
  436.     /**
  437.      * @var bool|null
  438.      *
  439.      * @ORM\Column(type="boolean", columnDefinition="tinyint(1)", options={"default" : 0}, nullable=true)
  440.      */
  441.     private $isSystem;
  442.     /**
  443.      * @var string|null
  444.      *
  445.      * @ORM\Column(type="string", length=64, nullable=true)
  446.      */
  447.     private $sellingChannel;
  448.     /**
  449.      * @var \DateTime|null
  450.      *
  451.      * @ORM\Column(type="date", nullable=true)
  452.      */
  453.     private $dateAmazon;
  454.     /**
  455.      * @var string|null
  456.      *
  457.      * @ORM\Column(type="string", length=256, nullable=true)
  458.      */
  459.     private $additionalParameters;
  460.     /**
  461.      * @var \DateTime|null
  462.      *
  463.      * @ORM\Column(type="datetime", nullable=true)
  464.      */
  465.     private $estimatedShippingDate;
  466.     /**
  467.      * @var string|null
  468.      *
  469.      * @ORM\Column(type="string", length=36, nullable=true)
  470.      */
  471.     private $a4bUuid;
  472.     /**
  473.      * @var bool|null
  474.      *
  475.      * @ORM\Column(type="integer", length=1, options={"default" : 0}, nullable=true)
  476.      */
  477.     private $dispute;
  478.     /**
  479.      * @var OrderDetail[]|ArrayCollection<OrderDetail>
  480.      *
  481.      * @ORM\OneToMany(targetEntity="App\Entity\System\OrderDetail", mappedBy="order")
  482.      */
  483.     private $orderDetails;
  484.     /**
  485.      * @var Warehouse
  486.      *
  487.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Warehouse")
  488.      *
  489.      * @ORM\JoinColumn(name="warehouse_id", referencedColumnName="id", nullable=false)
  490.      */
  491.     private $warehouse;
  492.     /**
  493.      * @var CodeDiscount[]|ArrayCollection
  494.      *
  495.      * @ORM\ManyToMany(targetEntity="App\Entity\System\CodeDiscount", inversedBy="orders")
  496.      *
  497.      * @ORM\JoinTable(name="order_code_discount",
  498.      *  joinColumns={@ORM\JoinColumn(name="id_order", referencedColumnName="id_order")},
  499.      *     inverseJoinColumns={@ORM\JoinColumn(name="id_code_discount", referencedColumnName="id")}
  500.      * )
  501.      */
  502.     private $codeDiscount;
  503.     /**
  504.      * @var OrderNotification|null
  505.      *
  506.      * @ORM\OneToOne(targetEntity="OrderNotification", mappedBy="order")
  507.      */
  508.     private $notification;
  509.     /**
  510.      * @var Invoice[]|ArrayCollection
  511.      *
  512.      * @ORM\ManyToMany(targetEntity="Invoice", mappedBy="orders")
  513.      */
  514.     private $invoice;
  515.     /**
  516.      * @var string|null
  517.      *
  518.      * @ORM\Column(type="string", length=64, nullable=true)
  519.      */
  520.     private $paymentMethodType;
  521.     /**
  522.      * @var string|null
  523.      *
  524.      * @ORM\Column(type="string", nullable=true)
  525.      */
  526.     private $paypalPayerId;
  527.     /**
  528.      * @var string|null
  529.      *
  530.      * @ORM\Column(type="string", nullable=true)
  531.      */
  532.     private $paypalPayerEmail;
  533.     /**
  534.      * @var OrderTax|null
  535.      *
  536.      * @ORM\OneToOne(targetEntity="App\Entity\System\OrderTax", mappedBy="order")
  537.      */
  538.     private $orderTax;
  539.     /**
  540.      * @ORM\Column(type="integer", length=1, options={"default" : 0})
  541.      */
  542.     private bool $fba false;
  543.     /**
  544.      * @ORM\Column(type="datetime", nullable=true)
  545.      */
  546.     private ?\DateTime $maxExpeditionDatetime null;
  547.     /**
  548.      * @ORM\Column(type="datetime", nullable=true)
  549.      */
  550.     private ?\DateTime $maxDeliveryDatetime null;
  551.     /**
  552.      * @ORM\Column(type="float", nullable=true)
  553.      */
  554.     private ?float $logisticWeight;
  555.     /**
  556.      * Order constructor.
  557.      */
  558.     public function __construct()
  559.     {
  560.         $this->secureKey = -1;
  561.         $this->conversionRate 1.000000;
  562.         $this->recyclable 0;
  563.         $this->dropshipping 0;
  564.         $this->totalDiscounts 0.00;
  565.         $this->totalDiscountsTaxIncl 0.00;
  566.         $this->totalDiscountsTaxExcl 0.00;
  567.         $this->totalPaid 0.00;
  568.         $this->totalPaidTaxIncl 0.00;
  569.         $this->totalPaidTaxExcl 0.00;
  570.         $this->totalPaidReal 0.00;
  571.         $this->totalProducts 0.00;
  572.         $this->totalProductsWt 0.00;
  573.         $this->totalShipping 0.00;
  574.         $this->totalShippingTaxIncl 0.00;
  575.         $this->totalShippingTaxExcl 0.00;
  576.         $this->carrierTaxRate 0.000;
  577.         $this->totalWrapping 0.00;
  578.         $this->totalWrappingTaxIncl 0.00;
  579.         $this->totalWrappingTaxExcl 0.00;
  580.         $this->invoiceNumber 0;
  581.         $this->deliveryNumber 0;
  582.         $this->valid 0;
  583.         $this->validateTransfer 0;
  584.         $this->purse 0.00;
  585.         $this->dropshippingQty 0.00;
  586.         $this->paymentMethodCost 0.00;
  587.         $this->dropshippingCost 0.00;
  588.         $this->re 0;
  589.         $this->refund 0;
  590.         $this->fullRefund false;
  591.         $this->intracomunitario '1';
  592.         $this->stateDropshipping 0;
  593.         $this->volWeight 0;
  594.         $this->idCarrierMaster 0;
  595.         $this->idOrderParent '0';
  596.         $this->quantityStockSupplier 0;
  597.         $this->quantityStockSupplier3To5 0;
  598.         $this->quantityFutureStock 0;
  599.         $this->idPack 0;
  600.         $this->passiveSubject 0;
  601.         $this->rapelAmount 0;
  602.         $this->api 0;
  603.         $this->isSystem 0;
  604.         $this->orderDetails = new ArrayCollection();
  605.         $this->codeDiscount = new ArrayCollection();
  606.         $this->invoice = new ArrayCollection();
  607.     }
  608.     /**
  609.      * @return mixed
  610.      */
  611.     public function getId()
  612.     {
  613.         return $this->id;
  614.     }
  615.     /**
  616.      * @param int $id
  617.      *
  618.      * @return Order
  619.      */
  620.     public function setId($id): Order
  621.     {
  622.         $this->id $id;
  623.         return $this;
  624.     }
  625.     /**
  626.      * @return string|null
  627.      */
  628.     public function getReference(): ?string
  629.     {
  630.         return $this->reference;
  631.     }
  632.     /**
  633.      * @param string|null $reference
  634.      *
  635.      * @return Order
  636.      */
  637.     public function setReference(?string $reference): Order
  638.     {
  639.         $this->reference $reference;
  640.         return $this;
  641.     }
  642.     /**
  643.      * @return int
  644.      */
  645.     public function getIdCarrier(): int
  646.     {
  647.         return $this->idCarrier;
  648.     }
  649.     /**
  650.      * @param int $idCarrier
  651.      *
  652.      * @return Order
  653.      */
  654.     public function setIdCarrier(int $idCarrier): Order
  655.     {
  656.         $this->idCarrier $idCarrier;
  657.         return $this;
  658.     }
  659.     /**
  660.      * @return int|null
  661.      */
  662.     public function getIdVoucher(): ?int
  663.     {
  664.         return $this->idVoucher;
  665.     }
  666.     /**
  667.      * @param int|null $idVoucher
  668.      *
  669.      * @return Order
  670.      */
  671.     public function setIdVoucher(?int $idVoucher): Order
  672.     {
  673.         $this->idVoucher $idVoucher;
  674.         return $this;
  675.     }
  676.     /**
  677.      * @return int
  678.      */
  679.     public function getIdCart(): int
  680.     {
  681.         return $this->idCart;
  682.     }
  683.     /**
  684.      * @param int $idCart
  685.      *
  686.      * @return Order
  687.      */
  688.     public function setIdCart(int $idCart): Order
  689.     {
  690.         $this->idCart $idCart;
  691.         return $this;
  692.     }
  693.     /**
  694.      * @return int
  695.      */
  696.     public function getIdCurrency(): int
  697.     {
  698.         return $this->idCurrency;
  699.     }
  700.     /**
  701.      * @param int $idCurrency
  702.      *
  703.      * @return Order
  704.      */
  705.     public function setIdCurrency(int $idCurrency): Order
  706.     {
  707.         $this->idCurrency $idCurrency;
  708.         return $this;
  709.     }
  710.     /**
  711.      * @return Address
  712.      */
  713.     public function getDeliveryAddress(): Address
  714.     {
  715.         return $this->deliveryAddress;
  716.     }
  717.     /**
  718.      * @param Address $deliveryAddress
  719.      *
  720.      * @return Order
  721.      */
  722.     public function setDeliveryAddress(Address $deliveryAddress): Order
  723.     {
  724.         $this->deliveryAddress $deliveryAddress;
  725.         return $this;
  726.     }
  727.     /**
  728.      * @return Address
  729.      */
  730.     public function getInvoiceAddress(): Address
  731.     {
  732.         return $this->invoiceAddress;
  733.     }
  734.     /**
  735.      * @param Address $invoiceAddress
  736.      *
  737.      * @return Order
  738.      */
  739.     public function setInvoiceAddress(Address $invoiceAddress): Order
  740.     {
  741.         $this->invoiceAddress $invoiceAddress;
  742.         return $this;
  743.     }
  744.     /**
  745.      * @return Language|null
  746.      */
  747.     public function getLanguage(): ?Language
  748.     {
  749.         return $this->language;
  750.     }
  751.     /**
  752.      * @param Language|null $language
  753.      *
  754.      * @return Order
  755.      */
  756.     public function setLanguage(?Language $language): Order
  757.     {
  758.         $this->language $language;
  759.         return $this;
  760.     }
  761.     /**
  762.      * @return string
  763.      */
  764.     public function getSecureKey(): string
  765.     {
  766.         return $this->secureKey;
  767.     }
  768.     /**
  769.      * @param string $secureKey
  770.      *
  771.      * @return Order
  772.      */
  773.     public function setSecureKey(string $secureKey): Order
  774.     {
  775.         $this->secureKey $secureKey;
  776.         return $this;
  777.     }
  778.     /**
  779.      * @return string
  780.      */
  781.     public function getPayment(): string
  782.     {
  783.         return $this->payment;
  784.     }
  785.     /**
  786.      * @param string $payment
  787.      *
  788.      * @return Order
  789.      */
  790.     public function setPayment(string $payment): Order
  791.     {
  792.         $this->payment $payment;
  793.         return $this;
  794.     }
  795.     /**
  796.      * @return float
  797.      */
  798.     public function getConversionRate(): float
  799.     {
  800.         return $this->conversionRate;
  801.     }
  802.     /**
  803.      * @param float $conversionRate
  804.      *
  805.      * @return Order
  806.      */
  807.     public function setConversionRate(float $conversionRate): Order
  808.     {
  809.         $this->conversionRate $conversionRate;
  810.         return $this;
  811.     }
  812.     /**
  813.      * @return string|null
  814.      */
  815.     public function getModule(): ?string
  816.     {
  817.         return $this->module;
  818.     }
  819.     /**
  820.      * @param string|null $module
  821.      *
  822.      * @return Order
  823.      */
  824.     public function setModule(?string $module): Order
  825.     {
  826.         $this->module $module;
  827.         return $this;
  828.     }
  829.     /**
  830.      * @return bool
  831.      */
  832.     public function isRecyclable(): bool
  833.     {
  834.         return $this->recyclable;
  835.     }
  836.     /**
  837.      * @param bool $recyclable
  838.      *
  839.      * @return Order
  840.      */
  841.     public function setRecyclable(bool $recyclable): Order
  842.     {
  843.         $this->recyclable $recyclable;
  844.         return $this;
  845.     }
  846.     /**
  847.      * @return string|null
  848.      */
  849.     public function getShippingNumber(): ?string
  850.     {
  851.         return $this->shippingNumber;
  852.     }
  853.     /**
  854.      * @param string|null $shippingNumber
  855.      *
  856.      * @return Order
  857.      */
  858.     public function setShippingNumber(?string $shippingNumber): Order
  859.     {
  860.         $this->shippingNumber $shippingNumber;
  861.         return $this;
  862.     }
  863.     /**
  864.      * @return bool
  865.      */
  866.     public function isDropshipping(): bool
  867.     {
  868.         return $this->dropshipping;
  869.     }
  870.     /**
  871.      * @param bool $dropshipping
  872.      *
  873.      * @return Order
  874.      */
  875.     public function setDropshipping(bool $dropshipping): Order
  876.     {
  877.         $this->dropshipping $dropshipping;
  878.         return $this;
  879.     }
  880.     /**
  881.      * @return float
  882.      */
  883.     public function getTotalDiscounts(): float
  884.     {
  885.         return $this->totalDiscounts;
  886.     }
  887.     /**
  888.      * @param float $totalDiscounts
  889.      *
  890.      * @return Order
  891.      */
  892.     public function setTotalDiscounts(float $totalDiscounts): Order
  893.     {
  894.         $this->totalDiscounts $totalDiscounts;
  895.         return $this;
  896.     }
  897.     /**
  898.      * @return float
  899.      */
  900.     public function getTotalDiscountsTaxIncl(): float
  901.     {
  902.         return $this->totalDiscountsTaxIncl;
  903.     }
  904.     /**
  905.      * @param float $totalDiscountsTaxIncl
  906.      *
  907.      * @return Order
  908.      */
  909.     public function setTotalDiscountsTaxIncl(float $totalDiscountsTaxIncl): Order
  910.     {
  911.         $this->totalDiscountsTaxIncl $totalDiscountsTaxIncl;
  912.         return $this;
  913.     }
  914.     /**
  915.      * @return float
  916.      */
  917.     public function getTotalDiscountsTaxExcl(): float
  918.     {
  919.         return $this->totalDiscountsTaxExcl;
  920.     }
  921.     /**
  922.      * @param float $totalDiscountsTaxExcl
  923.      *
  924.      * @return Order
  925.      */
  926.     public function setTotalDiscountsTaxExcl(float $totalDiscountsTaxExcl): Order
  927.     {
  928.         $this->totalDiscountsTaxExcl $totalDiscountsTaxExcl;
  929.         return $this;
  930.     }
  931.     /**
  932.      * @return float
  933.      */
  934.     public function getTotalPaid(): float
  935.     {
  936.         return $this->totalPaid;
  937.     }
  938.     /**
  939.      * @param float $totalPaid
  940.      *
  941.      * @return Order
  942.      */
  943.     public function setTotalPaid(float $totalPaid): Order
  944.     {
  945.         $this->totalPaid $totalPaid;
  946.         return $this;
  947.     }
  948.     /**
  949.      * @return float
  950.      */
  951.     public function getTotalPaidTaxIncl(): float
  952.     {
  953.         return $this->totalPaidTaxIncl;
  954.     }
  955.     /**
  956.      * @param float $totalPaidTaxIncl
  957.      *
  958.      * @return Order
  959.      */
  960.     public function setTotalPaidTaxIncl(float $totalPaidTaxIncl): Order
  961.     {
  962.         $this->totalPaidTaxIncl $totalPaidTaxIncl;
  963.         return $this;
  964.     }
  965.     /**
  966.      * @return float
  967.      */
  968.     public function getTotalPaidTaxExcl(): float
  969.     {
  970.         return $this->totalPaidTaxExcl;
  971.     }
  972.     /**
  973.      * @param float $totalPaidTaxExcl
  974.      *
  975.      * @return Order
  976.      */
  977.     public function setTotalPaidTaxExcl(float $totalPaidTaxExcl): Order
  978.     {
  979.         $this->totalPaidTaxExcl $totalPaidTaxExcl;
  980.         return $this;
  981.     }
  982.     /**
  983.      * @return float
  984.      */
  985.     public function getTotalPaidReal(): float
  986.     {
  987.         return $this->totalPaidReal;
  988.     }
  989.     /**
  990.      * @param float $totalPaidReal
  991.      *
  992.      * @return Order
  993.      */
  994.     public function setTotalPaidReal(float $totalPaidReal): Order
  995.     {
  996.         $this->totalPaidReal $totalPaidReal;
  997.         return $this;
  998.     }
  999.     /**
  1000.      * @return float
  1001.      */
  1002.     public function getTotalProducts(): float
  1003.     {
  1004.         return $this->totalProducts;
  1005.     }
  1006.     /**
  1007.      * @param float $totalProducts
  1008.      *
  1009.      * @return Order
  1010.      */
  1011.     public function setTotalProducts(float $totalProducts): Order
  1012.     {
  1013.         $this->totalProducts $totalProducts;
  1014.         return $this;
  1015.     }
  1016.     /**
  1017.      * @return float
  1018.      */
  1019.     public function getTotalProductsWt(): float
  1020.     {
  1021.         return $this->totalProductsWt;
  1022.     }
  1023.     /**
  1024.      * @param float $totalProductsWt
  1025.      *
  1026.      * @return Order
  1027.      */
  1028.     public function setTotalProductsWt(float $totalProductsWt): Order
  1029.     {
  1030.         $this->totalProductsWt $totalProductsWt;
  1031.         return $this;
  1032.     }
  1033.     /**
  1034.      * @return float
  1035.      */
  1036.     public function getTotalShipping(): float
  1037.     {
  1038.         return $this->totalShipping;
  1039.     }
  1040.     /**
  1041.      * @param float $totalShipping
  1042.      *
  1043.      * @return Order
  1044.      */
  1045.     public function setTotalShipping(float $totalShipping): Order
  1046.     {
  1047.         $this->totalShipping $totalShipping;
  1048.         return $this;
  1049.     }
  1050.     /**
  1051.      * @return float
  1052.      */
  1053.     public function getTotalShippingTaxIncl(): float
  1054.     {
  1055.         return $this->totalShippingTaxIncl;
  1056.     }
  1057.     /**
  1058.      * @param float $totalShippingTaxIncl
  1059.      *
  1060.      * @return Order
  1061.      */
  1062.     public function setTotalShippingTaxIncl(float $totalShippingTaxIncl): Order
  1063.     {
  1064.         $this->totalShippingTaxIncl $totalShippingTaxIncl;
  1065.         return $this;
  1066.     }
  1067.     /**
  1068.      * @return float
  1069.      */
  1070.     public function getTotalShippingTaxExcl(): float
  1071.     {
  1072.         return $this->totalShippingTaxExcl;
  1073.     }
  1074.     /**
  1075.      * @param float $totalShippingTaxExcl
  1076.      *
  1077.      * @return Order
  1078.      */
  1079.     public function setTotalShippingTaxExcl(float $totalShippingTaxExcl): Order
  1080.     {
  1081.         $this->totalShippingTaxExcl $totalShippingTaxExcl;
  1082.         return $this;
  1083.     }
  1084.     /**
  1085.      * @return float
  1086.      */
  1087.     public function getCarrierTaxRate(): float
  1088.     {
  1089.         return $this->carrierTaxRate;
  1090.     }
  1091.     /**
  1092.      * @param float $carrierTaxRate
  1093.      *
  1094.      * @return Order
  1095.      */
  1096.     public function setCarrierTaxRate(float $carrierTaxRate): Order
  1097.     {
  1098.         $this->carrierTaxRate $carrierTaxRate;
  1099.         return $this;
  1100.     }
  1101.     /**
  1102.      * @return float
  1103.      */
  1104.     public function getTotalWrapping(): float
  1105.     {
  1106.         return $this->totalWrapping;
  1107.     }
  1108.     /**
  1109.      * @param float $totalWrapping
  1110.      *
  1111.      * @return Order
  1112.      */
  1113.     public function setTotalWrapping(float $totalWrapping): Order
  1114.     {
  1115.         $this->totalWrapping $totalWrapping;
  1116.         return $this;
  1117.     }
  1118.     /**
  1119.      * @return float
  1120.      */
  1121.     public function getTotalWrappingTaxIncl(): float
  1122.     {
  1123.         return $this->totalWrappingTaxIncl;
  1124.     }
  1125.     /**
  1126.      * @param float $totalWrappingTaxIncl
  1127.      *
  1128.      * @return Order
  1129.      */
  1130.     public function setTotalWrappingTaxIncl(float $totalWrappingTaxIncl): Order
  1131.     {
  1132.         $this->totalWrappingTaxIncl $totalWrappingTaxIncl;
  1133.         return $this;
  1134.     }
  1135.     /**
  1136.      * @return float
  1137.      */
  1138.     public function getTotalWrappingTaxExcl(): float
  1139.     {
  1140.         return $this->totalWrappingTaxExcl;
  1141.     }
  1142.     /**
  1143.      * @param float $totalWrappingTaxExcl
  1144.      *
  1145.      * @return Order
  1146.      */
  1147.     public function setTotalWrappingTaxExcl(float $totalWrappingTaxExcl): Order
  1148.     {
  1149.         $this->totalWrappingTaxExcl $totalWrappingTaxExcl;
  1150.         return $this;
  1151.     }
  1152.     /**
  1153.      * @return int|null
  1154.      */
  1155.     public function getInvoiceNumber(): ?int
  1156.     {
  1157.         return $this->invoiceNumber;
  1158.     }
  1159.     /**
  1160.      * @param int|null $invoiceNumber
  1161.      *
  1162.      * @return Order
  1163.      */
  1164.     public function setInvoiceNumber(?int $invoiceNumber): Order
  1165.     {
  1166.         $this->invoiceNumber $invoiceNumber;
  1167.         return $this;
  1168.     }
  1169.     /**
  1170.      * @return int
  1171.      */
  1172.     public function getDeliveryNumber(): int
  1173.     {
  1174.         return $this->deliveryNumber;
  1175.     }
  1176.     /**
  1177.      * @param int $deliveryNumber
  1178.      *
  1179.      * @return Order
  1180.      */
  1181.     public function setDeliveryNumber(int $deliveryNumber): Order
  1182.     {
  1183.         $this->deliveryNumber $deliveryNumber;
  1184.         return $this;
  1185.     }
  1186.     /**
  1187.      * @return \DateTime|null
  1188.      */
  1189.     public function getInvoiceDate(): ?\DateTime
  1190.     {
  1191.         return $this->invoiceDate;
  1192.     }
  1193.     /**
  1194.      * @param \DateTime|null $invoiceDate
  1195.      *
  1196.      * @return Order
  1197.      */
  1198.     public function setInvoiceDate(?\DateTime $invoiceDate): Order
  1199.     {
  1200.         $this->invoiceDate $invoiceDate;
  1201.         return $this;
  1202.     }
  1203.     /**
  1204.      * @return \DateTime|null
  1205.      */
  1206.     public function getDeliveryDate(): ?\DateTime
  1207.     {
  1208.         return $this->deliveryDate;
  1209.     }
  1210.     /**
  1211.      * @param \DateTime|null $deliveryDate
  1212.      *
  1213.      * @return Order
  1214.      */
  1215.     public function setDeliveryDate(?\DateTime $deliveryDate): Order
  1216.     {
  1217.         $this->deliveryDate $deliveryDate;
  1218.         return $this;
  1219.     }
  1220.     /**
  1221.      * @return int
  1222.      */
  1223.     public function getValid(): int
  1224.     {
  1225.         return $this->valid;
  1226.     }
  1227.     /**
  1228.      * @param int $valid
  1229.      *
  1230.      * @return Order
  1231.      */
  1232.     public function setValid(int $valid): Order
  1233.     {
  1234.         $this->valid $valid;
  1235.         return $this;
  1236.     }
  1237.     /**
  1238.      * @return bool
  1239.      */
  1240.     public function isValidateTransfer(): bool
  1241.     {
  1242.         return $this->validateTransfer;
  1243.     }
  1244.     /**
  1245.      * @param bool $validateTransfer
  1246.      *
  1247.      * @return Order
  1248.      */
  1249.     public function setValidateTransfer(bool $validateTransfer): Order
  1250.     {
  1251.         $this->validateTransfer $validateTransfer;
  1252.         return $this;
  1253.     }
  1254.     /**
  1255.      * @return string|null
  1256.      */
  1257.     public function getRefOrderSupplier(): ?string
  1258.     {
  1259.         return $this->refOrderSupplier;
  1260.     }
  1261.     /**
  1262.      * @param string|null $refOrderSupplier
  1263.      *
  1264.      * @return Order
  1265.      */
  1266.     public function setRefOrderSupplier(?string $refOrderSupplier): Order
  1267.     {
  1268.         $this->refOrderSupplier $refOrderSupplier;
  1269.         return $this;
  1270.     }
  1271.     /**
  1272.      * @return \DateTime
  1273.      */
  1274.     public function getDateAdd(): \DateTime
  1275.     {
  1276.         return $this->dateAdd;
  1277.     }
  1278.     /**
  1279.      * @param \DateTime $dateAdd
  1280.      *
  1281.      * @return Order
  1282.      */
  1283.     public function setDateAdd(\DateTime $dateAdd): Order
  1284.     {
  1285.         $this->dateAdd $dateAdd;
  1286.         return $this;
  1287.     }
  1288.     /**
  1289.      * @return \DateTime
  1290.      */
  1291.     public function getDateUpd(): \DateTime
  1292.     {
  1293.         return $this->dateUpd;
  1294.     }
  1295.     /**
  1296.      * @param \DateTime $dateUpd
  1297.      *
  1298.      * @return Order
  1299.      */
  1300.     public function setDateUpd(\DateTime $dateUpd): Order
  1301.     {
  1302.         $this->dateUpd $dateUpd;
  1303.         return $this;
  1304.     }
  1305.     /**
  1306.      * @return float
  1307.      */
  1308.     public function getPurse(): float
  1309.     {
  1310.         return $this->purse;
  1311.     }
  1312.     /**
  1313.      * @param float $purse
  1314.      *
  1315.      * @return Order
  1316.      */
  1317.     public function setPurse(float $purse): Order
  1318.     {
  1319.         $this->purse $purse;
  1320.         return $this;
  1321.     }
  1322.     /**
  1323.      * @return float
  1324.      */
  1325.     public function getDropshippingQty(): float
  1326.     {
  1327.         return $this->dropshippingQty;
  1328.     }
  1329.     /**
  1330.      * @param float $dropshippingQty
  1331.      *
  1332.      * @return Order
  1333.      */
  1334.     public function setDropshippingQty(float $dropshippingQty): Order
  1335.     {
  1336.         $this->dropshippingQty $dropshippingQty;
  1337.         return $this;
  1338.     }
  1339.     /**
  1340.      * @return float
  1341.      */
  1342.     public function getPaymentMethodCost(): float
  1343.     {
  1344.         return $this->paymentMethodCost;
  1345.     }
  1346.     /**
  1347.      * @param float $paymentMethodCost
  1348.      *
  1349.      * @return Order
  1350.      */
  1351.     public function setPaymentMethodCost(float $paymentMethodCost): Order
  1352.     {
  1353.         $this->paymentMethodCost $paymentMethodCost;
  1354.         return $this;
  1355.     }
  1356.     /**
  1357.      * @return float
  1358.      */
  1359.     public function getDropshippingCost(): float
  1360.     {
  1361.         return $this->dropshippingCost;
  1362.     }
  1363.     /**
  1364.      * @param float $dropshippingCost
  1365.      *
  1366.      * @return Order
  1367.      */
  1368.     public function setDropshippingCost(float $dropshippingCost): Order
  1369.     {
  1370.         $this->dropshippingCost $dropshippingCost;
  1371.         return $this;
  1372.     }
  1373.     /**
  1374.      * @return bool
  1375.      */
  1376.     public function isRe(): bool
  1377.     {
  1378.         return $this->re;
  1379.     }
  1380.     /**
  1381.      * @param bool $re
  1382.      *
  1383.      * @return Order
  1384.      */
  1385.     public function setRe(bool $re): Order
  1386.     {
  1387.         $this->re $re;
  1388.         return $this;
  1389.     }
  1390.     /**
  1391.      * @return string|null
  1392.      */
  1393.     public function getTransactionId(): ?string
  1394.     {
  1395.         return $this->transactionId;
  1396.     }
  1397.     /**
  1398.      * @param string|null $transactionId
  1399.      *
  1400.      * @return Order
  1401.      */
  1402.     public function setTransactionId(?string $transactionId): Order
  1403.     {
  1404.         $this->transactionId $transactionId;
  1405.         return $this;
  1406.     }
  1407.     /**
  1408.      * @return string|null
  1409.      */
  1410.     public function getCommentCarrier(): ?string
  1411.     {
  1412.         return $this->commentCarrier;
  1413.     }
  1414.     /**
  1415.      * @param string|null $commentCarrier
  1416.      *
  1417.      * @return Order
  1418.      */
  1419.     public function setCommentCarrier(?string $commentCarrier): Order
  1420.     {
  1421.         $this->commentCarrier $commentCarrier;
  1422.         return $this;
  1423.     }
  1424.     /**
  1425.      * @return bool|null
  1426.      */
  1427.     public function getRefund(): ?bool
  1428.     {
  1429.         return $this->refund;
  1430.     }
  1431.     /**
  1432.      * @param bool|null $refund
  1433.      *
  1434.      * @return Order
  1435.      */
  1436.     public function setRefund(?bool $refund): Order
  1437.     {
  1438.         $this->refund $refund;
  1439.         return $this;
  1440.     }
  1441.     /**
  1442.      * @return string|null
  1443.      */
  1444.     public function getIntracomunitario(): ?string
  1445.     {
  1446.         return $this->intracomunitario;
  1447.     }
  1448.     /**
  1449.      * @param string|null $intracomunitario
  1450.      *
  1451.      * @return Order
  1452.      */
  1453.     public function setIntracomunitario(?string $intracomunitario): Order
  1454.     {
  1455.         $this->intracomunitario $intracomunitario;
  1456.         return $this;
  1457.     }
  1458.     /**
  1459.      * @return bool|null
  1460.      */
  1461.     public function getIsTracking(): ?bool
  1462.     {
  1463.         return $this->isTracking;
  1464.     }
  1465.     /**
  1466.      * @param bool|null $isTracking
  1467.      *
  1468.      * @return Order
  1469.      */
  1470.     public function setIsTracking(?bool $isTracking): Order
  1471.     {
  1472.         $this->isTracking $isTracking;
  1473.         return $this;
  1474.     }
  1475.     /**
  1476.      * @return bool|null
  1477.      */
  1478.     public function getStateDropshipping(): ?bool
  1479.     {
  1480.         return $this->stateDropshipping;
  1481.     }
  1482.     /**
  1483.      * @param bool|null $stateDropshipping
  1484.      *
  1485.      * @return Order
  1486.      */
  1487.     public function setStateDropshipping(?bool $stateDropshipping): Order
  1488.     {
  1489.         $this->stateDropshipping $stateDropshipping;
  1490.         return $this;
  1491.     }
  1492.     /**
  1493.      * @return float|null
  1494.      */
  1495.     public function getVolWeight(): ?float
  1496.     {
  1497.         return $this->volWeight;
  1498.     }
  1499.     /**
  1500.      * @param float|null $volWeight
  1501.      *
  1502.      * @return Order
  1503.      */
  1504.     public function setVolWeight(?float $volWeight): Order
  1505.     {
  1506.         $this->volWeight $volWeight;
  1507.         return $this;
  1508.     }
  1509.     /**
  1510.      * @return int|null
  1511.      */
  1512.     public function getIdCarrierMaster(): ?int
  1513.     {
  1514.         return $this->idCarrierMaster;
  1515.     }
  1516.     /**
  1517.      * @param int|null $idCarrierMaster
  1518.      *
  1519.      * @return Order
  1520.      */
  1521.     public function setIdCarrierMaster(?int $idCarrierMaster): Order
  1522.     {
  1523.         $this->idCarrierMaster $idCarrierMaster;
  1524.         return $this;
  1525.     }
  1526.     /**
  1527.      * @return string|null
  1528.      */
  1529.     public function getIdOrderParent(): ?string
  1530.     {
  1531.         return $this->idOrderParent;
  1532.     }
  1533.     /**
  1534.      * @param string|null $idOrderParent
  1535.      *
  1536.      * @return Order
  1537.      */
  1538.     public function setIdOrderParent(?string $idOrderParent): Order
  1539.     {
  1540.         $this->idOrderParent $idOrderParent;
  1541.         return $this;
  1542.     }
  1543.     /**
  1544.      * @return bool|null
  1545.      */
  1546.     public function getQuantityStockSupplier(): ?bool
  1547.     {
  1548.         return $this->quantityStockSupplier;
  1549.     }
  1550.     /**
  1551.      * @param bool|null $quantityStockSupplier
  1552.      *
  1553.      * @return Order
  1554.      */
  1555.     public function setQuantityStockSupplier(?bool $quantityStockSupplier): Order
  1556.     {
  1557.         $this->quantityStockSupplier $quantityStockSupplier;
  1558.         return $this;
  1559.     }
  1560.     /**
  1561.      * @return bool|null
  1562.      */
  1563.     public function getQuantityFutureStock(): ?bool
  1564.     {
  1565.         return $this->quantityFutureStock;
  1566.     }
  1567.     /**
  1568.      * @param bool|null $quantityFutureStock
  1569.      *
  1570.      * @return Order
  1571.      */
  1572.     public function setQuantityFutureStock(?bool $quantityFutureStock): Order
  1573.     {
  1574.         $this->quantityFutureStock $quantityFutureStock;
  1575.         return $this;
  1576.     }
  1577.     /**
  1578.      * @return int|null
  1579.      */
  1580.     public function getIdPack(): ?int
  1581.     {
  1582.         return $this->idPack;
  1583.     }
  1584.     /**
  1585.      * @param int|null $idPack
  1586.      *
  1587.      * @return Order
  1588.      */
  1589.     public function setIdPack(?int $idPack): Order
  1590.     {
  1591.         $this->idPack $idPack;
  1592.         return $this;
  1593.     }
  1594.     /**
  1595.      * @return \DateTime|null
  1596.      */
  1597.     public function getDeliveredDate(): ?\DateTime
  1598.     {
  1599.         return $this->deliveredDate;
  1600.     }
  1601.     /**
  1602.      * @param \DateTime|null $deliveredDate
  1603.      *
  1604.      * @return Order
  1605.      */
  1606.     public function setDeliveredDate(?\DateTime $deliveredDate): Order
  1607.     {
  1608.         $this->deliveredDate $deliveredDate;
  1609.         return $this;
  1610.     }
  1611.     /**
  1612.      * @return bool|null
  1613.      */
  1614.     public function getPassiveSubject(): ?bool
  1615.     {
  1616.         return $this->passiveSubject;
  1617.     }
  1618.     /**
  1619.      * @param bool|null $passiveSubject
  1620.      *
  1621.      * @return Order
  1622.      */
  1623.     public function setPassiveSubject(?bool $passiveSubject): Order
  1624.     {
  1625.         $this->passiveSubject $passiveSubject;
  1626.         return $this;
  1627.     }
  1628.     /**
  1629.      * @return float|null
  1630.      */
  1631.     public function getRapelAmount(): ?float
  1632.     {
  1633.         return $this->rapelAmount;
  1634.     }
  1635.     /**
  1636.      * @param float|null $rapelAmount
  1637.      *
  1638.      * @return Order
  1639.      */
  1640.     public function setRapelAmount(?float $rapelAmount): Order
  1641.     {
  1642.         $this->rapelAmount $rapelAmount;
  1643.         return $this;
  1644.     }
  1645.     /**
  1646.      * @return bool|null
  1647.      */
  1648.     public function getApi(): ?bool
  1649.     {
  1650.         return $this->api;
  1651.     }
  1652.     /**
  1653.      * @param bool|null $api
  1654.      *
  1655.      * @return Order
  1656.      */
  1657.     public function setApi(?bool $api): Order
  1658.     {
  1659.         $this->api $api;
  1660.         return $this;
  1661.     }
  1662.     /**
  1663.      * @return bool|null
  1664.      */
  1665.     public function getIsSystem(): ?bool
  1666.     {
  1667.         return $this->isSystem;
  1668.     }
  1669.     /**
  1670.      * @param bool|null $isSystem
  1671.      *
  1672.      * @return Order
  1673.      */
  1674.     public function setIsSystem(?bool $isSystem): Order
  1675.     {
  1676.         $this->isSystem $isSystem;
  1677.         return $this;
  1678.     }
  1679.     /**
  1680.      * @return string|null
  1681.      */
  1682.     public function getSellingChannel(): ?string
  1683.     {
  1684.         return $this->sellingChannel;
  1685.     }
  1686.     /**
  1687.      * @param string|null $sellingChannel
  1688.      *
  1689.      * @return Order
  1690.      */
  1691.     public function setSellingChannel(?string $sellingChannel): Order
  1692.     {
  1693.         $this->sellingChannel $sellingChannel;
  1694.         return $this;
  1695.     }
  1696.     /**
  1697.      * @return \DateTime|null
  1698.      */
  1699.     public function getDateAmazon(): ?\DateTime
  1700.     {
  1701.         return $this->dateAmazon;
  1702.     }
  1703.     /**
  1704.      * @param \DateTime|null $dateAmazon
  1705.      *
  1706.      * @return Order
  1707.      */
  1708.     public function setDateAmazon(?\DateTime $dateAmazon): Order
  1709.     {
  1710.         $this->dateAmazon $dateAmazon;
  1711.         return $this;
  1712.     }
  1713.     /**
  1714.      * @return string|null
  1715.      */
  1716.     public function getAdditionalParameters(): ?string
  1717.     {
  1718.         return $this->additionalParameters;
  1719.     }
  1720.     /**
  1721.      * @param string|null $additionalParameters
  1722.      *
  1723.      * @return Order
  1724.      */
  1725.     public function setAdditionalParameters(?string $additionalParameters): Order
  1726.     {
  1727.         $this->additionalParameters $additionalParameters;
  1728.         return $this;
  1729.     }
  1730.     /**
  1731.      * @return OrderDetail[]|ArrayCollection<OrderDetail>
  1732.      */
  1733.     public function getOrderDetails()
  1734.     {
  1735.         return $this->orderDetails;
  1736.     }
  1737.     /**
  1738.      * @param OrderDetail[] $orderDetails
  1739.      *
  1740.      * @return Order
  1741.      */
  1742.     public function setOrderDetails(array $orderDetails): Order
  1743.     {
  1744.         $this->orderDetails $orderDetails;
  1745.         return $this;
  1746.     }
  1747.     public function addOrderDetail(OrderDetail $orderDetail): Order
  1748.     {
  1749.         if (!$this->orderDetails->contains($orderDetail)) {
  1750.             $this->orderDetails[] = $orderDetail;
  1751.         }
  1752.         return $this;
  1753.     }
  1754.     public function getCustomer(): ?Customer
  1755.     {
  1756.         return $this->customer;
  1757.     }
  1758.     public function setCustomer(?Customer $customer): self
  1759.     {
  1760.         $this->customer $customer;
  1761.         return $this;
  1762.     }
  1763.     /**
  1764.      * @return \DateTime|null
  1765.      */
  1766.     public function getEstimatedShippingDate(): ?\DateTime
  1767.     {
  1768.         return $this->estimatedShippingDate;
  1769.     }
  1770.     /**
  1771.      * @param \DateTime|null $estimatedShippingDate
  1772.      *
  1773.      * @return Order
  1774.      */
  1775.     public function setEstimatedShippingDate(?\DateTime $estimatedShippingDate): self
  1776.     {
  1777.         $this->estimatedShippingDate $estimatedShippingDate;
  1778.         return $this;
  1779.     }
  1780.     /**
  1781.      * @return string|null
  1782.      */
  1783.     public function getA4bUuid(): ?string
  1784.     {
  1785.         return $this->a4bUuid;
  1786.     }
  1787.     /**
  1788.      * @param string|null $a4bUuid
  1789.      *
  1790.      * @return Order
  1791.      */
  1792.     public function setA4bUuid(?string $a4bUuid): self
  1793.     {
  1794.         $this->a4bUuid $a4bUuid;
  1795.         return $this;
  1796.     }
  1797.     /**
  1798.      * @return bool|null
  1799.      */
  1800.     public function getDispute(): ?bool
  1801.     {
  1802.         return $this->dispute;
  1803.     }
  1804.     /**
  1805.      * @param bool|null $dispute
  1806.      *
  1807.      * @return Order
  1808.      */
  1809.     public function setDispute(?bool $dispute): self
  1810.     {
  1811.         $this->dispute $dispute;
  1812.         return $this;
  1813.     }
  1814.     /**
  1815.      * @return int
  1816.      */
  1817.     public function getOrderStatus(): int
  1818.     {
  1819.         return $this->orderStatus;
  1820.     }
  1821.     /**
  1822.      * @param int $orderStatus
  1823.      *
  1824.      * @return Order
  1825.      */
  1826.     public function setOrderStatus(int $orderStatus): self
  1827.     {
  1828.         $this->orderStatus $orderStatus;
  1829.         return $this;
  1830.     }
  1831.     public function getCart(): ?Cart
  1832.     {
  1833.         return $this->cart;
  1834.     }
  1835.     /**
  1836.      * @param Cart $cart
  1837.      *
  1838.      * @return Order
  1839.      */
  1840.     public function setCart(Cart $cart): self
  1841.     {
  1842.         $this->cart $cart;
  1843.         return $this;
  1844.     }
  1845.     /**
  1846.      * @return CodeDiscount[]|ArrayCollection<CodeDiscount>
  1847.      */
  1848.     public function getCodeDiscount()
  1849.     {
  1850.         return $this->codeDiscount;
  1851.     }
  1852.     /**
  1853.      * @param CodeDiscount[]|ArrayCollection $codeDiscount
  1854.      */
  1855.     public function setCodeDiscount($codeDiscount): self
  1856.     {
  1857.         $this->codeDiscount $codeDiscount;
  1858.         return $this;
  1859.     }
  1860.     /**
  1861.      * @return Warehouse
  1862.      */
  1863.     public function getWarehouse(): Warehouse
  1864.     {
  1865.         return $this->warehouse;
  1866.     }
  1867.     /**
  1868.      * @param Warehouse $warehouse
  1869.      *
  1870.      * @return Order
  1871.      */
  1872.     public function setWarehouse(Warehouse $warehouse): self
  1873.     {
  1874.         $this->warehouse $warehouse;
  1875.         return $this;
  1876.     }
  1877.     /**
  1878.      * @return Collection|Invoice[]
  1879.      */
  1880.     public function getInvoice(): Collection
  1881.     {
  1882.         return $this->invoice;
  1883.     }
  1884.     /**
  1885.      * @return bool|int|null
  1886.      */
  1887.     public function getQuantityStockSupplier3To5()
  1888.     {
  1889.         return $this->quantityStockSupplier3To5;
  1890.     }
  1891.     /**
  1892.      * @param bool|int|null $quantityStockSupplier3To5
  1893.      */
  1894.     public function setQuantityStockSupplier3To5($quantityStockSupplier3To5): void
  1895.     {
  1896.         $this->quantityStockSupplier3To5 $quantityStockSupplier3To5;
  1897.     }
  1898.     /**
  1899.      * @return string|null
  1900.      */
  1901.     public function getPaymentMethodType(): ?string
  1902.     {
  1903.         return $this->paymentMethodType;
  1904.     }
  1905.     public function setPaymentMethodType(?string $paymentMethodType): void
  1906.     {
  1907.         $this->paymentMethodType $paymentMethodType;
  1908.     }
  1909.     public function getPaypalPayerId(): ?string
  1910.     {
  1911.         return $this->paypalPayerId;
  1912.     }
  1913.     public function setPaypalPayerId(?string $paypalPayerId): Order
  1914.     {
  1915.         $this->paypalPayerId $paypalPayerId;
  1916.         return $this;
  1917.     }
  1918.     public function getPaypalPayerEmail(): ?string
  1919.     {
  1920.         return $this->paypalPayerEmail;
  1921.     }
  1922.     public function setPaypalPayerEmail(?string $paypalPayerEmail): Order
  1923.     {
  1924.         $this->paypalPayerEmail $paypalPayerEmail;
  1925.         return $this;
  1926.     }
  1927.     public function getOrderTax(): ?OrderTax
  1928.     {
  1929.         return $this->orderTax;
  1930.     }
  1931.     public function setOrderTax(float $orderTax): Order
  1932.     {
  1933.         $this->orderTax $orderTax;
  1934.         return $this;
  1935.     }
  1936.     public function getDropshipping(): bool
  1937.     {
  1938.         return $this->dropshipping;
  1939.     }
  1940.     public function isFba(): bool
  1941.     {
  1942.         return $this->fba;
  1943.     }
  1944.     public function setFba(bool $fba): Order
  1945.     {
  1946.         $this->fba $fba;
  1947.         return $this;
  1948.     }
  1949.     public function getPaymentMethodTypeToOdoo(): ?string
  1950.     {
  1951.         if ($this->getPaymentMethodType() === 'mc') {
  1952.             return 'mastercard';
  1953.         }
  1954.         return $this->getPaymentMethodType();
  1955.     }
  1956.     public function getMaxExpeditionDatetime(): ?\DateTime
  1957.     {
  1958.         return $this->maxExpeditionDatetime;
  1959.     }
  1960.     public function setMaxExpeditionDatetime(\DateTime $maxExpeditionDatetime): Order
  1961.     {
  1962.         $this->maxExpeditionDatetime $maxExpeditionDatetime;
  1963.         return $this;
  1964.     }
  1965.     public function getMaxDeliveryDatetime(): ?\DateTime
  1966.     {
  1967.         return $this->maxDeliveryDatetime;
  1968.     }
  1969.     public function setMaxDeliveryDatetime(\DateTime $maxDeliveryDatetime): Order
  1970.     {
  1971.         $this->maxDeliveryDatetime $maxDeliveryDatetime;
  1972.         return $this;
  1973.     }
  1974.     public function getFullRefund(): ?bool
  1975.     {
  1976.         return $this->fullRefund;
  1977.     }
  1978.     public function setFullRefund(?bool $fullRefund): Order
  1979.     {
  1980.         $this->fullRefund $fullRefund;
  1981.         return $this;
  1982.     }
  1983.     public function getLogisticWeight(): ?float
  1984.     {
  1985.         return $this->logisticWeight;
  1986.     }
  1987.     public function setLogisticWeight(?float $logisticWeight): void
  1988.     {
  1989.         $this->logisticWeight $logisticWeight;
  1990.     }
  1991. }