1
|
|
|
<?php declare(strict_types=1); |
2
|
|
|
|
3
|
|
|
namespace Ticketpark\SaferpayJson\Response\Container; |
4
|
|
|
|
5
|
|
|
use JMS\Serializer\Annotation\SerializedName; |
6
|
|
|
use JMS\Serializer\Annotation\Type; |
7
|
|
|
|
8
|
|
|
final class CustomPlan |
9
|
|
|
{ |
10
|
|
|
/** |
11
|
|
|
* @var int|null |
12
|
|
|
* @SerializedName("MinimumNumberOfInstallments") |
13
|
|
|
* @Type("int") |
14
|
|
|
*/ |
15
|
|
|
private $minimumNumberOfInstallments; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* @var int|null |
19
|
|
|
* @SerializedName("MaximumNumberOfInstallments") |
20
|
|
|
* @Type("int") |
21
|
|
|
*/ |
22
|
|
|
private $maximumNumberOfInstallments; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @var string|null |
26
|
|
|
* @SerializedName("InterestRate") |
27
|
|
|
* @Type("string") |
28
|
|
|
*/ |
29
|
|
|
private $interestRate; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @var Amount|null |
33
|
|
|
* @SerializedName("InstallmentFee") |
34
|
|
|
* @Type("Ticketpark\SaferpayJson\Response\Container\Amount") |
35
|
|
|
*/ |
36
|
|
|
private $installmentFee; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var string|null |
40
|
|
|
* @SerializedName("AnnualPercentageRate") |
41
|
|
|
* @Type("string") |
42
|
|
|
*/ |
43
|
|
|
private $annualPercentageRate; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @var Amount|null |
47
|
|
|
* @SerializedName("TotalAmountDue") |
48
|
|
|
* @Type("Ticketpark\SaferpayJson\Response\Container\Amount") |
49
|
|
|
*/ |
50
|
|
|
private $totalAmountDue; |
51
|
|
|
|
52
|
|
|
public function getMinimumNumberOfInstallments(): ?int |
53
|
|
|
{ |
54
|
|
|
return $this->minimumNumberOfInstallments; |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
public function getMaximumNumberOfInstallments(): ?int |
58
|
|
|
{ |
59
|
|
|
return $this->maximumNumberOfInstallments; |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
public function getInterestRate(): ?string |
63
|
|
|
{ |
64
|
|
|
return $this->interestRate; |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
public function getInstallmentFee(): ?Amount |
68
|
|
|
{ |
69
|
|
|
return $this->installmentFee; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
public function getAnnualPercentageRate(): ?string |
73
|
|
|
{ |
74
|
|
|
return $this->annualPercentageRate; |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
public function getTotalAmountDue(): ?Amount |
78
|
|
|
{ |
79
|
|
|
return $this->totalAmountDue; |
80
|
|
|
} |
81
|
|
|
} |
82
|
|
|
|