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