Passed
Push — v6 ( fe03e1...0ec70f )
by 光春
04:11
created

PddTrainCallbackGrabRequest::setUserParams()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 26
Code Lines 24

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 24
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 26
rs 9.536
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 PddTrainCallbackGrabRequest extends PopBaseHttpRequest
8
{
9
    public function __construct()
10
	{
11
12
	}
13
	/**
14
	* @JsonProperty(String, "arrive_station")
15
	*/
16
	private $arriveStation;
17
18
	/**
19
	* @JsonProperty(String, "arrive_station_code")
20
	*/
21
	private $arriveStationCode;
22
23
	/**
24
	* @JsonProperty(String, "arrive_time")
25
	*/
26
	private $arriveTime;
27
28
	/**
29
	* @JsonProperty(Integer, "code")
30
	*/
31
	private $code;
32
33
	/**
34
	* @JsonProperty(String, "crh_order_id")
35
	*/
36
	private $crhOrderId;
37
38
	/**
39
	* @JsonProperty(String, "depart_station")
40
	*/
41
	private $departStation;
42
43
	/**
44
	* @JsonProperty(String, "depart_station_code")
45
	*/
46
	private $departStationCode;
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(Long, "order_ticket_price")
65
	*/
66
	private $orderTicketPrice;
67
68
	/**
69
	* @JsonProperty(String, "order_time")
70
	*/
71
	private $orderTime;
72
73
	/**
74
	* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCallbackGrabRequest_PassengersItem>, "passengers")
75
	*/
76
	private $passengers;
77
78
	/**
79
	* @JsonProperty(String, "pdd_order_id")
80
	*/
81
	private $pddOrderId;
82
83
	/**
84
	* @JsonProperty(Integer, "ticket_num")
85
	*/
86
	private $ticketNum;
87
88
	/**
89
	* @JsonProperty(String, "train_date")
90
	*/
91
	private $trainDate;
92
93
	/**
94
	* @JsonProperty(String, "train_no")
95
	*/
96
	private $trainNo;
97
98
	/**
99
	* @JsonProperty(String, "travel_time")
100
	*/
101
	private $travelTime;
102
103
	/**
104
	* @JsonProperty(String, "vendor_time")
105
	*/
106
	private $vendorTime;
107
108
	/**
109
	* @JsonProperty(String, "end_time")
110
	*/
111
	private $endTime;
112
113
	/**
114
	* @JsonProperty(Integer, "channel")
115
	*/
116
	private $channel;
117
118
	/**
119
	* @JsonProperty(Integer, "id_card_check_in")
120
	*/
121
	private $idCardCheckIn;
122
123
	/**
124
	* @JsonProperty(String, "gate_no")
125
	*/
126
	private $gateNo;
127
128
	/**
129
	* @JsonProperty(String, "distance")
130
	*/
131
	private $distance;
132
133
	protected function setUserParams(&$params)
134
	{
135
		$this->setUserParam($params, "arrive_station", $this->arriveStation);
136
		$this->setUserParam($params, "arrive_station_code", $this->arriveStationCode);
137
		$this->setUserParam($params, "arrive_time", $this->arriveTime);
138
		$this->setUserParam($params, "code", $this->code);
139
		$this->setUserParam($params, "crh_order_id", $this->crhOrderId);
140
		$this->setUserParam($params, "depart_station", $this->departStation);
141
		$this->setUserParam($params, "depart_station_code", $this->departStationCode);
142
		$this->setUserParam($params, "depart_time", $this->departTime);
143
		$this->setUserParam($params, "msg", $this->msg);
144
		$this->setUserParam($params, "order_id", $this->orderId);
145
		$this->setUserParam($params, "order_ticket_price", $this->orderTicketPrice);
146
		$this->setUserParam($params, "order_time", $this->orderTime);
147
		$this->setUserParam($params, "passengers", $this->passengers);
148
		$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
149
		$this->setUserParam($params, "ticket_num", $this->ticketNum);
150
		$this->setUserParam($params, "train_date", $this->trainDate);
151
		$this->setUserParam($params, "train_no", $this->trainNo);
152
		$this->setUserParam($params, "travel_time", $this->travelTime);
153
		$this->setUserParam($params, "vendor_time", $this->vendorTime);
154
		$this->setUserParam($params, "end_time", $this->endTime);
155
		$this->setUserParam($params, "channel", $this->channel);
156
		$this->setUserParam($params, "id_card_check_in", $this->idCardCheckIn);
157
		$this->setUserParam($params, "gate_no", $this->gateNo);
158
		$this->setUserParam($params, "distance", $this->distance);
159
160
	}
161
162
	public function getVersion()
163
	{
164
		return "V1";
165
	}
166
167
	public function getDataType()
168
	{
169
		return "JSON";
170
	}
171
172
	public function getType()
173
	{
174
		return "pdd.train.callback.grab";
175
	}
176
177
	public function setArriveStation($arriveStation)
178
	{
179
		$this->arriveStation = $arriveStation;
180
	}
181
182
	public function setArriveStationCode($arriveStationCode)
183
	{
184
		$this->arriveStationCode = $arriveStationCode;
185
	}
186
187
	public function setArriveTime($arriveTime)
188
	{
189
		$this->arriveTime = $arriveTime;
190
	}
191
192
	public function setCode($code)
193
	{
194
		$this->code = $code;
195
	}
196
197
	public function setCrhOrderId($crhOrderId)
198
	{
199
		$this->crhOrderId = $crhOrderId;
200
	}
201
202
	public function setDepartStation($departStation)
203
	{
204
		$this->departStation = $departStation;
205
	}
206
207
	public function setDepartStationCode($departStationCode)
208
	{
209
		$this->departStationCode = $departStationCode;
210
	}
211
212
	public function setDepartTime($departTime)
213
	{
214
		$this->departTime = $departTime;
215
	}
216
217
	public function setMsg($msg)
218
	{
219
		$this->msg = $msg;
220
	}
221
222
	public function setOrderId($orderId)
223
	{
224
		$this->orderId = $orderId;
225
	}
226
227
	public function setOrderTicketPrice($orderTicketPrice)
228
	{
229
		$this->orderTicketPrice = $orderTicketPrice;
230
	}
231
232
	public function setOrderTime($orderTime)
233
	{
234
		$this->orderTime = $orderTime;
235
	}
236
237
	public function setPassengers($passengers)
238
	{
239
		$this->passengers = $passengers;
240
	}
241
242
	public function setPddOrderId($pddOrderId)
243
	{
244
		$this->pddOrderId = $pddOrderId;
245
	}
246
247
	public function setTicketNum($ticketNum)
248
	{
249
		$this->ticketNum = $ticketNum;
250
	}
251
252
	public function setTrainDate($trainDate)
253
	{
254
		$this->trainDate = $trainDate;
255
	}
256
257
	public function setTrainNo($trainNo)
258
	{
259
		$this->trainNo = $trainNo;
260
	}
261
262
	public function setTravelTime($travelTime)
263
	{
264
		$this->travelTime = $travelTime;
265
	}
266
267
	public function setVendorTime($vendorTime)
268
	{
269
		$this->vendorTime = $vendorTime;
270
	}
271
272
	public function setEndTime($endTime)
273
	{
274
		$this->endTime = $endTime;
275
	}
276
277
	public function setChannel($channel)
278
	{
279
		$this->channel = $channel;
280
	}
281
282
	public function setIdCardCheckIn($idCardCheckIn)
283
	{
284
		$this->idCardCheckIn = $idCardCheckIn;
285
	}
286
287
	public function setGateNo($gateNo)
288
	{
289
		$this->gateNo = $gateNo;
290
	}
291
292
	public function setDistance($distance)
293
	{
294
		$this->distance = $distance;
295
	}
296
297
}
298
299
class PddTrainCallbackGrabRequest_PassengersItem extends PopBaseJsonEntity
300
{
301
302
	public function __construct()
303
	{
304
305
	}
306
307
	/**
308
	* @JsonProperty(String, "card_no")
309
	*/
310
	private $cardNo;
311
312
	/**
313
	* @JsonProperty(String, "card_type")
314
	*/
315
	private $cardType;
316
317
	/**
318
	* @JsonProperty(String, "coach_no")
319
	*/
320
	private $coachNo;
321
322
	/**
323
	* @JsonProperty(String, "name")
324
	*/
325
	private $name;
326
327
	/**
328
	* @JsonProperty(String, "seat_name")
329
	*/
330
	private $seatName;
331
332
	/**
333
	* @JsonProperty(String, "seat_no")
334
	*/
335
	private $seatNo;
336
337
	/**
338
	* @JsonProperty(Integer, "seat_type")
339
	*/
340
	private $seatType;
341
342
	/**
343
	* @JsonProperty(String, "seat_type_name")
344
	*/
345
	private $seatTypeName;
346
347
	/**
348
	* @JsonProperty(Integer, "status")
349
	*/
350
	private $status;
351
352
	/**
353
	* @JsonProperty(String, "sub_order_id")
354
	*/
355
	private $subOrderId;
356
357
	/**
358
	* @JsonProperty(String, "sub_pdd_order_id")
359
	*/
360
	private $subPddOrderId;
361
362
	/**
363
	* @JsonProperty(Long, "ticket_price")
364
	*/
365
	private $ticketPrice;
366
367
	/**
368
	* @JsonProperty(Integer, "ticket_type")
369
	*/
370
	private $ticketType;
371
372
	public function setCardNo($cardNo)
373
	{
374
		$this->cardNo = $cardNo;
375
	}
376
377
	public function setCardType($cardType)
378
	{
379
		$this->cardType = $cardType;
380
	}
381
382
	public function setCoachNo($coachNo)
383
	{
384
		$this->coachNo = $coachNo;
385
	}
386
387
	public function setName($name)
388
	{
389
		$this->name = $name;
390
	}
391
392
	public function setSeatName($seatName)
393
	{
394
		$this->seatName = $seatName;
395
	}
396
397
	public function setSeatNo($seatNo)
398
	{
399
		$this->seatNo = $seatNo;
400
	}
401
402
	public function setSeatType($seatType)
403
	{
404
		$this->seatType = $seatType;
405
	}
406
407
	public function setSeatTypeName($seatTypeName)
408
	{
409
		$this->seatTypeName = $seatTypeName;
410
	}
411
412
	public function setStatus($status)
413
	{
414
		$this->status = $status;
415
	}
416
417
	public function setSubOrderId($subOrderId)
418
	{
419
		$this->subOrderId = $subOrderId;
420
	}
421
422
	public function setSubPddOrderId($subPddOrderId)
423
	{
424
		$this->subPddOrderId = $subPddOrderId;
425
	}
426
427
	public function setTicketPrice($ticketPrice)
428
	{
429
		$this->ticketPrice = $ticketPrice;
430
	}
431
432
	public function setTicketType($ticketType)
433
	{
434
		$this->ticketType = $ticketType;
435
	}
436
437
}
438