ContractDetailRequest.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?php
  2. class ContractDetailRequest extends SdkRequest {
  3. const CONTRACT_DETAIL = "/v2/contract/detail"; // 合同详情接口地址
  4. private $contractId; // 合同ID
  5. private $bizId; // 业务ID
  6. private $tenantName; // 子公司名称
  7. private $queryActionOperator; // 是否需要发起方正在签署人信息
  8. private $queryLocation; // 是否需要签署方签署位置信息
  9. public function getUrl() {
  10. return self::CONTRACT_DETAIL;
  11. }
  12. public function getHttpParamers() {
  13. $paramSwitcher = ParamSwitcher::instanceParam();
  14. $paramSwitcher->addParam('contractId', $this->contractId);
  15. $paramSwitcher->addParam('bizId', $this->bizId);
  16. $paramSwitcher->addParam('tenantName', $this->tenantName);
  17. $paramSwitcher->addParam('queryActionOperator', $this->queryActionOperator);
  18. $paramSwitcher->addParam('queryLocation', $this->queryLocation);
  19. $httpParameters = HttpParameter::httpGetParamer();
  20. $httpParameters->setParams($paramSwitcher->getParams());
  21. return $httpParameters;
  22. }
  23. /**
  24. * @return mixed
  25. */
  26. public function getContractId()
  27. {
  28. return $this->contractId;
  29. }
  30. /**
  31. * @param mixed $contractId
  32. */
  33. public function setContractId($contractId)
  34. {
  35. $this->contractId = $contractId;
  36. }
  37. /**
  38. * @return mixed
  39. */
  40. public function getBizId()
  41. {
  42. return $this->bizId;
  43. }
  44. /**
  45. * @param mixed $bizId
  46. */
  47. public function setBizId($bizId)
  48. {
  49. $this->bizId = $bizId;
  50. }
  51. /**
  52. * @return mixed
  53. */
  54. public function getTenantName()
  55. {
  56. return $this->tenantName;
  57. }
  58. /**
  59. * @param mixed $tenantName
  60. */
  61. public function setTenantName($tenantName)
  62. {
  63. $this->tenantName = $tenantName;
  64. }
  65. /**
  66. * @return mixed
  67. */
  68. public function getQueryActionOperator()
  69. {
  70. return $this->queryActionOperator;
  71. }
  72. /**
  73. * @param mixed $queryActionOperator
  74. */
  75. public function setQueryActionOperator($queryActionOperator)
  76. {
  77. $this->queryActionOperator = $queryActionOperator;
  78. }
  79. /**
  80. * @return mixed
  81. */
  82. public function getQueryLocation()
  83. {
  84. return $this->queryLocation;
  85. }
  86. /**
  87. * @param mixed $queryLocation
  88. */
  89. public function setQueryLocation($queryLocation)
  90. {
  91. $this->queryLocation = $queryLocation;
  92. }
  93. }