PddTrainCallbackGrabRequest.php 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  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 PddTrainCallbackGrabRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(String, "arrive_station")
  12. */
  13. private $arriveStation;
  14. /**
  15. * @JsonProperty(String, "arrive_station_code")
  16. */
  17. private $arriveStationCode;
  18. /**
  19. * @JsonProperty(String, "arrive_time")
  20. */
  21. private $arriveTime;
  22. /**
  23. * @JsonProperty(Integer, "code")
  24. */
  25. private $code;
  26. /**
  27. * @JsonProperty(String, "crh_order_id")
  28. */
  29. private $crhOrderId;
  30. /**
  31. * @JsonProperty(String, "depart_station")
  32. */
  33. private $departStation;
  34. /**
  35. * @JsonProperty(String, "depart_station_code")
  36. */
  37. private $departStationCode;
  38. /**
  39. * @JsonProperty(String, "depart_time")
  40. */
  41. private $departTime;
  42. /**
  43. * @JsonProperty(String, "msg")
  44. */
  45. private $msg;
  46. /**
  47. * @JsonProperty(String, "order_id")
  48. */
  49. private $orderId;
  50. /**
  51. * @JsonProperty(Long, "order_ticket_price")
  52. */
  53. private $orderTicketPrice;
  54. /**
  55. * @JsonProperty(String, "order_time")
  56. */
  57. private $orderTime;
  58. /**
  59. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCallbackGrabRequest_PassengersItem>, "passengers")
  60. */
  61. private $passengers;
  62. /**
  63. * @JsonProperty(String, "pdd_order_id")
  64. */
  65. private $pddOrderId;
  66. /**
  67. * @JsonProperty(Integer, "ticket_num")
  68. */
  69. private $ticketNum;
  70. /**
  71. * @JsonProperty(String, "train_date")
  72. */
  73. private $trainDate;
  74. /**
  75. * @JsonProperty(String, "train_no")
  76. */
  77. private $trainNo;
  78. /**
  79. * @JsonProperty(String, "travel_time")
  80. */
  81. private $travelTime;
  82. /**
  83. * @JsonProperty(String, "vendor_time")
  84. */
  85. private $vendorTime;
  86. /**
  87. * @JsonProperty(String, "end_time")
  88. */
  89. private $endTime;
  90. /**
  91. * @JsonProperty(Integer, "channel")
  92. */
  93. private $channel;
  94. /**
  95. * @JsonProperty(Integer, "id_card_check_in")
  96. */
  97. private $idCardCheckIn;
  98. /**
  99. * @JsonProperty(String, "gate_no")
  100. */
  101. private $gateNo;
  102. /**
  103. * @JsonProperty(String, "distance")
  104. */
  105. private $distance;
  106. protected function setUserParams(&$params)
  107. {
  108. $this->setUserParam($params, "arrive_station", $this->arriveStation);
  109. $this->setUserParam($params, "arrive_station_code", $this->arriveStationCode);
  110. $this->setUserParam($params, "arrive_time", $this->arriveTime);
  111. $this->setUserParam($params, "code", $this->code);
  112. $this->setUserParam($params, "crh_order_id", $this->crhOrderId);
  113. $this->setUserParam($params, "depart_station", $this->departStation);
  114. $this->setUserParam($params, "depart_station_code", $this->departStationCode);
  115. $this->setUserParam($params, "depart_time", $this->departTime);
  116. $this->setUserParam($params, "msg", $this->msg);
  117. $this->setUserParam($params, "order_id", $this->orderId);
  118. $this->setUserParam($params, "order_ticket_price", $this->orderTicketPrice);
  119. $this->setUserParam($params, "order_time", $this->orderTime);
  120. $this->setUserParam($params, "passengers", $this->passengers);
  121. $this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
  122. $this->setUserParam($params, "ticket_num", $this->ticketNum);
  123. $this->setUserParam($params, "train_date", $this->trainDate);
  124. $this->setUserParam($params, "train_no", $this->trainNo);
  125. $this->setUserParam($params, "travel_time", $this->travelTime);
  126. $this->setUserParam($params, "vendor_time", $this->vendorTime);
  127. $this->setUserParam($params, "end_time", $this->endTime);
  128. $this->setUserParam($params, "channel", $this->channel);
  129. $this->setUserParam($params, "id_card_check_in", $this->idCardCheckIn);
  130. $this->setUserParam($params, "gate_no", $this->gateNo);
  131. $this->setUserParam($params, "distance", $this->distance);
  132. }
  133. public function getVersion()
  134. {
  135. return "V1";
  136. }
  137. public function getDataType()
  138. {
  139. return "JSON";
  140. }
  141. public function getType()
  142. {
  143. return "pdd.train.callback.grab";
  144. }
  145. public function setArriveStation($arriveStation)
  146. {
  147. $this->arriveStation = $arriveStation;
  148. }
  149. public function setArriveStationCode($arriveStationCode)
  150. {
  151. $this->arriveStationCode = $arriveStationCode;
  152. }
  153. public function setArriveTime($arriveTime)
  154. {
  155. $this->arriveTime = $arriveTime;
  156. }
  157. public function setCode($code)
  158. {
  159. $this->code = $code;
  160. }
  161. public function setCrhOrderId($crhOrderId)
  162. {
  163. $this->crhOrderId = $crhOrderId;
  164. }
  165. public function setDepartStation($departStation)
  166. {
  167. $this->departStation = $departStation;
  168. }
  169. public function setDepartStationCode($departStationCode)
  170. {
  171. $this->departStationCode = $departStationCode;
  172. }
  173. public function setDepartTime($departTime)
  174. {
  175. $this->departTime = $departTime;
  176. }
  177. public function setMsg($msg)
  178. {
  179. $this->msg = $msg;
  180. }
  181. public function setOrderId($orderId)
  182. {
  183. $this->orderId = $orderId;
  184. }
  185. public function setOrderTicketPrice($orderTicketPrice)
  186. {
  187. $this->orderTicketPrice = $orderTicketPrice;
  188. }
  189. public function setOrderTime($orderTime)
  190. {
  191. $this->orderTime = $orderTime;
  192. }
  193. public function setPassengers($passengers)
  194. {
  195. $this->passengers = $passengers;
  196. }
  197. public function setPddOrderId($pddOrderId)
  198. {
  199. $this->pddOrderId = $pddOrderId;
  200. }
  201. public function setTicketNum($ticketNum)
  202. {
  203. $this->ticketNum = $ticketNum;
  204. }
  205. public function setTrainDate($trainDate)
  206. {
  207. $this->trainDate = $trainDate;
  208. }
  209. public function setTrainNo($trainNo)
  210. {
  211. $this->trainNo = $trainNo;
  212. }
  213. public function setTravelTime($travelTime)
  214. {
  215. $this->travelTime = $travelTime;
  216. }
  217. public function setVendorTime($vendorTime)
  218. {
  219. $this->vendorTime = $vendorTime;
  220. }
  221. public function setEndTime($endTime)
  222. {
  223. $this->endTime = $endTime;
  224. }
  225. public function setChannel($channel)
  226. {
  227. $this->channel = $channel;
  228. }
  229. public function setIdCardCheckIn($idCardCheckIn)
  230. {
  231. $this->idCardCheckIn = $idCardCheckIn;
  232. }
  233. public function setGateNo($gateNo)
  234. {
  235. $this->gateNo = $gateNo;
  236. }
  237. public function setDistance($distance)
  238. {
  239. $this->distance = $distance;
  240. }
  241. }
  242. class PddTrainCallbackGrabRequest_PassengersItem extends PopBaseJsonEntity
  243. {
  244. public function __construct()
  245. {
  246. }
  247. /**
  248. * @JsonProperty(String, "card_no")
  249. */
  250. private $cardNo;
  251. /**
  252. * @JsonProperty(String, "card_type")
  253. */
  254. private $cardType;
  255. /**
  256. * @JsonProperty(String, "coach_no")
  257. */
  258. private $coachNo;
  259. /**
  260. * @JsonProperty(String, "name")
  261. */
  262. private $name;
  263. /**
  264. * @JsonProperty(String, "seat_name")
  265. */
  266. private $seatName;
  267. /**
  268. * @JsonProperty(String, "seat_no")
  269. */
  270. private $seatNo;
  271. /**
  272. * @JsonProperty(Integer, "seat_type")
  273. */
  274. private $seatType;
  275. /**
  276. * @JsonProperty(String, "seat_type_name")
  277. */
  278. private $seatTypeName;
  279. /**
  280. * @JsonProperty(Integer, "status")
  281. */
  282. private $status;
  283. /**
  284. * @JsonProperty(String, "sub_order_id")
  285. */
  286. private $subOrderId;
  287. /**
  288. * @JsonProperty(String, "sub_pdd_order_id")
  289. */
  290. private $subPddOrderId;
  291. /**
  292. * @JsonProperty(Long, "ticket_price")
  293. */
  294. private $ticketPrice;
  295. /**
  296. * @JsonProperty(Integer, "ticket_type")
  297. */
  298. private $ticketType;
  299. public function setCardNo($cardNo)
  300. {
  301. $this->cardNo = $cardNo;
  302. }
  303. public function setCardType($cardType)
  304. {
  305. $this->cardType = $cardType;
  306. }
  307. public function setCoachNo($coachNo)
  308. {
  309. $this->coachNo = $coachNo;
  310. }
  311. public function setName($name)
  312. {
  313. $this->name = $name;
  314. }
  315. public function setSeatName($seatName)
  316. {
  317. $this->seatName = $seatName;
  318. }
  319. public function setSeatNo($seatNo)
  320. {
  321. $this->seatNo = $seatNo;
  322. }
  323. public function setSeatType($seatType)
  324. {
  325. $this->seatType = $seatType;
  326. }
  327. public function setSeatTypeName($seatTypeName)
  328. {
  329. $this->seatTypeName = $seatTypeName;
  330. }
  331. public function setStatus($status)
  332. {
  333. $this->status = $status;
  334. }
  335. public function setSubOrderId($subOrderId)
  336. {
  337. $this->subOrderId = $subOrderId;
  338. }
  339. public function setSubPddOrderId($subPddOrderId)
  340. {
  341. $this->subPddOrderId = $subPddOrderId;
  342. }
  343. public function setTicketPrice($ticketPrice)
  344. {
  345. $this->ticketPrice = $ticketPrice;
  346. }
  347. public function setTicketType($ticketType)
  348. {
  349. $this->ticketType = $ticketType;
  350. }
  351. }