PddGoodsAddRequest.php 20 KB

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