<?php
/**
* Created by PhpStorm.
* User: Toni Peral <toniperal.a4b@gmail.com>
* Date: 24/11/20
* Time: 13:54
*/
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="ps_service_customer_parameter")
*
* @ORM\Entity(repositoryClass="App\Repository\System\ServiceCustomerParameterRepository")
*/
class ServiceCustomerParameter
{
public const KEY_QUANTITY_VALUE = 'QUANTITY';
public const KEY_MIP_USER_ID_VALUE = 'MIP_USER_ID';
public const KEY_SHOP_ID_VALUE = 'SHOP_ID';
public const KEY_CATALOG_ID_VALUE = 'CATALOG_ID';
public const KEY_STATUS_VALUE = 'STATUS';
public const COMMISSION_PERCENTAGE = 'COMMISSION_PERCENTAGE';
public const COMMISSION_QUANTITY = 'COMMISSION_QUANTITY';
public const DEFAULT_SERVICE_PRODUCT_QUANTITY_INDEXED_BY_PRODUCT_ID = [
ServiceProduct::PRESTASHOP_CONECTOR_ID => 2,
ServiceProduct::SHOP_SHOPIFY => 2,
ServiceProduct::RAKUTEN_SERVICE_ID => 1,
ServiceProduct::FNAC_SERVICE_ID => 3,
ServiceProduct::CARREFOUR_SERVICE_ID => 1,
ServiceProduct::CDISCOUNT_SERVICE_ID => 1,
ServiceProduct::DARTY_SERVICE_ID => 1,
ServiceProduct::EPRICE_SERVICE_ID => 1,
ServiceProduct::WOOCOMMERCE_CONECTOR_ID => 2,
ServiceProduct::REAL_SERVICE_ID => 5,
ServiceProduct::MAGENTO_CONECTOR_ID => 2,
ServiceProduct::PC_COMPONENTES_SERVICE_ID => 1,
ServiceProduct::MARKETPLACES_5x => 1,
ServiceProduct::ALLEGRO_SERVICE_ID => 1,
ServiceProduct::WORTEN_SERVICE_ID => 1,
ServiceProduct::LEROY_MERLIN_SERVICE_ID => 1,
ServiceProduct::WIX_SERVICE_ID => 2,
ServiceProduct::CDON_SERVICE_ID => 4,
ServiceProduct::WISH_SERVICE_ID => 1,
ServiceProduct::CARREFOUR_FR_SERVICE_ID => 1,
ServiceProduct::ELECLERC_SERVICE_ID => 1,
ServiceProduct::AMAZON_RAKUTEN_SERVICE_ID => 2,
ServiceProduct::AMAZON_WORTEN_SERVICE_ID => 2,
ServiceProduct::AMAZON_KAUFLAND_SERVICE_ID => 5,
ServiceProduct::AMAZON_FNAC_SERVICE_ID => 3,
ServiceProduct::AMAZON_EPRICE_SERVICE_ID => 2,
ServiceProduct::AMAZON_CDON_SERVICE_ID => 2,
ServiceProduct::EBAY_SERVICE_ID => 3,
ServiceProduct::AMAZON_SERVICE_ID => 2,
ServiceProduct::MEDIAMARKT_ES_SERVICE_ID => 1,
ServiceProduct::MEDIAMARKT_DE_SERVICE_ID => 1,
];
/**
* @ORM\Id()
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @ORM\Column(name="id_service_customer_parameter", type="integer", length=11)
*/
private $id;
/**
* @var ServiceCustomer
*
* @ORM\ManyToOne(targetEntity="App\Entity\System\ServiceCustomer", inversedBy="serviceCustomerParameter")
*
* @ORM\JoinColumn(name="id_service_customer", referencedColumnName="id_service_customer")
*/
private $serviceCustomer;
/**
* @var string|null
*
* @ORM\Column(name="`key`", type="string", length=32, nullable=true)
*/
private $key;
/**
* @var string|null
*
* @ORM\Column(name="`value`", type="string", length=32, nullable=true)
*/
private $value;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*
* @return ServiceCustomerParameter
*/
public function setId($id): ServiceCustomerParameter
{
$this->id = $id;
return $this;
}
/**
* @return ServiceCustomer
*/
public function getServiceCustomer(): ServiceCustomer
{
return $this->serviceCustomer;
}
/**
* @param ServiceCustomer $serviceCustomer
*
* @return ServiceCustomerParameter
*/
public function setServiceCustomer(ServiceCustomer $serviceCustomer): ServiceCustomerParameter
{
$this->serviceCustomer = $serviceCustomer;
return $this;
}
/**
* @return string|null
*/
public function getKey(): ?string
{
return $this->key;
}
/**
* @param string|null $key
*
* @return ServiceCustomerParameter
*/
public function setKey(?string $key): ServiceCustomerParameter
{
$this->key = $key;
return $this;
}
/**
* @return string|null
*/
public function getValue(): ?string
{
return $this->value;
}
/**
* @param string|null $value
*
* @return ServiceCustomerParameter
*/
public function setValue(?string $value): ServiceCustomerParameter
{
$this->value = $value;
return $this;
}
}