ContractCopySendRequest.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?php
  2. class ContractCopySendRequest extends SdkRequest {
  3. const REQUEST_URL = "/v2/contract/copysend";
  4. private $contractId;
  5. private $bizId;
  6. private $tenantName;
  7. private $receivers;
  8. function getUrl() {
  9. return self::REQUEST_URL;
  10. }
  11. function getHttpParamers() {
  12. $paramSwitcher = ParamSwitcher::instanceParam();
  13. $paramSwitcher->addParam('contractId', $this->contractId);
  14. $paramSwitcher->addParam('bizId', $this->bizId);
  15. $paramSwitcher->addParam('tenantName', $this->tenantName);
  16. $paramSwitcher->addParam('receivers', $this->receivers);
  17. $httpParameters = HttpParameter::httpPostParamer();
  18. $httpParameters->setJsonParams(json_encode($paramSwitcher->getParams()));
  19. return $httpParameters;
  20. }
  21. /**
  22. * @return mixed
  23. */
  24. public function getContractId()
  25. {
  26. return $this->contractId;
  27. }
  28. /**
  29. * @param mixed $contractId
  30. */
  31. public function setContractId($contractId)
  32. {
  33. $this->contractId = $contractId;
  34. }
  35. /**
  36. * @return mixed
  37. */
  38. public function getBizId()
  39. {
  40. return $this->bizId;
  41. }
  42. /**
  43. * @param mixed $bizId
  44. */
  45. public function setBizId($bizId)
  46. {
  47. $this->bizId = $bizId;
  48. }
  49. /**
  50. * @return mixed
  51. */
  52. public function getTenantName()
  53. {
  54. return $this->tenantName;
  55. }
  56. /**
  57. * @param mixed $tenantName
  58. */
  59. public function setTenantName($tenantName)
  60. {
  61. $this->tenantName = $tenantName;
  62. }
  63. /**
  64. * @return mixed
  65. */
  66. public function getReceivers()
  67. {
  68. return $this->receivers;
  69. }
  70. /**
  71. * @param mixed $receivers
  72. */
  73. public function setReceivers($receivers)
  74. {
  75. $this->receivers = $receivers;
  76. }
  77. }