ContractLpSignRequest.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?php
  2. class ContractLpSignRequest extends SdkRequest {
  3. const LPSIGN_URL = "/v2/contract/legalpersonsign";
  4. private $contractId;
  5. private $bizId;
  6. private $tenantName;
  7. private $stampers;
  8. private $signParam;
  9. public function getUrl() {
  10. return self::LPSIGN_URL;
  11. }
  12. public function getHttpParamers() {
  13. if($this->signParam !== null){
  14. $httpParameters = HttpParameter::httpPostParamer();
  15. $httpParameters->setJsonParams(json_encode($this->signParam));
  16. return $httpParameters;
  17. }
  18. $paramSwitcher = ParamSwitcher::instanceParam();
  19. $paramSwitcher->addParam('contractId', $this->contractId);
  20. $paramSwitcher->addParam('bizId', $this->bizId);
  21. $paramSwitcher->addParam('tenantName', $this->tenantName);
  22. $paramSwitcher->addParam('stampers', $this->stampers);
  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 getStampers()
  59. {
  60. return $this->stampers;
  61. }
  62. /**
  63. * @param mixed $stampers
  64. */
  65. public function setStampers($stampers)
  66. {
  67. $this->stampers = $stampers;
  68. }
  69. /**
  70. * @return mixed
  71. */
  72. public function getTenantName()
  73. {
  74. return $this->tenantName;
  75. }
  76. /**
  77. * @param mixed $tenantName
  78. */
  79. public function setTenantName($tenantName)
  80. {
  81. $this->tenantName = $tenantName;
  82. }
  83. /**
  84. * @return mixed
  85. */
  86. public function getSignParam()
  87. {
  88. return $this->signParam;
  89. }
  90. /**
  91. * @param mixed $signParam
  92. */
  93. public function setSignParam($signParam)
  94. {
  95. $this->signParam = $signParam;
  96. }
  97. }