SignatoryEditRequest.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. class SignatoryEditRequest extends SdkRequest {
  3. const REQUEST_URL = "/v2/signatory/edit";
  4. private $signatoryId;
  5. private $tenantName;
  6. private $receiver;
  7. function getUrl() {
  8. return self::REQUEST_URL;
  9. }
  10. function getHttpParamers() {
  11. $paramSwitcher = ParamSwitcher::instanceParam();
  12. $paramSwitcher->addParam('signatoryId', $this->signatoryId);
  13. $paramSwitcher->addParam('tenantName', $this->tenantName);
  14. $paramSwitcher->addParam('receiver', $this->receiver);
  15. $httpParameters = HttpParameter::httpPostParamer();
  16. $httpParameters->setJsonParams(json_encode($paramSwitcher->getParams()));
  17. return $httpParameters;
  18. }
  19. /**
  20. * @return mixed
  21. */
  22. public function getSignatoryId()
  23. {
  24. return $this->signatoryId;
  25. }
  26. /**
  27. * @param mixed $signatoryId
  28. */
  29. public function setSignatoryId($signatoryId)
  30. {
  31. $this->signatoryId = $signatoryId;
  32. }
  33. /**
  34. * @return mixed
  35. */
  36. public function getTenantName()
  37. {
  38. return $this->tenantName;
  39. }
  40. /**
  41. * @param mixed $tenantName
  42. */
  43. public function setTenantName($tenantName)
  44. {
  45. $this->tenantName = $tenantName;
  46. }
  47. /**
  48. * @return mixed
  49. */
  50. public function getReceiver()
  51. {
  52. return $this->receiver;
  53. }
  54. /**
  55. * @param mixed $receiver
  56. */
  57. public function setReceiver($receiver)
  58. {
  59. $this->receiver = $receiver;
  60. }
  61. }