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

setTicketTime()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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 PddTicketSkuRuleAddRequest extends PopBaseHttpRequest
8
{
9
    public function __construct()
10
	{
11
12
	}
13
	/**
14
	* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookerInfoLimitation, "booker_info_limitation")
15
	*/
16
	private $bookerInfoLimitation;
17
18
	/**
19
	* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookingNotice, "booking_notice")
20
	*/
21
	private $bookingNotice;
22
23
	/**
24
	* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_OrderLimitation, "order_limitation")
25
	*/
26
	private $orderLimitation;
27
28
	/**
29
	* @JsonProperty(String, "out_rule_id")
30
	*/
31
	private $outRuleId;
32
33
	/**
34
	* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_ProviderContactInfo, "provider_contact_info")
35
	*/
36
	private $providerContactInfo;
37
38
	/**
39
	* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_RefundLimitations, "refund_limitations")
40
	*/
41
	private $refundLimitations;
42
43
	/**
44
	* @JsonProperty(String, "rule_name")
45
	*/
46
	private $ruleName;
47
48
	/**
49
	* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_TravelerInfoLimitation, "traveler_info_limitation")
50
	*/
51
	private $travelerInfoLimitation;
52
53
	/**
54
	* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_ValidLimitation, "valid_limitation")
55
	*/
56
	private $validLimitation;
57
58
	protected function setUserParams(&$params)
59
	{
60
		$this->setUserParam($params, "booker_info_limitation", $this->bookerInfoLimitation);
61
		$this->setUserParam($params, "booking_notice", $this->bookingNotice);
62
		$this->setUserParam($params, "order_limitation", $this->orderLimitation);
63
		$this->setUserParam($params, "out_rule_id", $this->outRuleId);
64
		$this->setUserParam($params, "provider_contact_info", $this->providerContactInfo);
65
		$this->setUserParam($params, "refund_limitations", $this->refundLimitations);
66
		$this->setUserParam($params, "rule_name", $this->ruleName);
67
		$this->setUserParam($params, "traveler_info_limitation", $this->travelerInfoLimitation);
68
		$this->setUserParam($params, "valid_limitation", $this->validLimitation);
69
70
	}
71
72
	public function getVersion()
73
	{
74
		return "V1";
75
	}
76
77
	public function getDataType()
78
	{
79
		return "JSON";
80
	}
81
82
	public function getType()
83
	{
84
		return "pdd.ticket.sku.rule.add";
85
	}
86
87
	public function setBookerInfoLimitation($bookerInfoLimitation)
88
	{
89
		$this->bookerInfoLimitation = $bookerInfoLimitation;
90
	}
91
92
	public function setBookingNotice($bookingNotice)
93
	{
94
		$this->bookingNotice = $bookingNotice;
95
	}
96
97
	public function setOrderLimitation($orderLimitation)
98
	{
99
		$this->orderLimitation = $orderLimitation;
100
	}
101
102
	public function setOutRuleId($outRuleId)
103
	{
104
		$this->outRuleId = $outRuleId;
105
	}
106
107
	public function setProviderContactInfo($providerContactInfo)
108
	{
109
		$this->providerContactInfo = $providerContactInfo;
110
	}
111
112
	public function setRefundLimitations($refundLimitations)
113
	{
114
		$this->refundLimitations = $refundLimitations;
115
	}
116
117
	public function setRuleName($ruleName)
118
	{
119
		$this->ruleName = $ruleName;
120
	}
121
122
	public function setTravelerInfoLimitation($travelerInfoLimitation)
123
	{
124
		$this->travelerInfoLimitation = $travelerInfoLimitation;
125
	}
126
127
	public function setValidLimitation($validLimitation)
128
	{
129
		$this->validLimitation = $validLimitation;
130
	}
131
132
}
133
134
class PddTicketSkuRuleAddRequest_BookerInfoLimitation extends PopBaseJsonEntity
135
{
136
137
	public function __construct()
138
	{
139
140
	}
141
142
	/**
143
	* @JsonProperty(Integer, "booker_required")
144
	*/
145
	private $bookerRequired;
146
147
	/**
148
	* @JsonProperty(Integer, "mobile")
149
	*/
150
	private $mobile;
151
152
	public function setBookerRequired($bookerRequired)
153
	{
154
		$this->bookerRequired = $bookerRequired;
155
	}
156
157
	public function setMobile($mobile)
158
	{
159
		$this->mobile = $mobile;
160
	}
161
162
}
163
164
class PddTicketSkuRuleAddRequest_BookingNotice extends PopBaseJsonEntity
165
{
166
167
	public function __construct()
168
	{
169
170
	}
171
172
	/**
173
	* @JsonProperty(String, "enter_address")
174
	*/
175
	private $enterAddress;
176
177
	/**
178
	* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookingNoticeEnterTimeItem>, "enter_time")
179
	*/
180
	private $enterTime;
181
182
	/**
183
	* @JsonProperty(String, "enter_ways")
184
	*/
185
	private $enterWays;
186
187
	/**
188
	* @JsonProperty(String, "extra_desc")
189
	*/
190
	private $extraDesc;
191
192
	/**
193
	* @JsonProperty(String, "fee_include")
194
	*/
195
	private $feeInclude;
196
197
	/**
198
	* @JsonProperty(String, "fee_not_include")
199
	*/
200
	private $feeNotInclude;
201
202
	/**
203
	* @JsonProperty(String, "important_notice")
204
	*/
205
	private $importantNotice;
206
207
	/**
208
	* @JsonProperty(Integer, "pass_time_limit")
209
	*/
210
	private $passTimeLimit;
211
212
	/**
213
	* @JsonProperty(String, "ticket_place")
214
	*/
215
	private $ticketPlace;
216
217
	/**
218
	* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookingNoticeTicketTimeItem>, "ticket_time")
219
	*/
220
	private $ticketTime;
221
222
	public function setEnterAddress($enterAddress)
223
	{
224
		$this->enterAddress = $enterAddress;
225
	}
226
227
	public function setEnterTime($enterTime)
228
	{
229
		$this->enterTime = $enterTime;
230
	}
231
232
	public function setEnterWays($enterWays)
233
	{
234
		$this->enterWays = $enterWays;
235
	}
236
237
	public function setExtraDesc($extraDesc)
238
	{
239
		$this->extraDesc = $extraDesc;
240
	}
241
242
	public function setFeeInclude($feeInclude)
243
	{
244
		$this->feeInclude = $feeInclude;
245
	}
246
247
	public function setFeeNotInclude($feeNotInclude)
248
	{
249
		$this->feeNotInclude = $feeNotInclude;
250
	}
251
252
	public function setImportantNotice($importantNotice)
253
	{
254
		$this->importantNotice = $importantNotice;
255
	}
256
257
	public function setPassTimeLimit($passTimeLimit)
258
	{
259
		$this->passTimeLimit = $passTimeLimit;
260
	}
261
262
	public function setTicketPlace($ticketPlace)
263
	{
264
		$this->ticketPlace = $ticketPlace;
265
	}
266
267
	public function setTicketTime($ticketTime)
268
	{
269
		$this->ticketTime = $ticketTime;
270
	}
271
272
}
273
274
class PddTicketSkuRuleAddRequest_BookingNoticeEnterTimeItem extends PopBaseJsonEntity
275
{
276
277
	public function __construct()
278
	{
279
280
	}
281
282
	/**
283
	* @JsonProperty(String, "comment")
284
	*/
285
	private $comment;
286
287
	/**
288
	* @JsonProperty(String, "end_at")
289
	*/
290
	private $endAt;
291
292
	/**
293
	* @JsonProperty(String, "start_at")
294
	*/
295
	private $startAt;
296
297
	public function setComment($comment)
298
	{
299
		$this->comment = $comment;
300
	}
301
302
	public function setEndAt($endAt)
303
	{
304
		$this->endAt = $endAt;
305
	}
306
307
	public function setStartAt($startAt)
308
	{
309
		$this->startAt = $startAt;
310
	}
311
312
}
313
314
class PddTicketSkuRuleAddRequest_BookingNoticeTicketTimeItem extends PopBaseJsonEntity
315
{
316
317
	public function __construct()
318
	{
319
320
	}
321
322
	/**
323
	* @JsonProperty(String, "comment")
324
	*/
325
	private $comment;
326
327
	/**
328
	* @JsonProperty(String, "end_at")
329
	*/
330
	private $endAt;
331
332
	/**
333
	* @JsonProperty(String, "start_at")
334
	*/
335
	private $startAt;
336
337
	public function setComment($comment)
338
	{
339
		$this->comment = $comment;
340
	}
341
342
	public function setEndAt($endAt)
343
	{
344
		$this->endAt = $endAt;
345
	}
346
347
	public function setStartAt($startAt)
348
	{
349
		$this->startAt = $startAt;
350
	}
351
352
}
353
354
class PddTicketSkuRuleAddRequest_OrderLimitation extends PopBaseJsonEntity
355
{
356
357
	public function __construct()
358
	{
359
360
	}
361
362
	/**
363
	* @JsonProperty(Integer, "cycle_length")
364
	*/
365
	private $cycleLength;
366
367
	/**
368
	* @JsonProperty(Integer, "limitation_type")
369
	*/
370
	private $limitationType;
371
372
	/**
373
	* @JsonProperty(Integer, "limit_cycle")
374
	*/
375
	private $limitCycle;
376
377
	/**
378
	* @JsonProperty(Integer, "limit_num")
379
	*/
380
	private $limitNum;
381
382
	public function setCycleLength($cycleLength)
383
	{
384
		$this->cycleLength = $cycleLength;
385
	}
386
387
	public function setLimitationType($limitationType)
388
	{
389
		$this->limitationType = $limitationType;
390
	}
391
392
	public function setLimitCycle($limitCycle)
393
	{
394
		$this->limitCycle = $limitCycle;
395
	}
396
397
	public function setLimitNum($limitNum)
398
	{
399
		$this->limitNum = $limitNum;
400
	}
401
402
}
403
404
class PddTicketSkuRuleAddRequest_ProviderContactInfo extends PopBaseJsonEntity
405
{
406
407
	public function __construct()
408
	{
409
410
	}
411
412
	/**
413
	* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_ProviderContactInfoProviderBusinessHourItem>, "provider_business_hour")
414
	*/
415
	private $providerBusinessHour;
416
417
	/**
418
	* @JsonProperty(String, "provider_name")
419
	*/
420
	private $providerName;
421
422
	/**
423
	* @JsonProperty(String, "provider_telephone")
424
	*/
425
	private $providerTelephone;
426
427
	public function setProviderBusinessHour($providerBusinessHour)
428
	{
429
		$this->providerBusinessHour = $providerBusinessHour;
430
	}
431
432
	public function setProviderName($providerName)
433
	{
434
		$this->providerName = $providerName;
435
	}
436
437
	public function setProviderTelephone($providerTelephone)
438
	{
439
		$this->providerTelephone = $providerTelephone;
440
	}
441
442
}
443
444
class PddTicketSkuRuleAddRequest_ProviderContactInfoProviderBusinessHourItem extends PopBaseJsonEntity
445
{
446
447
	public function __construct()
448
	{
449
450
	}
451
452
	/**
453
	* @JsonProperty(String, "close_at")
454
	*/
455
	private $closeAt;
456
457
	/**
458
	* @JsonProperty(String, "open_at")
459
	*/
460
	private $openAt;
461
462
	/**
463
	* @JsonProperty(String, "time_info")
464
	*/
465
	private $timeInfo;
466
467
	public function setCloseAt($closeAt)
468
	{
469
		$this->closeAt = $closeAt;
470
	}
471
472
	public function setOpenAt($openAt)
473
	{
474
		$this->openAt = $openAt;
475
	}
476
477
	public function setTimeInfo($timeInfo)
478
	{
479
		$this->timeInfo = $timeInfo;
480
	}
481
482
}
483
484
class PddTicketSkuRuleAddRequest_RefundLimitations extends PopBaseJsonEntity
485
{
486
487
	public function __construct()
488
	{
489
490
	}
491
492
	/**
493
	* @JsonProperty(Integer, "is_refundable")
494
	*/
495
	private $isRefundable;
496
497
	/**
498
	* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_RefundLimitationsRefundRulesItem>, "refund_rules")
499
	*/
500
	private $refundRules;
501
502
	public function setIsRefundable($isRefundable)
503
	{
504
		$this->isRefundable = $isRefundable;
505
	}
506
507
	public function setRefundRules($refundRules)
508
	{
509
		$this->refundRules = $refundRules;
510
	}
511
512
}
513
514
class PddTicketSkuRuleAddRequest_RefundLimitationsRefundRulesItem extends PopBaseJsonEntity
515
{
516
517
	public function __construct()
518
	{
519
520
	}
521
522
	/**
523
	* @JsonProperty(Integer, "ahead_time")
524
	*/
525
	private $aheadTime;
526
527
	/**
528
	* @JsonProperty(Integer, "deduction_fee")
529
	*/
530
	private $deductionFee;
531
532
	/**
533
	* @JsonProperty(Integer, "deduction_unit")
534
	*/
535
	private $deductionUnit;
536
537
	/**
538
	* @JsonProperty(Integer, "type")
539
	*/
540
	private $type;
541
542
	public function setAheadTime($aheadTime)
543
	{
544
		$this->aheadTime = $aheadTime;
545
	}
546
547
	public function setDeductionFee($deductionFee)
548
	{
549
		$this->deductionFee = $deductionFee;
550
	}
551
552
	public function setDeductionUnit($deductionUnit)
553
	{
554
		$this->deductionUnit = $deductionUnit;
555
	}
556
557
	public function setType($type)
558
	{
559
		$this->type = $type;
560
	}
561
562
}
563
564
class PddTicketSkuRuleAddRequest_TravelerInfoLimitation extends PopBaseJsonEntity
565
{
566
567
	public function __construct()
568
	{
569
570
	}
571
572
	/**
573
	* @JsonProperty(Integer, "credential")
574
	*/
575
	private $credential;
576
577
	/**
578
	* @JsonProperty(Integer, "name")
579
	*/
580
	private $name;
581
582
	/**
583
	* @JsonProperty(Integer, "traveler_required")
584
	*/
585
	private $travelerRequired;
586
587
	public function setCredential($credential)
588
	{
589
		$this->credential = $credential;
590
	}
591
592
	public function setName($name)
593
	{
594
		$this->name = $name;
595
	}
596
597
	public function setTravelerRequired($travelerRequired)
598
	{
599
		$this->travelerRequired = $travelerRequired;
600
	}
601
602
}
603
604
class PddTicketSkuRuleAddRequest_ValidLimitation extends PopBaseJsonEntity
605
{
606
607
	public function __construct()
608
	{
609
610
	}
611
612
	/**
613
	* @JsonProperty(Integer, "days_time")
614
	*/
615
	private $daysTime;
616
617
	/**
618
	* @JsonProperty(Long, "end_time")
619
	*/
620
	private $endTime;
621
622
	/**
623
	* @JsonProperty(Long, "start_time")
624
	*/
625
	private $startTime;
626
627
	/**
628
	* @JsonProperty(Integer, "time_type")
629
	*/
630
	private $timeType;
631
632
	public function setDaysTime($daysTime)
633
	{
634
		$this->daysTime = $daysTime;
635
	}
636
637
	public function setEndTime($endTime)
638
	{
639
		$this->endTime = $endTime;
640
	}
641
642
	public function setStartTime($startTime)
643
	{
644
		$this->startTime = $startTime;
645
	}
646
647
	public function setTimeType($timeType)
648
	{
649
		$this->timeType = $timeType;
650
	}
651
652
}
653