PddDdkCouponInfoQueryRequest.php 890 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 PddDdkCouponInfoQueryRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(List<String>, "coupon_ids")
  12. */
  13. private $couponIds;
  14. /**
  15. * @JsonProperty(List<Long>, "mall_ids")
  16. */
  17. private $mallIds;
  18. protected function setUserParams(&$params)
  19. {
  20. $this->setUserParam($params, "coupon_ids", $this->couponIds);
  21. $this->setUserParam($params, "mall_ids", $this->mallIds);
  22. }
  23. public function getVersion()
  24. {
  25. return "V1";
  26. }
  27. public function getDataType()
  28. {
  29. return "JSON";
  30. }
  31. public function getType()
  32. {
  33. return "pdd.ddk.coupon.info.query";
  34. }
  35. public function setCouponIds($couponIds)
  36. {
  37. $this->couponIds = $couponIds;
  38. }
  39. public function setMallIds($mallIds)
  40. {
  41. $this->mallIds = $mallIds;
  42. }
  43. }