PddDdkOauthRpPromUrlGenerateRequest.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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 PddDdkOauthRpPromUrlGenerateRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(Integer, "channel_type")
  12. */
  13. private $channelType;
  14. /**
  15. * @JsonProperty(String, "custom_parameters")
  16. */
  17. private $customParameters;
  18. /**
  19. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddDdkOauthRpPromUrlGenerateRequest_DiyLotteryParam, "diy_lottery_param")
  20. */
  21. private $diyLotteryParam;
  22. /**
  23. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddDdkOauthRpPromUrlGenerateRequest_DiyRedPacketParam, "diy_red_packet_param")
  24. */
  25. private $diyRedPacketParam;
  26. /**
  27. * @JsonProperty(Boolean, "generate_qq_app")
  28. */
  29. private $generateQqApp;
  30. /**
  31. * @JsonProperty(Boolean, "generate_schema_url")
  32. */
  33. private $generateSchemaUrl;
  34. /**
  35. * @JsonProperty(Boolean, "generate_short_url")
  36. */
  37. private $generateShortUrl;
  38. /**
  39. * @JsonProperty(Boolean, "generate_we_app")
  40. */
  41. private $generateWeApp;
  42. /**
  43. * @JsonProperty(List<String>, "p_id_list")
  44. */
  45. private $pIdList;
  46. /**
  47. * @JsonProperty(Long, "amount")
  48. */
  49. private $amount;
  50. protected function setUserParams(&$params)
  51. {
  52. $this->setUserParam($params, "channel_type", $this->channelType);
  53. $this->setUserParam($params, "custom_parameters", $this->customParameters);
  54. $this->setUserParam($params, "diy_lottery_param", $this->diyLotteryParam);
  55. $this->setUserParam($params, "diy_red_packet_param", $this->diyRedPacketParam);
  56. $this->setUserParam($params, "generate_qq_app", $this->generateQqApp);
  57. $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl);
  58. $this->setUserParam($params, "generate_short_url", $this->generateShortUrl);
  59. $this->setUserParam($params, "generate_we_app", $this->generateWeApp);
  60. $this->setUserParam($params, "p_id_list", $this->pIdList);
  61. $this->setUserParam($params, "amount", $this->amount);
  62. }
  63. public function getVersion()
  64. {
  65. return "V1";
  66. }
  67. public function getDataType()
  68. {
  69. return "JSON";
  70. }
  71. public function getType()
  72. {
  73. return "pdd.ddk.oauth.rp.prom.url.generate";
  74. }
  75. public function setChannelType($channelType)
  76. {
  77. $this->channelType = $channelType;
  78. }
  79. public function setCustomParameters($customParameters)
  80. {
  81. $this->customParameters = $customParameters;
  82. }
  83. public function setDiyLotteryParam($diyLotteryParam)
  84. {
  85. $this->diyLotteryParam = $diyLotteryParam;
  86. }
  87. public function setDiyRedPacketParam($diyRedPacketParam)
  88. {
  89. $this->diyRedPacketParam = $diyRedPacketParam;
  90. }
  91. public function setGenerateQqApp($generateQqApp)
  92. {
  93. $this->generateQqApp = $generateQqApp;
  94. }
  95. public function setGenerateSchemaUrl($generateSchemaUrl)
  96. {
  97. $this->generateSchemaUrl = $generateSchemaUrl;
  98. }
  99. public function setGenerateShortUrl($generateShortUrl)
  100. {
  101. $this->generateShortUrl = $generateShortUrl;
  102. }
  103. public function setGenerateWeApp($generateWeApp)
  104. {
  105. $this->generateWeApp = $generateWeApp;
  106. }
  107. public function setPIdList($pIdList)
  108. {
  109. $this->pIdList = $pIdList;
  110. }
  111. public function setAmount($amount)
  112. {
  113. $this->amount = $amount;
  114. }
  115. }
  116. class PddDdkOauthRpPromUrlGenerateRequest_DiyLotteryParam extends PopBaseJsonEntity
  117. {
  118. public function __construct()
  119. {
  120. }
  121. /**
  122. * @JsonProperty(Integer, "opt_id")
  123. */
  124. private $optId;
  125. /**
  126. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddDdkOauthRpPromUrlGenerateRequest_DiyLotteryParamRangeItemsItem>, "range_items")
  127. */
  128. private $rangeItems;
  129. public function setOptId($optId)
  130. {
  131. $this->optId = $optId;
  132. }
  133. public function setRangeItems($rangeItems)
  134. {
  135. $this->rangeItems = $rangeItems;
  136. }
  137. }
  138. class PddDdkOauthRpPromUrlGenerateRequest_DiyLotteryParamRangeItemsItem extends PopBaseJsonEntity
  139. {
  140. public function __construct()
  141. {
  142. }
  143. /**
  144. * @JsonProperty(Long, "range_from")
  145. */
  146. private $rangeFrom;
  147. /**
  148. * @JsonProperty(Integer, "range_id")
  149. */
  150. private $rangeId;
  151. /**
  152. * @JsonProperty(Long, "range_to")
  153. */
  154. private $rangeTo;
  155. public function setRangeFrom($rangeFrom)
  156. {
  157. $this->rangeFrom = $rangeFrom;
  158. }
  159. public function setRangeId($rangeId)
  160. {
  161. $this->rangeId = $rangeId;
  162. }
  163. public function setRangeTo($rangeTo)
  164. {
  165. $this->rangeTo = $rangeTo;
  166. }
  167. }
  168. class PddDdkOauthRpPromUrlGenerateRequest_DiyRedPacketParam extends PopBaseJsonEntity
  169. {
  170. public function __construct()
  171. {
  172. }
  173. /**
  174. * @JsonProperty(List<Long>, "amount_probability")
  175. */
  176. private $amountProbability;
  177. /**
  178. * @JsonProperty(Boolean, "dis_text")
  179. */
  180. private $disText;
  181. /**
  182. * @JsonProperty(Boolean, "not_show_background")
  183. */
  184. private $notShowBackground;
  185. /**
  186. * @JsonProperty(Integer, "opt_id")
  187. */
  188. private $optId;
  189. /**
  190. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddDdkOauthRpPromUrlGenerateRequest_DiyRedPacketParamRangeItemsItem>, "range_items")
  191. */
  192. private $rangeItems;
  193. public function setAmountProbability($amountProbability)
  194. {
  195. $this->amountProbability = $amountProbability;
  196. }
  197. public function setDisText($disText)
  198. {
  199. $this->disText = $disText;
  200. }
  201. public function setNotShowBackground($notShowBackground)
  202. {
  203. $this->notShowBackground = $notShowBackground;
  204. }
  205. public function setOptId($optId)
  206. {
  207. $this->optId = $optId;
  208. }
  209. public function setRangeItems($rangeItems)
  210. {
  211. $this->rangeItems = $rangeItems;
  212. }
  213. }
  214. class PddDdkOauthRpPromUrlGenerateRequest_DiyRedPacketParamRangeItemsItem extends PopBaseJsonEntity
  215. {
  216. public function __construct()
  217. {
  218. }
  219. /**
  220. * @JsonProperty(Long, "range_from")
  221. */
  222. private $rangeFrom;
  223. /**
  224. * @JsonProperty(Integer, "range_id")
  225. */
  226. private $rangeId;
  227. /**
  228. * @JsonProperty(Long, "range_to")
  229. */
  230. private $rangeTo;
  231. public function setRangeFrom($rangeFrom)
  232. {
  233. $this->rangeFrom = $rangeFrom;
  234. }
  235. public function setRangeId($rangeId)
  236. {
  237. $this->rangeId = $rangeId;
  238. }
  239. public function setRangeTo($rangeTo)
  240. {
  241. $this->rangeTo = $rangeTo;
  242. }
  243. }