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