PddTrainCallbackOtcbookRequest.php 5.8 KB

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