1
|
|
|
<?php |
2
|
|
|
namespace Com\Pdd\Pop\Sdk\Api\Request; |
3
|
|
|
|
4
|
|
|
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest; |
5
|
|
|
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity; |
6
|
|
|
|
7
|
|
|
class PddTrainCreateReserveRequest extends PopBaseHttpRequest |
8
|
|
|
{ |
9
|
|
|
public function __construct() |
10
|
|
|
{ |
11
|
|
|
|
12
|
|
|
} |
13
|
|
|
/** |
14
|
|
|
* @JsonProperty(String, "pdd_order_id") |
15
|
|
|
*/ |
16
|
|
|
private $pddOrderId; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @JsonProperty(String, "depart_station") |
20
|
|
|
*/ |
21
|
|
|
private $departStation; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @JsonProperty(String, "arrive_station") |
25
|
|
|
*/ |
26
|
|
|
private $arriveStation; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* @JsonProperty(String, "train_date") |
30
|
|
|
*/ |
31
|
|
|
private $trainDate; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @JsonProperty(String, "train_no") |
35
|
|
|
*/ |
36
|
|
|
private $trainNo; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @JsonProperty(String, "depart_time") |
40
|
|
|
*/ |
41
|
|
|
private $departTime; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @JsonProperty(String, "arrive_time") |
45
|
|
|
*/ |
46
|
|
|
private $arriveTime; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @JsonProperty(Integer, "no_seat") |
50
|
|
|
*/ |
51
|
|
|
private $noSeat; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @JsonProperty(String, "choose_seat") |
55
|
|
|
*/ |
56
|
|
|
private $chooseSeat; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @JsonProperty(String, "crh_account") |
60
|
|
|
*/ |
61
|
|
|
private $crhAccount; |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @JsonProperty(String, "crh_password") |
65
|
|
|
*/ |
66
|
|
|
private $crhPassword; |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @JsonProperty(Integer, "switch_account") |
70
|
|
|
*/ |
71
|
|
|
private $switchAccount; |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCreateReserveRequest_PassengerInfosItem>, "passenger_infos") |
75
|
|
|
*/ |
76
|
|
|
private $passengerInfos; |
77
|
|
|
|
78
|
|
|
protected function setUserParams(&$params) |
79
|
|
|
{ |
80
|
|
|
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId); |
81
|
|
|
$this->setUserParam($params, "depart_station", $this->departStation); |
82
|
|
|
$this->setUserParam($params, "arrive_station", $this->arriveStation); |
83
|
|
|
$this->setUserParam($params, "train_date", $this->trainDate); |
84
|
|
|
$this->setUserParam($params, "train_no", $this->trainNo); |
85
|
|
|
$this->setUserParam($params, "depart_time", $this->departTime); |
86
|
|
|
$this->setUserParam($params, "arrive_time", $this->arriveTime); |
87
|
|
|
$this->setUserParam($params, "no_seat", $this->noSeat); |
88
|
|
|
$this->setUserParam($params, "choose_seat", $this->chooseSeat); |
89
|
|
|
$this->setUserParam($params, "crh_account", $this->crhAccount); |
90
|
|
|
$this->setUserParam($params, "crh_password", $this->crhPassword); |
91
|
|
|
$this->setUserParam($params, "switch_account", $this->switchAccount); |
92
|
|
|
$this->setUserParam($params, "passenger_infos", $this->passengerInfos); |
93
|
|
|
|
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
public function getVersion() |
97
|
|
|
{ |
98
|
|
|
return "V1"; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
public function getDataType() |
102
|
|
|
{ |
103
|
|
|
return "JSON"; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
public function getType() |
107
|
|
|
{ |
108
|
|
|
return "pdd.train.create.reserve"; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
public function setPddOrderId($pddOrderId) |
112
|
|
|
{ |
113
|
|
|
$this->pddOrderId = $pddOrderId; |
114
|
|
|
} |
115
|
|
|
|
116
|
|
|
public function setDepartStation($departStation) |
117
|
|
|
{ |
118
|
|
|
$this->departStation = $departStation; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
public function setArriveStation($arriveStation) |
122
|
|
|
{ |
123
|
|
|
$this->arriveStation = $arriveStation; |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
public function setTrainDate($trainDate) |
127
|
|
|
{ |
128
|
|
|
$this->trainDate = $trainDate; |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
public function setTrainNo($trainNo) |
132
|
|
|
{ |
133
|
|
|
$this->trainNo = $trainNo; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
public function setDepartTime($departTime) |
137
|
|
|
{ |
138
|
|
|
$this->departTime = $departTime; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
public function setArriveTime($arriveTime) |
142
|
|
|
{ |
143
|
|
|
$this->arriveTime = $arriveTime; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
public function setNoSeat($noSeat) |
147
|
|
|
{ |
148
|
|
|
$this->noSeat = $noSeat; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
public function setChooseSeat($chooseSeat) |
152
|
|
|
{ |
153
|
|
|
$this->chooseSeat = $chooseSeat; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
public function setCrhAccount($crhAccount) |
157
|
|
|
{ |
158
|
|
|
$this->crhAccount = $crhAccount; |
159
|
|
|
} |
160
|
|
|
|
161
|
|
|
public function setCrhPassword($crhPassword) |
162
|
|
|
{ |
163
|
|
|
$this->crhPassword = $crhPassword; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
public function setSwitchAccount($switchAccount) |
167
|
|
|
{ |
168
|
|
|
$this->switchAccount = $switchAccount; |
169
|
|
|
} |
170
|
|
|
|
171
|
|
|
public function setPassengerInfos($passengerInfos) |
172
|
|
|
{ |
173
|
|
|
$this->passengerInfos = $passengerInfos; |
174
|
|
|
} |
175
|
|
|
|
176
|
|
|
} |
177
|
|
|
|
178
|
|
|
class PddTrainCreateReserveRequest_PassengerInfosItem extends PopBaseJsonEntity |
179
|
|
|
{ |
180
|
|
|
|
181
|
|
|
public function __construct() |
182
|
|
|
{ |
183
|
|
|
|
184
|
|
|
} |
185
|
|
|
|
186
|
|
|
/** |
187
|
|
|
* @JsonProperty(String, "card_type") |
188
|
|
|
*/ |
189
|
|
|
private $cardType; |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* @JsonProperty(String, "card_no") |
193
|
|
|
*/ |
194
|
|
|
private $cardNo; |
195
|
|
|
|
196
|
|
|
/** |
197
|
|
|
* @JsonProperty(String, "name") |
198
|
|
|
*/ |
199
|
|
|
private $name; |
200
|
|
|
|
201
|
|
|
/** |
202
|
|
|
* @JsonProperty(Integer, "ticket_type") |
203
|
|
|
*/ |
204
|
|
|
private $ticketType; |
205
|
|
|
|
206
|
|
|
/** |
207
|
|
|
* @JsonProperty(Integer, "seat_type") |
208
|
|
|
*/ |
209
|
|
|
private $seatType; |
210
|
|
|
|
211
|
|
|
/** |
212
|
|
|
* @JsonProperty(Long, "ticket_price") |
213
|
|
|
*/ |
214
|
|
|
private $ticketPrice; |
215
|
|
|
|
216
|
|
|
/** |
217
|
|
|
* @JsonProperty(String, "sub_pdd_order_id") |
218
|
|
|
*/ |
219
|
|
|
private $subPddOrderId; |
220
|
|
|
|
221
|
|
|
/** |
222
|
|
|
* @JsonProperty(String, "birthday") |
223
|
|
|
*/ |
224
|
|
|
private $birthday; |
225
|
|
|
|
226
|
|
|
/** |
227
|
|
|
* @JsonProperty(String, "effective_Date") |
228
|
|
|
*/ |
229
|
|
|
private $effectiveDate; |
230
|
|
|
|
231
|
|
|
/** |
232
|
|
|
* @JsonProperty(String, "sex") |
233
|
|
|
*/ |
234
|
|
|
private $sex; |
235
|
|
|
|
236
|
|
|
/** |
237
|
|
|
* @JsonProperty(String, "country") |
238
|
|
|
*/ |
239
|
|
|
private $country; |
240
|
|
|
|
241
|
|
|
/** |
242
|
|
|
* @JsonProperty(String, "mobile") |
243
|
|
|
*/ |
244
|
|
|
private $mobile; |
245
|
|
|
|
246
|
|
|
/** |
247
|
|
|
* @JsonProperty(String, "email") |
248
|
|
|
*/ |
249
|
|
|
private $email; |
250
|
|
|
|
251
|
|
|
public function setCardType($cardType) |
252
|
|
|
{ |
253
|
|
|
$this->cardType = $cardType; |
254
|
|
|
} |
255
|
|
|
|
256
|
|
|
public function setCardNo($cardNo) |
257
|
|
|
{ |
258
|
|
|
$this->cardNo = $cardNo; |
259
|
|
|
} |
260
|
|
|
|
261
|
|
|
public function setName($name) |
262
|
|
|
{ |
263
|
|
|
$this->name = $name; |
264
|
|
|
} |
265
|
|
|
|
266
|
|
|
public function setTicketType($ticketType) |
267
|
|
|
{ |
268
|
|
|
$this->ticketType = $ticketType; |
269
|
|
|
} |
270
|
|
|
|
271
|
|
|
public function setSeatType($seatType) |
272
|
|
|
{ |
273
|
|
|
$this->seatType = $seatType; |
274
|
|
|
} |
275
|
|
|
|
276
|
|
|
public function setTicketPrice($ticketPrice) |
277
|
|
|
{ |
278
|
|
|
$this->ticketPrice = $ticketPrice; |
279
|
|
|
} |
280
|
|
|
|
281
|
|
|
public function setSubPddOrderId($subPddOrderId) |
282
|
|
|
{ |
283
|
|
|
$this->subPddOrderId = $subPddOrderId; |
284
|
|
|
} |
285
|
|
|
|
286
|
|
|
public function setBirthday($birthday) |
287
|
|
|
{ |
288
|
|
|
$this->birthday = $birthday; |
289
|
|
|
} |
290
|
|
|
|
291
|
|
|
public function setEffectiveDate($effectiveDate) |
292
|
|
|
{ |
293
|
|
|
$this->effectiveDate = $effectiveDate; |
294
|
|
|
} |
295
|
|
|
|
296
|
|
|
public function setSex($sex) |
297
|
|
|
{ |
298
|
|
|
$this->sex = $sex; |
299
|
|
|
} |
300
|
|
|
|
301
|
|
|
public function setCountry($country) |
302
|
|
|
{ |
303
|
|
|
$this->country = $country; |
304
|
|
|
} |
305
|
|
|
|
306
|
|
|
public function setMobile($mobile) |
307
|
|
|
{ |
308
|
|
|
$this->mobile = $mobile; |
309
|
|
|
} |
310
|
|
|
|
311
|
|
|
public function setEmail($email) |
312
|
|
|
{ |
313
|
|
|
$this->email = $email; |
314
|
|
|
} |
315
|
|
|
|
316
|
|
|
} |
317
|
|
|
|