PddLogisticsTicketGetRequest.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 PddLogisticsTicketGetRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(Long, "end_updated_at")
  12. */
  13. private $endUpdatedAt;
  14. /**
  15. * @JsonProperty(Integer, "page")
  16. */
  17. private $page;
  18. /**
  19. * @JsonProperty(Integer, "page_size")
  20. */
  21. private $pageSize;
  22. /**
  23. * @JsonProperty(Long, "start_updated_at")
  24. */
  25. private $startUpdatedAt;
  26. protected function setUserParams(&$params)
  27. {
  28. $this->setUserParam($params, "end_updated_at", $this->endUpdatedAt);
  29. $this->setUserParam($params, "page", $this->page);
  30. $this->setUserParam($params, "page_size", $this->pageSize);
  31. $this->setUserParam($params, "start_updated_at", $this->startUpdatedAt);
  32. }
  33. public function getVersion()
  34. {
  35. return "V1";
  36. }
  37. public function getDataType()
  38. {
  39. return "JSON";
  40. }
  41. public function getType()
  42. {
  43. return "pdd.logistics.ticket.get";
  44. }
  45. public function setEndUpdatedAt($endUpdatedAt)
  46. {
  47. $this->endUpdatedAt = $endUpdatedAt;
  48. }
  49. public function setPage($page)
  50. {
  51. $this->page = $page;
  52. }
  53. public function setPageSize($pageSize)
  54. {
  55. $this->pageSize = $pageSize;
  56. }
  57. public function setStartUpdatedAt($startUpdatedAt)
  58. {
  59. $this->startUpdatedAt = $startUpdatedAt;
  60. }
  61. }