<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Account
* @ORM\Table(name="third_party_api_records")
* @ORM\Entity(repositoryClass="App\Repository\ThirdPartyAPIRecordsRepository")
* @ORM\HasLifecycleCallbacks
*/
class ThirdPartyAPIRecords {
const API_TWILIO = 'twilio';
const API_PUSHY = 'pushy';
const API_PUSHER = 'pusher';
const API_AWS_SNS = 'aws_sns';
const API_AWS_S3 = 'aws_s3';
// constantes para identificar el valor por nombre de paquete
const PACKAGE_KIJHO_LEVEL = 'com.kijho.level';
const PACKAGE_LEVEL_TAKECHARGE = 'com.level.takecharge';
/**
* @var integer
* @ORM\Column(name="tpar_id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
* @ORM\Column(name="tpar_api_name", type="string", length=50, nullable=false)
*/
private $apiName;
/**
* @var string
* @ORM\Column(name="tpar_api_url", type="string", length=255, nullable=true)
*/
private $apiURL;
/**
* @var string
* @ORM\Column(name="tpar_service_name", type="string", length=50, nullable=false)
*/
private $serviceName;
/**
* @var string
* @ORM\Column(name="tpar_service_id", type="string", length=255, nullable=true)
*/
private $serviceId;
/**
* @var string
* @ORM\Column(name="tpar_account_sid", type="string", length=255, nullable=true)
*/
private $twilioAccountSid;
/**
* @var string
* @ORM\Column(name="tpar_twilio_auth_token", type="string", length=255, nullable=true)
*/
private $twilioAuthToken;
/**
* @var \App\Entity\Company
* @ORM\ManyToOne(targetEntity="App\Entity\Company")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="tpar_company_id", referencedColumnName="co_id", nullable=true, onDelete="CASCADE")
* })
*/
private $reseller;
/**
* @var \App\Entity\Account
* @ORM\ManyToOne(targetEntity="App\Entity\Account")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="tpar_account_id", referencedColumnName="ac_id", nullable=true, onDelete="CASCADE")
* })
*/
private $accountLicense;
/**
* @var \App\Entity\AccountLicense
* @ORM\ManyToOne(targetEntity="App\Entity\AccountLicense")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="tpar_license_id", referencedColumnName="al_id", nullable=true, onDelete="CASCADE")
* })
*/
private $license;
/**
* @var string
* @ORM\Column(name="tpar_pushy_account_key", type="string", length=255, nullable=true)
*/
private $pushyAccountKey;
/**
* @var string
* @ORM\Column(name="tpar_pusher_app_id", type="string", length=255, nullable=true)
*/
private $pusherAppId;
/**
* @var string
* @ORM\Column(name="tpar_pusher_key", type="string", length=255, nullable=true)
*/
private $pusherKey;
/**
* @var string
* @ORM\Column(name="tpar_pusher_secret", type="string", length=255, nullable=true)
*/
private $pusherSecret;
/**
* @var string
* @ORM\Column(name="tpar_pusher_cluster", type="string", length=255, nullable=true)
*/
private $pusherCluster;
/**
* @var string
* @ORM\Column(name="tpar_whitelabel_package_name", type="string", nullable=true, options={"default":"com.kijho.level"})
*/
private $innerWhiteLabelPackageName = "com.kijho.level";
/**
* @var string
* @ORM\Column(name="tpar_cloud_package_name", type="string", nullable=true, options={"default":"kijho-level-data"})
*/
private $cloudWhiteLabelPackageName = "kijho-level-data";
/**
* @var string
* @ORM\Column(name="omt_sync", type="guid", nullable=true)
*/
private $omtSync;
/**
* @return type
*/
public function getId() {
return $this->id;
}
/**
* @param type $id
*/
public function setId($id) {
$this->id = $id;
}
/**
* @return type
*/
public function getApiName() {
return $this->apiName;
}
/**
* @param type $apiName
*/
public function setApiName($apiName) {
$this->apiName = $apiName;
}
/**
* @return type
*/
public function getApiURL() {
return $this->apiURL;
}
/**
* @param type $apiURL
*/
public function setApiURL($apiURL) {
$this->apiURL = $apiURL;
}
/**
* @return type
*/
public function getServiceName() {
return $this->serviceName;
}
/**
* @param type $serviceName
*/
public function setServiceName($serviceName) {
$this->serviceName = $serviceName;
}
/**
* @return type
*/
public function getServiceId() {
return $this->serviceId;
}
/**
* @param type $serviceId
*/
public function setServiceId($serviceId) {
$this->serviceId = $serviceId;
}
/**
* Get })
*
* @return \App\Entity\Company
*/
public function getReseller()
{
return $this->reseller;
}
/**
* Set })
*
* @param \App\Entity\Company $reseller })
*
* @return self
*/
public function setReseller(\App\Entity\Company $reseller = null)
{
$this->reseller = $reseller;
return $this;
}
/**
* Get })
*
* @return \App\Entity\Account
*/
public function getAccountLicense()
{
return $this->accountLicense;
}
/**
* Set })
*
* @param \App\Entity\Account $accountLicense })
*
* @return self
*/
public function setAccountLicense(\App\Entity\Account $accountLicense = null)
{
$this->accountLicense = $accountLicense;
return $this;
}
/**
* Get })
*
* @return \App\Entity\AccountLicense
*/
public function getLicense()
{
return $this->license;
}
/**
* Set })
*
* @param \App\Entity\AccountLicense $license })
*
* @return self
*/
public function setLicense(\App\Entity\AccountLicense $license = null)
{
$this->license = $license;
return $this;
}
/**
* Get the value of pushyAccountKey
*
* @return string
*/
public function getPushyAccountKey()
{
return $this->pushyAccountKey;
}
/**
* Set the value of pushyAccountKey
*
* @param string $pushyAccountKey
*
* @return self
*/
public function setPushyAccountKey($pushyAccountKey)
{
$this->pushyAccountKey = $pushyAccountKey;
return $this;
}
/**
* Get the value of pusherAppId
*
* @return string
*/
public function getPusherAppId()
{
return $this->pusherAppId;
}
/**
* Set the value of pusherAppId
*
* @param string $pusherAppId
*
* @return self
*/
public function setPusherAppId($pusherAppId)
{
$this->pusherAppId = $pusherAppId;
return $this;
}
/**
* Get the value of pusherKey
*
* @return string
*/
public function getPusherKey()
{
return $this->pusherKey;
}
/**
* Set the value of pusherKey
*
* @param string $pusherKey
*
* @return self
*/
public function setPusherKey($pusherKey)
{
$this->pusherKey = $pusherKey;
return $this;
}
/**
* Get the value of pusherSecret
*
* @return string
*/
public function getPusherSecret()
{
return $this->pusherSecret;
}
/**
* Set the value of pusherSecret
*
* @param string $pusherSecret
*
* @return self
*/
public function setPusherSecret($pusherSecret)
{
$this->pusherSecret = $pusherSecret;
return $this;
}
/**
* Get the value of pusherCluster
*
* @return string
*/
public function getPusherCluster()
{
return $this->pusherCluster;
}
/**
* Set the value of pusherCluster
*
* @param string $pusherCluster
*
* @return self
*/
public function setPusherCluster($pusherCluster)
{
$this->pusherCluster = $pusherCluster;
return $this;
}
/**
* Get the value of innerWhiteLabelPackageName
*
* @return string
*/
public function getInnerWhiteLabelPackageName()
{
return $this->innerWhiteLabelPackageName;
}
/**
* Set the value of innerWhiteLabelPackageName
*
* @param string $innerWhiteLabelPackageName
*
* @return self
*/
public function setInnerWhiteLabelPackageName($innerWhiteLabelPackageName)
{
$this->innerWhiteLabelPackageName = $innerWhiteLabelPackageName;
return $this;
}
/**
* Get the value of cloudWhiteLabelPackageName
*
* @return string
*/
public function getCloudWhiteLabelPackageName()
{
return $this->cloudWhiteLabelPackageName;
}
/**
* Set the value of cloudWhiteLabelPackageName
*
* @param string $cloudWhiteLabelPackageName
*
* @return self
*/
public function setCloudWhiteLabelPackageName($cloudWhiteLabelPackageName)
{
$this->cloudWhiteLabelPackageName = $cloudWhiteLabelPackageName;
return $this;
}
/**
* Get the value of twilioAccountSid
*
* @return string
*/
public function getTwilioAccountSid()
{
return $this->twilioAccountSid;
}
/**
* Set the value of twilioAccountSid
*
* @param string $twilioAccountSid
*
* @return self
*/
public function setTwilioAccountSid($twilioAccountSid)
{
$this->twilioAccountSid = $twilioAccountSid;
return $this;
}
/**
* Get the value of twilioAuthToken
*
* @return string
*/
public function getTwilioAuthToken()
{
return $this->twilioAuthToken;
}
/**
* Set the value of twilioAuthToken
*
* @param string $twilioAuthToken
*
* @return self
*/
public function setTwilioAuthToken($twilioAuthToken)
{
$this->twilioAuthToken = $twilioAuthToken;
return $this;
}
/**
* Get the value of omtSync
*
* @return string
*/
public function getOmtSync()
{
return $this->omtSync;
}
/**
* Set the value of omtSync
*
* @param string $omtSync
*
* @return self
*/
public function setOmtSync(string $omtSync)
{
$this->omtSync = $omtSync;
return $this;
}
}