PddFdsWaybillGetRequest.php 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  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 PddFdsWaybillGetRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequest, "param_fds_waybill_get_request")
  12. */
  13. private $paramFdsWaybillGetRequest;
  14. protected function setUserParams(&$params)
  15. {
  16. $this->setUserParam($params, "param_fds_waybill_get_request", $this->paramFdsWaybillGetRequest);
  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.fds.waybill.get";
  29. }
  30. public function setParamFdsWaybillGetRequest($paramFdsWaybillGetRequest)
  31. {
  32. $this->paramFdsWaybillGetRequest = $paramFdsWaybillGetRequest;
  33. }
  34. }
  35. class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequest extends PopBaseJsonEntity
  36. {
  37. public function __construct()
  38. {
  39. }
  40. /**
  41. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestSender, "sender")
  42. */
  43. private $sender;
  44. /**
  45. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItem>, "trade_order_info_dtos")
  46. */
  47. private $tradeOrderInfoDtos;
  48. /**
  49. * @JsonProperty(String, "wp_code")
  50. */
  51. private $wpCode;
  52. public function setSender($sender)
  53. {
  54. $this->sender = $sender;
  55. }
  56. public function setTradeOrderInfoDtos($tradeOrderInfoDtos)
  57. {
  58. $this->tradeOrderInfoDtos = $tradeOrderInfoDtos;
  59. }
  60. public function setWpCode($wpCode)
  61. {
  62. $this->wpCode = $wpCode;
  63. }
  64. }
  65. class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestSender extends PopBaseJsonEntity
  66. {
  67. public function __construct()
  68. {
  69. }
  70. /**
  71. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestSenderAddress, "address")
  72. */
  73. private $address;
  74. /**
  75. * @JsonProperty(String, "mobile")
  76. */
  77. private $mobile;
  78. /**
  79. * @JsonProperty(String, "name")
  80. */
  81. private $name;
  82. /**
  83. * @JsonProperty(String, "phone")
  84. */
  85. private $phone;
  86. public function setAddress($address)
  87. {
  88. $this->address = $address;
  89. }
  90. public function setMobile($mobile)
  91. {
  92. $this->mobile = $mobile;
  93. }
  94. public function setName($name)
  95. {
  96. $this->name = $name;
  97. }
  98. public function setPhone($phone)
  99. {
  100. $this->phone = $phone;
  101. }
  102. }
  103. class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestSenderAddress extends PopBaseJsonEntity
  104. {
  105. public function __construct()
  106. {
  107. }
  108. /**
  109. * @JsonProperty(String, "city")
  110. */
  111. private $city;
  112. /**
  113. * @JsonProperty(String, "country")
  114. */
  115. private $country;
  116. /**
  117. * @JsonProperty(String, "detail")
  118. */
  119. private $detail;
  120. /**
  121. * @JsonProperty(String, "district")
  122. */
  123. private $district;
  124. /**
  125. * @JsonProperty(String, "province")
  126. */
  127. private $province;
  128. /**
  129. * @JsonProperty(String, "town")
  130. */
  131. private $town;
  132. public function setCity($city)
  133. {
  134. $this->city = $city;
  135. }
  136. public function setCountry($country)
  137. {
  138. $this->country = $country;
  139. }
  140. public function setDetail($detail)
  141. {
  142. $this->detail = $detail;
  143. }
  144. public function setDistrict($district)
  145. {
  146. $this->district = $district;
  147. }
  148. public function setProvince($province)
  149. {
  150. $this->province = $province;
  151. }
  152. public function setTown($town)
  153. {
  154. $this->town = $town;
  155. }
  156. }
  157. class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItem extends PopBaseJsonEntity
  158. {
  159. public function __construct()
  160. {
  161. }
  162. /**
  163. * @JsonProperty(String, "logistics_services")
  164. */
  165. private $logisticsServices;
  166. /**
  167. * @JsonProperty(String, "object_id")
  168. */
  169. private $objectId;
  170. /**
  171. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemOrderInfo, "order_info")
  172. */
  173. private $orderInfo;
  174. /**
  175. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemPackageInfo, "package_info")
  176. */
  177. private $packageInfo;
  178. /**
  179. * @JsonProperty(String, "template_url")
  180. */
  181. private $templateUrl;
  182. /**
  183. * @JsonProperty(Long, "user_id")
  184. */
  185. private $userId;
  186. public function setLogisticsServices($logisticsServices)
  187. {
  188. $this->logisticsServices = $logisticsServices;
  189. }
  190. public function setObjectId($objectId)
  191. {
  192. $this->objectId = $objectId;
  193. }
  194. public function setOrderInfo($orderInfo)
  195. {
  196. $this->orderInfo = $orderInfo;
  197. }
  198. public function setPackageInfo($packageInfo)
  199. {
  200. $this->packageInfo = $packageInfo;
  201. }
  202. public function setTemplateUrl($templateUrl)
  203. {
  204. $this->templateUrl = $templateUrl;
  205. }
  206. public function setUserId($userId)
  207. {
  208. $this->userId = $userId;
  209. }
  210. }
  211. class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemOrderInfo extends PopBaseJsonEntity
  212. {
  213. public function __construct()
  214. {
  215. }
  216. /**
  217. * @JsonProperty(String, "order_channels_type")
  218. */
  219. private $orderChannelsType;
  220. /**
  221. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemOrderInfoTradeOrderListItem>, "trade_order_list")
  222. */
  223. private $tradeOrderList;
  224. public function setOrderChannelsType($orderChannelsType)
  225. {
  226. $this->orderChannelsType = $orderChannelsType;
  227. }
  228. public function setTradeOrderList($tradeOrderList)
  229. {
  230. $this->tradeOrderList = $tradeOrderList;
  231. }
  232. }
  233. class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemOrderInfoTradeOrderListItem extends PopBaseJsonEntity
  234. {
  235. public function __construct()
  236. {
  237. }
  238. /**
  239. * @JsonProperty(String, "mall_mask_id")
  240. */
  241. private $mallMaskId;
  242. /**
  243. * @JsonProperty(String, "order_mask_sn")
  244. */
  245. private $orderMaskSn;
  246. public function setMallMaskId($mallMaskId)
  247. {
  248. $this->mallMaskId = $mallMaskId;
  249. }
  250. public function setOrderMaskSn($orderMaskSn)
  251. {
  252. $this->orderMaskSn = $orderMaskSn;
  253. }
  254. }
  255. class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemPackageInfo extends PopBaseJsonEntity
  256. {
  257. public function __construct()
  258. {
  259. }
  260. /**
  261. * @JsonProperty(String, "goods_description")
  262. */
  263. private $goodsDescription;
  264. /**
  265. * @JsonProperty(String, "id")
  266. */
  267. private $id;
  268. /**
  269. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemPackageInfoItemsItem>, "items")
  270. */
  271. private $items;
  272. /**
  273. * @JsonProperty(String, "packaging_description")
  274. */
  275. private $packagingDescription;
  276. /**
  277. * @JsonProperty(String, "total_packages_count")
  278. */
  279. private $totalPackagesCount;
  280. /**
  281. * @JsonProperty(Integer, "volume")
  282. */
  283. private $volume;
  284. /**
  285. * @JsonProperty(Integer, "weight")
  286. */
  287. private $weight;
  288. public function setGoodsDescription($goodsDescription)
  289. {
  290. $this->goodsDescription = $goodsDescription;
  291. }
  292. public function setId($id)
  293. {
  294. $this->id = $id;
  295. }
  296. public function setItems($items)
  297. {
  298. $this->items = $items;
  299. }
  300. public function setPackagingDescription($packagingDescription)
  301. {
  302. $this->packagingDescription = $packagingDescription;
  303. }
  304. public function setTotalPackagesCount($totalPackagesCount)
  305. {
  306. $this->totalPackagesCount = $totalPackagesCount;
  307. }
  308. public function setVolume($volume)
  309. {
  310. $this->volume = $volume;
  311. }
  312. public function setWeight($weight)
  313. {
  314. $this->weight = $weight;
  315. }
  316. }
  317. class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemPackageInfoItemsItem extends PopBaseJsonEntity
  318. {
  319. public function __construct()
  320. {
  321. }
  322. /**
  323. * @JsonProperty(Integer, "count")
  324. */
  325. private $count;
  326. /**
  327. * @JsonProperty(String, "name")
  328. */
  329. private $name;
  330. public function setCount($count)
  331. {
  332. $this->count = $count;
  333. }
  334. public function setName($name)
  335. {
  336. $this->name = $name;
  337. }
  338. }