1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace Ticketpark\SaferpayJson\Request\Container; |
6
|
|
|
|
7
|
|
|
use JMS\Serializer\Annotation\SerializedName; |
8
|
|
|
use JMS\Serializer\Annotation\Type; |
9
|
|
|
|
10
|
|
|
final class ChosenPlan |
11
|
|
|
{ |
12
|
|
|
/** |
13
|
|
|
* @var int |
14
|
|
|
* @SerializedName("NumberOfInstallments") |
15
|
|
|
* @Type("int") |
16
|
|
|
*/ |
17
|
|
|
private $numberOfInstallments; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @var string|null |
21
|
|
|
* @SerializedName("InterestRate") |
22
|
|
|
*/ |
23
|
|
|
private $interestRate; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* @var Amount|null |
27
|
|
|
* @SerializedName("InstallmentFee") |
28
|
|
|
* @Type("Ticketpark\SaferpayJson\Request\Container\Amount") |
29
|
|
|
*/ |
30
|
|
|
private $installmentFee; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @var string|null |
34
|
|
|
* @SerializedName("AnnualPercentageRate") |
35
|
|
|
*/ |
36
|
|
|
private $annualPercentageRate; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @var Amount|null |
40
|
|
|
* @SerializedName("FirstInstallmentAmount") |
41
|
|
|
* @Type("Ticketpark\SaferpayJson\Request\Container\Amount") |
42
|
|
|
*/ |
43
|
|
|
private $firstInstallmentAmount; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @var Amount|null |
47
|
|
|
* @SerializedName("SubsequentInstallmentAmount") |
48
|
|
|
* @Type("Ticketpark\SaferpayJson\Request\Container\Amount") |
49
|
|
|
*/ |
50
|
|
|
private $subsequentInstallmentAmount; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @var Amount|null |
54
|
|
|
* @SerializedName("TotalAmountDue") |
55
|
|
|
* @Type("Ticketpark\SaferpayJson\Request\Container\Amount") |
56
|
|
|
*/ |
57
|
|
|
private $totalAmountDue; |
58
|
|
|
|
59
|
|
|
public function __construct(int $numberOfInstallments) |
60
|
|
|
{ |
61
|
|
|
$this->numberOfInstallments = $numberOfInstallments; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
public function getNumberOfInstallments(): int |
65
|
|
|
{ |
66
|
|
|
return $this->numberOfInstallments; |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
public function getInterestRate(): ?string |
70
|
|
|
{ |
71
|
|
|
return $this->interestRate; |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
public function setInterestRate(?string $interestRate): self |
75
|
|
|
{ |
76
|
|
|
$this->interestRate = $interestRate; |
77
|
|
|
|
78
|
|
|
return $this; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
public function getInstallmentFee(): ?Amount |
82
|
|
|
{ |
83
|
|
|
return $this->installmentFee; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
public function setInstallmentFee(?Amount $installmentFee): self |
87
|
|
|
{ |
88
|
|
|
$this->installmentFee = $installmentFee; |
89
|
|
|
|
90
|
|
|
return $this; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
public function getAnnualPercentageRate(): ?string |
94
|
|
|
{ |
95
|
|
|
return $this->annualPercentageRate; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
public function setAnnualPercentageRate(?string $annualPercentageRate): self |
99
|
|
|
{ |
100
|
|
|
$this->annualPercentageRate = $annualPercentageRate; |
101
|
|
|
|
102
|
|
|
return $this; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
public function getFirstInstallmentAmount(): ?Amount |
106
|
|
|
{ |
107
|
|
|
return $this->firstInstallmentAmount; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
public function setFirstInstallmentAmount(?Amount $firstInstallmentAmount): self |
111
|
|
|
{ |
112
|
|
|
$this->firstInstallmentAmount = $firstInstallmentAmount; |
113
|
|
|
|
114
|
|
|
return $this; |
115
|
|
|
} |
116
|
|
|
|
117
|
|
|
public function getSubsequentInstallmentAmount(): ?Amount |
118
|
|
|
{ |
119
|
|
|
return $this->subsequentInstallmentAmount; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
public function setSubsequentInstallmentAmount(?Amount $subsequentInstallmentAmount): self |
123
|
|
|
{ |
124
|
|
|
$this->subsequentInstallmentAmount = $subsequentInstallmentAmount; |
125
|
|
|
|
126
|
|
|
return $this; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
public function getTotalAmountDue(): ?Amount |
130
|
|
|
{ |
131
|
|
|
return $this->totalAmountDue; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
public function setTotalAmountDue(?Amount $totalAmountDue): self |
135
|
|
|
{ |
136
|
|
|
$this->totalAmountDue = $totalAmountDue; |
137
|
|
|
|
138
|
|
|
return $this; |
139
|
|
|
} |
140
|
|
|
} |
141
|
|
|
|