src/Entity/ThirdPartyAPIRecords.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Account
  6.  * @ORM\Table(name="third_party_api_records")
  7.  * @ORM\Entity(repositoryClass="App\Repository\ThirdPartyAPIRecordsRepository")
  8.  * @ORM\HasLifecycleCallbacks
  9.  */
  10. class ThirdPartyAPIRecords {
  11.     const API_TWILIO 'twilio';
  12.     const API_PUSHY 'pushy';
  13.     const API_PUSHER 'pusher';
  14.     const API_AWS_SNS 'aws_sns';
  15.     const API_AWS_S3 'aws_s3';
  16.     // constantes para identificar el valor por nombre de paquete
  17.     const PACKAGE_KIJHO_LEVEL 'com.kijho.level';
  18.     const PACKAGE_LEVEL_TAKECHARGE 'com.level.takecharge';
  19.     /**
  20.      * @var integer
  21.      * @ORM\Column(name="tpar_id", type="integer")
  22.      * @ORM\Id
  23.      * @ORM\GeneratedValue(strategy="IDENTITY")
  24.      */
  25.     private $id;
  26.     /**
  27.      * @var string
  28.      * @ORM\Column(name="tpar_api_name", type="string", length=50, nullable=false)
  29.      */
  30.     private $apiName;
  31.     /**
  32.      * @var string
  33.      * @ORM\Column(name="tpar_api_url", type="string", length=255, nullable=true)
  34.      */
  35.     private $apiURL;
  36.     /**
  37.      * @var string
  38.      * @ORM\Column(name="tpar_service_name", type="string", length=50, nullable=false)
  39.      */
  40.     private $serviceName;
  41.     /**
  42.      * @var string
  43.      * @ORM\Column(name="tpar_service_id", type="string", length=255, nullable=true)
  44.      */
  45.     private $serviceId;
  46.     /**
  47.      * @var string
  48.      * @ORM\Column(name="tpar_account_sid", type="string", length=255, nullable=true)
  49.      */
  50.     private $twilioAccountSid;
  51.     /**
  52.      * @var string
  53.      * @ORM\Column(name="tpar_twilio_auth_token", type="string", length=255, nullable=true)
  54.      */
  55.     private $twilioAuthToken;
  56.     /**
  57.      * @var \App\Entity\Company
  58.      * @ORM\ManyToOne(targetEntity="App\Entity\Company")
  59.      * @ORM\JoinColumns({
  60.      *   @ORM\JoinColumn(name="tpar_company_id", referencedColumnName="co_id", nullable=true, onDelete="CASCADE")
  61.      * })
  62.      */
  63.     private $reseller;
  64.     /**
  65.      * @var \App\Entity\Account
  66.      * @ORM\ManyToOne(targetEntity="App\Entity\Account")
  67.      * @ORM\JoinColumns({
  68.      *   @ORM\JoinColumn(name="tpar_account_id", referencedColumnName="ac_id", nullable=true, onDelete="CASCADE")
  69.      * })
  70.      */
  71.     private $accountLicense;
  72.     /**
  73.      * @var \App\Entity\AccountLicense
  74.      * @ORM\ManyToOne(targetEntity="App\Entity\AccountLicense")
  75.      * @ORM\JoinColumns({
  76.      *   @ORM\JoinColumn(name="tpar_license_id", referencedColumnName="al_id", nullable=true, onDelete="CASCADE")
  77.      * })
  78.      */
  79.     private $license;
  80.     /**
  81.      * @var string
  82.      * @ORM\Column(name="tpar_pushy_account_key", type="string", length=255, nullable=true)
  83.      */
  84.     private $pushyAccountKey;
  85.     /**
  86.      * @var string
  87.      * @ORM\Column(name="tpar_pusher_app_id", type="string", length=255, nullable=true)
  88.      */
  89.     private $pusherAppId;
  90.     /**
  91.      * @var string
  92.      * @ORM\Column(name="tpar_pusher_key", type="string", length=255, nullable=true)
  93.      */
  94.     private $pusherKey;
  95.     /**
  96.      * @var string
  97.      * @ORM\Column(name="tpar_pusher_secret", type="string", length=255, nullable=true)
  98.      */
  99.     private $pusherSecret;
  100.     /**
  101.      * @var string
  102.      * @ORM\Column(name="tpar_pusher_cluster", type="string", length=255, nullable=true)
  103.      */
  104.     private $pusherCluster;
  105.     /**
  106.      * @var string
  107.      * @ORM\Column(name="tpar_whitelabel_package_name", type="string", nullable=true, options={"default":"com.kijho.level"})
  108.      */
  109.     private $innerWhiteLabelPackageName "com.kijho.level";
  110.     /**
  111.      * @var string
  112.      * @ORM\Column(name="tpar_cloud_package_name", type="string", nullable=true, options={"default":"kijho-level-data"})
  113.      */
  114.     private $cloudWhiteLabelPackageName "kijho-level-data";
  115.     /**
  116.      * @var string
  117.      * @ORM\Column(name="omt_sync", type="guid", nullable=true)
  118.      */
  119.     private $omtSync;
  120.     /**
  121.      * @return type
  122.      */
  123.     public function getId() {
  124.         return $this->id;
  125.     }
  126.     /**
  127.      * @param type $id
  128.      */
  129.     public function setId($id) {
  130.         $this->id $id;
  131.     }
  132.     /**
  133.      * @return type
  134.      */
  135.     public function getApiName() {
  136.         return $this->apiName;
  137.     }
  138.     /**
  139.      * @param type $apiName
  140.      */
  141.     public function setApiName($apiName) {
  142.         $this->apiName $apiName;
  143.     }
  144.     /**
  145.      * @return type
  146.      */
  147.     public function getApiURL() {
  148.         return $this->apiURL;
  149.     }
  150.     /**
  151.      * @param type $apiURL
  152.      */
  153.     public function setApiURL($apiURL) {
  154.         $this->apiURL $apiURL;
  155.     }
  156.     /**
  157.      * @return type
  158.      */
  159.     public function getServiceName() {
  160.         return $this->serviceName;
  161.     }
  162.     /**
  163.      * @param type $serviceName
  164.      */
  165.     public function setServiceName($serviceName) {
  166.         $this->serviceName $serviceName;
  167.     }
  168.     /**
  169.      * @return type
  170.      */
  171.     public function getServiceId() {
  172.         return $this->serviceId;
  173.     }
  174.     /**
  175.      * @param type $serviceId
  176.      */
  177.     public function setServiceId($serviceId) {
  178.         $this->serviceId $serviceId;
  179.     }
  180.     /**
  181.      * Get })
  182.      *
  183.      * @return  \App\Entity\Company
  184.      */ 
  185.     public function getReseller()
  186.     {
  187.         return $this->reseller;
  188.     }
  189.     /**
  190.      * Set })
  191.      *
  192.      * @param  \App\Entity\Company  $reseller  })
  193.      *
  194.      * @return  self
  195.      */ 
  196.     public function setReseller(\App\Entity\Company $reseller null)
  197.     {
  198.         $this->reseller $reseller;
  199.         return $this;
  200.     }
  201.     /**
  202.      * Get })
  203.      *
  204.      * @return  \App\Entity\Account
  205.      */ 
  206.     public function getAccountLicense()
  207.     {
  208.         return $this->accountLicense;
  209.     }
  210.     /**
  211.      * Set })
  212.      *
  213.      * @param  \App\Entity\Account  $accountLicense  })
  214.      *
  215.      * @return  self
  216.      */ 
  217.     public function setAccountLicense(\App\Entity\Account $accountLicense =  null)
  218.     {
  219.         $this->accountLicense $accountLicense;
  220.         return $this;
  221.     }
  222.     /**
  223.      * Get })
  224.      *
  225.      * @return  \App\Entity\AccountLicense
  226.      */ 
  227.     public function getLicense()
  228.     {
  229.         return $this->license;
  230.     }
  231.     /**
  232.      * Set })
  233.      *
  234.      * @param  \App\Entity\AccountLicense  $license  })
  235.      *
  236.      * @return  self
  237.      */ 
  238.     public function setLicense(\App\Entity\AccountLicense $license null)
  239.     {
  240.         $this->license $license;
  241.         return $this;
  242.     }
  243.     /**
  244.      * Get the value of pushyAccountKey
  245.      *
  246.      * @return  string
  247.      */ 
  248.     public function getPushyAccountKey()
  249.     {
  250.         return $this->pushyAccountKey;
  251.     }
  252.     /**
  253.      * Set the value of pushyAccountKey
  254.      *
  255.      * @param  string  $pushyAccountKey
  256.      *
  257.      * @return  self
  258.      */ 
  259.     public function setPushyAccountKey($pushyAccountKey)
  260.     {
  261.         $this->pushyAccountKey $pushyAccountKey;
  262.         return $this;
  263.     }
  264.     /**
  265.      * Get the value of pusherAppId
  266.      *
  267.      * @return  string
  268.      */ 
  269.     public function getPusherAppId()
  270.     {
  271.         return $this->pusherAppId;
  272.     }
  273.     /**
  274.      * Set the value of pusherAppId
  275.      *
  276.      * @param  string  $pusherAppId
  277.      *
  278.      * @return  self
  279.      */ 
  280.     public function setPusherAppId($pusherAppId)
  281.     {
  282.         $this->pusherAppId $pusherAppId;
  283.         return $this;
  284.     }
  285.     /**
  286.      * Get the value of pusherKey
  287.      *
  288.      * @return  string
  289.      */ 
  290.     public function getPusherKey()
  291.     {
  292.         return $this->pusherKey;
  293.     }
  294.     /**
  295.      * Set the value of pusherKey
  296.      *
  297.      * @param  string  $pusherKey
  298.      *
  299.      * @return  self
  300.      */ 
  301.     public function setPusherKey($pusherKey)
  302.     {
  303.         $this->pusherKey $pusherKey;
  304.         return $this;
  305.     }
  306.     /**
  307.      * Get the value of pusherSecret
  308.      *
  309.      * @return  string
  310.      */ 
  311.     public function getPusherSecret()
  312.     {
  313.         return $this->pusherSecret;
  314.     }
  315.     /**
  316.      * Set the value of pusherSecret
  317.      *
  318.      * @param  string  $pusherSecret
  319.      *
  320.      * @return  self
  321.      */ 
  322.     public function setPusherSecret($pusherSecret)
  323.     {
  324.         $this->pusherSecret $pusherSecret;
  325.         return $this;
  326.     }
  327.     /**
  328.      * Get the value of pusherCluster
  329.      *
  330.      * @return  string
  331.      */ 
  332.     public function getPusherCluster()
  333.     {
  334.         return $this->pusherCluster;
  335.     }
  336.     /**
  337.      * Set the value of pusherCluster
  338.      *
  339.      * @param  string  $pusherCluster
  340.      *
  341.      * @return  self
  342.      */ 
  343.     public function setPusherCluster($pusherCluster)
  344.     {
  345.         $this->pusherCluster $pusherCluster;
  346.         return $this;
  347.     }
  348.     /**
  349.      * Get the value of innerWhiteLabelPackageName
  350.      *
  351.      * @return  string
  352.      */ 
  353.     public function getInnerWhiteLabelPackageName()
  354.     {
  355.         return $this->innerWhiteLabelPackageName;
  356.     }
  357.     /**
  358.      * Set the value of innerWhiteLabelPackageName
  359.      *
  360.      * @param  string  $innerWhiteLabelPackageName
  361.      *
  362.      * @return  self
  363.      */ 
  364.     public function setInnerWhiteLabelPackageName($innerWhiteLabelPackageName)
  365.     {
  366.         $this->innerWhiteLabelPackageName $innerWhiteLabelPackageName;
  367.         return $this;
  368.     }
  369.     /**
  370.      * Get the value of cloudWhiteLabelPackageName
  371.      *
  372.      * @return  string
  373.      */ 
  374.     public function getCloudWhiteLabelPackageName()
  375.     {
  376.         return $this->cloudWhiteLabelPackageName;
  377.     }
  378.     /**
  379.      * Set the value of cloudWhiteLabelPackageName
  380.      *
  381.      * @param  string  $cloudWhiteLabelPackageName
  382.      *
  383.      * @return  self
  384.      */ 
  385.     public function setCloudWhiteLabelPackageName($cloudWhiteLabelPackageName)
  386.     {
  387.         $this->cloudWhiteLabelPackageName $cloudWhiteLabelPackageName;
  388.         return $this;
  389.     }
  390.     /**
  391.      * Get the value of twilioAccountSid
  392.      *
  393.      * @return  string
  394.      */ 
  395.     public function getTwilioAccountSid()
  396.     {
  397.         return $this->twilioAccountSid;
  398.     }
  399.     /**
  400.      * Set the value of twilioAccountSid
  401.      *
  402.      * @param  string  $twilioAccountSid
  403.      *
  404.      * @return  self
  405.      */ 
  406.     public function setTwilioAccountSid($twilioAccountSid)
  407.     {
  408.         $this->twilioAccountSid $twilioAccountSid;
  409.         return $this;
  410.     }
  411.     /**
  412.      * Get the value of twilioAuthToken
  413.      *
  414.      * @return  string
  415.      */ 
  416.     public function getTwilioAuthToken()
  417.     {
  418.         return $this->twilioAuthToken;
  419.     }
  420.     /**
  421.      * Set the value of twilioAuthToken
  422.      *
  423.      * @param  string  $twilioAuthToken
  424.      *
  425.      * @return  self
  426.      */ 
  427.     public function setTwilioAuthToken($twilioAuthToken)
  428.     {
  429.         $this->twilioAuthToken $twilioAuthToken;
  430.         return $this;
  431.     }
  432.     /**
  433.      * Get the value of omtSync
  434.      *
  435.      * @return  string
  436.      */ 
  437.     public function getOmtSync()
  438.     {
  439.         return $this->omtSync;
  440.     }
  441.     /**
  442.      * Set the value of omtSync
  443.      *
  444.      * @param  string  $omtSync
  445.      *
  446.      * @return  self
  447.      */ 
  448.     public function setOmtSync(string $omtSync)
  449.     {
  450.         $this->omtSync $omtSync;
  451.         return $this;
  452.     }
  453. }
  454.