InvalidByFileRequest.php 2.9 KB

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