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

PddTrainCallbackChangeReserveRequest_NewPassengersItem   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 116
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 23
c 1
b 0
f 0
dl 0
loc 116
rs 10
wmc 12

12 Methods

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