PddGoodsSubmitGoodsCommitRequest.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116
  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 PddGoodsSubmitGoodsCommitRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(Integer, "bad_fruit_claim")
  12. */
  13. private $badFruitClaim;
  14. /**
  15. * @JsonProperty(Long, "buy_limit")
  16. */
  17. private $buyLimit;
  18. /**
  19. * @JsonProperty(List<String>, "carousel_gallery")
  20. */
  21. private $carouselGallery;
  22. /**
  23. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_CarouselVideoItem>, "carousel_video")
  24. */
  25. private $carouselVideo;
  26. /**
  27. * @JsonProperty(String, "carousel_video_url")
  28. */
  29. private $carouselVideoUrl;
  30. /**
  31. * @JsonProperty(Long, "cat_id")
  32. */
  33. private $catId;
  34. /**
  35. * @JsonProperty(Long, "cost_template_id")
  36. */
  37. private $costTemplateId;
  38. /**
  39. * @JsonProperty(Integer, "country_id")
  40. */
  41. private $countryId;
  42. /**
  43. * @JsonProperty(Long, "customer_num")
  44. */
  45. private $customerNum;
  46. /**
  47. * @JsonProperty(String, "customs")
  48. */
  49. private $customs;
  50. /**
  51. * @JsonProperty(Integer, "delivery_one_day")
  52. */
  53. private $deliveryOneDay;
  54. /**
  55. * @JsonProperty(List<String>, "detail_gallery")
  56. */
  57. private $detailGallery;
  58. /**
  59. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_ElecGoodsAttributes, "elec_goods_attributes")
  60. */
  61. private $elecGoodsAttributes;
  62. /**
  63. * @JsonProperty(Long, "goods_commit_id")
  64. */
  65. private $goodsCommitId;
  66. /**
  67. * @JsonProperty(String, "goods_desc")
  68. */
  69. private $goodsDesc;
  70. /**
  71. * @JsonProperty(Long, "goods_id")
  72. */
  73. private $goodsId;
  74. /**
  75. * @JsonProperty(String, "goods_name")
  76. */
  77. private $goodsName;
  78. /**
  79. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_GoodsPropertiesItem>, "goods_properties")
  80. */
  81. private $goodsProperties;
  82. /**
  83. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_GoodsTradeAttr, "goods_trade_attr")
  84. */
  85. private $goodsTradeAttr;
  86. /**
  87. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_GoodsTravelAttr, "goods_travel_attr")
  88. */
  89. private $goodsTravelAttr;
  90. /**
  91. * @JsonProperty(Integer, "goods_type")
  92. */
  93. private $goodsType;
  94. /**
  95. * @JsonProperty(String, "image_url")
  96. */
  97. private $imageUrl;
  98. /**
  99. * @JsonProperty(Integer, "invoice_status")
  100. */
  101. private $invoiceStatus;
  102. /**
  103. * @JsonProperty(Boolean, "is_customs")
  104. */
  105. private $isCustoms;
  106. /**
  107. * @JsonProperty(Boolean, "is_folt")
  108. */
  109. private $isFolt;
  110. /**
  111. * @JsonProperty(Boolean, "is_pre_sale")
  112. */
  113. private $isPreSale;
  114. /**
  115. * @JsonProperty(Boolean, "is_refundable")
  116. */
  117. private $isRefundable;
  118. /**
  119. * @JsonProperty(Integer, "lack_of_weight_claim")
  120. */
  121. private $lackOfWeightClaim;
  122. /**
  123. * @JsonProperty(String, "mai_jia_zi_ti")
  124. */
  125. private $maiJiaZiTi;
  126. /**
  127. * @JsonProperty(Long, "market_price")
  128. */
  129. private $marketPrice;
  130. /**
  131. * @JsonProperty(Integer, "operate_type")
  132. */
  133. private $operateType;
  134. /**
  135. * @JsonProperty(Long, "order_limit")
  136. */
  137. private $orderLimit;
  138. /**
  139. * @JsonProperty(Integer, "origin_country_id")
  140. */
  141. private $originCountryId;
  142. /**
  143. * @JsonProperty(String, "out_goods_id")
  144. */
  145. private $outGoodsId;
  146. /**
  147. * @JsonProperty(String, "out_source_goods_id")
  148. */
  149. private $outSourceGoodsId;
  150. /**
  151. * @JsonProperty(Integer, "out_source_type")
  152. */
  153. private $outSourceType;
  154. /**
  155. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_OverseaGoods, "oversea_goods")
  156. */
  157. private $overseaGoods;
  158. /**
  159. * @JsonProperty(Integer, "oversea_type")
  160. */
  161. private $overseaType;
  162. /**
  163. * @JsonProperty(Long, "pre_sale_time")
  164. */
  165. private $preSaleTime;
  166. /**
  167. * @JsonProperty(Integer, "quan_guo_lian_bao")
  168. */
  169. private $quanGuoLianBao;
  170. /**
  171. * @JsonProperty(Boolean, "second_hand")
  172. */
  173. private $secondHand;
  174. /**
  175. * @JsonProperty(String, "shang_men_an_zhuang")
  176. */
  177. private $shangMenAnZhuang;
  178. /**
  179. * @JsonProperty(Long, "shipment_limit_second")
  180. */
  181. private $shipmentLimitSecond;
  182. /**
  183. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_SkuListItem>, "sku_list")
  184. */
  185. private $skuList;
  186. /**
  187. * @JsonProperty(Integer, "sku_type")
  188. */
  189. private $skuType;
  190. /**
  191. * @JsonProperty(String, "song_huo_an_zhuang")
  192. */
  193. private $songHuoAnZhuang;
  194. /**
  195. * @JsonProperty(String, "song_huo_ru_hu")
  196. */
  197. private $songHuoRuHu;
  198. /**
  199. * @JsonProperty(Integer, "sync_goods_operate")
  200. */
  201. private $syncGoodsOperate;
  202. /**
  203. * @JsonProperty(String, "tiny_name")
  204. */
  205. private $tinyName;
  206. /**
  207. * @JsonProperty(String, "warehouse")
  208. */
  209. private $warehouse;
  210. /**
  211. * @JsonProperty(String, "warm_tips")
  212. */
  213. private $warmTips;
  214. /**
  215. * @JsonProperty(Integer, "zhi_huan_bu_xiu")
  216. */
  217. private $zhiHuanBuXiu;
  218. protected function setUserParams(&$params)
  219. {
  220. $this->setUserParam($params, "bad_fruit_claim", $this->badFruitClaim);
  221. $this->setUserParam($params, "buy_limit", $this->buyLimit);
  222. $this->setUserParam($params, "carousel_gallery", $this->carouselGallery);
  223. $this->setUserParam($params, "carousel_video", $this->carouselVideo);
  224. $this->setUserParam($params, "carousel_video_url", $this->carouselVideoUrl);
  225. $this->setUserParam($params, "cat_id", $this->catId);
  226. $this->setUserParam($params, "cost_template_id", $this->costTemplateId);
  227. $this->setUserParam($params, "country_id", $this->countryId);
  228. $this->setUserParam($params, "customer_num", $this->customerNum);
  229. $this->setUserParam($params, "customs", $this->customs);
  230. $this->setUserParam($params, "delivery_one_day", $this->deliveryOneDay);
  231. $this->setUserParam($params, "detail_gallery", $this->detailGallery);
  232. $this->setUserParam($params, "elec_goods_attributes", $this->elecGoodsAttributes);
  233. $this->setUserParam($params, "goods_commit_id", $this->goodsCommitId);
  234. $this->setUserParam($params, "goods_desc", $this->goodsDesc);
  235. $this->setUserParam($params, "goods_id", $this->goodsId);
  236. $this->setUserParam($params, "goods_name", $this->goodsName);
  237. $this->setUserParam($params, "goods_properties", $this->goodsProperties);
  238. $this->setUserParam($params, "goods_trade_attr", $this->goodsTradeAttr);
  239. $this->setUserParam($params, "goods_travel_attr", $this->goodsTravelAttr);
  240. $this->setUserParam($params, "goods_type", $this->goodsType);
  241. $this->setUserParam($params, "image_url", $this->imageUrl);
  242. $this->setUserParam($params, "invoice_status", $this->invoiceStatus);
  243. $this->setUserParam($params, "is_customs", $this->isCustoms);
  244. $this->setUserParam($params, "is_folt", $this->isFolt);
  245. $this->setUserParam($params, "is_pre_sale", $this->isPreSale);
  246. $this->setUserParam($params, "is_refundable", $this->isRefundable);
  247. $this->setUserParam($params, "lack_of_weight_claim", $this->lackOfWeightClaim);
  248. $this->setUserParam($params, "mai_jia_zi_ti", $this->maiJiaZiTi);
  249. $this->setUserParam($params, "market_price", $this->marketPrice);
  250. $this->setUserParam($params, "operate_type", $this->operateType);
  251. $this->setUserParam($params, "order_limit", $this->orderLimit);
  252. $this->setUserParam($params, "origin_country_id", $this->originCountryId);
  253. $this->setUserParam($params, "out_goods_id", $this->outGoodsId);
  254. $this->setUserParam($params, "out_source_goods_id", $this->outSourceGoodsId);
  255. $this->setUserParam($params, "out_source_type", $this->outSourceType);
  256. $this->setUserParam($params, "oversea_goods", $this->overseaGoods);
  257. $this->setUserParam($params, "oversea_type", $this->overseaType);
  258. $this->setUserParam($params, "pre_sale_time", $this->preSaleTime);
  259. $this->setUserParam($params, "quan_guo_lian_bao", $this->quanGuoLianBao);
  260. $this->setUserParam($params, "second_hand", $this->secondHand);
  261. $this->setUserParam($params, "shang_men_an_zhuang", $this->shangMenAnZhuang);
  262. $this->setUserParam($params, "shipment_limit_second", $this->shipmentLimitSecond);
  263. $this->setUserParam($params, "sku_list", $this->skuList);
  264. $this->setUserParam($params, "sku_type", $this->skuType);
  265. $this->setUserParam($params, "song_huo_an_zhuang", $this->songHuoAnZhuang);
  266. $this->setUserParam($params, "song_huo_ru_hu", $this->songHuoRuHu);
  267. $this->setUserParam($params, "sync_goods_operate", $this->syncGoodsOperate);
  268. $this->setUserParam($params, "tiny_name", $this->tinyName);
  269. $this->setUserParam($params, "warehouse", $this->warehouse);
  270. $this->setUserParam($params, "warm_tips", $this->warmTips);
  271. $this->setUserParam($params, "zhi_huan_bu_xiu", $this->zhiHuanBuXiu);
  272. }
  273. public function getVersion()
  274. {
  275. return "V1";
  276. }
  277. public function getDataType()
  278. {
  279. return "JSON";
  280. }
  281. public function getType()
  282. {
  283. return "pdd.goods.submit.goods.commit";
  284. }
  285. public function setBadFruitClaim($badFruitClaim)
  286. {
  287. $this->badFruitClaim = $badFruitClaim;
  288. }
  289. public function setBuyLimit($buyLimit)
  290. {
  291. $this->buyLimit = $buyLimit;
  292. }
  293. public function setCarouselGallery($carouselGallery)
  294. {
  295. $this->carouselGallery = $carouselGallery;
  296. }
  297. public function setCarouselVideo($carouselVideo)
  298. {
  299. $this->carouselVideo = $carouselVideo;
  300. }
  301. public function setCarouselVideoUrl($carouselVideoUrl)
  302. {
  303. $this->carouselVideoUrl = $carouselVideoUrl;
  304. }
  305. public function setCatId($catId)
  306. {
  307. $this->catId = $catId;
  308. }
  309. public function setCostTemplateId($costTemplateId)
  310. {
  311. $this->costTemplateId = $costTemplateId;
  312. }
  313. public function setCountryId($countryId)
  314. {
  315. $this->countryId = $countryId;
  316. }
  317. public function setCustomerNum($customerNum)
  318. {
  319. $this->customerNum = $customerNum;
  320. }
  321. public function setCustoms($customs)
  322. {
  323. $this->customs = $customs;
  324. }
  325. public function setDeliveryOneDay($deliveryOneDay)
  326. {
  327. $this->deliveryOneDay = $deliveryOneDay;
  328. }
  329. public function setDetailGallery($detailGallery)
  330. {
  331. $this->detailGallery = $detailGallery;
  332. }
  333. public function setElecGoodsAttributes($elecGoodsAttributes)
  334. {
  335. $this->elecGoodsAttributes = $elecGoodsAttributes;
  336. }
  337. public function setGoodsCommitId($goodsCommitId)
  338. {
  339. $this->goodsCommitId = $goodsCommitId;
  340. }
  341. public function setGoodsDesc($goodsDesc)
  342. {
  343. $this->goodsDesc = $goodsDesc;
  344. }
  345. public function setGoodsId($goodsId)
  346. {
  347. $this->goodsId = $goodsId;
  348. }
  349. public function setGoodsName($goodsName)
  350. {
  351. $this->goodsName = $goodsName;
  352. }
  353. public function setGoodsProperties($goodsProperties)
  354. {
  355. $this->goodsProperties = $goodsProperties;
  356. }
  357. public function setGoodsTradeAttr($goodsTradeAttr)
  358. {
  359. $this->goodsTradeAttr = $goodsTradeAttr;
  360. }
  361. public function setGoodsTravelAttr($goodsTravelAttr)
  362. {
  363. $this->goodsTravelAttr = $goodsTravelAttr;
  364. }
  365. public function setGoodsType($goodsType)
  366. {
  367. $this->goodsType = $goodsType;
  368. }
  369. public function setImageUrl($imageUrl)
  370. {
  371. $this->imageUrl = $imageUrl;
  372. }
  373. public function setInvoiceStatus($invoiceStatus)
  374. {
  375. $this->invoiceStatus = $invoiceStatus;
  376. }
  377. public function setIsCustoms($isCustoms)
  378. {
  379. $this->isCustoms = $isCustoms;
  380. }
  381. public function setIsFolt($isFolt)
  382. {
  383. $this->isFolt = $isFolt;
  384. }
  385. public function setIsPreSale($isPreSale)
  386. {
  387. $this->isPreSale = $isPreSale;
  388. }
  389. public function setIsRefundable($isRefundable)
  390. {
  391. $this->isRefundable = $isRefundable;
  392. }
  393. public function setLackOfWeightClaim($lackOfWeightClaim)
  394. {
  395. $this->lackOfWeightClaim = $lackOfWeightClaim;
  396. }
  397. public function setMaiJiaZiTi($maiJiaZiTi)
  398. {
  399. $this->maiJiaZiTi = $maiJiaZiTi;
  400. }
  401. public function setMarketPrice($marketPrice)
  402. {
  403. $this->marketPrice = $marketPrice;
  404. }
  405. public function setOperateType($operateType)
  406. {
  407. $this->operateType = $operateType;
  408. }
  409. public function setOrderLimit($orderLimit)
  410. {
  411. $this->orderLimit = $orderLimit;
  412. }
  413. public function setOriginCountryId($originCountryId)
  414. {
  415. $this->originCountryId = $originCountryId;
  416. }
  417. public function setOutGoodsId($outGoodsId)
  418. {
  419. $this->outGoodsId = $outGoodsId;
  420. }
  421. public function setOutSourceGoodsId($outSourceGoodsId)
  422. {
  423. $this->outSourceGoodsId = $outSourceGoodsId;
  424. }
  425. public function setOutSourceType($outSourceType)
  426. {
  427. $this->outSourceType = $outSourceType;
  428. }
  429. public function setOverseaGoods($overseaGoods)
  430. {
  431. $this->overseaGoods = $overseaGoods;
  432. }
  433. public function setOverseaType($overseaType)
  434. {
  435. $this->overseaType = $overseaType;
  436. }
  437. public function setPreSaleTime($preSaleTime)
  438. {
  439. $this->preSaleTime = $preSaleTime;
  440. }
  441. public function setQuanGuoLianBao($quanGuoLianBao)
  442. {
  443. $this->quanGuoLianBao = $quanGuoLianBao;
  444. }
  445. public function setSecondHand($secondHand)
  446. {
  447. $this->secondHand = $secondHand;
  448. }
  449. public function setShangMenAnZhuang($shangMenAnZhuang)
  450. {
  451. $this->shangMenAnZhuang = $shangMenAnZhuang;
  452. }
  453. public function setShipmentLimitSecond($shipmentLimitSecond)
  454. {
  455. $this->shipmentLimitSecond = $shipmentLimitSecond;
  456. }
  457. public function setSkuList($skuList)
  458. {
  459. $this->skuList = $skuList;
  460. }
  461. public function setSkuType($skuType)
  462. {
  463. $this->skuType = $skuType;
  464. }
  465. public function setSongHuoAnZhuang($songHuoAnZhuang)
  466. {
  467. $this->songHuoAnZhuang = $songHuoAnZhuang;
  468. }
  469. public function setSongHuoRuHu($songHuoRuHu)
  470. {
  471. $this->songHuoRuHu = $songHuoRuHu;
  472. }
  473. public function setSyncGoodsOperate($syncGoodsOperate)
  474. {
  475. $this->syncGoodsOperate = $syncGoodsOperate;
  476. }
  477. public function setTinyName($tinyName)
  478. {
  479. $this->tinyName = $tinyName;
  480. }
  481. public function setWarehouse($warehouse)
  482. {
  483. $this->warehouse = $warehouse;
  484. }
  485. public function setWarmTips($warmTips)
  486. {
  487. $this->warmTips = $warmTips;
  488. }
  489. public function setZhiHuanBuXiu($zhiHuanBuXiu)
  490. {
  491. $this->zhiHuanBuXiu = $zhiHuanBuXiu;
  492. }
  493. }
  494. class PddGoodsSubmitGoodsCommitRequest_CarouselVideoItem extends PopBaseJsonEntity
  495. {
  496. public function __construct()
  497. {
  498. }
  499. /**
  500. * @JsonProperty(Long, "file_id")
  501. */
  502. private $fileId;
  503. /**
  504. * @JsonProperty(String, "video_url")
  505. */
  506. private $videoUrl;
  507. public function setFileId($fileId)
  508. {
  509. $this->fileId = $fileId;
  510. }
  511. public function setVideoUrl($videoUrl)
  512. {
  513. $this->videoUrl = $videoUrl;
  514. }
  515. }
  516. class PddGoodsSubmitGoodsCommitRequest_ElecGoodsAttributes extends PopBaseJsonEntity
  517. {
  518. public function __construct()
  519. {
  520. }
  521. /**
  522. * @JsonProperty(Long, "begin_time")
  523. */
  524. private $beginTime;
  525. /**
  526. * @JsonProperty(Integer, "days_time")
  527. */
  528. private $daysTime;
  529. /**
  530. * @JsonProperty(Long, "end_time")
  531. */
  532. private $endTime;
  533. /**
  534. * @JsonProperty(Integer, "time_type")
  535. */
  536. private $timeType;
  537. public function setBeginTime($beginTime)
  538. {
  539. $this->beginTime = $beginTime;
  540. }
  541. public function setDaysTime($daysTime)
  542. {
  543. $this->daysTime = $daysTime;
  544. }
  545. public function setEndTime($endTime)
  546. {
  547. $this->endTime = $endTime;
  548. }
  549. public function setTimeType($timeType)
  550. {
  551. $this->timeType = $timeType;
  552. }
  553. }
  554. class PddGoodsSubmitGoodsCommitRequest_GoodsPropertiesItem extends PopBaseJsonEntity
  555. {
  556. public function __construct()
  557. {
  558. }
  559. /**
  560. * @JsonProperty(Integer, "group_id")
  561. */
  562. private $groupId;
  563. /**
  564. * @JsonProperty(String, "img_url")
  565. */
  566. private $imgUrl;
  567. /**
  568. * @JsonProperty(String, "note")
  569. */
  570. private $note;
  571. /**
  572. * @JsonProperty(Long, "parent_spec_id")
  573. */
  574. private $parentSpecId;
  575. /**
  576. * @JsonProperty(Long, "ref_pid")
  577. */
  578. private $refPid;
  579. /**
  580. * @JsonProperty(Long, "spec_id")
  581. */
  582. private $specId;
  583. /**
  584. * @JsonProperty(Long, "template_pid")
  585. */
  586. private $templatePid;
  587. /**
  588. * @JsonProperty(String, "value")
  589. */
  590. private $value;
  591. /**
  592. * @JsonProperty(String, "value_unit")
  593. */
  594. private $valueUnit;
  595. /**
  596. * @JsonProperty(Long, "vid")
  597. */
  598. private $vid;
  599. public function setGroupId($groupId)
  600. {
  601. $this->groupId = $groupId;
  602. }
  603. public function setImgUrl($imgUrl)
  604. {
  605. $this->imgUrl = $imgUrl;
  606. }
  607. public function setNote($note)
  608. {
  609. $this->note = $note;
  610. }
  611. public function setParentSpecId($parentSpecId)
  612. {
  613. $this->parentSpecId = $parentSpecId;
  614. }
  615. public function setRefPid($refPid)
  616. {
  617. $this->refPid = $refPid;
  618. }
  619. public function setSpecId($specId)
  620. {
  621. $this->specId = $specId;
  622. }
  623. public function setTemplatePid($templatePid)
  624. {
  625. $this->templatePid = $templatePid;
  626. }
  627. public function setValue($value)
  628. {
  629. $this->value = $value;
  630. }
  631. public function setValueUnit($valueUnit)
  632. {
  633. $this->valueUnit = $valueUnit;
  634. }
  635. public function setVid($vid)
  636. {
  637. $this->vid = $vid;
  638. }
  639. }
  640. class PddGoodsSubmitGoodsCommitRequest_GoodsTradeAttr extends PopBaseJsonEntity
  641. {
  642. public function __construct()
  643. {
  644. }
  645. /**
  646. * @JsonProperty(Integer, "advances_days")
  647. */
  648. private $advancesDays;
  649. /**
  650. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_GoodsTradeAttrBookingNotes, "booking_notes")
  651. */
  652. private $bookingNotes;
  653. /**
  654. * @JsonProperty(Integer, "life_span")
  655. */
  656. private $lifeSpan;
  657. public function setAdvancesDays($advancesDays)
  658. {
  659. $this->advancesDays = $advancesDays;
  660. }
  661. public function setBookingNotes($bookingNotes)
  662. {
  663. $this->bookingNotes = $bookingNotes;
  664. }
  665. public function setLifeSpan($lifeSpan)
  666. {
  667. $this->lifeSpan = $lifeSpan;
  668. }
  669. }
  670. class PddGoodsSubmitGoodsCommitRequest_GoodsTradeAttrBookingNotes extends PopBaseJsonEntity
  671. {
  672. public function __construct()
  673. {
  674. }
  675. /**
  676. * @JsonProperty(String, "url")
  677. */
  678. private $url;
  679. public function setUrl($url)
  680. {
  681. $this->url = $url;
  682. }
  683. }
  684. class PddGoodsSubmitGoodsCommitRequest_GoodsTravelAttr extends PopBaseJsonEntity
  685. {
  686. public function __construct()
  687. {
  688. }
  689. /**
  690. * @JsonProperty(Boolean, "need_tourist")
  691. */
  692. private $needTourist;
  693. /**
  694. * @JsonProperty(Integer, "type")
  695. */
  696. private $type;
  697. public function setNeedTourist($needTourist)
  698. {
  699. $this->needTourist = $needTourist;
  700. }
  701. public function setType($type)
  702. {
  703. $this->type = $type;
  704. }
  705. }
  706. class PddGoodsSubmitGoodsCommitRequest_OverseaGoods extends PopBaseJsonEntity
  707. {
  708. public function __construct()
  709. {
  710. }
  711. /**
  712. * @JsonProperty(String, "bonded_warehouse_key")
  713. */
  714. private $bondedWarehouseKey;
  715. /**
  716. * @JsonProperty(Integer, "consumption_tax_rate")
  717. */
  718. private $consumptionTaxRate;
  719. /**
  720. * @JsonProperty(String, "customs_broker")
  721. */
  722. private $customsBroker;
  723. /**
  724. * @JsonProperty(String, "hs_code")
  725. */
  726. private $hsCode;
  727. /**
  728. * @JsonProperty(Integer, "value_added_tax_rate")
  729. */
  730. private $valueAddedTaxRate;
  731. public function setBondedWarehouseKey($bondedWarehouseKey)
  732. {
  733. $this->bondedWarehouseKey = $bondedWarehouseKey;
  734. }
  735. public function setConsumptionTaxRate($consumptionTaxRate)
  736. {
  737. $this->consumptionTaxRate = $consumptionTaxRate;
  738. }
  739. public function setCustomsBroker($customsBroker)
  740. {
  741. $this->customsBroker = $customsBroker;
  742. }
  743. public function setHsCode($hsCode)
  744. {
  745. $this->hsCode = $hsCode;
  746. }
  747. public function setValueAddedTaxRate($valueAddedTaxRate)
  748. {
  749. $this->valueAddedTaxRate = $valueAddedTaxRate;
  750. }
  751. }
  752. class PddGoodsSubmitGoodsCommitRequest_SkuListItem extends PopBaseJsonEntity
  753. {
  754. public function __construct()
  755. {
  756. }
  757. /**
  758. * @JsonProperty(Integer, "is_onsale")
  759. */
  760. private $isOnsale;
  761. /**
  762. * @JsonProperty(Long, "length")
  763. */
  764. private $length;
  765. /**
  766. * @JsonProperty(Long, "limit_quantity")
  767. */
  768. private $limitQuantity;
  769. /**
  770. * @JsonProperty(Long, "multi_price")
  771. */
  772. private $multiPrice;
  773. /**
  774. * @JsonProperty(String, "out_sku_sn")
  775. */
  776. private $outSkuSn;
  777. /**
  778. * @JsonProperty(String, "out_source_sku_id")
  779. */
  780. private $outSourceSkuId;
  781. /**
  782. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_SkuListItemOverseaSku, "oversea_sku")
  783. */
  784. private $overseaSku;
  785. /**
  786. * @JsonProperty(Long, "price")
  787. */
  788. private $price;
  789. /**
  790. * @JsonProperty(Long, "quantity")
  791. */
  792. private $quantity;
  793. /**
  794. * @JsonProperty(List<Long>, "spec_id_list")
  795. */
  796. private $specIdList;
  797. /**
  798. * @JsonProperty(String, "thumb_url")
  799. */
  800. private $thumbUrl;
  801. /**
  802. * @JsonProperty(Long, "weight")
  803. */
  804. private $weight;
  805. public function setIsOnsale($isOnsale)
  806. {
  807. $this->isOnsale = $isOnsale;
  808. }
  809. public function setLength($length)
  810. {
  811. $this->length = $length;
  812. }
  813. public function setLimitQuantity($limitQuantity)
  814. {
  815. $this->limitQuantity = $limitQuantity;
  816. }
  817. public function setMultiPrice($multiPrice)
  818. {
  819. $this->multiPrice = $multiPrice;
  820. }
  821. public function setOutSkuSn($outSkuSn)
  822. {
  823. $this->outSkuSn = $outSkuSn;
  824. }
  825. public function setOutSourceSkuId($outSourceSkuId)
  826. {
  827. $this->outSourceSkuId = $outSourceSkuId;
  828. }
  829. public function setOverseaSku($overseaSku)
  830. {
  831. $this->overseaSku = $overseaSku;
  832. }
  833. public function setPrice($price)
  834. {
  835. $this->price = $price;
  836. }
  837. public function setQuantity($quantity)
  838. {
  839. $this->quantity = $quantity;
  840. }
  841. public function setSpecIdList($specIdList)
  842. {
  843. $this->specIdList = $specIdList;
  844. }
  845. public function setThumbUrl($thumbUrl)
  846. {
  847. $this->thumbUrl = $thumbUrl;
  848. }
  849. public function setWeight($weight)
  850. {
  851. $this->weight = $weight;
  852. }
  853. }
  854. class PddGoodsSubmitGoodsCommitRequest_SkuListItemOverseaSku extends PopBaseJsonEntity
  855. {
  856. public function __construct()
  857. {
  858. }
  859. /**
  860. * @JsonProperty(String, "measurement_code")
  861. */
  862. private $measurementCode;
  863. /**
  864. * @JsonProperty(String, "specifications")
  865. */
  866. private $specifications;
  867. /**
  868. * @JsonProperty(Integer, "taxation")
  869. */
  870. private $taxation;
  871. public function setMeasurementCode($measurementCode)
  872. {
  873. $this->measurementCode = $measurementCode;
  874. }
  875. public function setSpecifications($specifications)
  876. {
  877. $this->specifications = $specifications;
  878. }
  879. public function setTaxation($taxation)
  880. {
  881. $this->taxation = $taxation;
  882. }
  883. }