src/Entity/System/OrderDetail.php line 20

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: Toni Peral <toniperal.a4b@gmail.com>
  5.  * Date: 10/3/20
  6.  * Time: 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")
  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 bool
  169.      *
  170.      * @ORM\Column(type="boolean", columnDefinition="tinyint(1)", 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->purchaseSupplierPrice 0.000000;
  395.         $this->originalProductPrice 0.000000;
  396.         $this->re 0;
  397.         $this->locks 0;
  398.         $this->quantityStockSupplier 0;
  399.         $this->quantityStockSupplier3To5 0;
  400.         $this->quantityFutureStock 0;
  401.         $this->purchaseOrder '0';
  402.         $this->idPurchaseLine 0;
  403.         $this->width 0.000000;
  404.         $this->height 0.000000;
  405.         $this->depth 0.000000;
  406.         $this->pedidosTransito 1;
  407.         $this->estimateCostPrice 0.000000;
  408.         $this->buyBox false;
  409.     }
  410.     /**
  411.      * @return mixed
  412.      */
  413.     public function getId()
  414.     {
  415.         return $this->id;
  416.     }
  417.     /**
  418.      * @param mixed $id
  419.      *
  420.      * @return OrderDetail
  421.      */
  422.     public function setId($id): OrderDetail
  423.     {
  424.         $this->id $id;
  425.         return $this;
  426.     }
  427.     /**
  428.      * @return Order
  429.      */
  430.     public function getOrder(): Order
  431.     {
  432.         return $this->order;
  433.     }
  434.     /**
  435.      * @param Order $order
  436.      *
  437.      * @return OrderDetail
  438.      */
  439.     public function setOrder(Order $order): OrderDetail
  440.     {
  441.         $this->order $order;
  442.         return $this;
  443.     }
  444.     /**
  445.      * @return int|null
  446.      */
  447.     public function getIdOrderInvoice(): ?int
  448.     {
  449.         return $this->idOrderInvoice;
  450.     }
  451.     /**
  452.      * @param int|null $idOrderInvoice
  453.      *
  454.      * @return OrderDetail
  455.      */
  456.     public function setIdOrderInvoice(?int $idOrderInvoice): OrderDetail
  457.     {
  458.         $this->idOrderInvoice $idOrderInvoice;
  459.         return $this;
  460.     }
  461.     /**
  462.      * @return int
  463.      */
  464.     public function getProductId(): int
  465.     {
  466.         return $this->productId;
  467.     }
  468.     /**
  469.      * @param int $productId
  470.      *
  471.      * @return OrderDetail
  472.      */
  473.     public function setProductId(int $productId): OrderDetail
  474.     {
  475.         $this->productId $productId;
  476.         return $this;
  477.     }
  478.     /**
  479.      * @return int|null
  480.      */
  481.     public function getProductAttributeId(): ?int
  482.     {
  483.         return $this->productAttributeId;
  484.     }
  485.     /**
  486.      * @param int|null $productAttributeId
  487.      *
  488.      * @return OrderDetail
  489.      */
  490.     public function setProductAttributeId(?int $productAttributeId): OrderDetail
  491.     {
  492.         $this->productAttributeId $productAttributeId;
  493.         return $this;
  494.     }
  495.     /**
  496.      * @return string
  497.      */
  498.     public function getProductName(): string
  499.     {
  500.         return $this->productName;
  501.     }
  502.     /**
  503.      * @param string $productName
  504.      *
  505.      * @return OrderDetail
  506.      */
  507.     public function setProductName(string $productName): OrderDetail
  508.     {
  509.         $this->productName $productName;
  510.         return $this;
  511.     }
  512.     /**
  513.      * @return int
  514.      */
  515.     public function getProductQuantity(): int
  516.     {
  517.         return $this->productQuantity;
  518.     }
  519.     /**
  520.      * @param int $productQuantity
  521.      *
  522.      * @return OrderDetail
  523.      */
  524.     public function setProductQuantity(int $productQuantity): OrderDetail
  525.     {
  526.         $this->productQuantity $productQuantity;
  527.         return $this;
  528.     }
  529.     public function getProductCatalog(): int
  530.     {
  531.         return $this->productCatalog;
  532.     }
  533.     public function setProductCatalog(int $productCatalog): OrderDetail
  534.     {
  535.         $this->productCatalog $productCatalog;
  536.         return $this;
  537.     }
  538.     /**
  539.      * @return int
  540.      */
  541.     public function getProductQuantityInStock(): int
  542.     {
  543.         return $this->productQuantityInStock;
  544.     }
  545.     /**
  546.      * @param int $productQuantityInStock
  547.      *
  548.      * @return OrderDetail
  549.      */
  550.     public function setProductQuantityInStock(int $productQuantityInStock): OrderDetail
  551.     {
  552.         $this->productQuantityInStock $productQuantityInStock;
  553.         return $this;
  554.     }
  555.     /**
  556.      * @return int
  557.      */
  558.     public function getProductQuantityRefunded(): int
  559.     {
  560.         return $this->productQuantityRefunded;
  561.     }
  562.     /**
  563.      * @param int $productQuantityRefunded
  564.      *
  565.      * @return OrderDetail
  566.      */
  567.     public function setProductQuantityRefunded(int $productQuantityRefunded): OrderDetail
  568.     {
  569.         $this->productQuantityRefunded $productQuantityRefunded;
  570.         return $this;
  571.     }
  572.     /**
  573.      * @return int
  574.      */
  575.     public function getProductQuantityReturn(): int
  576.     {
  577.         return $this->productQuantityReturn;
  578.     }
  579.     /**
  580.      * @param int $productQuantityReturn
  581.      *
  582.      * @return OrderDetail
  583.      */
  584.     public function setProductQuantityReturn(int $productQuantityReturn): OrderDetail
  585.     {
  586.         $this->productQuantityReturn $productQuantityReturn;
  587.         return $this;
  588.     }
  589.     /**
  590.      * @return int
  591.      */
  592.     public function getProductQuantityReinjected(): int
  593.     {
  594.         return $this->productQuantityReinjected;
  595.     }
  596.     /**
  597.      * @param int $productQuantityReinjected
  598.      *
  599.      * @return OrderDetail
  600.      */
  601.     public function setProductQuantityReinjected(int $productQuantityReinjected): OrderDetail
  602.     {
  603.         $this->productQuantityReinjected $productQuantityReinjected;
  604.         return $this;
  605.     }
  606.     /**
  607.      * @return float
  608.      */
  609.     public function getProductPrice(): float
  610.     {
  611.         return $this->productPrice;
  612.     }
  613.     /**
  614.      * @param float $productPrice
  615.      *
  616.      * @return OrderDetail
  617.      */
  618.     public function setProductPrice(float $productPrice): OrderDetail
  619.     {
  620.         $this->productPrice $productPrice;
  621.         return $this;
  622.     }
  623.     /**
  624.      * @return float
  625.      */
  626.     public function getReductionPercent(): float
  627.     {
  628.         return $this->reductionPercent;
  629.     }
  630.     /**
  631.      * @param float $reductionPercent
  632.      *
  633.      * @return OrderDetail
  634.      */
  635.     public function setReductionPercent(float $reductionPercent): OrderDetail
  636.     {
  637.         $this->reductionPercent $reductionPercent;
  638.         return $this;
  639.     }
  640.     /**
  641.      * @return float
  642.      */
  643.     public function getReductionAmount(): float
  644.     {
  645.         return $this->reductionAmount;
  646.     }
  647.     /**
  648.      * @param float $reductionAmount
  649.      *
  650.      * @return OrderDetail
  651.      */
  652.     public function setReductionAmount(float $reductionAmount): OrderDetail
  653.     {
  654.         $this->reductionAmount $reductionAmount;
  655.         return $this;
  656.     }
  657.     /**
  658.      * @return float
  659.      */
  660.     public function getReductionAmountTaxIncl(): float
  661.     {
  662.         return $this->reductionAmountTaxIncl;
  663.     }
  664.     /**
  665.      * @param float $reductionAmountTaxIncl
  666.      *
  667.      * @return OrderDetail
  668.      */
  669.     public function setReductionAmountTaxIncl(float $reductionAmountTaxIncl): OrderDetail
  670.     {
  671.         $this->reductionAmountTaxIncl $reductionAmountTaxIncl;
  672.         return $this;
  673.     }
  674.     /**
  675.      * @return float
  676.      */
  677.     public function getReductionAmountTaxExcl(): float
  678.     {
  679.         return $this->reductionAmountTaxExcl;
  680.     }
  681.     /**
  682.      * @param float $reductionAmountTaxExcl
  683.      *
  684.      * @return OrderDetail
  685.      */
  686.     public function setReductionAmountTaxExcl(float $reductionAmountTaxExcl): OrderDetail
  687.     {
  688.         $this->reductionAmountTaxExcl $reductionAmountTaxExcl;
  689.         return $this;
  690.     }
  691.     /**
  692.      * @return float
  693.      */
  694.     public function getGroupReduction(): float
  695.     {
  696.         return $this->groupReduction;
  697.     }
  698.     /**
  699.      * @param float $groupReduction
  700.      *
  701.      * @return OrderDetail
  702.      */
  703.     public function setGroupReduction(float $groupReduction): OrderDetail
  704.     {
  705.         $this->groupReduction $groupReduction;
  706.         return $this;
  707.     }
  708.     /**
  709.      * @return float
  710.      */
  711.     public function getProductQuantityDiscount(): float
  712.     {
  713.         return $this->productQuantityDiscount;
  714.     }
  715.     /**
  716.      * @param float $productQuantityDiscount
  717.      *
  718.      * @return OrderDetail
  719.      */
  720.     public function setProductQuantityDiscount(float $productQuantityDiscount): OrderDetail
  721.     {
  722.         $this->productQuantityDiscount $productQuantityDiscount;
  723.         return $this;
  724.     }
  725.     /**
  726.      * @return string|null
  727.      */
  728.     public function getProductEan13(): ?string
  729.     {
  730.         return $this->productEan13;
  731.     }
  732.     /**
  733.      * @param string|null $productEan13
  734.      *
  735.      * @return OrderDetail
  736.      */
  737.     public function setProductEan13(?string $productEan13): OrderDetail
  738.     {
  739.         $this->productEan13 $productEan13;
  740.         return $this;
  741.     }
  742.     /**
  743.      * @return string|null
  744.      */
  745.     public function getProductUpc(): ?string
  746.     {
  747.         return $this->productUpc;
  748.     }
  749.     /**
  750.      * @param string|null $productUpc
  751.      *
  752.      * @return OrderDetail
  753.      */
  754.     public function setProductUpc(?string $productUpc): OrderDetail
  755.     {
  756.         $this->productUpc $productUpc;
  757.         return $this;
  758.     }
  759.     /**
  760.      * @return string|null
  761.      */
  762.     public function getProductReference(): ?string
  763.     {
  764.         return $this->productReference;
  765.     }
  766.     /**
  767.      * @param string|null $productReference
  768.      *
  769.      * @return OrderDetail
  770.      */
  771.     public function setProductReference(?string $productReference): OrderDetail
  772.     {
  773.         $this->productReference $productReference;
  774.         return $this;
  775.     }
  776.     /**
  777.      * @return string|null
  778.      */
  779.     public function getProductSupplierReference(): ?string
  780.     {
  781.         return $this->productSupplierReference;
  782.     }
  783.     /**
  784.      * @param string|null $productSupplierReference
  785.      *
  786.      * @return OrderDetail
  787.      */
  788.     public function setProductSupplierReference(?string $productSupplierReference): OrderDetail
  789.     {
  790.         $this->productSupplierReference $productSupplierReference;
  791.         return $this;
  792.     }
  793.     /**
  794.      * @return float
  795.      */
  796.     public function getProductWeight(): float
  797.     {
  798.         return $this->productWeight;
  799.     }
  800.     /**
  801.      * @param float $productWeight
  802.      *
  803.      * @return OrderDetail
  804.      */
  805.     public function setProductWeight(float $productWeight): OrderDetail
  806.     {
  807.         $this->productWeight $productWeight;
  808.         return $this;
  809.     }
  810.     /**
  811.      * @return bool
  812.      */
  813.     public function isTaxComputationMethod(): bool
  814.     {
  815.         return $this->taxComputationMethod;
  816.     }
  817.     /**
  818.      * @param bool $taxComputationMethod
  819.      *
  820.      * @return OrderDetail
  821.      */
  822.     public function setTaxComputationMethod(bool $taxComputationMethod): OrderDetail
  823.     {
  824.         $this->taxComputationMethod $taxComputationMethod;
  825.         return $this;
  826.     }
  827.     /**
  828.      * @return string
  829.      */
  830.     public function getTaxName(): string
  831.     {
  832.         return $this->taxName;
  833.     }
  834.     /**
  835.      * @param string $taxName
  836.      *
  837.      * @return OrderDetail
  838.      */
  839.     public function setTaxName(string $taxName): OrderDetail
  840.     {
  841.         $this->taxName $taxName;
  842.         return $this;
  843.     }
  844.     /**
  845.      * @return float
  846.      */
  847.     public function getTaxRate(): float
  848.     {
  849.         return $this->taxRate;
  850.     }
  851.     /**
  852.      * @param float $taxRate
  853.      *
  854.      * @return OrderDetail
  855.      */
  856.     public function setTaxRate(float $taxRate): OrderDetail
  857.     {
  858.         $this->taxRate $taxRate;
  859.         return $this;
  860.     }
  861.     /**
  862.      * @return float
  863.      */
  864.     public function getEcotax(): float
  865.     {
  866.         return $this->ecotax;
  867.     }
  868.     /**
  869.      * @param float $ecotax
  870.      *
  871.      * @return OrderDetail
  872.      */
  873.     public function setEcotax(float $ecotax): OrderDetail
  874.     {
  875.         $this->ecotax $ecotax;
  876.         return $this;
  877.     }
  878.     /**
  879.      * @return float
  880.      */
  881.     public function getEcoTaxRate(): float
  882.     {
  883.         return $this->ecoTaxRate;
  884.     }
  885.     /**
  886.      * @param float $ecoTaxRate
  887.      *
  888.      * @return OrderDetail
  889.      */
  890.     public function setEcoTaxRate(float $ecoTaxRate): OrderDetail
  891.     {
  892.         $this->ecoTaxRate $ecoTaxRate;
  893.         return $this;
  894.     }
  895.     /**
  896.      * @return bool
  897.      */
  898.     public function isDiscountQuantityApplied(): bool
  899.     {
  900.         return $this->discountQuantityApplied;
  901.     }
  902.     /**
  903.      * @param bool $discountQuantityApplied
  904.      *
  905.      * @return OrderDetail
  906.      */
  907.     public function setDiscountQuantityApplied(bool $discountQuantityApplied): OrderDetail
  908.     {
  909.         $this->discountQuantityApplied $discountQuantityApplied;
  910.         return $this;
  911.     }
  912.     /**
  913.      * @return string|null
  914.      */
  915.     public function getDownloadHash(): ?string
  916.     {
  917.         return $this->downloadHash;
  918.     }
  919.     /**
  920.      * @param string|null $downloadHash
  921.      *
  922.      * @return OrderDetail
  923.      */
  924.     public function setDownloadHash(?string $downloadHash): OrderDetail
  925.     {
  926.         $this->downloadHash $downloadHash;
  927.         return $this;
  928.     }
  929.     /**
  930.      * @return int|null
  931.      */
  932.     public function getDownloadNb(): ?int
  933.     {
  934.         return $this->downloadNb;
  935.     }
  936.     /**
  937.      * @param int|null $downloadNb
  938.      *
  939.      * @return OrderDetail
  940.      */
  941.     public function setDownloadNb(?int $downloadNb): OrderDetail
  942.     {
  943.         $this->downloadNb $downloadNb;
  944.         return $this;
  945.     }
  946.     /**
  947.      * @return \DateTime|null
  948.      */
  949.     public function getDownloadDeadline(): ?\DateTime
  950.     {
  951.         return $this->downloadDeadline;
  952.     }
  953.     /**
  954.      * @param \DateTime|null $downloadDeadline
  955.      *
  956.      * @return OrderDetail
  957.      */
  958.     public function setDownloadDeadline(?\DateTime $downloadDeadline): OrderDetail
  959.     {
  960.         $this->downloadDeadline $downloadDeadline;
  961.         return $this;
  962.     }
  963.     /**
  964.      * @return float
  965.      */
  966.     public function getTotalPriceTaxIncl(): float
  967.     {
  968.         return $this->totalPriceTaxIncl;
  969.     }
  970.     /**
  971.      * @param float $totalPriceTaxIncl
  972.      *
  973.      * @return OrderDetail
  974.      */
  975.     public function setTotalPriceTaxIncl(float $totalPriceTaxIncl): OrderDetail
  976.     {
  977.         $this->totalPriceTaxIncl $totalPriceTaxIncl;
  978.         return $this;
  979.     }
  980.     /**
  981.      * @return float
  982.      */
  983.     public function getTotalPriceTaxExcl(): float
  984.     {
  985.         return $this->totalPriceTaxExcl;
  986.     }
  987.     /**
  988.      * @param float $totalPriceTaxExcl
  989.      *
  990.      * @return OrderDetail
  991.      */
  992.     public function setTotalPriceTaxExcl(float $totalPriceTaxExcl): OrderDetail
  993.     {
  994.         $this->totalPriceTaxExcl $totalPriceTaxExcl;
  995.         return $this;
  996.     }
  997.     /**
  998.      * @return float
  999.      */
  1000.     public function getUnitPriceTaxIncl(): float
  1001.     {
  1002.         return $this->unitPriceTaxIncl;
  1003.     }
  1004.     /**
  1005.      * @param float $unitPriceTaxIncl
  1006.      *
  1007.      * @return OrderDetail
  1008.      */
  1009.     public function setUnitPriceTaxIncl(float $unitPriceTaxIncl): OrderDetail
  1010.     {
  1011.         $this->unitPriceTaxIncl $unitPriceTaxIncl;
  1012.         return $this;
  1013.     }
  1014.     /**
  1015.      * @return float
  1016.      */
  1017.     public function getUnitPriceTaxExcl(): float
  1018.     {
  1019.         return $this->unitPriceTaxExcl;
  1020.     }
  1021.     /**
  1022.      * @param float $unitPriceTaxExcl
  1023.      *
  1024.      * @return OrderDetail
  1025.      */
  1026.     public function setUnitPriceTaxExcl(float $unitPriceTaxExcl): OrderDetail
  1027.     {
  1028.         $this->unitPriceTaxExcl $unitPriceTaxExcl;
  1029.         return $this;
  1030.     }
  1031.     /**
  1032.      * @return float
  1033.      */
  1034.     public function getTotalShippingPriceTaxIncl(): float
  1035.     {
  1036.         return $this->totalShippingPriceTaxIncl;
  1037.     }
  1038.     /**
  1039.      * @param float $totalShippingPriceTaxIncl
  1040.      *
  1041.      * @return OrderDetail
  1042.      */
  1043.     public function setTotalShippingPriceTaxIncl(float $totalShippingPriceTaxIncl): OrderDetail
  1044.     {
  1045.         $this->totalShippingPriceTaxIncl $totalShippingPriceTaxIncl;
  1046.         return $this;
  1047.     }
  1048.     /**
  1049.      * @return float
  1050.      */
  1051.     public function getTotalShippingPriceTaxExcl(): float
  1052.     {
  1053.         return $this->totalShippingPriceTaxExcl;
  1054.     }
  1055.     /**
  1056.      * @param float $totalShippingPriceTaxExcl
  1057.      *
  1058.      * @return OrderDetail
  1059.      */
  1060.     public function setTotalShippingPriceTaxExcl(float $totalShippingPriceTaxExcl): OrderDetail
  1061.     {
  1062.         $this->totalShippingPriceTaxExcl $totalShippingPriceTaxExcl;
  1063.         return $this;
  1064.     }
  1065.     /**
  1066.      * @return float
  1067.      */
  1068.     public function getPurchaseSupplierPrice(): float
  1069.     {
  1070.         return $this->purchaseSupplierPrice;
  1071.     }
  1072.     /**
  1073.      * @param float $purchaseSupplierPrice
  1074.      *
  1075.      * @return OrderDetail
  1076.      */
  1077.     public function setPurchaseSupplierPrice(float $purchaseSupplierPrice): OrderDetail
  1078.     {
  1079.         $this->purchaseSupplierPrice $purchaseSupplierPrice;
  1080.         return $this;
  1081.     }
  1082.     /**
  1083.      * @return float
  1084.      */
  1085.     public function getOriginalProductPrice(): float
  1086.     {
  1087.         return $this->originalProductPrice;
  1088.     }
  1089.     /**
  1090.      * @param float $originalProductPrice
  1091.      *
  1092.      * @return OrderDetail
  1093.      */
  1094.     public function setOriginalProductPrice(float $originalProductPrice): OrderDetail
  1095.     {
  1096.         $this->originalProductPrice $originalProductPrice;
  1097.         return $this;
  1098.     }
  1099.     /**
  1100.      * @return bool
  1101.      */
  1102.     public function isRe(): bool
  1103.     {
  1104.         return $this->re;
  1105.     }
  1106.     /**
  1107.      * @param bool $re
  1108.      *
  1109.      * @return OrderDetail
  1110.      */
  1111.     public function setRe(bool $re): OrderDetail
  1112.     {
  1113.         $this->re $re;
  1114.         return $this;
  1115.     }
  1116.     /**
  1117.      * @return int
  1118.      */
  1119.     public function getLocks(): int
  1120.     {
  1121.         return $this->locks;
  1122.     }
  1123.     /**
  1124.      * @param int $locks
  1125.      *
  1126.      * @return OrderDetail
  1127.      */
  1128.     public function setLocks(int $locks): OrderDetail
  1129.     {
  1130.         $this->locks $locks;
  1131.         return $this;
  1132.     }
  1133.     /**
  1134.      * @return bool|null
  1135.      */
  1136.     public function getQuantityStockSupplier(): ?bool
  1137.     {
  1138.         return $this->quantityStockSupplier;
  1139.     }
  1140.     /**
  1141.      * @param bool|null $quantityStockSupplier
  1142.      *
  1143.      * @return OrderDetail
  1144.      */
  1145.     public function setQuantityStockSupplier(?bool $quantityStockSupplier): OrderDetail
  1146.     {
  1147.         $this->quantityStockSupplier $quantityStockSupplier;
  1148.         return $this;
  1149.     }
  1150.     /**
  1151.      * @return bool|null
  1152.      */
  1153.     public function getQuantityFutureStock(): ?bool
  1154.     {
  1155.         return $this->quantityFutureStock;
  1156.     }
  1157.     /**
  1158.      * @param bool|null $quantityFutureStock
  1159.      *
  1160.      * @return OrderDetail
  1161.      */
  1162.     public function setQuantityFutureStock(?bool $quantityFutureStock): OrderDetail
  1163.     {
  1164.         $this->quantityFutureStock $quantityFutureStock;
  1165.         return $this;
  1166.     }
  1167.     /**
  1168.      * @return string|null
  1169.      */
  1170.     public function getPurchaseOrder(): ?string
  1171.     {
  1172.         return $this->purchaseOrder;
  1173.     }
  1174.     /**
  1175.      * @param string|null $purchaseOrder
  1176.      *
  1177.      * @return OrderDetail
  1178.      */
  1179.     public function setPurchaseOrder(?string $purchaseOrder): OrderDetail
  1180.     {
  1181.         $this->purchaseOrder $purchaseOrder;
  1182.         return $this;
  1183.     }
  1184.     /**
  1185.      * @return int|null
  1186.      */
  1187.     public function getIdPurchaseLine(): ?int
  1188.     {
  1189.         return $this->idPurchaseLine;
  1190.     }
  1191.     /**
  1192.      * @param int|null $idPurchaseLine
  1193.      *
  1194.      * @return OrderDetail
  1195.      */
  1196.     public function setIdPurchaseLine(?int $idPurchaseLine): OrderDetail
  1197.     {
  1198.         $this->idPurchaseLine $idPurchaseLine;
  1199.         return $this;
  1200.     }
  1201.     /**
  1202.      * @return float
  1203.      */
  1204.     public function getWidth(): float
  1205.     {
  1206.         return $this->width;
  1207.     }
  1208.     /**
  1209.      * @param float $width
  1210.      *
  1211.      * @return OrderDetail
  1212.      */
  1213.     public function setWidth(float $width): OrderDetail
  1214.     {
  1215.         $this->width $width;
  1216.         return $this;
  1217.     }
  1218.     /**
  1219.      * @return float
  1220.      */
  1221.     public function getHeight(): float
  1222.     {
  1223.         return $this->height;
  1224.     }
  1225.     /**
  1226.      * @param float $height
  1227.      *
  1228.      * @return OrderDetail
  1229.      */
  1230.     public function setHeight(float $height): OrderDetail
  1231.     {
  1232.         $this->height $height;
  1233.         return $this;
  1234.     }
  1235.     /**
  1236.      * @return float
  1237.      */
  1238.     public function getDepth(): float
  1239.     {
  1240.         return $this->depth;
  1241.     }
  1242.     /**
  1243.      * @param float $depth
  1244.      *
  1245.      * @return OrderDetail
  1246.      */
  1247.     public function setDepth(float $depth): OrderDetail
  1248.     {
  1249.         $this->depth $depth;
  1250.         return $this;
  1251.     }
  1252.     /**
  1253.      * @return bool
  1254.      */
  1255.     public function isPedidosTransito(): bool
  1256.     {
  1257.         return $this->pedidosTransito;
  1258.     }
  1259.     /**
  1260.      * @param bool $pedidosTransito
  1261.      *
  1262.      * @return OrderDetail
  1263.      */
  1264.     public function setPedidosTransito(bool $pedidosTransito): OrderDetail
  1265.     {
  1266.         $this->pedidosTransito $pedidosTransito;
  1267.         return $this;
  1268.     }
  1269.     /**
  1270.      * @return float
  1271.      */
  1272.     public function getEstimateCostPrice(): float
  1273.     {
  1274.         return $this->estimateCostPrice;
  1275.     }
  1276.     /**
  1277.      * @param float $estimateCostPrice
  1278.      *
  1279.      * @return OrderDetail
  1280.      */
  1281.     public function setEstimateCostPrice(float $estimateCostPrice): OrderDetail
  1282.     {
  1283.         $this->estimateCostPrice $estimateCostPrice;
  1284.         return $this;
  1285.     }
  1286.     /**
  1287.      * @return int|null
  1288.      */
  1289.     public function getPriceByQuantity(): ?int
  1290.     {
  1291.         return $this->priceByQuantity;
  1292.     }
  1293.     /**
  1294.      * @param int|null $priceByQuantity
  1295.      *
  1296.      * @return OrderDetail
  1297.      */
  1298.     public function setPriceByQuantity(?int $priceByQuantity): OrderDetail
  1299.     {
  1300.         switch ($priceByQuantity) {
  1301.             case 'MOQ1':
  1302.                 $priceByQuantity 1;
  1303.                 break;
  1304.             case 'MOQ2':
  1305.                 $priceByQuantity 2;
  1306.                 break;
  1307.             case 'MOQ3':
  1308.                 $priceByQuantity 3;
  1309.                 break;
  1310.             default:
  1311.                 $priceByQuantity 0;
  1312.         }
  1313.         $this->priceByQuantity $priceByQuantity;
  1314.         return $this;
  1315.     }
  1316.     /**
  1317.      * @return string|null
  1318.      */
  1319.     public function getInternalReference(): ?string
  1320.     {
  1321.         return $this->internalReference;
  1322.     }
  1323.     /**
  1324.      * @param string|null $internalReference
  1325.      *
  1326.      * @return OrderDetail
  1327.      */
  1328.     public function setInternalReference(?string $internalReference): OrderDetail
  1329.     {
  1330.         $this->internalReference $internalReference;
  1331.         return $this;
  1332.     }
  1333.     /**
  1334.      * @return bool|int|null
  1335.      */
  1336.     public function getQuantityStockSupplier3To5()
  1337.     {
  1338.         return $this->quantityStockSupplier3To5;
  1339.     }
  1340.     /**
  1341.      * @param bool|int|null $quantityStockSupplier3To5
  1342.      */
  1343.     public function setQuantityStockSupplier3To5($quantityStockSupplier3To5): void
  1344.     {
  1345.         $this->quantityStockSupplier3To5 $quantityStockSupplier3To5;
  1346.     }
  1347.     public function getDateUpd(): \DateTime
  1348.     {
  1349.         return $this->dateUpd;
  1350.     }
  1351.     public function setDateUpd(\DateTime $dateUpd): OrderDetail
  1352.     {
  1353.         $this->dateUpd $dateUpd;
  1354.         return $this;
  1355.     }
  1356.     public function isBuyBox(): bool
  1357.     {
  1358.         return $this->buyBox;
  1359.     }
  1360.     public function setBuyBox(bool $buyBox): void
  1361.     {
  1362.         $this->buyBox $buyBox;
  1363.     }
  1364. }