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