src/Entity/System/OrderDetail.php line 20

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: Toni Peral <[email protected]>
  5.  * Date: 10/3/20
  6.  * Time: 15:56
  7.  */
  8. namespace App\Entity\System;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11.  * OrderDetail
  12.  *
  13.  * @ORM\Table(name="ps_order_detail")
  14.  *
  15.  * @ORM\Entity(repositoryClass="App\Repository\System\OrderDetailRepository")
  16.  */
  17. class OrderDetail
  18. {
  19.     /**
  20.      * @ORM\Id()
  21.      *
  22.      * @ORM\GeneratedValue()
  23.      *
  24.      * @ORM\Column(type="integer", name="id_order_detail")
  25.      */
  26.     private $id;
  27.     /**
  28.      * @var Order
  29.      *
  30.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Order", inversedBy="orderDetails", cascade={"persist"})
  31.      *
  32.      * @ORM\JoinColumn(name="id_order", referencedColumnName="id_order")
  33.      */
  34.     private $order;
  35.     /**
  36.      * @var int|null
  37.      *
  38.      * @ORM\Column(type="integer", length=11, nullable=true)
  39.      */
  40.     private $idOrderInvoice;
  41.     /**
  42.      * @var int
  43.      *
  44.      * @ORM\Column(type="integer", length=10)
  45.      */
  46.     private $productId;
  47.     /**
  48.      * @var int|null
  49.      *
  50.      * @ORM\Column(type="integer", length=10, nullable=true)
  51.      */
  52.     private $productAttributeId;
  53.     /**
  54.      * @var string
  55.      *
  56.      * @ORM\Column(type="string", length=255)
  57.      */
  58.     private $productName;
  59.     /**
  60.      * @var int
  61.      *
  62.      * @ORM\Column(type="integer", length=10, options={"default" : 0})
  63.      */
  64.     private $productQuantity;
  65.     /**
  66.      * @var int
  67.      *
  68.      * @ORM\Column(type="integer", length=10, options={"default" : 0})
  69.      */
  70.     private $productCatalog;
  71.     /**
  72.      * @var int
  73.      *
  74.      * @ORM\Column(type="integer", length=10, options={"default" : 0})
  75.      */
  76.     private $productQuantityInStock;
  77.     /**
  78.      * @var int
  79.      *
  80.      * @ORM\Column(type="integer", length=10, options={"default" : 0})
  81.      */
  82.     private $productQuantityRefunded;
  83.     /**
  84.      * @var int
  85.      *
  86.      * @ORM\Column(type="integer", length=10, options={"default" : 0})
  87.      */
  88.     private $productQuantityReturn;
  89.     /**
  90.      * @var int
  91.      *
  92.      * @ORM\Column(type="integer", length=10, options={"default" : 0})
  93.      */
  94.     private $productQuantityReinjected;
  95.     /**
  96.      * @var float
  97.      *
  98.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  99.      */
  100.     private $productPrice;
  101.     /**
  102.      * @var float
  103.      *
  104.      * @ORM\Column(type="decimal", precision=10, scale=2, options={"default" : 0.00} )
  105.      */
  106.     private $reductionPercent;
  107.     /**
  108.      * @var float
  109.      *
  110.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  111.      */
  112.     private $reductionAmount;
  113.     /**
  114.      * @var float
  115.      *
  116.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  117.      */
  118.     private $reductionAmountTaxIncl;
  119.     /**
  120.      * @var float
  121.      *
  122.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  123.      */
  124.     private $reductionAmountTaxExcl;
  125.     /**
  126.      * @var float
  127.      *
  128.      * @ORM\Column(type="decimal", precision=10, scale=2, options={"default" : 0.00})
  129.      */
  130.     private $groupReduction;
  131.     /**
  132.      * @var float
  133.      *
  134.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  135.      */
  136.     private $productQuantityDiscount;
  137.     /**
  138.      * @var string|null
  139.      *
  140.      * @ORM\Column(type="string", length=13, nullable=true)
  141.      */
  142.     private $productEan13;
  143.     /**
  144.      * @var string|null
  145.      *
  146.      * @ORM\Column(type="string", length=12, nullable=true)
  147.      */
  148.     private $productUpc;
  149.     /**
  150.      * @var string|null
  151.      *
  152.      * @ORM\Column(type="string", length=32, nullable=true)
  153.      */
  154.     private $productReference;
  155.     /**
  156.      * @var string|null
  157.      *
  158.      * @ORM\Column(type="string", length=32, nullable=true)
  159.      */
  160.     private $productSupplierReference;
  161.     /**
  162.      * @var float
  163.      *
  164.      * @ORM\Column(type="decimal", precision=20, scale=6)
  165.      */
  166.     private $productWeight;
  167.     /**
  168.      * @var int
  169.      *
  170.      * @ORM\Column(type="integer", length=10, options={"default": 0})
  171.      */
  172.     private $taxComputationMethod;
  173.     /**
  174.      * @var string
  175.      *
  176.      * @ORM\Column(type="string", length=16)
  177.      */
  178.     private $taxName;
  179.     /**
  180.      * @var float
  181.      *
  182.      * @ORM\Column(type="decimal", precision=10, scale=3, options={"default" : 0.000})
  183.      */
  184.     private $taxRate;
  185.     /**
  186.      * @var float
  187.      *
  188.      * @ORM\Column(type="decimal", precision=21, scale=6, options={"default" : 0.000000})
  189.      */
  190.     private $ecotax;
  191.     /**
  192.      * @var float
  193.      *
  194.      * @ORM\Column(type="decimal", precision=5, scale=3, options={"default" : 0.000}, name="ecotax_tax_rate")
  195.      */
  196.     private $ecoTaxRate;
  197.     /**
  198.      * @var bool
  199.      *
  200.      * @ORM\Column(type="boolean", columnDefinition="tinyint(1)", options={"default" : 0})
  201.      */
  202.     private $discountQuantityApplied;
  203.     /**
  204.      * @var string|null
  205.      *
  206.      * @ORM\Column(type="string", length=255, nullable=true)
  207.      */
  208.     private $downloadHash;
  209.     /**
  210.      * @var int|null
  211.      *
  212.      * @ORM\Column(type="integer", options={"default" : 0}, nullable=true)
  213.      */
  214.     private $downloadNb;
  215.     /**
  216.      * @var \DateTime|null
  217.      *
  218.      * @ORM\Column(type="datetime", nullable=true)
  219.      */
  220.     private $downloadDeadline;
  221.     /**
  222.      * @var float
  223.      *
  224.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  225.      */
  226.     private $totalPriceTaxIncl;
  227.     /**
  228.      * @var float
  229.      *
  230.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  231.      */
  232.     private $totalPriceTaxExcl;
  233.     /**
  234.      * @var float
  235.      *
  236.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  237.      */
  238.     private $unitPriceTaxIncl;
  239.     /**
  240.      * @var float
  241.      *
  242.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  243.      */
  244.     private $unitPriceTaxExcl;
  245.     /**
  246.      * @var float
  247.      *
  248.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  249.      */
  250.     private $totalShippingPriceTaxIncl;
  251.     /**
  252.      * @var float
  253.      *
  254.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  255.      */
  256.     private $totalShippingPriceTaxExcl;
  257.     /**
  258.      * @var float
  259.      *
  260.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  261.      */
  262.     private $purchaseSupplierPrice;
  263.     /**
  264.      * @var float
  265.      *
  266.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  267.      */
  268.     private $originalProductPrice;
  269.     /**
  270.      * @var bool
  271.      *
  272.      * @ORM\Column(type="boolean", columnDefinition="tinyint(4)", options={"default" : 0})
  273.      */
  274.     private $re;
  275.     /**
  276.      * @var int
  277.      *
  278.      * @ORM\Column(type="integer", length=11 ,options={"default" : 0})
  279.      */
  280.     private $locks;
  281.     /**
  282.      * @var bool|null
  283.      *
  284.      * @ORM\Column(type="boolean", columnDefinition="tinyint(1)", options={"default" : 0}, nullable=true)
  285.      */
  286.     private $quantityStockSupplier;
  287.     /**
  288.      * @var bool|null
  289.      *
  290.      * @ORM\Column(name="quantity_stock_supplier_3_5", type="boolean", columnDefinition="tinyint(1)", options={"default" : 0}, nullable=true)
  291.      */
  292.     private $quantityStockSupplier3To5;
  293.     /**
  294.      * @var bool|null
  295.      *
  296.      * @ORM\Column(type="boolean", columnDefinition="tinyint(1)", options={"default" : 0}, nullable=true)
  297.      */
  298.     private $quantityFutureStock;
  299.     /**
  300.      * @var string|null
  301.      *
  302.      * @ORM\Column(type="string", length=50, nullable=true, options={"default" : "0"} )
  303.      */
  304.     private $purchaseOrder;
  305.     /**
  306.      * @var int|null
  307.      *
  308.      * @ORM\Column(type="integer", length=11 ,options={"default" : 0}, nullable=true)
  309.      */
  310.     private $idPurchaseLine;
  311.     /**
  312.      * @var float
  313.      *
  314.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  315.      */
  316.     private $width;
  317.     /**
  318.      * @var float
  319.      *
  320.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  321.      */
  322.     private $height;
  323.     /**
  324.      * @var float
  325.      *
  326.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  327.      */
  328.     private $depth;
  329.     /**
  330.      * @var bool
  331.      *
  332.      * @ORM\Column(type="boolean", columnDefinition="tinyint(4)", options={"default" : 1})
  333.      */
  334.     private $pedidosTransito;
  335.     /**
  336.      * @var float
  337.      *
  338.      * @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
  339.      */
  340.     private $estimateCostPrice;
  341.     /**
  342.      * @var int|null
  343.      *
  344.      * @ORM\Column(type="integer", length=11 , nullable=true)
  345.      */
  346.     private $priceByQuantity;
  347.     /**
  348.      * @var string|null
  349.      *
  350.      * @ORM\Column(type="string", length=100 , nullable=true)
  351.      */
  352.     private $internalReference;
  353.     /**
  354.      * @var bool
  355.      *
  356.      * @ORM\Column(name="buybox", type="boolean")
  357.      */
  358.     private $buyBox;
  359.     /**
  360.      * @var \DateTime
  361.      *
  362.      * @ORM\Column(type="datetime")
  363.      */
  364.     private $dateUpd;
  365.     /**
  366.      * OrderDetail constructor.
  367.      */
  368.     public function __construct()
  369.     {
  370.         $this->productQuantity 0;
  371.         $this->productCatalog 0;
  372.         $this->productQuantityInStock 0;
  373.         $this->productQuantityRefunded 0;
  374.         $this->productQuantityReturn 0;
  375.         $this->productQuantityReinjected 0;
  376.         $this->productPrice 0.000000;
  377.         $this->reductionPercent 0.00;
  378.         $this->reductionAmount 0.000000;
  379.         $this->reductionAmountTaxIncl 0.000000;
  380.         $this->reductionAmountTaxExcl 0.000000;
  381.         $this->groupReduction 0.00;
  382.         $this->productQuantityDiscount 0.000000;
  383.         $this->taxComputationMethod 0;
  384.         $this->taxRate 0.000;
  385.         $this->ecotax 0.000000;
  386.         $this->ecoTaxRate 0.000;
  387.         $this->discountQuantityApplied 0;
  388.         $this->downloadNb 0;
  389.         $this->totalPriceTaxIncl 0.000000;
  390.         $this->totalPriceTaxExcl 0.000000;
  391.         $this->unitPriceTaxIncl 0.000000;
  392.         $this->unitPriceTaxExcl 0.000000;
  393.         $this->totalShippingPriceTaxExcl 0.000000;
  394.         $this->totalShippingPriceTaxIncl 0.000000;
  395.         $this->purchaseSupplierPrice 0.000000;
  396.         $this->originalProductPrice 0.000000;
  397.         $this->re 0;
  398.         $this->locks 0;
  399.         $this->quantityStockSupplier 0;
  400.         $this->quantityStockSupplier3To5 0;
  401.         $this->quantityFutureStock 0;
  402.         $this->purchaseOrder '0';
  403.         $this->idPurchaseLine 0;
  404.         $this->width 0.000000;
  405.         $this->height 0.000000;
  406.         $this->depth 0.000000;
  407.         $this->pedidosTransito 1;
  408.         $this->estimateCostPrice 0.000000;
  409.         $this->buyBox false;
  410.     }
  411.     /**
  412.      * @return mixed
  413.      */
  414.     public function getId()
  415.     {
  416.         return $this->id;
  417.     }
  418.     /**
  419.      * @param mixed $id
  420.      *
  421.      * @return OrderDetail
  422.      */
  423.     public function setId($id): OrderDetail
  424.     {
  425.         $this->id $id;
  426.         return $this;
  427.     }
  428.     /**
  429.      * @return Order
  430.      */
  431.     public function getOrder(): Order
  432.     {
  433.         return $this->order;
  434.     }
  435.     /**
  436.      * @param Order $order
  437.      *
  438.      * @return OrderDetail
  439.      */
  440.     public function setOrder(Order $order): OrderDetail
  441.     {
  442.         $this->order $order;
  443.         return $this;
  444.     }
  445.     /**
  446.      * @return int|null
  447.      */
  448.     public function getIdOrderInvoice(): ?int
  449.     {
  450.         return $this->idOrderInvoice;
  451.     }
  452.     /**
  453.      * @param int|null $idOrderInvoice
  454.      *
  455.      * @return OrderDetail
  456.      */
  457.     public function setIdOrderInvoice(?int $idOrderInvoice): OrderDetail
  458.     {
  459.         $this->idOrderInvoice $idOrderInvoice;
  460.         return $this;
  461.     }
  462.     /**
  463.      * @return int
  464.      */
  465.     public function getProductId(): int
  466.     {
  467.         return $this->productId;
  468.     }
  469.     /**
  470.      * @param int $productId
  471.      *
  472.      * @return OrderDetail
  473.      */
  474.     public function setProductId(int $productId): OrderDetail
  475.     {
  476.         $this->productId $productId;
  477.         return $this;
  478.     }
  479.     /**
  480.      * @return int|null
  481.      */
  482.     public function getProductAttributeId(): ?int
  483.     {
  484.         return $this->productAttributeId;
  485.     }
  486.     /**
  487.      * @param int|null $productAttributeId
  488.      *
  489.      * @return OrderDetail
  490.      */
  491.     public function setProductAttributeId(?int $productAttributeId): OrderDetail
  492.     {
  493.         $this->productAttributeId $productAttributeId;
  494.         return $this;
  495.     }
  496.     /**
  497.      * @return string
  498.      */
  499.     public function getProductName(): string
  500.     {
  501.         return $this->productName;
  502.     }
  503.     /**
  504.      * @param string $productName
  505.      *
  506.      * @return OrderDetail
  507.      */
  508.     public function setProductName(string $productName): OrderDetail
  509.     {
  510.         $this->productName $productName;
  511.         return $this;
  512.     }
  513.     /**
  514.      * @return int
  515.      */
  516.     public function getProductQuantity(): int
  517.     {
  518.         return $this->productQuantity;
  519.     }
  520.     /**
  521.      * @param int $productQuantity
  522.      *
  523.      * @return OrderDetail
  524.      */
  525.     public function setProductQuantity(int $productQuantity): OrderDetail
  526.     {
  527.         $this->productQuantity $productQuantity;
  528.         return $this;
  529.     }
  530.     public function getProductCatalog(): int
  531.     {
  532.         return $this->productCatalog;
  533.     }
  534.     public function setProductCatalog(int $productCatalog): OrderDetail
  535.     {
  536.         $this->productCatalog $productCatalog;
  537.         return $this;
  538.     }
  539.     /**
  540.      * @return int
  541.      */
  542.     public function getProductQuantityInStock(): int
  543.     {
  544.         return $this->productQuantityInStock;
  545.     }
  546.     /**
  547.      * @param int $productQuantityInStock
  548.      *
  549.      * @return OrderDetail
  550.      */
  551.     public function setProductQuantityInStock(int $productQuantityInStock): OrderDetail
  552.     {
  553.         $this->productQuantityInStock $productQuantityInStock;
  554.         return $this;
  555.     }
  556.     /**
  557.      * @return int
  558.      */
  559.     public function getProductQuantityRefunded(): int
  560.     {
  561.         return $this->productQuantityRefunded;
  562.     }
  563.     /**
  564.      * @param int $productQuantityRefunded
  565.      *
  566.      * @return OrderDetail
  567.      */
  568.     public function setProductQuantityRefunded(int $productQuantityRefunded): OrderDetail
  569.     {
  570.         $this->productQuantityRefunded $productQuantityRefunded;
  571.         return $this;
  572.     }
  573.     /**
  574.      * @return int
  575.      */
  576.     public function getProductQuantityReturn(): int
  577.     {
  578.         return $this->productQuantityReturn;
  579.     }
  580.     /**
  581.      * @param int $productQuantityReturn
  582.      *
  583.      * @return OrderDetail
  584.      */
  585.     public function setProductQuantityReturn(int $productQuantityReturn): OrderDetail
  586.     {
  587.         $this->productQuantityReturn $productQuantityReturn;
  588.         return $this;
  589.     }
  590.     /**
  591.      * @return int
  592.      */
  593.     public function getProductQuantityReinjected(): int
  594.     {
  595.         return $this->productQuantityReinjected;
  596.     }
  597.     /**
  598.      * @param int $productQuantityReinjected
  599.      *
  600.      * @return OrderDetail
  601.      */
  602.     public function setProductQuantityReinjected(int $productQuantityReinjected): OrderDetail
  603.     {
  604.         $this->productQuantityReinjected $productQuantityReinjected;
  605.         return $this;
  606.     }
  607.     /**
  608.      * @return float
  609.      */
  610.     public function getProductPrice(): float
  611.     {
  612.         return $this->productPrice;
  613.     }
  614.     /**
  615.      * @param float $productPrice
  616.      *
  617.      * @return OrderDetail
  618.      */
  619.     public function setProductPrice(float $productPrice): OrderDetail
  620.     {
  621.         $this->productPrice $productPrice;
  622.         return $this;
  623.     }
  624.     /**
  625.      * @return float
  626.      */
  627.     public function getReductionPercent(): float
  628.     {
  629.         return $this->reductionPercent;
  630.     }
  631.     /**
  632.      * @param float $reductionPercent
  633.      *
  634.      * @return OrderDetail
  635.      */
  636.     public function setReductionPercent(float $reductionPercent): OrderDetail
  637.     {
  638.         $this->reductionPercent $reductionPercent;
  639.         return $this;
  640.     }
  641.     /**
  642.      * @return float
  643.      */
  644.     public function getReductionAmount(): float
  645.     {
  646.         return $this->reductionAmount;
  647.     }
  648.     /**
  649.      * @param float $reductionAmount
  650.      *
  651.      * @return OrderDetail
  652.      */
  653.     public function setReductionAmount(float $reductionAmount): OrderDetail
  654.     {
  655.         $this->reductionAmount $reductionAmount;
  656.         return $this;
  657.     }
  658.     /**
  659.      * @return float
  660.      */
  661.     public function getReductionAmountTaxIncl(): float
  662.     {
  663.         return $this->reductionAmountTaxIncl;
  664.     }
  665.     /**
  666.      * @param float $reductionAmountTaxIncl
  667.      *
  668.      * @return OrderDetail
  669.      */
  670.     public function setReductionAmountTaxIncl(float $reductionAmountTaxIncl): OrderDetail
  671.     {
  672.         $this->reductionAmountTaxIncl $reductionAmountTaxIncl;
  673.         return $this;
  674.     }
  675.     /**
  676.      * @return float
  677.      */
  678.     public function getReductionAmountTaxExcl(): float
  679.     {
  680.         return $this->reductionAmountTaxExcl;
  681.     }
  682.     /**
  683.      * @param float $reductionAmountTaxExcl
  684.      *
  685.      * @return OrderDetail
  686.      */
  687.     public function setReductionAmountTaxExcl(float $reductionAmountTaxExcl): OrderDetail
  688.     {
  689.         $this->reductionAmountTaxExcl $reductionAmountTaxExcl;
  690.         return $this;
  691.     }
  692.     /**
  693.      * @return float
  694.      */
  695.     public function getGroupReduction(): float
  696.     {
  697.         return $this->groupReduction;
  698.     }
  699.     /**
  700.      * @param float $groupReduction
  701.      *
  702.      * @return OrderDetail
  703.      */
  704.     public function setGroupReduction(float $groupReduction): OrderDetail
  705.     {
  706.         $this->groupReduction $groupReduction;
  707.         return $this;
  708.     }
  709.     /**
  710.      * @return float
  711.      */
  712.     public function getProductQuantityDiscount(): float
  713.     {
  714.         return $this->productQuantityDiscount;
  715.     }
  716.     /**
  717.      * @param float $productQuantityDiscount
  718.      *
  719.      * @return OrderDetail
  720.      */
  721.     public function setProductQuantityDiscount(float $productQuantityDiscount): OrderDetail
  722.     {
  723.         $this->productQuantityDiscount $productQuantityDiscount;
  724.         return $this;
  725.     }
  726.     /**
  727.      * @return string|null
  728.      */
  729.     public function getProductEan13(): ?string
  730.     {
  731.         return $this->productEan13;
  732.     }
  733.     /**
  734.      * @param string|null $productEan13
  735.      *
  736.      * @return OrderDetail
  737.      */
  738.     public function setProductEan13(?string $productEan13): OrderDetail
  739.     {
  740.         $this->productEan13 $productEan13;
  741.         return $this;
  742.     }
  743.     /**
  744.      * @return string|null
  745.      */
  746.     public function getProductUpc(): ?string
  747.     {
  748.         return $this->productUpc;
  749.     }
  750.     /**
  751.      * @param string|null $productUpc
  752.      *
  753.      * @return OrderDetail
  754.      */
  755.     public function setProductUpc(?string $productUpc): OrderDetail
  756.     {
  757.         $this->productUpc $productUpc;
  758.         return $this;
  759.     }
  760.     /**
  761.      * @return string|null
  762.      */
  763.     public function getProductReference(): ?string
  764.     {
  765.         return $this->productReference;
  766.     }
  767.     /**
  768.      * @param string|null $productReference
  769.      *
  770.      * @return OrderDetail
  771.      */
  772.     public function setProductReference(?string $productReference): OrderDetail
  773.     {
  774.         $this->productReference $productReference;
  775.         return $this;
  776.     }
  777.     /**
  778.      * @return string|null
  779.      */
  780.     public function getProductSupplierReference(): ?string
  781.     {
  782.         return $this->productSupplierReference;
  783.     }
  784.     /**
  785.      * @param string|null $productSupplierReference
  786.      *
  787.      * @return OrderDetail
  788.      */
  789.     public function setProductSupplierReference(?string $productSupplierReference): OrderDetail
  790.     {
  791.         $this->productSupplierReference $productSupplierReference;
  792.         return $this;
  793.     }
  794.     /**
  795.      * @return float
  796.      */
  797.     public function getProductWeight(): float
  798.     {
  799.         return $this->productWeight;
  800.     }
  801.     /**
  802.      * @param float $productWeight
  803.      *
  804.      * @return OrderDetail
  805.      */
  806.     public function setProductWeight(float $productWeight): OrderDetail
  807.     {
  808.         $this->productWeight $productWeight;
  809.         return $this;
  810.     }
  811.     public function isTaxComputationMethod(): int
  812.     {
  813.         return $this->taxComputationMethod;
  814.     }
  815.     public function setTaxComputationMethod(int $taxComputationMethod): OrderDetail
  816.     {
  817.         $this->taxComputationMethod $taxComputationMethod;
  818.         return $this;
  819.     }
  820.     /**
  821.      * @return string
  822.      */
  823.     public function getTaxName(): string
  824.     {
  825.         return $this->taxName;
  826.     }
  827.     /**
  828.      * @param string $taxName
  829.      *
  830.      * @return OrderDetail
  831.      */
  832.     public function setTaxName(string $taxName): OrderDetail
  833.     {
  834.         $this->taxName $taxName;
  835.         return $this;
  836.     }
  837.     /**
  838.      * @return float
  839.      */
  840.     public function getTaxRate(): float
  841.     {
  842.         return $this->taxRate;
  843.     }
  844.     /**
  845.      * @param float $taxRate
  846.      *
  847.      * @return OrderDetail
  848.      */
  849.     public function setTaxRate(float $taxRate): OrderDetail
  850.     {
  851.         $this->taxRate $taxRate;
  852.         return $this;
  853.     }
  854.     /**
  855.      * @return float
  856.      */
  857.     public function getEcotax(): float
  858.     {
  859.         return $this->ecotax;
  860.     }
  861.     /**
  862.      * @param float $ecotax
  863.      *
  864.      * @return OrderDetail
  865.      */
  866.     public function setEcotax(float $ecotax): OrderDetail
  867.     {
  868.         $this->ecotax $ecotax;
  869.         return $this;
  870.     }
  871.     /**
  872.      * @return float
  873.      */
  874.     public function getEcoTaxRate(): float
  875.     {
  876.         return $this->ecoTaxRate;
  877.     }
  878.     /**
  879.      * @param float $ecoTaxRate
  880.      *
  881.      * @return OrderDetail
  882.      */
  883.     public function setEcoTaxRate(float $ecoTaxRate): OrderDetail
  884.     {
  885.         $this->ecoTaxRate $ecoTaxRate;
  886.         return $this;
  887.     }
  888.     /**
  889.      * @return bool
  890.      */
  891.     public function isDiscountQuantityApplied(): bool
  892.     {
  893.         return $this->discountQuantityApplied;
  894.     }
  895.     /**
  896.      * @param bool $discountQuantityApplied
  897.      *
  898.      * @return OrderDetail
  899.      */
  900.     public function setDiscountQuantityApplied(bool $discountQuantityApplied): OrderDetail
  901.     {
  902.         $this->discountQuantityApplied $discountQuantityApplied;
  903.         return $this;
  904.     }
  905.     /**
  906.      * @return string|null
  907.      */
  908.     public function getDownloadHash(): ?string
  909.     {
  910.         return $this->downloadHash;
  911.     }
  912.     /**
  913.      * @param string|null $downloadHash
  914.      *
  915.      * @return OrderDetail
  916.      */
  917.     public function setDownloadHash(?string $downloadHash): OrderDetail
  918.     {
  919.         $this->downloadHash $downloadHash;
  920.         return $this;
  921.     }
  922.     /**
  923.      * @return int|null
  924.      */
  925.     public function getDownloadNb(): ?int
  926.     {
  927.         return $this->downloadNb;
  928.     }
  929.     /**
  930.      * @param int|null $downloadNb
  931.      *
  932.      * @return OrderDetail
  933.      */
  934.     public function setDownloadNb(?int $downloadNb): OrderDetail
  935.     {
  936.         $this->downloadNb $downloadNb;
  937.         return $this;
  938.     }
  939.     /**
  940.      * @return \DateTime|null
  941.      */
  942.     public function getDownloadDeadline(): ?\DateTime
  943.     {
  944.         return $this->downloadDeadline;
  945.     }
  946.     /**
  947.      * @param \DateTime|null $downloadDeadline
  948.      *
  949.      * @return OrderDetail
  950.      */
  951.     public function setDownloadDeadline(?\DateTime $downloadDeadline): OrderDetail
  952.     {
  953.         $this->downloadDeadline $downloadDeadline;
  954.         return $this;
  955.     }
  956.     /**
  957.      * @return float
  958.      */
  959.     public function getTotalPriceTaxIncl(): float
  960.     {
  961.         return $this->totalPriceTaxIncl;
  962.     }
  963.     /**
  964.      * @param float $totalPriceTaxIncl
  965.      *
  966.      * @return OrderDetail
  967.      */
  968.     public function setTotalPriceTaxIncl(float $totalPriceTaxIncl): OrderDetail
  969.     {
  970.         $this->totalPriceTaxIncl $totalPriceTaxIncl;
  971.         return $this;
  972.     }
  973.     /**
  974.      * @return float
  975.      */
  976.     public function getTotalPriceTaxExcl(): float
  977.     {
  978.         return $this->totalPriceTaxExcl;
  979.     }
  980.     /**
  981.      * @param float $totalPriceTaxExcl
  982.      *
  983.      * @return OrderDetail
  984.      */
  985.     public function setTotalPriceTaxExcl(float $totalPriceTaxExcl): OrderDetail
  986.     {
  987.         $this->totalPriceTaxExcl $totalPriceTaxExcl;
  988.         return $this;
  989.     }
  990.     /**
  991.      * @return float
  992.      */
  993.     public function getUnitPriceTaxIncl(): float
  994.     {
  995.         return $this->unitPriceTaxIncl;
  996.     }
  997.     /**
  998.      * @param float $unitPriceTaxIncl
  999.      *
  1000.      * @return OrderDetail
  1001.      */
  1002.     public function setUnitPriceTaxIncl(float $unitPriceTaxIncl): OrderDetail
  1003.     {
  1004.         $this->unitPriceTaxIncl $unitPriceTaxIncl;
  1005.         return $this;
  1006.     }
  1007.     /**
  1008.      * @return float
  1009.      */
  1010.     public function getUnitPriceTaxExcl(): float
  1011.     {
  1012.         return $this->unitPriceTaxExcl;
  1013.     }
  1014.     /**
  1015.      * @param float $unitPriceTaxExcl
  1016.      *
  1017.      * @return OrderDetail
  1018.      */
  1019.     public function setUnitPriceTaxExcl(float $unitPriceTaxExcl): OrderDetail
  1020.     {
  1021.         $this->unitPriceTaxExcl $unitPriceTaxExcl;
  1022.         return $this;
  1023.     }
  1024.     /**
  1025.      * @return float
  1026.      */
  1027.     public function getTotalShippingPriceTaxIncl(): float
  1028.     {
  1029.         return $this->totalShippingPriceTaxIncl;
  1030.     }
  1031.     /**
  1032.      * @param float $totalShippingPriceTaxIncl
  1033.      *
  1034.      * @return OrderDetail
  1035.      */
  1036.     public function setTotalShippingPriceTaxIncl(float $totalShippingPriceTaxIncl): OrderDetail
  1037.     {
  1038.         $this->totalShippingPriceTaxIncl $totalShippingPriceTaxIncl;
  1039.         return $this;
  1040.     }
  1041.     /**
  1042.      * @return float
  1043.      */
  1044.     public function getTotalShippingPriceTaxExcl(): float
  1045.     {
  1046.         return $this->totalShippingPriceTaxExcl;
  1047.     }
  1048.     /**
  1049.      * @param float $totalShippingPriceTaxExcl
  1050.      *
  1051.      * @return OrderDetail
  1052.      */
  1053.     public function setTotalShippingPriceTaxExcl(float $totalShippingPriceTaxExcl): OrderDetail
  1054.     {
  1055.         $this->totalShippingPriceTaxExcl $totalShippingPriceTaxExcl;
  1056.         return $this;
  1057.     }
  1058.     /**
  1059.      * @return float
  1060.      */
  1061.     public function getPurchaseSupplierPrice(): float
  1062.     {
  1063.         return $this->purchaseSupplierPrice;
  1064.     }
  1065.     /**
  1066.      * @param float $purchaseSupplierPrice
  1067.      *
  1068.      * @return OrderDetail
  1069.      */
  1070.     public function setPurchaseSupplierPrice(float $purchaseSupplierPrice): OrderDetail
  1071.     {
  1072.         $this->purchaseSupplierPrice $purchaseSupplierPrice;
  1073.         return $this;
  1074.     }
  1075.     /**
  1076.      * @return float
  1077.      */
  1078.     public function getOriginalProductPrice(): float
  1079.     {
  1080.         return $this->originalProductPrice;
  1081.     }
  1082.     /**
  1083.      * @param float $originalProductPrice
  1084.      *
  1085.      * @return OrderDetail
  1086.      */
  1087.     public function setOriginalProductPrice(float $originalProductPrice): OrderDetail
  1088.     {
  1089.         $this->originalProductPrice $originalProductPrice;
  1090.         return $this;
  1091.     }
  1092.     /**
  1093.      * @return bool
  1094.      */
  1095.     public function isRe(): bool
  1096.     {
  1097.         return $this->re;
  1098.     }
  1099.     /**
  1100.      * @param bool $re
  1101.      *
  1102.      * @return OrderDetail
  1103.      */
  1104.     public function setRe(bool $re): OrderDetail
  1105.     {
  1106.         $this->re $re;
  1107.         return $this;
  1108.     }
  1109.     /**
  1110.      * @return int
  1111.      */
  1112.     public function getLocks(): int
  1113.     {
  1114.         return $this->locks;
  1115.     }
  1116.     /**
  1117.      * @param int $locks
  1118.      *
  1119.      * @return OrderDetail
  1120.      */
  1121.     public function setLocks(int $locks): OrderDetail
  1122.     {
  1123.         $this->locks $locks;
  1124.         return $this;
  1125.     }
  1126.     /**
  1127.      * @return bool|null
  1128.      */
  1129.     public function getQuantityStockSupplier(): ?bool
  1130.     {
  1131.         return $this->quantityStockSupplier;
  1132.     }
  1133.     /**
  1134.      * @param bool|null $quantityStockSupplier
  1135.      *
  1136.      * @return OrderDetail
  1137.      */
  1138.     public function setQuantityStockSupplier(?bool $quantityStockSupplier): OrderDetail
  1139.     {
  1140.         $this->quantityStockSupplier $quantityStockSupplier;
  1141.         return $this;
  1142.     }
  1143.     /**
  1144.      * @return bool|null
  1145.      */
  1146.     public function getQuantityFutureStock(): ?bool
  1147.     {
  1148.         return $this->quantityFutureStock;
  1149.     }
  1150.     /**
  1151.      * @param bool|null $quantityFutureStock
  1152.      *
  1153.      * @return OrderDetail
  1154.      */
  1155.     public function setQuantityFutureStock(?bool $quantityFutureStock): OrderDetail
  1156.     {
  1157.         $this->quantityFutureStock $quantityFutureStock;
  1158.         return $this;
  1159.     }
  1160.     /**
  1161.      * @return string|null
  1162.      */
  1163.     public function getPurchaseOrder(): ?string
  1164.     {
  1165.         return $this->purchaseOrder;
  1166.     }
  1167.     /**
  1168.      * @param string|null $purchaseOrder
  1169.      *
  1170.      * @return OrderDetail
  1171.      */
  1172.     public function setPurchaseOrder(?string $purchaseOrder): OrderDetail
  1173.     {
  1174.         $this->purchaseOrder $purchaseOrder;
  1175.         return $this;
  1176.     }
  1177.     /**
  1178.      * @return int|null
  1179.      */
  1180.     public function getIdPurchaseLine(): ?int
  1181.     {
  1182.         return $this->idPurchaseLine;
  1183.     }
  1184.     /**
  1185.      * @param int|null $idPurchaseLine
  1186.      *
  1187.      * @return OrderDetail
  1188.      */
  1189.     public function setIdPurchaseLine(?int $idPurchaseLine): OrderDetail
  1190.     {
  1191.         $this->idPurchaseLine $idPurchaseLine;
  1192.         return $this;
  1193.     }
  1194.     /**
  1195.      * @return float
  1196.      */
  1197.     public function getWidth(): float
  1198.     {
  1199.         return $this->width;
  1200.     }
  1201.     /**
  1202.      * @param float $width
  1203.      *
  1204.      * @return OrderDetail
  1205.      */
  1206.     public function setWidth(float $width): OrderDetail
  1207.     {
  1208.         $this->width $width;
  1209.         return $this;
  1210.     }
  1211.     /**
  1212.      * @return float
  1213.      */
  1214.     public function getHeight(): float
  1215.     {
  1216.         return $this->height;
  1217.     }
  1218.     /**
  1219.      * @param float $height
  1220.      *
  1221.      * @return OrderDetail
  1222.      */
  1223.     public function setHeight(float $height): OrderDetail
  1224.     {
  1225.         $this->height $height;
  1226.         return $this;
  1227.     }
  1228.     /**
  1229.      * @return float
  1230.      */
  1231.     public function getDepth(): float
  1232.     {
  1233.         return $this->depth;
  1234.     }
  1235.     /**
  1236.      * @param float $depth
  1237.      *
  1238.      * @return OrderDetail
  1239.      */
  1240.     public function setDepth(float $depth): OrderDetail
  1241.     {
  1242.         $this->depth $depth;
  1243.         return $this;
  1244.     }
  1245.     /**
  1246.      * @return bool
  1247.      */
  1248.     public function isPedidosTransito(): bool
  1249.     {
  1250.         return $this->pedidosTransito;
  1251.     }
  1252.     /**
  1253.      * @param bool $pedidosTransito
  1254.      *
  1255.      * @return OrderDetail
  1256.      */
  1257.     public function setPedidosTransito(bool $pedidosTransito): OrderDetail
  1258.     {
  1259.         $this->pedidosTransito $pedidosTransito;
  1260.         return $this;
  1261.     }
  1262.     /**
  1263.      * @return float
  1264.      */
  1265.     public function getEstimateCostPrice(): float
  1266.     {
  1267.         return $this->estimateCostPrice;
  1268.     }
  1269.     /**
  1270.      * @param float $estimateCostPrice
  1271.      *
  1272.      * @return OrderDetail
  1273.      */
  1274.     public function setEstimateCostPrice(float $estimateCostPrice): OrderDetail
  1275.     {
  1276.         $this->estimateCostPrice $estimateCostPrice;
  1277.         return $this;
  1278.     }
  1279.     /**
  1280.      * @return int|null
  1281.      */
  1282.     public function getPriceByQuantity(): ?int
  1283.     {
  1284.         return $this->priceByQuantity;
  1285.     }
  1286.     /**
  1287.      * @param int|null $priceByQuantity
  1288.      *
  1289.      * @return OrderDetail
  1290.      */
  1291.     public function setPriceByQuantity(?int $priceByQuantity): OrderDetail
  1292.     {
  1293.         $this->priceByQuantity $priceByQuantity;
  1294.         return $this;
  1295.     }
  1296.     /**
  1297.      * @return string|null
  1298.      */
  1299.     public function getInternalReference(): ?string
  1300.     {
  1301.         return $this->internalReference;
  1302.     }
  1303.     /**
  1304.      * @param string|null $internalReference
  1305.      *
  1306.      * @return OrderDetail
  1307.      */
  1308.     public function setInternalReference(?string $internalReference): OrderDetail
  1309.     {
  1310.         $this->internalReference $internalReference;
  1311.         return $this;
  1312.     }
  1313.     /**
  1314.      * @return bool|int|null
  1315.      */
  1316.     public function getQuantityStockSupplier3To5()
  1317.     {
  1318.         return $this->quantityStockSupplier3To5;
  1319.     }
  1320.     /**
  1321.      * @param bool|int|null $quantityStockSupplier3To5
  1322.      */
  1323.     public function setQuantityStockSupplier3To5($quantityStockSupplier3To5): void
  1324.     {
  1325.         $this->quantityStockSupplier3To5 $quantityStockSupplier3To5;
  1326.     }
  1327.     public function getDateUpd(): \DateTime
  1328.     {
  1329.         return $this->dateUpd;
  1330.     }
  1331.     public function setDateUpd(\DateTime $dateUpd): OrderDetail
  1332.     {
  1333.         $this->dateUpd $dateUpd;
  1334.         return $this;
  1335.     }
  1336.     public function isBuyBox(): bool
  1337.     {
  1338.         return $this->buyBox;
  1339.     }
  1340.     public function setBuyBox(bool $buyBox): void
  1341.     {
  1342.         $this->buyBox $buyBox;
  1343.     }
  1344. }