src/Entity/System/Order.php line 24

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