PddDdkGoodsPromotionUrlGenerateRequest.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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 PddDdkGoodsPromotionUrlGenerateRequest 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(Boolean, "generate_qq_app")
  20. */
  21. private $generateQqApp;
  22. /**
  23. * @JsonProperty(Boolean, "generate_schema_url")
  24. */
  25. private $generateSchemaUrl;
  26. /**
  27. * @JsonProperty(Boolean, "generate_short_url")
  28. */
  29. private $generateShortUrl;
  30. /**
  31. * @JsonProperty(Boolean, "generate_weapp_webview")
  32. */
  33. private $generateWeappWebview;
  34. /**
  35. * @JsonProperty(Boolean, "generate_weiboapp_webview")
  36. */
  37. private $generateWeiboappWebview;
  38. /**
  39. * @JsonProperty(Boolean, "generate_we_app")
  40. */
  41. private $generateWeApp;
  42. /**
  43. * @JsonProperty(List<Long>, "goods_id_list")
  44. */
  45. private $goodsIdList;
  46. /**
  47. * @JsonProperty(Boolean, "multi_group")
  48. */
  49. private $multiGroup;
  50. /**
  51. * @JsonProperty(String, "p_id")
  52. */
  53. private $pId;
  54. /**
  55. * @JsonProperty(String, "search_id")
  56. */
  57. private $searchId;
  58. /**
  59. * @JsonProperty(Long, "zs_duo_id")
  60. */
  61. private $zsDuoId;
  62. /**
  63. * @JsonProperty(List<String>, "room_id_list")
  64. */
  65. private $roomIdList;
  66. /**
  67. * @JsonProperty(List<String>, "target_id_list")
  68. */
  69. private $targetIdList;
  70. /**
  71. * @JsonProperty(Boolean, "generate_authority_url")
  72. */
  73. private $generateAuthorityUrl;
  74. protected function setUserParams(&$params)
  75. {
  76. $this->setUserParam($params, "custom_parameters", $this->customParameters);
  77. $this->setUserParam($params, "generate_mall_collect_coupon", $this->generateMallCollectCoupon);
  78. $this->setUserParam($params, "generate_qq_app", $this->generateQqApp);
  79. $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl);
  80. $this->setUserParam($params, "generate_short_url", $this->generateShortUrl);
  81. $this->setUserParam($params, "generate_weapp_webview", $this->generateWeappWebview);
  82. $this->setUserParam($params, "generate_weiboapp_webview", $this->generateWeiboappWebview);
  83. $this->setUserParam($params, "generate_we_app", $this->generateWeApp);
  84. $this->setUserParam($params, "goods_id_list", $this->goodsIdList);
  85. $this->setUserParam($params, "multi_group", $this->multiGroup);
  86. $this->setUserParam($params, "p_id", $this->pId);
  87. $this->setUserParam($params, "search_id", $this->searchId);
  88. $this->setUserParam($params, "zs_duo_id", $this->zsDuoId);
  89. $this->setUserParam($params, "room_id_list", $this->roomIdList);
  90. $this->setUserParam($params, "target_id_list", $this->targetIdList);
  91. $this->setUserParam($params, "generate_authority_url", $this->generateAuthorityUrl);
  92. }
  93. public function getVersion()
  94. {
  95. return "V1";
  96. }
  97. public function getDataType()
  98. {
  99. return "JSON";
  100. }
  101. public function getType()
  102. {
  103. return "pdd.ddk.goods.promotion.url.generate";
  104. }
  105. public function setCustomParameters($customParameters)
  106. {
  107. $this->customParameters = $customParameters;
  108. }
  109. public function setGenerateMallCollectCoupon($generateMallCollectCoupon)
  110. {
  111. $this->generateMallCollectCoupon = $generateMallCollectCoupon;
  112. }
  113. public function setGenerateQqApp($generateQqApp)
  114. {
  115. $this->generateQqApp = $generateQqApp;
  116. }
  117. public function setGenerateSchemaUrl($generateSchemaUrl)
  118. {
  119. $this->generateSchemaUrl = $generateSchemaUrl;
  120. }
  121. public function setGenerateShortUrl($generateShortUrl)
  122. {
  123. $this->generateShortUrl = $generateShortUrl;
  124. }
  125. public function setGenerateWeappWebview($generateWeappWebview)
  126. {
  127. $this->generateWeappWebview = $generateWeappWebview;
  128. }
  129. public function setGenerateWeiboappWebview($generateWeiboappWebview)
  130. {
  131. $this->generateWeiboappWebview = $generateWeiboappWebview;
  132. }
  133. public function setGenerateWeApp($generateWeApp)
  134. {
  135. $this->generateWeApp = $generateWeApp;
  136. }
  137. public function setGoodsIdList($goodsIdList)
  138. {
  139. $this->goodsIdList = $goodsIdList;
  140. }
  141. public function setMultiGroup($multiGroup)
  142. {
  143. $this->multiGroup = $multiGroup;
  144. }
  145. public function setPId($pId)
  146. {
  147. $this->pId = $pId;
  148. }
  149. public function setSearchId($searchId)
  150. {
  151. $this->searchId = $searchId;
  152. }
  153. public function setZsDuoId($zsDuoId)
  154. {
  155. $this->zsDuoId = $zsDuoId;
  156. }
  157. public function setRoomIdList($roomIdList)
  158. {
  159. $this->roomIdList = $roomIdList;
  160. }
  161. public function setTargetIdList($targetIdList)
  162. {
  163. $this->targetIdList = $targetIdList;
  164. }
  165. public function setGenerateAuthorityUrl($generateAuthorityUrl)
  166. {
  167. $this->generateAuthorityUrl = $generateAuthorityUrl;
  168. }
  169. }