src/Entity/System/OrderDetail.php line 22

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