PddTrainCallbackReserveRequest.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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 PddTrainCallbackReserveRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(String, "arrive_date")
  12. */
  13. private $arriveDate;
  14. /**
  15. * @JsonProperty(String, "arrive_station")
  16. */
  17. private $arriveStation;
  18. /**
  19. * @JsonProperty(String, "arrive_time")
  20. */
  21. private $arriveTime;
  22. /**
  23. * @JsonProperty(Long, "code")
  24. */
  25. private $code;
  26. /**
  27. * @JsonProperty(String, "crh_order")
  28. */
  29. private $crhOrder;
  30. /**
  31. * @JsonProperty(String, "depart_date")
  32. */
  33. private $departDate;
  34. /**
  35. * @JsonProperty(String, "depart_station")
  36. */
  37. private $departStation;
  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(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCallbackReserveRequest_PassengersItem>, "passengers")
  52. */
  53. private $passengers;
  54. /**
  55. * @JsonProperty(String, "pay_limit_time")
  56. */
  57. private $payLimitTime;
  58. /**
  59. * @JsonProperty(String, "pdd_order_id")
  60. */
  61. private $pddOrderId;
  62. /**
  63. * @JsonProperty(String, "request_id")
  64. */
  65. private $requestId;
  66. /**
  67. * @JsonProperty(String, "train_no")
  68. */
  69. private $trainNo;
  70. /**
  71. * @JsonProperty(Integer, "use_id_card_in")
  72. */
  73. private $useIdCardIn;
  74. /**
  75. * @JsonProperty(String, "vendor_time")
  76. */
  77. private $vendorTime;
  78. protected function setUserParams(&$params)
  79. {
  80. $this->setUserParam($params, "arrive_date", $this->arriveDate);
  81. $this->setUserParam($params, "arrive_station", $this->arriveStation);
  82. $this->setUserParam($params, "arrive_time", $this->arriveTime);
  83. $this->setUserParam($params, "code", $this->code);
  84. $this->setUserParam($params, "crh_order", $this->crhOrder);
  85. $this->setUserParam($params, "depart_date", $this->departDate);
  86. $this->setUserParam($params, "depart_station", $this->departStation);
  87. $this->setUserParam($params, "depart_time", $this->departTime);
  88. $this->setUserParam($params, "msg", $this->msg);
  89. $this->setUserParam($params, "order_id", $this->orderId);
  90. $this->setUserParam($params, "passengers", $this->passengers);
  91. $this->setUserParam($params, "pay_limit_time", $this->payLimitTime);
  92. $this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
  93. $this->setUserParam($params, "request_id", $this->requestId);
  94. $this->setUserParam($params, "train_no", $this->trainNo);
  95. $this->setUserParam($params, "use_id_card_in", $this->useIdCardIn);
  96. $this->setUserParam($params, "vendor_time", $this->vendorTime);
  97. }
  98. public function getVersion()
  99. {
  100. return "V1";
  101. }
  102. public function getDataType()
  103. {
  104. return "JSON";
  105. }
  106. public function getType()
  107. {
  108. return "pdd.train.callback.reserve";
  109. }
  110. public function setArriveDate($arriveDate)
  111. {
  112. $this->arriveDate = $arriveDate;
  113. }
  114. public function setArriveStation($arriveStation)
  115. {
  116. $this->arriveStation = $arriveStation;
  117. }
  118. public function setArriveTime($arriveTime)
  119. {
  120. $this->arriveTime = $arriveTime;
  121. }
  122. public function setCode($code)
  123. {
  124. $this->code = $code;
  125. }
  126. public function setCrhOrder($crhOrder)
  127. {
  128. $this->crhOrder = $crhOrder;
  129. }
  130. public function setDepartDate($departDate)
  131. {
  132. $this->departDate = $departDate;
  133. }
  134. public function setDepartStation($departStation)
  135. {
  136. $this->departStation = $departStation;
  137. }
  138. public function setDepartTime($departTime)
  139. {
  140. $this->departTime = $departTime;
  141. }
  142. public function setMsg($msg)
  143. {
  144. $this->msg = $msg;
  145. }
  146. public function setOrderId($orderId)
  147. {
  148. $this->orderId = $orderId;
  149. }
  150. public function setPassengers($passengers)
  151. {
  152. $this->passengers = $passengers;
  153. }
  154. public function setPayLimitTime($payLimitTime)
  155. {
  156. $this->payLimitTime = $payLimitTime;
  157. }
  158. public function setPddOrderId($pddOrderId)
  159. {
  160. $this->pddOrderId = $pddOrderId;
  161. }
  162. public function setRequestId($requestId)
  163. {
  164. $this->requestId = $requestId;
  165. }
  166. public function setTrainNo($trainNo)
  167. {
  168. $this->trainNo = $trainNo;
  169. }
  170. public function setUseIdCardIn($useIdCardIn)
  171. {
  172. $this->useIdCardIn = $useIdCardIn;
  173. }
  174. public function setVendorTime($vendorTime)
  175. {
  176. $this->vendorTime = $vendorTime;
  177. }
  178. }
  179. class PddTrainCallbackReserveRequest_PassengersItem extends PopBaseJsonEntity
  180. {
  181. public function __construct()
  182. {
  183. }
  184. /**
  185. * @JsonProperty(String, "card_no")
  186. */
  187. private $cardNo;
  188. /**
  189. * @JsonProperty(String, "card_type")
  190. */
  191. private $cardType;
  192. /**
  193. * @JsonProperty(String, "coach_name")
  194. */
  195. private $coachName;
  196. /**
  197. * @JsonProperty(String, "name")
  198. */
  199. private $name;
  200. /**
  201. * @JsonProperty(String, "seat_name")
  202. */
  203. private $seatName;
  204. /**
  205. * @JsonProperty(Integer, "seat_type")
  206. */
  207. private $seatType;
  208. /**
  209. * @JsonProperty(String, "sub_crh_order")
  210. */
  211. private $subCrhOrder;
  212. /**
  213. * @JsonProperty(String, "sub_order_id")
  214. */
  215. private $subOrderId;
  216. /**
  217. * @JsonProperty(String, "sub_pdd_order_id")
  218. */
  219. private $subPddOrderId;
  220. /**
  221. * @JsonProperty(Long, "ticket_price")
  222. */
  223. private $ticketPrice;
  224. /**
  225. * @JsonProperty(Integer, "ticket_type")
  226. */
  227. private $ticketType;
  228. /**
  229. * @JsonProperty(Integer, "is_choose_seat")
  230. */
  231. private $isChooseSeat;
  232. public function setCardNo($cardNo)
  233. {
  234. $this->cardNo = $cardNo;
  235. }
  236. public function setCardType($cardType)
  237. {
  238. $this->cardType = $cardType;
  239. }
  240. public function setCoachName($coachName)
  241. {
  242. $this->coachName = $coachName;
  243. }
  244. public function setName($name)
  245. {
  246. $this->name = $name;
  247. }
  248. public function setSeatName($seatName)
  249. {
  250. $this->seatName = $seatName;
  251. }
  252. public function setSeatType($seatType)
  253. {
  254. $this->seatType = $seatType;
  255. }
  256. public function setSubCrhOrder($subCrhOrder)
  257. {
  258. $this->subCrhOrder = $subCrhOrder;
  259. }
  260. public function setSubOrderId($subOrderId)
  261. {
  262. $this->subOrderId = $subOrderId;
  263. }
  264. public function setSubPddOrderId($subPddOrderId)
  265. {
  266. $this->subPddOrderId = $subPddOrderId;
  267. }
  268. public function setTicketPrice($ticketPrice)
  269. {
  270. $this->ticketPrice = $ticketPrice;
  271. }
  272. public function setTicketType($ticketType)
  273. {
  274. $this->ticketType = $ticketType;
  275. }
  276. public function setIsChooseSeat($isChooseSeat)
  277. {
  278. $this->isChooseSeat = $isChooseSeat;
  279. }
  280. }