PddExpressSearchDepotRequest.php 1.2 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 PddExpressSearchDepotRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(String, "code")
  12. */
  13. private $code;
  14. /**
  15. * @JsonProperty(Integer, "length")
  16. */
  17. private $length;
  18. /**
  19. * @JsonProperty(String, "name")
  20. */
  21. private $name;
  22. /**
  23. * @JsonProperty(Integer, "start")
  24. */
  25. private $start;
  26. protected function setUserParams(&$params)
  27. {
  28. $this->setUserParam($params, "code", $this->code);
  29. $this->setUserParam($params, "length", $this->length);
  30. $this->setUserParam($params, "name", $this->name);
  31. $this->setUserParam($params, "start", $this->start);
  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.express.search.depot";
  44. }
  45. public function setCode($code)
  46. {
  47. $this->code = $code;
  48. }
  49. public function setLength($length)
  50. {
  51. $this->length = $length;
  52. }
  53. public function setName($name)
  54. {
  55. $this->name = $name;
  56. }
  57. public function setStart($start)
  58. {
  59. $this->start = $start;
  60. }
  61. }