PddTrainCallbackChangeReserveRequest.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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 PddTrainCallbackChangeReserveRequest 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, "change_pay")
  24. */
  25. private $changePay;
  26. /**
  27. * @JsonProperty(Long, "change_refund")
  28. */
  29. private $changeRefund;
  30. /**
  31. * @JsonProperty(Integer, "code")
  32. */
  33. private $code;
  34. /**
  35. * @JsonProperty(String, "crh_order_id")
  36. */
  37. private $crhOrderId;
  38. /**
  39. * @JsonProperty(String, "depart_date")
  40. */
  41. private $departDate;
  42. /**
  43. * @JsonProperty(String, "depart_station")
  44. */
  45. private $departStation;
  46. /**
  47. * @JsonProperty(String, "depart_time")
  48. */
  49. private $departTime;
  50. /**
  51. * @JsonProperty(String, "msg")
  52. */
  53. private $msg;
  54. /**
  55. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCallbackChangeReserveRequest_NewPassengersItem>, "new_passengers")
  56. */
  57. private $newPassengers;
  58. /**
  59. * @JsonProperty(String, "order_id")
  60. */
  61. private $orderId;
  62. /**
  63. * @JsonProperty(String, "pay_limit_time")
  64. */
  65. private $payLimitTime;
  66. /**
  67. * @JsonProperty(String, "pdd_order_id")
  68. */
  69. private $pddOrderId;
  70. /**
  71. * @JsonProperty(String, "request_id")
  72. */
  73. private $requestId;
  74. /**
  75. * @JsonProperty(String, "train_no")
  76. */
  77. private $trainNo;
  78. /**
  79. * @JsonProperty(Integer, "use_id_card_in")
  80. */
  81. private $useIdCardIn;
  82. /**
  83. * @JsonProperty(String, "vendor_time")
  84. */
  85. private $vendorTime;
  86. protected function setUserParams(&$params)
  87. {
  88. $this->setUserParam($params, "arrive_date", $this->arriveDate);
  89. $this->setUserParam($params, "arrive_station", $this->arriveStation);
  90. $this->setUserParam($params, "arrive_time", $this->arriveTime);
  91. $this->setUserParam($params, "change_pay", $this->changePay);
  92. $this->setUserParam($params, "change_refund", $this->changeRefund);
  93. $this->setUserParam($params, "code", $this->code);
  94. $this->setUserParam($params, "crh_order_id", $this->crhOrderId);
  95. $this->setUserParam($params, "depart_date", $this->departDate);
  96. $this->setUserParam($params, "depart_station", $this->departStation);
  97. $this->setUserParam($params, "depart_time", $this->departTime);
  98. $this->setUserParam($params, "msg", $this->msg);
  99. $this->setUserParam($params, "new_passengers", $this->newPassengers);
  100. $this->setUserParam($params, "order_id", $this->orderId);
  101. $this->setUserParam($params, "pay_limit_time", $this->payLimitTime);
  102. $this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
  103. $this->setUserParam($params, "request_id", $this->requestId);
  104. $this->setUserParam($params, "train_no", $this->trainNo);
  105. $this->setUserParam($params, "use_id_card_in", $this->useIdCardIn);
  106. $this->setUserParam($params, "vendor_time", $this->vendorTime);
  107. }
  108. public function getVersion()
  109. {
  110. return "V1";
  111. }
  112. public function getDataType()
  113. {
  114. return "JSON";
  115. }
  116. public function getType()
  117. {
  118. return "pdd.train.callback.change.reserve";
  119. }
  120. public function setArriveDate($arriveDate)
  121. {
  122. $this->arriveDate = $arriveDate;
  123. }
  124. public function setArriveStation($arriveStation)
  125. {
  126. $this->arriveStation = $arriveStation;
  127. }
  128. public function setArriveTime($arriveTime)
  129. {
  130. $this->arriveTime = $arriveTime;
  131. }
  132. public function setChangePay($changePay)
  133. {
  134. $this->changePay = $changePay;
  135. }
  136. public function setChangeRefund($changeRefund)
  137. {
  138. $this->changeRefund = $changeRefund;
  139. }
  140. public function setCode($code)
  141. {
  142. $this->code = $code;
  143. }
  144. public function setCrhOrderId($crhOrderId)
  145. {
  146. $this->crhOrderId = $crhOrderId;
  147. }
  148. public function setDepartDate($departDate)
  149. {
  150. $this->departDate = $departDate;
  151. }
  152. public function setDepartStation($departStation)
  153. {
  154. $this->departStation = $departStation;
  155. }
  156. public function setDepartTime($departTime)
  157. {
  158. $this->departTime = $departTime;
  159. }
  160. public function setMsg($msg)
  161. {
  162. $this->msg = $msg;
  163. }
  164. public function setNewPassengers($newPassengers)
  165. {
  166. $this->newPassengers = $newPassengers;
  167. }
  168. public function setOrderId($orderId)
  169. {
  170. $this->orderId = $orderId;
  171. }
  172. public function setPayLimitTime($payLimitTime)
  173. {
  174. $this->payLimitTime = $payLimitTime;
  175. }
  176. public function setPddOrderId($pddOrderId)
  177. {
  178. $this->pddOrderId = $pddOrderId;
  179. }
  180. public function setRequestId($requestId)
  181. {
  182. $this->requestId = $requestId;
  183. }
  184. public function setTrainNo($trainNo)
  185. {
  186. $this->trainNo = $trainNo;
  187. }
  188. public function setUseIdCardIn($useIdCardIn)
  189. {
  190. $this->useIdCardIn = $useIdCardIn;
  191. }
  192. public function setVendorTime($vendorTime)
  193. {
  194. $this->vendorTime = $vendorTime;
  195. }
  196. }
  197. class PddTrainCallbackChangeReserveRequest_NewPassengersItem extends PopBaseJsonEntity
  198. {
  199. public function __construct()
  200. {
  201. }
  202. /**
  203. * @JsonProperty(String, "coach_name")
  204. */
  205. private $coachName;
  206. /**
  207. * @JsonProperty(String, "coach_no")
  208. */
  209. private $coachNo;
  210. /**
  211. * @JsonProperty(String, "name")
  212. */
  213. private $name;
  214. /**
  215. * @JsonProperty(String, "new_sub_order_id")
  216. */
  217. private $newSubOrderId;
  218. /**
  219. * @JsonProperty(String, "new_sub_pdd_order_id")
  220. */
  221. private $newSubPddOrderId;
  222. /**
  223. * @JsonProperty(String, "old_sub_order_id")
  224. */
  225. private $oldSubOrderId;
  226. /**
  227. * @JsonProperty(String, "old_sub_pdd_order_id")
  228. */
  229. private $oldSubPddOrderId;
  230. /**
  231. * @JsonProperty(String, "seat_name")
  232. */
  233. private $seatName;
  234. /**
  235. * @JsonProperty(Integer, "seat_type")
  236. */
  237. private $seatType;
  238. /**
  239. * @JsonProperty(String, "sub_crh_order_id")
  240. */
  241. private $subCrhOrderId;
  242. /**
  243. * @JsonProperty(Long, "ticket_price")
  244. */
  245. private $ticketPrice;
  246. public function setCoachName($coachName)
  247. {
  248. $this->coachName = $coachName;
  249. }
  250. public function setCoachNo($coachNo)
  251. {
  252. $this->coachNo = $coachNo;
  253. }
  254. public function setName($name)
  255. {
  256. $this->name = $name;
  257. }
  258. public function setNewSubOrderId($newSubOrderId)
  259. {
  260. $this->newSubOrderId = $newSubOrderId;
  261. }
  262. public function setNewSubPddOrderId($newSubPddOrderId)
  263. {
  264. $this->newSubPddOrderId = $newSubPddOrderId;
  265. }
  266. public function setOldSubOrderId($oldSubOrderId)
  267. {
  268. $this->oldSubOrderId = $oldSubOrderId;
  269. }
  270. public function setOldSubPddOrderId($oldSubPddOrderId)
  271. {
  272. $this->oldSubPddOrderId = $oldSubPddOrderId;
  273. }
  274. public function setSeatName($seatName)
  275. {
  276. $this->seatName = $seatName;
  277. }
  278. public function setSeatType($seatType)
  279. {
  280. $this->seatType = $seatType;
  281. }
  282. public function setSubCrhOrderId($subCrhOrderId)
  283. {
  284. $this->subCrhOrderId = $subCrhOrderId;
  285. }
  286. public function setTicketPrice($ticketPrice)
  287. {
  288. $this->ticketPrice = $ticketPrice;
  289. }
  290. }