src/Entity/System/ServiceCustomerParameter.php line 18

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: Toni Peral <toniperal.a4b@gmail.com>
  5.  * Date: 24/11/20
  6.  * Time: 13:54
  7.  */
  8. namespace App\Entity\System;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11.  * @ORM\Table(name="ps_service_customer_parameter")
  12.  *
  13.  * @ORM\Entity(repositoryClass="App\Repository\System\ServiceCustomerParameterRepository")
  14.  */
  15. class ServiceCustomerParameter
  16. {
  17.     public const KEY_QUANTITY_VALUE 'QUANTITY';
  18.     public const KEY_MIP_USER_ID_VALUE 'MIP_USER_ID';
  19.     public const KEY_SHOP_ID_VALUE 'SHOP_ID';
  20.     public const KEY_CATALOG_ID_VALUE 'CATALOG_ID';
  21.     public const KEY_STATUS_VALUE 'STATUS';
  22.     public const COMMISSION_PERCENTAGE 'COMMISSION_PERCENTAGE';
  23.     public const COMMISSION_QUANTITY 'COMMISSION_QUANTITY';
  24.     public const DEFAULT_SERVICE_PRODUCT_QUANTITY_INDEXED_BY_PRODUCT_ID = [
  25.         ServiceProduct::PRESTASHOP_CONECTOR_ID => 2,
  26.         ServiceProduct::SHOP_SHOPIFY => 2,
  27.         ServiceProduct::RAKUTEN_SERVICE_ID => 1,
  28.         ServiceProduct::FNAC_SERVICE_ID => 3,
  29.         ServiceProduct::CARREFOUR_SERVICE_ID => 1,
  30.         ServiceProduct::CDISCOUNT_SERVICE_ID => 1,
  31.         ServiceProduct::DARTY_SERVICE_ID => 1,
  32.         ServiceProduct::EPRICE_SERVICE_ID => 1,
  33.         ServiceProduct::WOOCOMMERCE_CONECTOR_ID => 2,
  34.         ServiceProduct::REAL_SERVICE_ID => 5,
  35.         ServiceProduct::MAGENTO_CONECTOR_ID => 2,
  36.         ServiceProduct::PC_COMPONENTES_SERVICE_ID => 1,
  37.         ServiceProduct::MARKETPLACES_5x => 1,
  38.         ServiceProduct::ALLEGRO_SERVICE_ID => 1,
  39.         ServiceProduct::WORTEN_SERVICE_ID => 1,
  40.         ServiceProduct::LEROY_MERLIN_SERVICE_ID => 1,
  41.         ServiceProduct::WIX_SERVICE_ID => 2,
  42.         ServiceProduct::CDON_SERVICE_ID => 4,
  43.         ServiceProduct::WISH_SERVICE_ID => 1,
  44.         ServiceProduct::CARREFOUR_FR_SERVICE_ID => 1,
  45.         ServiceProduct::ELECLERC_SERVICE_ID => 1,
  46.         ServiceProduct::AMAZON_RAKUTEN_SERVICE_ID => 2,
  47.         ServiceProduct::AMAZON_WORTEN_SERVICE_ID => 2,
  48.         ServiceProduct::AMAZON_KAUFLAND_SERVICE_ID => 5,
  49.         ServiceProduct::AMAZON_FNAC_SERVICE_ID => 3,
  50.         ServiceProduct::AMAZON_EPRICE_SERVICE_ID => 2,
  51.         ServiceProduct::AMAZON_CDON_SERVICE_ID => 2,
  52.         ServiceProduct::EBAY_SERVICE_ID => 3,
  53.         ServiceProduct::AMAZON_SERVICE_ID => 2,
  54.         ServiceProduct::MEDIAMARKT_ES_SERVICE_ID => 1,
  55.         ServiceProduct::MEDIAMARKT_DE_SERVICE_ID => 1,
  56.     ];
  57.     /**
  58.      * @ORM\Id()
  59.      *
  60.      * @ORM\GeneratedValue(strategy="AUTO")
  61.      *
  62.      * @ORM\Column(name="id_service_customer_parameter", type="integer", length=11)
  63.      */
  64.     private $id;
  65.     /**
  66.      * @var ServiceCustomer
  67.      *
  68.      * @ORM\ManyToOne(targetEntity="App\Entity\System\ServiceCustomer", inversedBy="serviceCustomerParameter")
  69.      *
  70.      * @ORM\JoinColumn(name="id_service_customer", referencedColumnName="id_service_customer")
  71.      */
  72.     private $serviceCustomer;
  73.     /**
  74.      * @var string|null
  75.      *
  76.      * @ORM\Column(name="`key`", type="string", length=32, nullable=true)
  77.      */
  78.     private $key;
  79.     /**
  80.      * @var string|null
  81.      *
  82.      * @ORM\Column(name="`value`", type="string", length=32, nullable=true)
  83.      */
  84.     private $value;
  85.     /**
  86.      * @return mixed
  87.      */
  88.     public function getId()
  89.     {
  90.         return $this->id;
  91.     }
  92.     /**
  93.      * @param mixed $id
  94.      *
  95.      * @return ServiceCustomerParameter
  96.      */
  97.     public function setId($id): ServiceCustomerParameter
  98.     {
  99.         $this->id $id;
  100.         return $this;
  101.     }
  102.     /**
  103.      * @return ServiceCustomer
  104.      */
  105.     public function getServiceCustomer(): ServiceCustomer
  106.     {
  107.         return $this->serviceCustomer;
  108.     }
  109.     /**
  110.      * @param ServiceCustomer $serviceCustomer
  111.      *
  112.      * @return ServiceCustomerParameter
  113.      */
  114.     public function setServiceCustomer(ServiceCustomer $serviceCustomer): ServiceCustomerParameter
  115.     {
  116.         $this->serviceCustomer $serviceCustomer;
  117.         return $this;
  118.     }
  119.     /**
  120.      * @return string|null
  121.      */
  122.     public function getKey(): ?string
  123.     {
  124.         return $this->key;
  125.     }
  126.     /**
  127.      * @param string|null $key
  128.      *
  129.      * @return ServiceCustomerParameter
  130.      */
  131.     public function setKey(?string $key): ServiceCustomerParameter
  132.     {
  133.         $this->key $key;
  134.         return $this;
  135.     }
  136.     /**
  137.      * @return string|null
  138.      */
  139.     public function getValue(): ?string
  140.     {
  141.         return $this->value;
  142.     }
  143.     /**
  144.      * @param string|null $value
  145.      *
  146.      * @return ServiceCustomerParameter
  147.      */
  148.     public function setValue(?string $value): ServiceCustomerParameter
  149.     {
  150.         $this->value $value;
  151.         return $this;
  152.     }
  153. }