PddCloudWaybillGetRequest.php 9.9 KB

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