|
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 PddTrainChangeTicketRequest 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, "order_id") |
|
20
|
|
|
*/ |
|
21
|
|
|
private $orderId; |
|
22
|
|
|
|
|
23
|
|
|
/** |
|
24
|
|
|
* @JsonProperty(String, "new_depart_station") |
|
25
|
|
|
*/ |
|
26
|
|
|
private $newDepartStation; |
|
27
|
|
|
|
|
28
|
|
|
/** |
|
29
|
|
|
* @JsonProperty(String, "new_arrive_station") |
|
30
|
|
|
*/ |
|
31
|
|
|
private $newArriveStation; |
|
32
|
|
|
|
|
33
|
|
|
/** |
|
34
|
|
|
* @JsonProperty(String, "new_train_date") |
|
35
|
|
|
*/ |
|
36
|
|
|
private $newTrainDate; |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* @JsonProperty(String, "new_train_no") |
|
40
|
|
|
*/ |
|
41
|
|
|
private $newTrainNo; |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* @JsonProperty(String, "new_depart_time") |
|
45
|
|
|
*/ |
|
46
|
|
|
private $newDepartTime; |
|
47
|
|
|
|
|
48
|
|
|
/** |
|
49
|
|
|
* @JsonProperty(String, "new_arrive_time") |
|
50
|
|
|
*/ |
|
51
|
|
|
private $newArriveTime; |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* @JsonProperty(Integer, "new_seat_type") |
|
55
|
|
|
*/ |
|
56
|
|
|
private $newSeatType; |
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* @JsonProperty(String, "new_choose_seat") |
|
60
|
|
|
*/ |
|
61
|
|
|
private $newChooseSeat; |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainChangeTicketRequest_NewPassengerInfosItem>, "new_passenger_infos") |
|
65
|
|
|
*/ |
|
66
|
|
|
private $newPassengerInfos; |
|
67
|
|
|
|
|
68
|
|
|
protected function setUserParams(&$params) |
|
69
|
|
|
{ |
|
70
|
|
|
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId); |
|
71
|
|
|
$this->setUserParam($params, "order_id", $this->orderId); |
|
72
|
|
|
$this->setUserParam($params, "new_depart_station", $this->newDepartStation); |
|
73
|
|
|
$this->setUserParam($params, "new_arrive_station", $this->newArriveStation); |
|
74
|
|
|
$this->setUserParam($params, "new_train_date", $this->newTrainDate); |
|
75
|
|
|
$this->setUserParam($params, "new_train_no", $this->newTrainNo); |
|
76
|
|
|
$this->setUserParam($params, "new_depart_time", $this->newDepartTime); |
|
77
|
|
|
$this->setUserParam($params, "new_arrive_time", $this->newArriveTime); |
|
78
|
|
|
$this->setUserParam($params, "new_seat_type", $this->newSeatType); |
|
79
|
|
|
$this->setUserParam($params, "new_choose_seat", $this->newChooseSeat); |
|
80
|
|
|
$this->setUserParam($params, "new_passenger_infos", $this->newPassengerInfos); |
|
81
|
|
|
|
|
82
|
|
|
} |
|
83
|
|
|
|
|
84
|
|
|
public function getVersion() |
|
85
|
|
|
{ |
|
86
|
|
|
return "V1"; |
|
87
|
|
|
} |
|
88
|
|
|
|
|
89
|
|
|
public function getDataType() |
|
90
|
|
|
{ |
|
91
|
|
|
return "JSON"; |
|
92
|
|
|
} |
|
93
|
|
|
|
|
94
|
|
|
public function getType() |
|
95
|
|
|
{ |
|
96
|
|
|
return "pdd.train.change.ticket"; |
|
97
|
|
|
} |
|
98
|
|
|
|
|
99
|
|
|
public function setPddOrderId($pddOrderId) |
|
100
|
|
|
{ |
|
101
|
|
|
$this->pddOrderId = $pddOrderId; |
|
102
|
|
|
} |
|
103
|
|
|
|
|
104
|
|
|
public function setOrderId($orderId) |
|
105
|
|
|
{ |
|
106
|
|
|
$this->orderId = $orderId; |
|
107
|
|
|
} |
|
108
|
|
|
|
|
109
|
|
|
public function setNewDepartStation($newDepartStation) |
|
110
|
|
|
{ |
|
111
|
|
|
$this->newDepartStation = $newDepartStation; |
|
112
|
|
|
} |
|
113
|
|
|
|
|
114
|
|
|
public function setNewArriveStation($newArriveStation) |
|
115
|
|
|
{ |
|
116
|
|
|
$this->newArriveStation = $newArriveStation; |
|
117
|
|
|
} |
|
118
|
|
|
|
|
119
|
|
|
public function setNewTrainDate($newTrainDate) |
|
120
|
|
|
{ |
|
121
|
|
|
$this->newTrainDate = $newTrainDate; |
|
122
|
|
|
} |
|
123
|
|
|
|
|
124
|
|
|
public function setNewTrainNo($newTrainNo) |
|
125
|
|
|
{ |
|
126
|
|
|
$this->newTrainNo = $newTrainNo; |
|
127
|
|
|
} |
|
128
|
|
|
|
|
129
|
|
|
public function setNewDepartTime($newDepartTime) |
|
130
|
|
|
{ |
|
131
|
|
|
$this->newDepartTime = $newDepartTime; |
|
132
|
|
|
} |
|
133
|
|
|
|
|
134
|
|
|
public function setNewArriveTime($newArriveTime) |
|
135
|
|
|
{ |
|
136
|
|
|
$this->newArriveTime = $newArriveTime; |
|
137
|
|
|
} |
|
138
|
|
|
|
|
139
|
|
|
public function setNewSeatType($newSeatType) |
|
140
|
|
|
{ |
|
141
|
|
|
$this->newSeatType = $newSeatType; |
|
142
|
|
|
} |
|
143
|
|
|
|
|
144
|
|
|
public function setNewChooseSeat($newChooseSeat) |
|
145
|
|
|
{ |
|
146
|
|
|
$this->newChooseSeat = $newChooseSeat; |
|
147
|
|
|
} |
|
148
|
|
|
|
|
149
|
|
|
public function setNewPassengerInfos($newPassengerInfos) |
|
150
|
|
|
{ |
|
151
|
|
|
$this->newPassengerInfos = $newPassengerInfos; |
|
152
|
|
|
} |
|
153
|
|
|
|
|
154
|
|
|
} |
|
155
|
|
|
|
|
156
|
|
|
class PddTrainChangeTicketRequest_NewPassengerInfosItem extends PopBaseJsonEntity |
|
157
|
|
|
{ |
|
158
|
|
|
|
|
159
|
|
|
public function __construct() |
|
160
|
|
|
{ |
|
161
|
|
|
|
|
162
|
|
|
} |
|
163
|
|
|
|
|
164
|
|
|
/** |
|
165
|
|
|
* @JsonProperty(String, "card_type") |
|
166
|
|
|
*/ |
|
167
|
|
|
private $cardType; |
|
168
|
|
|
|
|
169
|
|
|
/** |
|
170
|
|
|
* @JsonProperty(String, "card_no") |
|
171
|
|
|
*/ |
|
172
|
|
|
private $cardNo; |
|
173
|
|
|
|
|
174
|
|
|
/** |
|
175
|
|
|
* @JsonProperty(String, "name") |
|
176
|
|
|
*/ |
|
177
|
|
|
private $name; |
|
178
|
|
|
|
|
179
|
|
|
/** |
|
180
|
|
|
* @JsonProperty(Integer, "ticket_type") |
|
181
|
|
|
*/ |
|
182
|
|
|
private $ticketType; |
|
183
|
|
|
|
|
184
|
|
|
/** |
|
185
|
|
|
* @JsonProperty(Integer, "seat_type") |
|
186
|
|
|
*/ |
|
187
|
|
|
private $seatType; |
|
188
|
|
|
|
|
189
|
|
|
/** |
|
190
|
|
|
* @JsonProperty(Long, "ticket_price") |
|
191
|
|
|
*/ |
|
192
|
|
|
private $ticketPrice; |
|
193
|
|
|
|
|
194
|
|
|
/** |
|
195
|
|
|
* @JsonProperty(String, "sub_order_id") |
|
196
|
|
|
*/ |
|
197
|
|
|
private $subOrderId; |
|
198
|
|
|
|
|
199
|
|
|
/** |
|
200
|
|
|
* @JsonProperty(String, "new_sub_pdd_order_id") |
|
201
|
|
|
*/ |
|
202
|
|
|
private $newSubPddOrderId; |
|
203
|
|
|
|
|
204
|
|
|
/** |
|
205
|
|
|
* @JsonProperty(String, "birthday") |
|
206
|
|
|
*/ |
|
207
|
|
|
private $birthday; |
|
208
|
|
|
|
|
209
|
|
|
/** |
|
210
|
|
|
* @JsonProperty(String, "effective_date") |
|
211
|
|
|
*/ |
|
212
|
|
|
private $effectiveDate; |
|
213
|
|
|
|
|
214
|
|
|
/** |
|
215
|
|
|
* @JsonProperty(String, "sex") |
|
216
|
|
|
*/ |
|
217
|
|
|
private $sex; |
|
218
|
|
|
|
|
219
|
|
|
/** |
|
220
|
|
|
* @JsonProperty(String, "country") |
|
221
|
|
|
*/ |
|
222
|
|
|
private $country; |
|
223
|
|
|
|
|
224
|
|
|
/** |
|
225
|
|
|
* @JsonProperty(String, "mobile") |
|
226
|
|
|
*/ |
|
227
|
|
|
private $mobile; |
|
228
|
|
|
|
|
229
|
|
|
/** |
|
230
|
|
|
* @JsonProperty(String, "email") |
|
231
|
|
|
*/ |
|
232
|
|
|
private $email; |
|
233
|
|
|
|
|
234
|
|
|
public function setCardType($cardType) |
|
235
|
|
|
{ |
|
236
|
|
|
$this->cardType = $cardType; |
|
237
|
|
|
} |
|
238
|
|
|
|
|
239
|
|
|
public function setCardNo($cardNo) |
|
240
|
|
|
{ |
|
241
|
|
|
$this->cardNo = $cardNo; |
|
242
|
|
|
} |
|
243
|
|
|
|
|
244
|
|
|
public function setName($name) |
|
245
|
|
|
{ |
|
246
|
|
|
$this->name = $name; |
|
247
|
|
|
} |
|
248
|
|
|
|
|
249
|
|
|
public function setTicketType($ticketType) |
|
250
|
|
|
{ |
|
251
|
|
|
$this->ticketType = $ticketType; |
|
252
|
|
|
} |
|
253
|
|
|
|
|
254
|
|
|
public function setSeatType($seatType) |
|
255
|
|
|
{ |
|
256
|
|
|
$this->seatType = $seatType; |
|
257
|
|
|
} |
|
258
|
|
|
|
|
259
|
|
|
public function setTicketPrice($ticketPrice) |
|
260
|
|
|
{ |
|
261
|
|
|
$this->ticketPrice = $ticketPrice; |
|
262
|
|
|
} |
|
263
|
|
|
|
|
264
|
|
|
public function setSubOrderId($subOrderId) |
|
265
|
|
|
{ |
|
266
|
|
|
$this->subOrderId = $subOrderId; |
|
267
|
|
|
} |
|
268
|
|
|
|
|
269
|
|
|
public function setNewSubPddOrderId($newSubPddOrderId) |
|
270
|
|
|
{ |
|
271
|
|
|
$this->newSubPddOrderId = $newSubPddOrderId; |
|
272
|
|
|
} |
|
273
|
|
|
|
|
274
|
|
|
public function setBirthday($birthday) |
|
275
|
|
|
{ |
|
276
|
|
|
$this->birthday = $birthday; |
|
277
|
|
|
} |
|
278
|
|
|
|
|
279
|
|
|
public function setEffectiveDate($effectiveDate) |
|
280
|
|
|
{ |
|
281
|
|
|
$this->effectiveDate = $effectiveDate; |
|
282
|
|
|
} |
|
283
|
|
|
|
|
284
|
|
|
public function setSex($sex) |
|
285
|
|
|
{ |
|
286
|
|
|
$this->sex = $sex; |
|
287
|
|
|
} |
|
288
|
|
|
|
|
289
|
|
|
public function setCountry($country) |
|
290
|
|
|
{ |
|
291
|
|
|
$this->country = $country; |
|
292
|
|
|
} |
|
293
|
|
|
|
|
294
|
|
|
public function setMobile($mobile) |
|
295
|
|
|
{ |
|
296
|
|
|
$this->mobile = $mobile; |
|
297
|
|
|
} |
|
298
|
|
|
|
|
299
|
|
|
public function setEmail($email) |
|
300
|
|
|
{ |
|
301
|
|
|
$this->email = $email; |
|
302
|
|
|
} |
|
303
|
|
|
|
|
304
|
|
|
} |
|
305
|
|
|
|