CompanyAuthMiniappTicketRequest.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <?php
  2. /**
  3. * 获取h5企业认证页面
  4. */
  5. class CompanyAuthMiniappTicketRequest extends SdkRequest {
  6. const REQUEST_URL = "/companyauth/miniappexchange";
  7. private $companyName; // 待认证公司名称
  8. private $applicant; // 认证提交人,企业认证通过后,认证提交人会自动成为该企业的系统管理员
  9. private $registerNo; // 待认证公司注册号
  10. private $legalPerson; // 待认证公司法人姓名
  11. private $callbackUrl; // 认证回调地址
  12. private $platformName; // 平台名称
  13. private $closeButton;
  14. /**
  15. * CompanyAuthH5PageRequest constructor.
  16. * @param $companyName
  17. * @param $applicant
  18. */
  19. public function __construct($companyName, $applicant) {
  20. $this->companyName = $companyName;
  21. $this->applicant = $applicant;
  22. }
  23. function getUrl() {
  24. return self::REQUEST_URL;
  25. }
  26. function getHttpParamers() {
  27. $paramSwitcher = ParamSwitcher::instanceParam();
  28. $paramSwitcher->addParam('companyName', $this->companyName);
  29. $paramSwitcher->addParam('applicant', $this->applicant);
  30. $paramSwitcher->addParam('registerNo', $this->registerNo);
  31. $paramSwitcher->addParam('legalPerson', $this->legalPerson);
  32. $paramSwitcher->addParam('callbackUrl',$this->callbackUrl);
  33. $paramSwitcher->addParam('platformName',$this->platformName);
  34. if($this->closeButton == null){
  35. $paramSwitcher->addParam('closeButton', true);
  36. }else{
  37. $paramSwitcher->addParam('closeButton', $this->closeButton);
  38. }
  39. $httpParameter = HttpParameter::httpPostParamer();
  40. $httpParameter->setJsonParams(json_encode($paramSwitcher->getParams()));
  41. return $httpParameter;
  42. }
  43. /**
  44. * @return mixed
  45. */
  46. public function getCompanyName()
  47. {
  48. return $this->companyName;
  49. }
  50. /**
  51. * @param mixed $companyName
  52. */
  53. public function setCompanyName($companyName)
  54. {
  55. $this->companyName = $companyName;
  56. }
  57. /**
  58. * @return mixed
  59. */
  60. public function getApplicant()
  61. {
  62. return $this->applicant;
  63. }
  64. /**
  65. * @param mixed $applicant
  66. */
  67. public function setApplicant($applicant)
  68. {
  69. $this->applicant = $applicant;
  70. }
  71. /**
  72. * @return mixed
  73. */
  74. public function getRegisterNo()
  75. {
  76. return $this->registerNo;
  77. }
  78. /**
  79. * @param mixed $registerNo
  80. */
  81. public function setRegisterNo($registerNo)
  82. {
  83. $this->registerNo = $registerNo;
  84. }
  85. /**
  86. * @return mixed
  87. */
  88. public function getLegalPerson()
  89. {
  90. return $this->legalPerson;
  91. }
  92. /**
  93. * @param mixed $legalPerson
  94. */
  95. public function setLegalPerson($legalPerson)
  96. {
  97. $this->legalPerson = $legalPerson;
  98. }
  99. /**
  100. * @return mixed
  101. */
  102. public function getCallbackUrl()
  103. {
  104. return $this->callbackUrl;
  105. }
  106. /**
  107. * @param mixed $callbackUrl
  108. */
  109. public function setCallbackUrl($callbackUrl)
  110. {
  111. $this->callbackUrl = $callbackUrl;
  112. }
  113. /**
  114. * @return mixed
  115. */
  116. public function getPlatformName()
  117. {
  118. return $this->platformName;
  119. }
  120. /**
  121. * @param mixed $platformName
  122. */
  123. public function setPlatformName($platformName)
  124. {
  125. $this->platformName = $platformName;
  126. }
  127. /**
  128. * @return mixed
  129. */
  130. public function getCloseButton()
  131. {
  132. return $this->closeButton;
  133. }
  134. /**
  135. * @param mixed $closeButton
  136. */
  137. public function setCloseButton($closeButton)
  138. {
  139. $this->closeButton = $closeButton;
  140. }
  141. }