SaaSResetTokenRequest.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. class SaaSResetTokenRequest extends SdkRequest {
  3. const REQUEST_URL = "/saas/v2/company/resettoken";
  4. private $companyId;
  5. private $accessToken;
  6. public function getUrl() {
  7. return self::REQUEST_URL;
  8. }
  9. public function getHttpParamers() {
  10. $paramSwitcher = ParamSwitcher::instanceParam();
  11. $paramSwitcher->addParam('companyId', $this->companyId);
  12. $paramSwitcher->addParam('accessToken', $this->accessToken);
  13. $httpParameters = HttpParameter::httpPostParamer();
  14. $httpParameters->setJsonParams(json_encode($paramSwitcher->getParams()));
  15. return $httpParameters;
  16. }
  17. /**
  18. * @return mixed
  19. */
  20. public function getCompanyId()
  21. {
  22. return $this->companyId;
  23. }
  24. /**
  25. * @param mixed $companyId
  26. */
  27. public function setCompanyId($companyId)
  28. {
  29. $this->companyId = $companyId;
  30. }
  31. /**
  32. * @return mixed
  33. */
  34. public function getAccessToken()
  35. {
  36. return $this->accessToken;
  37. }
  38. /**
  39. * @param mixed $accessToken
  40. */
  41. public function setAccessToken($accessToken)
  42. {
  43. $this->accessToken = $accessToken;
  44. }
  45. }