123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- <?php
- class CompanyAuthLicensePCPageRequest extends SdkRequest {
- const REQUEST_URL = '/companyauth/pcpagewithlicense';
- private $companyName;
- private $registerNo;
- private $legalPerson;
- private $platformName;
- private $callbackUrl;
- private $applicantInfo;
- private $license;
- private $closeButton;
- function getUrl() {
- return self::REQUEST_URL;
- }
- function getHttpParamers() {
- $paramSwitcher = ParamSwitcher::instanceParam();
- $paramSwitcher->addParam('companyName', $this->companyName);
- $paramSwitcher->addParam('registerNo', $this->registerNo);
- $paramSwitcher->addParam('legalPerson', $this->legalPerson);
- $paramSwitcher->addParam('platformName', $this->platformName);
- $paramSwitcher->addParam('callbackUrl', $this->callbackUrl);
- if(is_string($this->applicantInfo)) {
- $paramSwitcher->addParam('applicantInfo', $this->applicantInfo);
- } else {
- $paramSwitcher->addParam('applicantInfo', json_encode($this->applicantInfo));
- }
- if($this->license !== null){
- $paramSwitcher->addParam('license', $this->license);
- }
- if($this->closeButton == null){
- $paramSwitcher->addParam('closeButton', true);
- }else{
- $paramSwitcher->addParam('closeButton', $this->closeButton);
- }
- $httpParameters = HttpParameter::httpPostParamer();
- $httpParameters->setParams($paramSwitcher->getParams());
- return $httpParameters;
- }
- /**
- * @return mixed
- */
- public function getCompanyName()
- {
- return $this->companyName;
- }
- /**
- * @param mixed $companyName
- */
- public function setCompanyName($companyName)
- {
- $this->companyName = $companyName;
- }
- /**
- * @return mixed
- */
- public function getRegisterNo()
- {
- return $this->registerNo;
- }
- /**
- * @param mixed $registerNo
- */
- public function setRegisterNo($registerNo)
- {
- $this->registerNo = $registerNo;
- }
- /**
- * @return mixed
- */
- public function getLegalPerson()
- {
- return $this->legalPerson;
- }
- /**
- * @param mixed $legalPerson
- */
- public function setLegalPerson($legalPerson)
- {
- $this->legalPerson = $legalPerson;
- }
- /**
- * @return mixed
- */
- public function getPlatformName()
- {
- return $this->platformName;
- }
- /**
- * @param mixed $platformName
- */
- public function setPlatformName($platformName)
- {
- $this->platformName = $platformName;
- }
- /**
- * @return mixed
- */
- public function getCallbackUrl()
- {
- return $this->callbackUrl;
- }
- /**
- * @param mixed $callbackUrl
- */
- public function setCallbackUrl($callbackUrl)
- {
- $this->callbackUrl = $callbackUrl;
- }
- /**
- * @return mixed
- */
- public function getApplicantInfo()
- {
- return $this->applicantInfo;
- }
- /**
- * @param mixed $applicantInfo
- */
- public function setApplicantInfo($applicantInfo)
- {
- $this->applicantInfo = $applicantInfo;
- }
- /**
- * @return mixed
- */
- public function getLicense()
- {
- return $this->license;
- }
- /**
- * @param mixed $license
- */
- public function setLicense($license)
- {
- $this->license = $license;
- }
- /**
- * @return mixed
- */
- public function getCloseButton()
- {
- return $this->closeButton;
- }
- /**
- * @param mixed $closeButton
- */
- public function setCloseButton($closeButton)
- {
- $this->closeButton = $closeButton;
- }
- }
|