1 | <?php |
||
16 | class PreApproval |
||
17 | { |
||
18 | use SerializerTrait; |
||
19 | |||
20 | /** |
||
21 | * @Serializer\XmlElement(cdata=false) |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | private $name; |
||
26 | |||
27 | /** |
||
28 | * @Serializer\SerializedName("charge") |
||
29 | * @Serializer\XmlElement(cdata=false) |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | private $chargeType; |
||
34 | |||
35 | /** |
||
36 | * @Serializer\XmlElement(cdata=false) |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | private $details; |
||
41 | |||
42 | /** |
||
43 | * @Serializer\XmlElement(cdata=false) |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | private $period; |
||
48 | |||
49 | /** |
||
50 | * @Serializer\Type("DateTime<'Y-m-d\TH:i:sP'>") |
||
51 | * @Serializer\XmlElement(cdata=false) |
||
52 | * |
||
53 | * @var DateTime |
||
54 | */ |
||
55 | private $finalDate; |
||
56 | |||
57 | /** |
||
58 | * @Serializer\XmlElement(cdata=false) |
||
59 | * |
||
60 | * @var float |
||
61 | */ |
||
62 | private $maxTotalAmount; |
||
63 | |||
64 | /** |
||
65 | * @Serializer\XmlElement(cdata=false) |
||
66 | * |
||
67 | * @var float |
||
68 | */ |
||
69 | private $amountPerPayment; |
||
70 | |||
71 | /** |
||
72 | * @Serializer\XmlElement(cdata=false) |
||
73 | * |
||
74 | * @var float |
||
75 | */ |
||
76 | private $maxAmountPerPayment; |
||
77 | |||
78 | /** |
||
79 | * @Serializer\Type("integer") |
||
80 | * |
||
81 | * @var int |
||
82 | */ |
||
83 | private $maxPaymentsPerPeriod; |
||
84 | |||
85 | /** |
||
86 | * @Serializer\XmlElement(cdata=false) |
||
87 | * |
||
88 | * @var float |
||
89 | */ |
||
90 | private $maxAmountPerPeriod; |
||
91 | |||
92 | /** |
||
93 | * @Serializer\Type("DateTime<'Y-m-d\TH:i:sP','00:00'>") |
||
94 | * @Serializer\XmlElement(cdata=false) |
||
95 | * |
||
96 | * @var DateTime |
||
97 | */ |
||
98 | private $initialDate; |
||
99 | |||
100 | /** |
||
101 | * @return string |
||
102 | */ |
||
103 | 2 | public function getName() |
|
107 | |||
108 | /** |
||
109 | * @param string $name |
||
110 | */ |
||
111 | 2 | public function setName($name) |
|
115 | |||
116 | /** |
||
117 | * @return string |
||
118 | */ |
||
119 | 2 | public function getChargeType() |
|
123 | |||
124 | /** |
||
125 | * @param string $chargeType |
||
126 | * |
||
127 | * @throws InvalidArgumentException |
||
128 | */ |
||
129 | 4 | public function setChargeType($chargeType) |
|
137 | |||
138 | /** |
||
139 | * @return string |
||
140 | */ |
||
141 | 2 | public function getDetails() |
|
145 | |||
146 | /** |
||
147 | * @param string $details |
||
148 | */ |
||
149 | 2 | public function setDetails($details) |
|
153 | |||
154 | /** |
||
155 | * @return string |
||
156 | */ |
||
157 | 2 | public function getPeriod() |
|
161 | |||
162 | /** |
||
163 | * @param string $period |
||
164 | * |
||
165 | * @throws InvalidArgumentException |
||
166 | */ |
||
167 | 3 | public function setPeriod($period) |
|
175 | |||
176 | /** |
||
177 | * @return DateTime |
||
178 | */ |
||
179 | 2 | public function getFinalDate() |
|
183 | |||
184 | /** |
||
185 | * @param DateTime $finalDate |
||
186 | */ |
||
187 | 2 | public function setFinalDate(DateTime $finalDate) |
|
191 | |||
192 | /** |
||
193 | * @return string |
||
194 | */ |
||
195 | 2 | public function getMaxTotalAmount() |
|
199 | |||
200 | /** |
||
201 | * @param float $maxTotalAmount |
||
202 | */ |
||
203 | 2 | public function setMaxTotalAmount($maxTotalAmount) |
|
207 | |||
208 | /** |
||
209 | * @return string |
||
210 | */ |
||
211 | 2 | public function getAmountPerPayment() |
|
215 | |||
216 | /** |
||
217 | * @param float $amountPerPayment |
||
218 | */ |
||
219 | 2 | public function setAmountPerPayment($amountPerPayment) |
|
223 | /** |
||
224 | * @return string |
||
225 | */ |
||
226 | 2 | public function getMaxAmountPerPayment() |
|
230 | |||
231 | /** |
||
232 | * @param float $maxAmountPerPayment |
||
233 | */ |
||
234 | 2 | public function setMaxAmountPerPayment($maxAmountPerPayment) |
|
238 | |||
239 | /** |
||
240 | * @return int |
||
241 | */ |
||
242 | 2 | public function getMaxPaymentsPerPeriod() |
|
246 | |||
247 | /** |
||
248 | * @param int $maxPaymentsPerPeriod |
||
249 | */ |
||
250 | 2 | public function setMaxPaymentsPerPeriod($maxPaymentsPerPeriod) |
|
254 | |||
255 | /** |
||
256 | * @return string |
||
257 | */ |
||
258 | 2 | public function getMaxAmountPerPeriod() |
|
262 | |||
263 | /** |
||
264 | * @param float $maxAmountPerPeriod |
||
265 | */ |
||
266 | 2 | public function setMaxAmountPerPeriod($maxAmountPerPeriod) |
|
270 | |||
271 | /** |
||
272 | * @return DateTime |
||
273 | */ |
||
274 | 2 | public function getInitialDate() |
|
278 | |||
279 | /** |
||
280 | * @param DateTime $initialDate |
||
281 | */ |
||
282 | 2 | public function setInitialDate(DateTime $initialDate) |
|
286 | } |
||
287 |