PddTrainChangeTicketRequest.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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 PddTrainChangeTicketRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(String, "pdd_order_id")
  12. */
  13. private $pddOrderId;
  14. /**
  15. * @JsonProperty(String, "order_id")
  16. */
  17. private $orderId;
  18. /**
  19. * @JsonProperty(String, "new_depart_station")
  20. */
  21. private $newDepartStation;
  22. /**
  23. * @JsonProperty(String, "new_arrive_station")
  24. */
  25. private $newArriveStation;
  26. /**
  27. * @JsonProperty(String, "new_train_date")
  28. */
  29. private $newTrainDate;
  30. /**
  31. * @JsonProperty(String, "new_train_no")
  32. */
  33. private $newTrainNo;
  34. /**
  35. * @JsonProperty(String, "new_depart_time")
  36. */
  37. private $newDepartTime;
  38. /**
  39. * @JsonProperty(String, "new_arrive_time")
  40. */
  41. private $newArriveTime;
  42. /**
  43. * @JsonProperty(Integer, "new_seat_type")
  44. */
  45. private $newSeatType;
  46. /**
  47. * @JsonProperty(String, "new_choose_seat")
  48. */
  49. private $newChooseSeat;
  50. /**
  51. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainChangeTicketRequest_NewPassengerInfosItem>, "new_passenger_infos")
  52. */
  53. private $newPassengerInfos;
  54. protected function setUserParams(&$params)
  55. {
  56. $this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
  57. $this->setUserParam($params, "order_id", $this->orderId);
  58. $this->setUserParam($params, "new_depart_station", $this->newDepartStation);
  59. $this->setUserParam($params, "new_arrive_station", $this->newArriveStation);
  60. $this->setUserParam($params, "new_train_date", $this->newTrainDate);
  61. $this->setUserParam($params, "new_train_no", $this->newTrainNo);
  62. $this->setUserParam($params, "new_depart_time", $this->newDepartTime);
  63. $this->setUserParam($params, "new_arrive_time", $this->newArriveTime);
  64. $this->setUserParam($params, "new_seat_type", $this->newSeatType);
  65. $this->setUserParam($params, "new_choose_seat", $this->newChooseSeat);
  66. $this->setUserParam($params, "new_passenger_infos", $this->newPassengerInfos);
  67. }
  68. public function getVersion()
  69. {
  70. return "V1";
  71. }
  72. public function getDataType()
  73. {
  74. return "JSON";
  75. }
  76. public function getType()
  77. {
  78. return "pdd.train.change.ticket";
  79. }
  80. public function setPddOrderId($pddOrderId)
  81. {
  82. $this->pddOrderId = $pddOrderId;
  83. }
  84. public function setOrderId($orderId)
  85. {
  86. $this->orderId = $orderId;
  87. }
  88. public function setNewDepartStation($newDepartStation)
  89. {
  90. $this->newDepartStation = $newDepartStation;
  91. }
  92. public function setNewArriveStation($newArriveStation)
  93. {
  94. $this->newArriveStation = $newArriveStation;
  95. }
  96. public function setNewTrainDate($newTrainDate)
  97. {
  98. $this->newTrainDate = $newTrainDate;
  99. }
  100. public function setNewTrainNo($newTrainNo)
  101. {
  102. $this->newTrainNo = $newTrainNo;
  103. }
  104. public function setNewDepartTime($newDepartTime)
  105. {
  106. $this->newDepartTime = $newDepartTime;
  107. }
  108. public function setNewArriveTime($newArriveTime)
  109. {
  110. $this->newArriveTime = $newArriveTime;
  111. }
  112. public function setNewSeatType($newSeatType)
  113. {
  114. $this->newSeatType = $newSeatType;
  115. }
  116. public function setNewChooseSeat($newChooseSeat)
  117. {
  118. $this->newChooseSeat = $newChooseSeat;
  119. }
  120. public function setNewPassengerInfos($newPassengerInfos)
  121. {
  122. $this->newPassengerInfos = $newPassengerInfos;
  123. }
  124. }
  125. class PddTrainChangeTicketRequest_NewPassengerInfosItem extends PopBaseJsonEntity
  126. {
  127. public function __construct()
  128. {
  129. }
  130. /**
  131. * @JsonProperty(String, "card_type")
  132. */
  133. private $cardType;
  134. /**
  135. * @JsonProperty(String, "card_no")
  136. */
  137. private $cardNo;
  138. /**
  139. * @JsonProperty(String, "name")
  140. */
  141. private $name;
  142. /**
  143. * @JsonProperty(Integer, "ticket_type")
  144. */
  145. private $ticketType;
  146. /**
  147. * @JsonProperty(Integer, "seat_type")
  148. */
  149. private $seatType;
  150. /**
  151. * @JsonProperty(Long, "ticket_price")
  152. */
  153. private $ticketPrice;
  154. /**
  155. * @JsonProperty(String, "sub_order_id")
  156. */
  157. private $subOrderId;
  158. /**
  159. * @JsonProperty(String, "new_sub_pdd_order_id")
  160. */
  161. private $newSubPddOrderId;
  162. /**
  163. * @JsonProperty(String, "birthday")
  164. */
  165. private $birthday;
  166. /**
  167. * @JsonProperty(String, "effective_date")
  168. */
  169. private $effectiveDate;
  170. /**
  171. * @JsonProperty(String, "sex")
  172. */
  173. private $sex;
  174. /**
  175. * @JsonProperty(String, "country")
  176. */
  177. private $country;
  178. /**
  179. * @JsonProperty(String, "mobile")
  180. */
  181. private $mobile;
  182. /**
  183. * @JsonProperty(String, "email")
  184. */
  185. private $email;
  186. public function setCardType($cardType)
  187. {
  188. $this->cardType = $cardType;
  189. }
  190. public function setCardNo($cardNo)
  191. {
  192. $this->cardNo = $cardNo;
  193. }
  194. public function setName($name)
  195. {
  196. $this->name = $name;
  197. }
  198. public function setTicketType($ticketType)
  199. {
  200. $this->ticketType = $ticketType;
  201. }
  202. public function setSeatType($seatType)
  203. {
  204. $this->seatType = $seatType;
  205. }
  206. public function setTicketPrice($ticketPrice)
  207. {
  208. $this->ticketPrice = $ticketPrice;
  209. }
  210. public function setSubOrderId($subOrderId)
  211. {
  212. $this->subOrderId = $subOrderId;
  213. }
  214. public function setNewSubPddOrderId($newSubPddOrderId)
  215. {
  216. $this->newSubPddOrderId = $newSubPddOrderId;
  217. }
  218. public function setBirthday($birthday)
  219. {
  220. $this->birthday = $birthday;
  221. }
  222. public function setEffectiveDate($effectiveDate)
  223. {
  224. $this->effectiveDate = $effectiveDate;
  225. }
  226. public function setSex($sex)
  227. {
  228. $this->sex = $sex;
  229. }
  230. public function setCountry($country)
  231. {
  232. $this->country = $country;
  233. }
  234. public function setMobile($mobile)
  235. {
  236. $this->mobile = $mobile;
  237. }
  238. public function setEmail($email)
  239. {
  240. $this->email = $email;
  241. }
  242. }