InvalidByTemplateRequest.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php
  2. class InvalidByTemplateRequest extends SdkRequest {
  3. const INVALID_BY_TEMPLATE = "/v2/contract/invalidbytemplate"; // 自定义文件作废合同
  4. private $contractId;
  5. private $bizId;
  6. private $tenantName;
  7. private $title;
  8. private $deleteDoc;
  9. private $invalidReason;
  10. private $templateId;
  11. private $templateParams;
  12. private $stampers;
  13. public function getUrl() {
  14. return self::INVALID_BY_TEMPLATE;
  15. }
  16. public function getHttpParamers() {
  17. $paramSwitcher = ParamSwitcher::instanceParam();
  18. $paramSwitcher->addParam('contractId', $this->contractId);
  19. $paramSwitcher->addParam('bizId', $this->bizId);
  20. $paramSwitcher->addParam('tenantName', $this->tenantName);
  21. $paramSwitcher->addParam('title', $this->title);
  22. $paramSwitcher->addParam('deleteDoc', $this->deleteDoc);
  23. $paramSwitcher->addParam('invalidReason', $this->invalidReason);
  24. $paramSwitcher->addParam('templateId', $this->templateId);
  25. $paramSwitcher->addParam('templateParams', $this->templateParams);
  26. $paramSwitcher->addParam('stampers', $this->stampers);
  27. $httpParameters = HttpParameter::httpPostParamer();
  28. $httpParameters->setJsonParams(json_encode($paramSwitcher->getParams()));
  29. return $httpParameters;
  30. }
  31. public function getContractId()
  32. {
  33. return $this->contractId;
  34. }
  35. public function setContractId($contractId)
  36. {
  37. $this->contractId = $contractId;
  38. }
  39. public function getBizId()
  40. {
  41. return $this->bizId;
  42. }
  43. public function setBizId($bizId)
  44. {
  45. $this->bizId = $bizId;
  46. }
  47. public function getTenantName()
  48. {
  49. return $this->tenantName;
  50. }
  51. public function setTenantName($tenantName)
  52. {
  53. $this->tenantName = $tenantName;
  54. }
  55. public function getTitle()
  56. {
  57. return $this->title;
  58. }
  59. public function setTitle($title)
  60. {
  61. $this->title = $title;
  62. }
  63. public function getDeleteDoc()
  64. {
  65. return $this->deleteDoc;
  66. }
  67. public function setDeleteDoc($deleteDoc)
  68. {
  69. $this->deleteDoc = $deleteDoc;
  70. }
  71. public function getInvalidReason()
  72. {
  73. return $this->invalidReason;
  74. }
  75. public function setInvalidReason($invalidReason)
  76. {
  77. $this->invalidReason = $invalidReason;
  78. }
  79. public function getTemplateId()
  80. {
  81. return $this->templateId;
  82. }
  83. public function setTemplateId($templateId)
  84. {
  85. $this->templateId = $templateId;
  86. }
  87. public function getTemplateParams()
  88. {
  89. return $this->templateParams;
  90. }
  91. public function setTemplateParams($templateParams)
  92. {
  93. $this->templateParams = $templateParams;
  94. }
  95. public function getStampers()
  96. {
  97. return $this->stampers;
  98. }
  99. public function setStampers($stampers)
  100. {
  101. $this->stampers = $stampers;
  102. }
  103. }