ContractAppointPageRequest.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?php
  2. class ContractAppointPageRequest extends SdkRequest {
  3. const PAGE_URL = "/v2/contract/appointurl";
  4. private $contractId;
  5. private $bizId;
  6. private $tenantName;
  7. private $pageType;
  8. private $callbackPage;
  9. private $allowedSend;
  10. private $hideReturnButton;
  11. public function getUrl() {
  12. return self::PAGE_URL;
  13. }
  14. public function getHttpParamers() {
  15. $paramSwitcher = ParamSwitcher::instanceParam();
  16. $paramSwitcher->addParam('contractId', $this->contractId);
  17. $paramSwitcher->addParam('bizId',$this->bizId);
  18. $paramSwitcher->addParam('tenantName',$this->tenantName);
  19. $paramSwitcher->addParam('pageType',$this->pageType);
  20. $paramSwitcher->addParam('callbackPage', $this->callbackPage);
  21. $paramSwitcher->addParam('allowedSend', $this->allowedSend);
  22. $paramSwitcher->addParam('hideReturnButton', $this->hideReturnButton);
  23. $httpParameter = HttpParameter::httpPostParamer();
  24. $httpParameter->setJsonParams(json_encode($paramSwitcher->getParams()));
  25. return $httpParameter;
  26. }
  27. /**
  28. * @return mixed
  29. */
  30. public function getContractId()
  31. {
  32. return $this->contractId;
  33. }
  34. /**
  35. * @param mixed $contractId
  36. */
  37. public function setContractId($contractId)
  38. {
  39. $this->contractId = $contractId;
  40. }
  41. /**
  42. * @return mixed
  43. */
  44. public function getBizId()
  45. {
  46. return $this->bizId;
  47. }
  48. /**
  49. * @param mixed $bizId
  50. */
  51. public function setBizId($bizId)
  52. {
  53. $this->bizId = $bizId;
  54. }
  55. /**
  56. * @return mixed
  57. */
  58. public function getAllowedSend()
  59. {
  60. return $this->allowedSend;
  61. }
  62. /**
  63. * @param mixed $allowedSend
  64. */
  65. public function setAllowedSend($allowedSend)
  66. {
  67. $this->allowedSend = $allowedSend;
  68. }
  69. /**
  70. * @return mixed
  71. */
  72. public function getCallbackPage()
  73. {
  74. return $this->callbackPage;
  75. }
  76. /**
  77. * @param mixed $callbackPage
  78. */
  79. public function setCallbackPage($callbackPage)
  80. {
  81. $this->callbackPage = $callbackPage;
  82. }
  83. /**
  84. * @return mixed
  85. */
  86. public function getTenantName()
  87. {
  88. return $this->tenantName;
  89. }
  90. /**
  91. * @param mixed $tenantName
  92. */
  93. public function setTenantName($tenantName)
  94. {
  95. $this->tenantName = $tenantName;
  96. }
  97. /**
  98. * @return mixed
  99. */
  100. public function getPageType()
  101. {
  102. return $this->pageType;
  103. }
  104. /**
  105. * @param mixed $pageType
  106. */
  107. public function setPageType($pageType)
  108. {
  109. $this->pageType = $pageType;
  110. }
  111. /**
  112. * @return mixed
  113. */
  114. public function getHideReturnButton()
  115. {
  116. return $this->hideReturnButton;
  117. }
  118. /**
  119. * @param mixed $hideReturnButton
  120. */
  121. public function setHideReturnButton($hideReturnButton)
  122. {
  123. $this->hideReturnButton = $hideReturnButton;
  124. }
  125. }