PddKttGroupCreateRequest.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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 PddKttGroupCreateRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(Long, "end_time")
  12. */
  13. private $endTime;
  14. /**
  15. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddKttGroupCreateRequest_GoodsListItem>, "goods_list")
  16. */
  17. private $goodsList;
  18. /**
  19. * @JsonProperty(String, "isv_no")
  20. */
  21. private $isvNo;
  22. /**
  23. * @JsonProperty(Integer, "is_save_preview")
  24. */
  25. private $isSavePreview;
  26. /**
  27. * @JsonProperty(Long, "start_time")
  28. */
  29. private $startTime;
  30. /**
  31. * @JsonProperty(String, "title")
  32. */
  33. private $title;
  34. protected function setUserParams(&$params)
  35. {
  36. $this->setUserParam($params, "end_time", $this->endTime);
  37. $this->setUserParam($params, "goods_list", $this->goodsList);
  38. $this->setUserParam($params, "isv_no", $this->isvNo);
  39. $this->setUserParam($params, "is_save_preview", $this->isSavePreview);
  40. $this->setUserParam($params, "start_time", $this->startTime);
  41. $this->setUserParam($params, "title", $this->title);
  42. }
  43. public function getVersion()
  44. {
  45. return "V1";
  46. }
  47. public function getDataType()
  48. {
  49. return "JSON";
  50. }
  51. public function getType()
  52. {
  53. return "pdd.ktt.group.create";
  54. }
  55. public function setEndTime($endTime)
  56. {
  57. $this->endTime = $endTime;
  58. }
  59. public function setGoodsList($goodsList)
  60. {
  61. $this->goodsList = $goodsList;
  62. }
  63. public function setIsvNo($isvNo)
  64. {
  65. $this->isvNo = $isvNo;
  66. }
  67. public function setIsSavePreview($isSavePreview)
  68. {
  69. $this->isSavePreview = $isSavePreview;
  70. }
  71. public function setStartTime($startTime)
  72. {
  73. $this->startTime = $startTime;
  74. }
  75. public function setTitle($title)
  76. {
  77. $this->title = $title;
  78. }
  79. }
  80. class PddKttGroupCreateRequest_GoodsListItem extends PopBaseJsonEntity
  81. {
  82. public function __construct()
  83. {
  84. }
  85. /**
  86. * @JsonProperty(String, "category_name")
  87. */
  88. private $categoryName;
  89. /**
  90. * @JsonProperty(String, "goods_desc")
  91. */
  92. private $goodsDesc;
  93. /**
  94. * @JsonProperty(String, "goods_name")
  95. */
  96. private $goodsName;
  97. /**
  98. * @JsonProperty(Integer, "limit_buy")
  99. */
  100. private $limitBuy;
  101. /**
  102. * @JsonProperty(Long, "market_price")
  103. */
  104. private $marketPrice;
  105. /**
  106. * @JsonProperty(List<String>, "pic_url_list")
  107. */
  108. private $picUrlList;
  109. /**
  110. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddKttGroupCreateRequest_GoodsListItemSkuListItem>, "sku_list")
  111. */
  112. private $skuList;
  113. public function setCategoryName($categoryName)
  114. {
  115. $this->categoryName = $categoryName;
  116. }
  117. public function setGoodsDesc($goodsDesc)
  118. {
  119. $this->goodsDesc = $goodsDesc;
  120. }
  121. public function setGoodsName($goodsName)
  122. {
  123. $this->goodsName = $goodsName;
  124. }
  125. public function setLimitBuy($limitBuy)
  126. {
  127. $this->limitBuy = $limitBuy;
  128. }
  129. public function setMarketPrice($marketPrice)
  130. {
  131. $this->marketPrice = $marketPrice;
  132. }
  133. public function setPicUrlList($picUrlList)
  134. {
  135. $this->picUrlList = $picUrlList;
  136. }
  137. public function setSkuList($skuList)
  138. {
  139. $this->skuList = $skuList;
  140. }
  141. }
  142. class PddKttGroupCreateRequest_GoodsListItemSkuListItem extends PopBaseJsonEntity
  143. {
  144. public function __construct()
  145. {
  146. }
  147. /**
  148. * @JsonProperty(String, "external_sku_id")
  149. */
  150. private $externalSkuId;
  151. /**
  152. * @JsonProperty(Long, "price_in_fen")
  153. */
  154. private $priceInFen;
  155. /**
  156. * @JsonProperty(Integer, "quantity_type")
  157. */
  158. private $quantityType;
  159. /**
  160. * @JsonProperty(List<Long>, "spec_id_list")
  161. */
  162. private $specIdList;
  163. /**
  164. * @JsonProperty(String, "thumb_url")
  165. */
  166. private $thumbUrl;
  167. /**
  168. * @JsonProperty(Long, "total_quantity")
  169. */
  170. private $totalQuantity;
  171. public function setExternalSkuId($externalSkuId)
  172. {
  173. $this->externalSkuId = $externalSkuId;
  174. }
  175. public function setPriceInFen($priceInFen)
  176. {
  177. $this->priceInFen = $priceInFen;
  178. }
  179. public function setQuantityType($quantityType)
  180. {
  181. $this->quantityType = $quantityType;
  182. }
  183. public function setSpecIdList($specIdList)
  184. {
  185. $this->specIdList = $specIdList;
  186. }
  187. public function setThumbUrl($thumbUrl)
  188. {
  189. $this->thumbUrl = $thumbUrl;
  190. }
  191. public function setTotalQuantity($totalQuantity)
  192. {
  193. $this->totalQuantity = $totalQuantity;
  194. }
  195. }