PddCloudIsvPageCodeRequest.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. namespace Com\Pdd\Pop\Sdk\Api\Request;
  3. use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
  4. use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
  5. class PddCloudIsvPageCodeRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(List<String>, "mallIdList")
  12. */
  13. private $mallIdList;
  14. /**
  15. * @JsonProperty(String, "httpReferer")
  16. */
  17. private $httpReferer;
  18. /**
  19. * @JsonProperty(String, "userId")
  20. */
  21. private $userId;
  22. protected function setUserParams(&$params)
  23. {
  24. $this->setUserParam($params, "mallIdList", $this->mallIdList);
  25. $this->setUserParam($params, "httpReferer", $this->httpReferer);
  26. $this->setUserParam($params, "userId", $this->userId);
  27. }
  28. public function getVersion()
  29. {
  30. return "V1";
  31. }
  32. public function getDataType()
  33. {
  34. return "JSON";
  35. }
  36. public function getType()
  37. {
  38. return "pdd.cloud.isv.page.code";
  39. }
  40. public function setMallIdList($mallIdList)
  41. {
  42. $this->mallIdList = $mallIdList;
  43. }
  44. public function setHttpReferer($httpReferer)
  45. {
  46. $this->httpReferer = $httpReferer;
  47. }
  48. public function setUserId($userId)
  49. {
  50. $this->userId = $userId;
  51. }
  52. }