PddTicketGoodsUploadRequest.php 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  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 PddTicketGoodsUploadRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(List<String>, "carousel_gallery")
  12. */
  13. private $carouselGallery;
  14. /**
  15. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_CarouselVideoItem>, "carousel_video")
  16. */
  17. private $carouselVideo;
  18. /**
  19. * @JsonProperty(Long, "cat_id")
  20. */
  21. private $catId;
  22. /**
  23. * @JsonProperty(Integer, "code_mode")
  24. */
  25. private $codeMode;
  26. /**
  27. * @JsonProperty(List<String>, "detail_gallery")
  28. */
  29. private $detailGallery;
  30. /**
  31. * @JsonProperty(Long, "goods_commit_id")
  32. */
  33. private $goodsCommitId;
  34. /**
  35. * @JsonProperty(String, "goods_desc")
  36. */
  37. private $goodsDesc;
  38. /**
  39. * @JsonProperty(Long, "goods_id")
  40. */
  41. private $goodsId;
  42. /**
  43. * @JsonProperty(String, "goods_name")
  44. */
  45. private $goodsName;
  46. /**
  47. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_GoodsPropertiesItem>, "goods_properties")
  48. */
  49. private $goodsProperties;
  50. /**
  51. * @JsonProperty(Integer, "is_submit")
  52. */
  53. private $isSubmit;
  54. /**
  55. * @JsonProperty(Long, "market_price")
  56. */
  57. private $marketPrice;
  58. /**
  59. * @JsonProperty(String, "out_goods_sn")
  60. */
  61. private $outGoodsSn;
  62. /**
  63. * @JsonProperty(String, "reserve_limit_rule")
  64. */
  65. private $reserveLimitRule;
  66. /**
  67. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_SkuListItem>, "sku_list")
  68. */
  69. private $skuList;
  70. /**
  71. * @JsonProperty(Integer, "sku_type")
  72. */
  73. private $skuType;
  74. /**
  75. * @JsonProperty(Integer, "sync_goods_operate")
  76. */
  77. private $syncGoodsOperate;
  78. protected function setUserParams(&$params)
  79. {
  80. $this->setUserParam($params, "carousel_gallery", $this->carouselGallery);
  81. $this->setUserParam($params, "carousel_video", $this->carouselVideo);
  82. $this->setUserParam($params, "cat_id", $this->catId);
  83. $this->setUserParam($params, "code_mode", $this->codeMode);
  84. $this->setUserParam($params, "detail_gallery", $this->detailGallery);
  85. $this->setUserParam($params, "goods_commit_id", $this->goodsCommitId);
  86. $this->setUserParam($params, "goods_desc", $this->goodsDesc);
  87. $this->setUserParam($params, "goods_id", $this->goodsId);
  88. $this->setUserParam($params, "goods_name", $this->goodsName);
  89. $this->setUserParam($params, "goods_properties", $this->goodsProperties);
  90. $this->setUserParam($params, "is_submit", $this->isSubmit);
  91. $this->setUserParam($params, "market_price", $this->marketPrice);
  92. $this->setUserParam($params, "out_goods_sn", $this->outGoodsSn);
  93. $this->setUserParam($params, "reserve_limit_rule", $this->reserveLimitRule);
  94. $this->setUserParam($params, "sku_list", $this->skuList);
  95. $this->setUserParam($params, "sku_type", $this->skuType);
  96. $this->setUserParam($params, "sync_goods_operate", $this->syncGoodsOperate);
  97. }
  98. public function getVersion()
  99. {
  100. return "V1";
  101. }
  102. public function getDataType()
  103. {
  104. return "JSON";
  105. }
  106. public function getType()
  107. {
  108. return "pdd.ticket.goods.upload";
  109. }
  110. public function setCarouselGallery($carouselGallery)
  111. {
  112. $this->carouselGallery = $carouselGallery;
  113. }
  114. public function setCarouselVideo($carouselVideo)
  115. {
  116. $this->carouselVideo = $carouselVideo;
  117. }
  118. public function setCatId($catId)
  119. {
  120. $this->catId = $catId;
  121. }
  122. public function setCodeMode($codeMode)
  123. {
  124. $this->codeMode = $codeMode;
  125. }
  126. public function setDetailGallery($detailGallery)
  127. {
  128. $this->detailGallery = $detailGallery;
  129. }
  130. public function setGoodsCommitId($goodsCommitId)
  131. {
  132. $this->goodsCommitId = $goodsCommitId;
  133. }
  134. public function setGoodsDesc($goodsDesc)
  135. {
  136. $this->goodsDesc = $goodsDesc;
  137. }
  138. public function setGoodsId($goodsId)
  139. {
  140. $this->goodsId = $goodsId;
  141. }
  142. public function setGoodsName($goodsName)
  143. {
  144. $this->goodsName = $goodsName;
  145. }
  146. public function setGoodsProperties($goodsProperties)
  147. {
  148. $this->goodsProperties = $goodsProperties;
  149. }
  150. public function setIsSubmit($isSubmit)
  151. {
  152. $this->isSubmit = $isSubmit;
  153. }
  154. public function setMarketPrice($marketPrice)
  155. {
  156. $this->marketPrice = $marketPrice;
  157. }
  158. public function setOutGoodsSn($outGoodsSn)
  159. {
  160. $this->outGoodsSn = $outGoodsSn;
  161. }
  162. public function setReserveLimitRule($reserveLimitRule)
  163. {
  164. $this->reserveLimitRule = $reserveLimitRule;
  165. }
  166. public function setSkuList($skuList)
  167. {
  168. $this->skuList = $skuList;
  169. }
  170. public function setSkuType($skuType)
  171. {
  172. $this->skuType = $skuType;
  173. }
  174. public function setSyncGoodsOperate($syncGoodsOperate)
  175. {
  176. $this->syncGoodsOperate = $syncGoodsOperate;
  177. }
  178. }
  179. class PddTicketGoodsUploadRequest_CarouselVideoItem extends PopBaseJsonEntity
  180. {
  181. public function __construct()
  182. {
  183. }
  184. /**
  185. * @JsonProperty(Long, "file_id")
  186. */
  187. private $fileId;
  188. /**
  189. * @JsonProperty(String, "video_url")
  190. */
  191. private $videoUrl;
  192. public function setFileId($fileId)
  193. {
  194. $this->fileId = $fileId;
  195. }
  196. public function setVideoUrl($videoUrl)
  197. {
  198. $this->videoUrl = $videoUrl;
  199. }
  200. }
  201. class PddTicketGoodsUploadRequest_GoodsPropertiesItem extends PopBaseJsonEntity
  202. {
  203. public function __construct()
  204. {
  205. }
  206. /**
  207. * @JsonProperty(Long, "parent_spec_id")
  208. */
  209. private $parentSpecId;
  210. /**
  211. * @JsonProperty(Long, "ref_pid")
  212. */
  213. private $refPid;
  214. /**
  215. * @JsonProperty(Long, "spec_id")
  216. */
  217. private $specId;
  218. /**
  219. * @JsonProperty(String, "value")
  220. */
  221. private $value;
  222. /**
  223. * @JsonProperty(String, "value_unit")
  224. */
  225. private $valueUnit;
  226. /**
  227. * @JsonProperty(Long, "vid")
  228. */
  229. private $vid;
  230. public function setParentSpecId($parentSpecId)
  231. {
  232. $this->parentSpecId = $parentSpecId;
  233. }
  234. public function setRefPid($refPid)
  235. {
  236. $this->refPid = $refPid;
  237. }
  238. public function setSpecId($specId)
  239. {
  240. $this->specId = $specId;
  241. }
  242. public function setValue($value)
  243. {
  244. $this->value = $value;
  245. }
  246. public function setValueUnit($valueUnit)
  247. {
  248. $this->valueUnit = $valueUnit;
  249. }
  250. public function setVid($vid)
  251. {
  252. $this->vid = $vid;
  253. }
  254. }
  255. class PddTicketGoodsUploadRequest_SkuListItem extends PopBaseJsonEntity
  256. {
  257. public function __construct()
  258. {
  259. }
  260. /**
  261. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_SkuListItemChildSkusItem>, "child_skus")
  262. */
  263. private $childSkus;
  264. /**
  265. * @JsonProperty(Long, "group_price")
  266. */
  267. private $groupPrice;
  268. /**
  269. * @JsonProperty(Integer, "is_onsale")
  270. */
  271. private $isOnsale;
  272. /**
  273. * @JsonProperty(String, "out_sku_sn")
  274. */
  275. private $outSkuSn;
  276. /**
  277. * @JsonProperty(Long, "quantity_delta")
  278. */
  279. private $quantityDelta;
  280. /**
  281. * @JsonProperty(String, "rule_id")
  282. */
  283. private $ruleId;
  284. /**
  285. * @JsonProperty(Long, "single_price")
  286. */
  287. private $singlePrice;
  288. /**
  289. * @JsonProperty(Long, "sku_id")
  290. */
  291. private $skuId;
  292. /**
  293. * @JsonProperty(List<Long>, "spec_id_list")
  294. */
  295. private $specIdList;
  296. /**
  297. * @JsonProperty(String, "thumb_url")
  298. */
  299. private $thumbUrl;
  300. public function setChildSkus($childSkus)
  301. {
  302. $this->childSkus = $childSkus;
  303. }
  304. public function setGroupPrice($groupPrice)
  305. {
  306. $this->groupPrice = $groupPrice;
  307. }
  308. public function setIsOnsale($isOnsale)
  309. {
  310. $this->isOnsale = $isOnsale;
  311. }
  312. public function setOutSkuSn($outSkuSn)
  313. {
  314. $this->outSkuSn = $outSkuSn;
  315. }
  316. public function setQuantityDelta($quantityDelta)
  317. {
  318. $this->quantityDelta = $quantityDelta;
  319. }
  320. public function setRuleId($ruleId)
  321. {
  322. $this->ruleId = $ruleId;
  323. }
  324. public function setSinglePrice($singlePrice)
  325. {
  326. $this->singlePrice = $singlePrice;
  327. }
  328. public function setSkuId($skuId)
  329. {
  330. $this->skuId = $skuId;
  331. }
  332. public function setSpecIdList($specIdList)
  333. {
  334. $this->specIdList = $specIdList;
  335. }
  336. public function setThumbUrl($thumbUrl)
  337. {
  338. $this->thumbUrl = $thumbUrl;
  339. }
  340. }
  341. class PddTicketGoodsUploadRequest_SkuListItemChildSkusItem extends PopBaseJsonEntity
  342. {
  343. public function __construct()
  344. {
  345. }
  346. /**
  347. * @JsonProperty(String, "date")
  348. */
  349. private $date;
  350. /**
  351. * @JsonProperty(Long, "group_price")
  352. */
  353. private $groupPrice;
  354. /**
  355. * @JsonProperty(Long, "quantity_delta")
  356. */
  357. private $quantityDelta;
  358. /**
  359. * @JsonProperty(Long, "single_price")
  360. */
  361. private $singlePrice;
  362. public function setDate($date)
  363. {
  364. $this->date = $date;
  365. }
  366. public function setGroupPrice($groupPrice)
  367. {
  368. $this->groupPrice = $groupPrice;
  369. }
  370. public function setQuantityDelta($quantityDelta)
  371. {
  372. $this->quantityDelta = $quantityDelta;
  373. }
  374. public function setSinglePrice($singlePrice)
  375. {
  376. $this->singlePrice = $singlePrice;
  377. }
  378. }