PddWaybillGetRequest.php 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  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 PddWaybillGetRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequest, "param_waybill_cloud_print_apply_new_request")
  12. */
  13. private $paramWaybillCloudPrintApplyNewRequest;
  14. protected function setUserParams(&$params)
  15. {
  16. $this->setUserParam($params, "param_waybill_cloud_print_apply_new_request", $this->paramWaybillCloudPrintApplyNewRequest);
  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.waybill.get";
  29. }
  30. public function setParamWaybillCloudPrintApplyNewRequest($paramWaybillCloudPrintApplyNewRequest)
  31. {
  32. $this->paramWaybillCloudPrintApplyNewRequest = $paramWaybillCloudPrintApplyNewRequest;
  33. }
  34. }
  35. class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequest extends PopBaseJsonEntity
  36. {
  37. public function __construct()
  38. {
  39. }
  40. /**
  41. * @JsonProperty(Boolean, "need_encrypt")
  42. */
  43. private $needEncrypt;
  44. /**
  45. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSender, "sender")
  46. */
  47. private $sender;
  48. /**
  49. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItem>, "trade_order_info_dtos")
  50. */
  51. private $tradeOrderInfoDtos;
  52. /**
  53. * @JsonProperty(String, "wp_code")
  54. */
  55. private $wpCode;
  56. public function setNeedEncrypt($needEncrypt)
  57. {
  58. $this->needEncrypt = $needEncrypt;
  59. }
  60. public function setSender($sender)
  61. {
  62. $this->sender = $sender;
  63. }
  64. public function setTradeOrderInfoDtos($tradeOrderInfoDtos)
  65. {
  66. $this->tradeOrderInfoDtos = $tradeOrderInfoDtos;
  67. }
  68. public function setWpCode($wpCode)
  69. {
  70. $this->wpCode = $wpCode;
  71. }
  72. }
  73. class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSender extends PopBaseJsonEntity
  74. {
  75. public function __construct()
  76. {
  77. }
  78. /**
  79. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSenderAddress, "address")
  80. */
  81. private $address;
  82. /**
  83. * @JsonProperty(String, "mobile")
  84. */
  85. private $mobile;
  86. /**
  87. * @JsonProperty(String, "name")
  88. */
  89. private $name;
  90. /**
  91. * @JsonProperty(String, "phone")
  92. */
  93. private $phone;
  94. public function setAddress($address)
  95. {
  96. $this->address = $address;
  97. }
  98. public function setMobile($mobile)
  99. {
  100. $this->mobile = $mobile;
  101. }
  102. public function setName($name)
  103. {
  104. $this->name = $name;
  105. }
  106. public function setPhone($phone)
  107. {
  108. $this->phone = $phone;
  109. }
  110. }
  111. class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSenderAddress extends PopBaseJsonEntity
  112. {
  113. public function __construct()
  114. {
  115. }
  116. /**
  117. * @JsonProperty(String, "city")
  118. */
  119. private $city;
  120. /**
  121. * @JsonProperty(String, "detail")
  122. */
  123. private $detail;
  124. /**
  125. * @JsonProperty(String, "district")
  126. */
  127. private $district;
  128. /**
  129. * @JsonProperty(String, "province")
  130. */
  131. private $province;
  132. /**
  133. * @JsonProperty(String, "town")
  134. */
  135. private $town;
  136. /**
  137. * @JsonProperty(String, "country")
  138. */
  139. private $country;
  140. public function setCity($city)
  141. {
  142. $this->city = $city;
  143. }
  144. public function setDetail($detail)
  145. {
  146. $this->detail = $detail;
  147. }
  148. public function setDistrict($district)
  149. {
  150. $this->district = $district;
  151. }
  152. public function setProvince($province)
  153. {
  154. $this->province = $province;
  155. }
  156. public function setTown($town)
  157. {
  158. $this->town = $town;
  159. }
  160. public function setCountry($country)
  161. {
  162. $this->country = $country;
  163. }
  164. }
  165. class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItem extends PopBaseJsonEntity
  166. {
  167. public function __construct()
  168. {
  169. }
  170. /**
  171. * @JsonProperty(String, "logistics_services")
  172. */
  173. private $logisticsServices;
  174. /**
  175. * @JsonProperty(String, "object_id")
  176. */
  177. private $objectId;
  178. /**
  179. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemOrderInfo, "order_info")
  180. */
  181. private $orderInfo;
  182. /**
  183. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfo, "package_info")
  184. */
  185. private $packageInfo;
  186. /**
  187. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipient, "recipient")
  188. */
  189. private $recipient;
  190. /**
  191. * @JsonProperty(String, "template_url")
  192. */
  193. private $templateUrl;
  194. /**
  195. * @JsonProperty(Long, "user_id")
  196. */
  197. private $userId;
  198. public function setLogisticsServices($logisticsServices)
  199. {
  200. $this->logisticsServices = $logisticsServices;
  201. }
  202. public function setObjectId($objectId)
  203. {
  204. $this->objectId = $objectId;
  205. }
  206. public function setOrderInfo($orderInfo)
  207. {
  208. $this->orderInfo = $orderInfo;
  209. }
  210. public function setPackageInfo($packageInfo)
  211. {
  212. $this->packageInfo = $packageInfo;
  213. }
  214. public function setRecipient($recipient)
  215. {
  216. $this->recipient = $recipient;
  217. }
  218. public function setTemplateUrl($templateUrl)
  219. {
  220. $this->templateUrl = $templateUrl;
  221. }
  222. public function setUserId($userId)
  223. {
  224. $this->userId = $userId;
  225. }
  226. }
  227. class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemOrderInfo extends PopBaseJsonEntity
  228. {
  229. public function __construct()
  230. {
  231. }
  232. /**
  233. * @JsonProperty(String, "order_channels_type")
  234. */
  235. private $orderChannelsType;
  236. /**
  237. * @JsonProperty(List<String>, "trade_order_list")
  238. */
  239. private $tradeOrderList;
  240. public function setOrderChannelsType($orderChannelsType)
  241. {
  242. $this->orderChannelsType = $orderChannelsType;
  243. }
  244. public function setTradeOrderList($tradeOrderList)
  245. {
  246. $this->tradeOrderList = $tradeOrderList;
  247. }
  248. }
  249. class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfo extends PopBaseJsonEntity
  250. {
  251. public function __construct()
  252. {
  253. }
  254. /**
  255. * @JsonProperty(String, "goods_description")
  256. */
  257. private $goodsDescription;
  258. /**
  259. * @JsonProperty(String, "id")
  260. */
  261. private $id;
  262. /**
  263. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfoItemsItem>, "items")
  264. */
  265. private $items;
  266. /**
  267. * @JsonProperty(String, "packaging_description")
  268. */
  269. private $packagingDescription;
  270. /**
  271. * @JsonProperty(Integer, "total_packages_count")
  272. */
  273. private $totalPackagesCount;
  274. /**
  275. * @JsonProperty(Long, "volume")
  276. */
  277. private $volume;
  278. /**
  279. * @JsonProperty(Long, "weight")
  280. */
  281. private $weight;
  282. public function setGoodsDescription($goodsDescription)
  283. {
  284. $this->goodsDescription = $goodsDescription;
  285. }
  286. public function setId($id)
  287. {
  288. $this->id = $id;
  289. }
  290. public function setItems($items)
  291. {
  292. $this->items = $items;
  293. }
  294. public function setPackagingDescription($packagingDescription)
  295. {
  296. $this->packagingDescription = $packagingDescription;
  297. }
  298. public function setTotalPackagesCount($totalPackagesCount)
  299. {
  300. $this->totalPackagesCount = $totalPackagesCount;
  301. }
  302. public function setVolume($volume)
  303. {
  304. $this->volume = $volume;
  305. }
  306. public function setWeight($weight)
  307. {
  308. $this->weight = $weight;
  309. }
  310. }
  311. class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfoItemsItem extends PopBaseJsonEntity
  312. {
  313. public function __construct()
  314. {
  315. }
  316. /**
  317. * @JsonProperty(Integer, "count")
  318. */
  319. private $count;
  320. /**
  321. * @JsonProperty(String, "name")
  322. */
  323. private $name;
  324. public function setCount($count)
  325. {
  326. $this->count = $count;
  327. }
  328. public function setName($name)
  329. {
  330. $this->name = $name;
  331. }
  332. }
  333. class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipient extends PopBaseJsonEntity
  334. {
  335. public function __construct()
  336. {
  337. }
  338. /**
  339. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipientAddress, "address")
  340. */
  341. private $address;
  342. /**
  343. * @JsonProperty(String, "mobile")
  344. */
  345. private $mobile;
  346. /**
  347. * @JsonProperty(String, "name")
  348. */
  349. private $name;
  350. /**
  351. * @JsonProperty(String, "phone")
  352. */
  353. private $phone;
  354. public function setAddress($address)
  355. {
  356. $this->address = $address;
  357. }
  358. public function setMobile($mobile)
  359. {
  360. $this->mobile = $mobile;
  361. }
  362. public function setName($name)
  363. {
  364. $this->name = $name;
  365. }
  366. public function setPhone($phone)
  367. {
  368. $this->phone = $phone;
  369. }
  370. }
  371. class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipientAddress extends PopBaseJsonEntity
  372. {
  373. public function __construct()
  374. {
  375. }
  376. /**
  377. * @JsonProperty(String, "city")
  378. */
  379. private $city;
  380. /**
  381. * @JsonProperty(String, "detail")
  382. */
  383. private $detail;
  384. /**
  385. * @JsonProperty(String, "district")
  386. */
  387. private $district;
  388. /**
  389. * @JsonProperty(String, "province")
  390. */
  391. private $province;
  392. /**
  393. * @JsonProperty(String, "town")
  394. */
  395. private $town;
  396. /**
  397. * @JsonProperty(String, "country")
  398. */
  399. private $country;
  400. public function setCity($city)
  401. {
  402. $this->city = $city;
  403. }
  404. public function setDetail($detail)
  405. {
  406. $this->detail = $detail;
  407. }
  408. public function setDistrict($district)
  409. {
  410. $this->district = $district;
  411. }
  412. public function setProvince($province)
  413. {
  414. $this->province = $province;
  415. }
  416. public function setTown($town)
  417. {
  418. $this->town = $town;
  419. }
  420. public function setCountry($country)
  421. {
  422. $this->country = $country;
  423. }
  424. }