CompanyAuthLicensePCPageRequest.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <?php
  2. class CompanyAuthLicensePCPageRequest extends SdkRequest {
  3. const REQUEST_URL = '/companyauth/pcpagewithlicense';
  4. private $companyName;
  5. private $registerNo;
  6. private $legalPerson;
  7. private $platformName;
  8. private $callbackUrl;
  9. private $applicantInfo;
  10. private $license;
  11. private $closeButton;
  12. function getUrl() {
  13. return self::REQUEST_URL;
  14. }
  15. function getHttpParamers() {
  16. $paramSwitcher = ParamSwitcher::instanceParam();
  17. $paramSwitcher->addParam('companyName', $this->companyName);
  18. $paramSwitcher->addParam('registerNo', $this->registerNo);
  19. $paramSwitcher->addParam('legalPerson', $this->legalPerson);
  20. $paramSwitcher->addParam('platformName', $this->platformName);
  21. $paramSwitcher->addParam('callbackUrl', $this->callbackUrl);
  22. if(is_string($this->applicantInfo)) {
  23. $paramSwitcher->addParam('applicantInfo', $this->applicantInfo);
  24. } else {
  25. $paramSwitcher->addParam('applicantInfo', json_encode($this->applicantInfo));
  26. }
  27. if($this->license !== null){
  28. $paramSwitcher->addParam('license', $this->license);
  29. }
  30. if($this->closeButton == null){
  31. $paramSwitcher->addParam('closeButton', true);
  32. }else{
  33. $paramSwitcher->addParam('closeButton', $this->closeButton);
  34. }
  35. $httpParameters = HttpParameter::httpPostParamer();
  36. $httpParameters->setParams($paramSwitcher->getParams());
  37. return $httpParameters;
  38. }
  39. /**
  40. * @return mixed
  41. */
  42. public function getCompanyName()
  43. {
  44. return $this->companyName;
  45. }
  46. /**
  47. * @param mixed $companyName
  48. */
  49. public function setCompanyName($companyName)
  50. {
  51. $this->companyName = $companyName;
  52. }
  53. /**
  54. * @return mixed
  55. */
  56. public function getRegisterNo()
  57. {
  58. return $this->registerNo;
  59. }
  60. /**
  61. * @param mixed $registerNo
  62. */
  63. public function setRegisterNo($registerNo)
  64. {
  65. $this->registerNo = $registerNo;
  66. }
  67. /**
  68. * @return mixed
  69. */
  70. public function getLegalPerson()
  71. {
  72. return $this->legalPerson;
  73. }
  74. /**
  75. * @param mixed $legalPerson
  76. */
  77. public function setLegalPerson($legalPerson)
  78. {
  79. $this->legalPerson = $legalPerson;
  80. }
  81. /**
  82. * @return mixed
  83. */
  84. public function getPlatformName()
  85. {
  86. return $this->platformName;
  87. }
  88. /**
  89. * @param mixed $platformName
  90. */
  91. public function setPlatformName($platformName)
  92. {
  93. $this->platformName = $platformName;
  94. }
  95. /**
  96. * @return mixed
  97. */
  98. public function getCallbackUrl()
  99. {
  100. return $this->callbackUrl;
  101. }
  102. /**
  103. * @param mixed $callbackUrl
  104. */
  105. public function setCallbackUrl($callbackUrl)
  106. {
  107. $this->callbackUrl = $callbackUrl;
  108. }
  109. /**
  110. * @return mixed
  111. */
  112. public function getApplicantInfo()
  113. {
  114. return $this->applicantInfo;
  115. }
  116. /**
  117. * @param mixed $applicantInfo
  118. */
  119. public function setApplicantInfo($applicantInfo)
  120. {
  121. $this->applicantInfo = $applicantInfo;
  122. }
  123. /**
  124. * @return mixed
  125. */
  126. public function getLicense()
  127. {
  128. return $this->license;
  129. }
  130. /**
  131. * @param mixed $license
  132. */
  133. public function setLicense($license)
  134. {
  135. $this->license = $license;
  136. }
  137. /**
  138. * @return mixed
  139. */
  140. public function getCloseButton()
  141. {
  142. return $this->closeButton;
  143. }
  144. /**
  145. * @param mixed $closeButton
  146. */
  147. public function setCloseButton($closeButton)
  148. {
  149. $this->closeButton = $closeButton;
  150. }
  151. }