PddCloudWmsOrderSendRequest.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  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 PddCloudWmsOrderSendRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequest, "wms_order_send_request")
  12. */
  13. private $wmsOrderSendRequest;
  14. protected function setUserParams(&$params)
  15. {
  16. $this->setUserParam($params, "wms_order_send_request", $this->wmsOrderSendRequest);
  17. }
  18. public function getVersion()
  19. {
  20. return "V1";
  21. }
  22. public function getDataType()
  23. {
  24. return "JSON";
  25. }
  26. public function getType()
  27. {
  28. return "pdd.cloud.wms.order.send";
  29. }
  30. public function setWmsOrderSendRequest($wmsOrderSendRequest)
  31. {
  32. $this->wmsOrderSendRequest = $wmsOrderSendRequest;
  33. }
  34. }
  35. class PddCloudWmsOrderSendRequest_WmsOrderSendRequest extends PopBaseJsonEntity
  36. {
  37. public function __construct()
  38. {
  39. }
  40. /**
  41. * @JsonProperty(String, "owner_code")
  42. */
  43. private $ownerCode;
  44. /**
  45. * @JsonProperty(String, "owner_name")
  46. */
  47. private $ownerName;
  48. /**
  49. * @JsonProperty(String, "warehouse_code")
  50. */
  51. private $warehouseCode;
  52. /**
  53. * @JsonProperty(String, "warehouse_type")
  54. */
  55. private $warehouseType;
  56. /**
  57. * @JsonProperty(String, "order_type")
  58. */
  59. private $orderType;
  60. /**
  61. * @JsonProperty(String, "delivery_order_code")
  62. */
  63. private $deliveryOrderCode;
  64. /**
  65. * @JsonProperty(String, "source_order_code")
  66. */
  67. private $sourceOrderCode;
  68. /**
  69. * @JsonProperty(String, "source_platform_code")
  70. */
  71. private $sourcePlatformCode;
  72. /**
  73. * @JsonProperty(String, "shop_nick")
  74. */
  75. private $shopNick;
  76. /**
  77. * @JsonProperty(String, "seller_nick")
  78. */
  79. private $sellerNick;
  80. /**
  81. * @JsonProperty(String, "buyer_nick")
  82. */
  83. private $buyerNick;
  84. /**
  85. * @JsonProperty(String, "create_time")
  86. */
  87. private $createTime;
  88. /**
  89. * @JsonProperty(String, "order_time")
  90. */
  91. private $orderTime;
  92. /**
  93. * @JsonProperty(String, "pay_time")
  94. */
  95. private $payTime;
  96. /**
  97. * @JsonProperty(String, "operate_time")
  98. */
  99. private $operateTime;
  100. /**
  101. * @JsonProperty(String, "order_flag")
  102. */
  103. private $orderFlag;
  104. /**
  105. * @JsonProperty(Integer, "total_amount")
  106. */
  107. private $totalAmount;
  108. /**
  109. * @JsonProperty(Integer, "discount_amount")
  110. */
  111. private $discountAmount;
  112. /**
  113. * @JsonProperty(Integer, "freight")
  114. */
  115. private $freight;
  116. /**
  117. * @JsonProperty(Integer, "actual_amount")
  118. */
  119. private $actualAmount;
  120. /**
  121. * @JsonProperty(String, "logistics_code")
  122. */
  123. private $logisticsCode;
  124. /**
  125. * @JsonProperty(String, "logistics_no")
  126. */
  127. private $logisticsNo;
  128. /**
  129. * @JsonProperty(String, "seller_message")
  130. */
  131. private $sellerMessage;
  132. /**
  133. * @JsonProperty(String, "buyer_message")
  134. */
  135. private $buyerMessage;
  136. /**
  137. * @JsonProperty(Boolean, "invoice_flag")
  138. */
  139. private $invoiceFlag;
  140. /**
  141. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestInvoiceInfo, "invoice_info")
  142. */
  143. private $invoiceInfo;
  144. /**
  145. * @JsonProperty(String, "remark")
  146. */
  147. private $remark;
  148. /**
  149. * @JsonProperty(String, "no_stack_tag")
  150. */
  151. private $noStackTag;
  152. /**
  153. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestSenderInfo, "senderInfo")
  154. */
  155. private $senderInfo;
  156. /**
  157. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestReceiverInfo, "receiverInfo")
  158. */
  159. private $receiverInfo;
  160. /**
  161. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestOrderLineListItem>, "order_line_list")
  162. */
  163. private $orderLineList;
  164. /**
  165. * @JsonProperty(String, "extendProps")
  166. */
  167. private $extendProps;
  168. /**
  169. * @JsonProperty(String, "token")
  170. */
  171. private $token;
  172. /**
  173. * @JsonProperty(String, "customerId")
  174. */
  175. private $customerId;
  176. public function setOwnerCode($ownerCode)
  177. {
  178. $this->ownerCode = $ownerCode;
  179. }
  180. public function setOwnerName($ownerName)
  181. {
  182. $this->ownerName = $ownerName;
  183. }
  184. public function setWarehouseCode($warehouseCode)
  185. {
  186. $this->warehouseCode = $warehouseCode;
  187. }
  188. public function setWarehouseType($warehouseType)
  189. {
  190. $this->warehouseType = $warehouseType;
  191. }
  192. public function setOrderType($orderType)
  193. {
  194. $this->orderType = $orderType;
  195. }
  196. public function setDeliveryOrderCode($deliveryOrderCode)
  197. {
  198. $this->deliveryOrderCode = $deliveryOrderCode;
  199. }
  200. public function setSourceOrderCode($sourceOrderCode)
  201. {
  202. $this->sourceOrderCode = $sourceOrderCode;
  203. }
  204. public function setSourcePlatformCode($sourcePlatformCode)
  205. {
  206. $this->sourcePlatformCode = $sourcePlatformCode;
  207. }
  208. public function setShopNick($shopNick)
  209. {
  210. $this->shopNick = $shopNick;
  211. }
  212. public function setSellerNick($sellerNick)
  213. {
  214. $this->sellerNick = $sellerNick;
  215. }
  216. public function setBuyerNick($buyerNick)
  217. {
  218. $this->buyerNick = $buyerNick;
  219. }
  220. public function setCreateTime($createTime)
  221. {
  222. $this->createTime = $createTime;
  223. }
  224. public function setOrderTime($orderTime)
  225. {
  226. $this->orderTime = $orderTime;
  227. }
  228. public function setPayTime($payTime)
  229. {
  230. $this->payTime = $payTime;
  231. }
  232. public function setOperateTime($operateTime)
  233. {
  234. $this->operateTime = $operateTime;
  235. }
  236. public function setOrderFlag($orderFlag)
  237. {
  238. $this->orderFlag = $orderFlag;
  239. }
  240. public function setTotalAmount($totalAmount)
  241. {
  242. $this->totalAmount = $totalAmount;
  243. }
  244. public function setDiscountAmount($discountAmount)
  245. {
  246. $this->discountAmount = $discountAmount;
  247. }
  248. public function setFreight($freight)
  249. {
  250. $this->freight = $freight;
  251. }
  252. public function setActualAmount($actualAmount)
  253. {
  254. $this->actualAmount = $actualAmount;
  255. }
  256. public function setLogisticsCode($logisticsCode)
  257. {
  258. $this->logisticsCode = $logisticsCode;
  259. }
  260. public function setLogisticsNo($logisticsNo)
  261. {
  262. $this->logisticsNo = $logisticsNo;
  263. }
  264. public function setSellerMessage($sellerMessage)
  265. {
  266. $this->sellerMessage = $sellerMessage;
  267. }
  268. public function setBuyerMessage($buyerMessage)
  269. {
  270. $this->buyerMessage = $buyerMessage;
  271. }
  272. public function setInvoiceFlag($invoiceFlag)
  273. {
  274. $this->invoiceFlag = $invoiceFlag;
  275. }
  276. public function setInvoiceInfo($invoiceInfo)
  277. {
  278. $this->invoiceInfo = $invoiceInfo;
  279. }
  280. public function setRemark($remark)
  281. {
  282. $this->remark = $remark;
  283. }
  284. public function setNoStackTag($noStackTag)
  285. {
  286. $this->noStackTag = $noStackTag;
  287. }
  288. public function setSenderInfo($senderInfo)
  289. {
  290. $this->senderInfo = $senderInfo;
  291. }
  292. public function setReceiverInfo($receiverInfo)
  293. {
  294. $this->receiverInfo = $receiverInfo;
  295. }
  296. public function setOrderLineList($orderLineList)
  297. {
  298. $this->orderLineList = $orderLineList;
  299. }
  300. public function setExtendProps($extendProps)
  301. {
  302. $this->extendProps = $extendProps;
  303. }
  304. public function setToken($token)
  305. {
  306. $this->token = $token;
  307. }
  308. public function setCustomerId($customerId)
  309. {
  310. $this->customerId = $customerId;
  311. }
  312. }
  313. class PddCloudWmsOrderSendRequest_WmsOrderSendRequestInvoiceInfo extends PopBaseJsonEntity
  314. {
  315. public function __construct()
  316. {
  317. }
  318. /**
  319. * @JsonProperty(String, "invoice_type")
  320. */
  321. private $invoiceType;
  322. /**
  323. * @JsonProperty(String, "invoice_head")
  324. */
  325. private $invoiceHead;
  326. /**
  327. * @JsonProperty(String, "invoice_content")
  328. */
  329. private $invoiceContent;
  330. /**
  331. * @JsonProperty(String, "invoice_tax_number")
  332. */
  333. private $invoiceTaxNumber;
  334. /**
  335. * @JsonProperty(String, "invoice_ext_fields")
  336. */
  337. private $invoiceExtFields;
  338. public function setInvoiceType($invoiceType)
  339. {
  340. $this->invoiceType = $invoiceType;
  341. }
  342. public function setInvoiceHead($invoiceHead)
  343. {
  344. $this->invoiceHead = $invoiceHead;
  345. }
  346. public function setInvoiceContent($invoiceContent)
  347. {
  348. $this->invoiceContent = $invoiceContent;
  349. }
  350. public function setInvoiceTaxNumber($invoiceTaxNumber)
  351. {
  352. $this->invoiceTaxNumber = $invoiceTaxNumber;
  353. }
  354. public function setInvoiceExtFields($invoiceExtFields)
  355. {
  356. $this->invoiceExtFields = $invoiceExtFields;
  357. }
  358. }
  359. class PddCloudWmsOrderSendRequest_WmsOrderSendRequestSenderInfo extends PopBaseJsonEntity
  360. {
  361. public function __construct()
  362. {
  363. }
  364. /**
  365. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestSenderInfoAddress, "address")
  366. */
  367. private $address;
  368. /**
  369. * @JsonProperty(String, "mobile")
  370. */
  371. private $mobile;
  372. /**
  373. * @JsonProperty(String, "name")
  374. */
  375. private $name;
  376. /**
  377. * @JsonProperty(String, "phone")
  378. */
  379. private $phone;
  380. /**
  381. * @JsonProperty(String, "zipcode")
  382. */
  383. private $zipcode;
  384. public function setAddress($address)
  385. {
  386. $this->address = $address;
  387. }
  388. public function setMobile($mobile)
  389. {
  390. $this->mobile = $mobile;
  391. }
  392. public function setName($name)
  393. {
  394. $this->name = $name;
  395. }
  396. public function setPhone($phone)
  397. {
  398. $this->phone = $phone;
  399. }
  400. public function setZipcode($zipcode)
  401. {
  402. $this->zipcode = $zipcode;
  403. }
  404. }
  405. class PddCloudWmsOrderSendRequest_WmsOrderSendRequestSenderInfoAddress extends PopBaseJsonEntity
  406. {
  407. public function __construct()
  408. {
  409. }
  410. /**
  411. * @JsonProperty(String, "city")
  412. */
  413. private $city;
  414. /**
  415. * @JsonProperty(String, "detail")
  416. */
  417. private $detail;
  418. /**
  419. * @JsonProperty(String, "district")
  420. */
  421. private $district;
  422. /**
  423. * @JsonProperty(String, "province")
  424. */
  425. private $province;
  426. /**
  427. * @JsonProperty(String, "town")
  428. */
  429. private $town;
  430. /**
  431. * @JsonProperty(String, "country")
  432. */
  433. private $country;
  434. public function setCity($city)
  435. {
  436. $this->city = $city;
  437. }
  438. public function setDetail($detail)
  439. {
  440. $this->detail = $detail;
  441. }
  442. public function setDistrict($district)
  443. {
  444. $this->district = $district;
  445. }
  446. public function setProvince($province)
  447. {
  448. $this->province = $province;
  449. }
  450. public function setTown($town)
  451. {
  452. $this->town = $town;
  453. }
  454. public function setCountry($country)
  455. {
  456. $this->country = $country;
  457. }
  458. }
  459. class PddCloudWmsOrderSendRequest_WmsOrderSendRequestReceiverInfo extends PopBaseJsonEntity
  460. {
  461. public function __construct()
  462. {
  463. }
  464. /**
  465. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestReceiverInfoAddress, "address")
  466. */
  467. private $address;
  468. /**
  469. * @JsonProperty(String, "mobile")
  470. */
  471. private $mobile;
  472. /**
  473. * @JsonProperty(String, "name")
  474. */
  475. private $name;
  476. /**
  477. * @JsonProperty(String, "phone")
  478. */
  479. private $phone;
  480. /**
  481. * @JsonProperty(String, "zipcode")
  482. */
  483. private $zipcode;
  484. public function setAddress($address)
  485. {
  486. $this->address = $address;
  487. }
  488. public function setMobile($mobile)
  489. {
  490. $this->mobile = $mobile;
  491. }
  492. public function setName($name)
  493. {
  494. $this->name = $name;
  495. }
  496. public function setPhone($phone)
  497. {
  498. $this->phone = $phone;
  499. }
  500. public function setZipcode($zipcode)
  501. {
  502. $this->zipcode = $zipcode;
  503. }
  504. }
  505. class PddCloudWmsOrderSendRequest_WmsOrderSendRequestReceiverInfoAddress extends PopBaseJsonEntity
  506. {
  507. public function __construct()
  508. {
  509. }
  510. /**
  511. * @JsonProperty(String, "city")
  512. */
  513. private $city;
  514. /**
  515. * @JsonProperty(String, "detail")
  516. */
  517. private $detail;
  518. /**
  519. * @JsonProperty(String, "district")
  520. */
  521. private $district;
  522. /**
  523. * @JsonProperty(String, "province")
  524. */
  525. private $province;
  526. /**
  527. * @JsonProperty(String, "town")
  528. */
  529. private $town;
  530. /**
  531. * @JsonProperty(String, "country")
  532. */
  533. private $country;
  534. public function setCity($city)
  535. {
  536. $this->city = $city;
  537. }
  538. public function setDetail($detail)
  539. {
  540. $this->detail = $detail;
  541. }
  542. public function setDistrict($district)
  543. {
  544. $this->district = $district;
  545. }
  546. public function setProvince($province)
  547. {
  548. $this->province = $province;
  549. }
  550. public function setTown($town)
  551. {
  552. $this->town = $town;
  553. }
  554. public function setCountry($country)
  555. {
  556. $this->country = $country;
  557. }
  558. }
  559. class PddCloudWmsOrderSendRequest_WmsOrderSendRequestOrderLineListItem extends PopBaseJsonEntity
  560. {
  561. public function __construct()
  562. {
  563. }
  564. /**
  565. * @JsonProperty(String, "order_line_no")
  566. */
  567. private $orderLineNo;
  568. /**
  569. * @JsonProperty(String, "source_order_code")
  570. */
  571. private $sourceOrderCode;
  572. /**
  573. * @JsonProperty(String, "sub_source_order_code")
  574. */
  575. private $subSourceOrderCode;
  576. /**
  577. * @JsonProperty(String, "owner_code")
  578. */
  579. private $ownerCode;
  580. /**
  581. * @JsonProperty(String, "item_id")
  582. */
  583. private $itemId;
  584. /**
  585. * @JsonProperty(String, "item_code")
  586. */
  587. private $itemCode;
  588. /**
  589. * @JsonProperty(String, "item_name")
  590. */
  591. private $itemName;
  592. /**
  593. * @JsonProperty(Integer, "item_quantity")
  594. */
  595. private $itemQuantity;
  596. /**
  597. * @JsonProperty(String, "retail_price")
  598. */
  599. private $retailPrice;
  600. /**
  601. * @JsonProperty(String, "actual_price")
  602. */
  603. private $actualPrice;
  604. /**
  605. * @JsonProperty(String, "discount_amount")
  606. */
  607. private $discountAmount;
  608. /**
  609. * @JsonProperty(String, "batch_code")
  610. */
  611. private $batchCode;
  612. /**
  613. * @JsonProperty(String, "remark")
  614. */
  615. private $remark;
  616. /**
  617. * @JsonProperty(String, "order_ext_fields")
  618. */
  619. private $orderExtFields;
  620. public function setOrderLineNo($orderLineNo)
  621. {
  622. $this->orderLineNo = $orderLineNo;
  623. }
  624. public function setSourceOrderCode($sourceOrderCode)
  625. {
  626. $this->sourceOrderCode = $sourceOrderCode;
  627. }
  628. public function setSubSourceOrderCode($subSourceOrderCode)
  629. {
  630. $this->subSourceOrderCode = $subSourceOrderCode;
  631. }
  632. public function setOwnerCode($ownerCode)
  633. {
  634. $this->ownerCode = $ownerCode;
  635. }
  636. public function setItemId($itemId)
  637. {
  638. $this->itemId = $itemId;
  639. }
  640. public function setItemCode($itemCode)
  641. {
  642. $this->itemCode = $itemCode;
  643. }
  644. public function setItemName($itemName)
  645. {
  646. $this->itemName = $itemName;
  647. }
  648. public function setItemQuantity($itemQuantity)
  649. {
  650. $this->itemQuantity = $itemQuantity;
  651. }
  652. public function setRetailPrice($retailPrice)
  653. {
  654. $this->retailPrice = $retailPrice;
  655. }
  656. public function setActualPrice($actualPrice)
  657. {
  658. $this->actualPrice = $actualPrice;
  659. }
  660. public function setDiscountAmount($discountAmount)
  661. {
  662. $this->discountAmount = $discountAmount;
  663. }
  664. public function setBatchCode($batchCode)
  665. {
  666. $this->batchCode = $batchCode;
  667. }
  668. public function setRemark($remark)
  669. {
  670. $this->remark = $remark;
  671. }
  672. public function setOrderExtFields($orderExtFields)
  673. {
  674. $this->orderExtFields = $orderExtFields;
  675. }
  676. }