PddDdkWeappQrcodeUrlGenRequest.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 PddDdkWeappQrcodeUrlGenRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(String, "custom_parameters")
  12. */
  13. private $customParameters;
  14. /**
  15. * @JsonProperty(Boolean, "generate_mall_collect_coupon")
  16. */
  17. private $generateMallCollectCoupon;
  18. /**
  19. * @JsonProperty(List<Long>, "goods_id_list")
  20. */
  21. private $goodsIdList;
  22. /**
  23. * @JsonProperty(String, "p_id")
  24. */
  25. private $pId;
  26. /**
  27. * @JsonProperty(Long, "zs_duo_id")
  28. */
  29. private $zsDuoId;
  30. /**
  31. * @JsonProperty(List<String>, "room_id_list")
  32. */
  33. private $roomIdList;
  34. /**
  35. * @JsonProperty(List<String>, "target_id_list")
  36. */
  37. private $targetIdList;
  38. protected function setUserParams(&$params)
  39. {
  40. $this->setUserParam($params, "custom_parameters", $this->customParameters);
  41. $this->setUserParam($params, "generate_mall_collect_coupon", $this->generateMallCollectCoupon);
  42. $this->setUserParam($params, "goods_id_list", $this->goodsIdList);
  43. $this->setUserParam($params, "p_id", $this->pId);
  44. $this->setUserParam($params, "zs_duo_id", $this->zsDuoId);
  45. $this->setUserParam($params, "room_id_list", $this->roomIdList);
  46. $this->setUserParam($params, "target_id_list", $this->targetIdList);
  47. }
  48. public function getVersion()
  49. {
  50. return "V1";
  51. }
  52. public function getDataType()
  53. {
  54. return "JSON";
  55. }
  56. public function getType()
  57. {
  58. return "pdd.ddk.weapp.qrcode.url.gen";
  59. }
  60. public function setCustomParameters($customParameters)
  61. {
  62. $this->customParameters = $customParameters;
  63. }
  64. public function setGenerateMallCollectCoupon($generateMallCollectCoupon)
  65. {
  66. $this->generateMallCollectCoupon = $generateMallCollectCoupon;
  67. }
  68. public function setGoodsIdList($goodsIdList)
  69. {
  70. $this->goodsIdList = $goodsIdList;
  71. }
  72. public function setPId($pId)
  73. {
  74. $this->pId = $pId;
  75. }
  76. public function setZsDuoId($zsDuoId)
  77. {
  78. $this->zsDuoId = $zsDuoId;
  79. }
  80. public function setRoomIdList($roomIdList)
  81. {
  82. $this->roomIdList = $roomIdList;
  83. }
  84. public function setTargetIdList($targetIdList)
  85. {
  86. $this->targetIdList = $targetIdList;
  87. }
  88. }