Complex classes like Payment often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use Payment, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
20 | abstract class Payment extends PaymentRequest |
||
21 | { |
||
22 | /** |
||
23 | * @var int |
||
24 | * |
||
25 | * @ORM\Column(type="integer") |
||
26 | */ |
||
27 | protected $id; |
||
28 | |||
29 | /** |
||
30 | * @ORM\Column(type="string") |
||
31 | */ |
||
32 | protected $apiKey; |
||
33 | |||
34 | /** |
||
35 | * @ORM\Column(type="string") |
||
36 | */ |
||
37 | protected $merchant; |
||
38 | |||
39 | /** |
||
40 | * @ORM\Column(type="integer") |
||
41 | */ |
||
42 | protected $orderId; |
||
43 | |||
44 | /** |
||
45 | * @ORM\Column(type="text") |
||
46 | */ |
||
47 | protected $sessionId; |
||
48 | |||
49 | /** |
||
50 | * @ORM\Column(type="string") |
||
51 | */ |
||
52 | protected $currencySymbol; |
||
53 | |||
54 | /** |
||
55 | * @ORM\Column(type="decimal", precision=12, scale=2) |
||
56 | */ |
||
57 | protected $totalAmount; |
||
58 | |||
59 | /** |
||
60 | * @ORM\Column(type="string") |
||
61 | */ |
||
62 | protected $callBackUrl; |
||
63 | |||
64 | /** |
||
65 | * @ORM\Column(type="string") |
||
66 | */ |
||
67 | protected $fullCallBackOkUrl; |
||
68 | |||
69 | /** |
||
70 | * @ORM\Column(type="string") |
||
71 | */ |
||
72 | protected $callBackOkUrl; |
||
73 | |||
74 | /** |
||
75 | * @ORM\Column(type="string") |
||
76 | */ |
||
77 | protected $callBackServerUrl; |
||
78 | |||
79 | /** |
||
80 | * @ORM\Column(type="integer") |
||
81 | */ |
||
82 | protected $languageId; |
||
83 | |||
84 | /** |
||
85 | * @ORM\Column(type="string") |
||
86 | */ |
||
87 | protected $testMode; |
||
88 | |||
89 | /** |
||
90 | * @ORM\Column(type="integer") |
||
91 | */ |
||
92 | protected $paymentGatewayCurrencyCode; |
||
93 | |||
94 | /** |
||
95 | * @ORM\Column(type="integer") |
||
96 | */ |
||
97 | protected $cardTypeId; |
||
98 | |||
99 | /** |
||
100 | * @ORM\Column(type="string") |
||
101 | */ |
||
102 | protected $customerRekvNr; |
||
103 | |||
104 | /** |
||
105 | * @ORM\Column(type="string") |
||
106 | */ |
||
107 | protected $customerName; |
||
108 | |||
109 | /** |
||
110 | * @ORM\Column(type="string") |
||
111 | */ |
||
112 | protected $customerCompany; |
||
113 | |||
114 | /** |
||
115 | * @ORM\Column(type="string") |
||
116 | */ |
||
117 | protected $customerAddress; |
||
118 | |||
119 | /** |
||
120 | * @ORM\Column(type="string") |
||
121 | */ |
||
122 | protected $customerAddress2; |
||
123 | |||
124 | /** |
||
125 | * @ORM\Column(type="string") |
||
126 | */ |
||
127 | protected $customerZipCode; |
||
128 | |||
129 | /** |
||
130 | * @ORM\Column(type="string") |
||
131 | */ |
||
132 | protected $customerCity; |
||
133 | |||
134 | /** |
||
135 | * @ORM\Column(type="integer") |
||
136 | */ |
||
137 | protected $customerCountryId; |
||
138 | |||
139 | /** |
||
140 | * @ORM\Column(type="string") |
||
141 | */ |
||
142 | protected $customerCountry; |
||
143 | |||
144 | /** |
||
145 | * @ORM\Column(type="string") |
||
146 | */ |
||
147 | protected $customerPhone; |
||
148 | |||
149 | /** |
||
150 | * @ORM\Column(type="string") |
||
151 | */ |
||
152 | protected $customerFax; |
||
153 | |||
154 | /** |
||
155 | * @ORM\Column(type="string") |
||
156 | */ |
||
157 | protected $customerEmail; |
||
158 | |||
159 | /** |
||
160 | * @ORM\Column(type="string") |
||
161 | */ |
||
162 | protected $customerNote; |
||
163 | |||
164 | /** |
||
165 | * @ORM\Column(type="string") |
||
166 | */ |
||
167 | protected $customerCvrnr; |
||
168 | |||
169 | /** |
||
170 | * @ORM\Column(type="integer") |
||
171 | */ |
||
172 | protected $customerCustTypeId; |
||
173 | |||
174 | /** |
||
175 | * @ORM\Column(type="string") |
||
176 | */ |
||
177 | protected $customerEan; |
||
178 | |||
179 | /** |
||
180 | * @ORM\Column(type="string") |
||
181 | */ |
||
182 | protected $customerRes1; |
||
183 | |||
184 | /** |
||
185 | * @ORM\Column(type="string") |
||
186 | */ |
||
187 | protected $customerRes2; |
||
188 | |||
189 | /** |
||
190 | * @ORM\Column(type="string") |
||
191 | */ |
||
192 | protected $customerRes3; |
||
193 | |||
194 | /** |
||
195 | * @ORM\Column(type="string") |
||
196 | */ |
||
197 | protected $customerRes4; |
||
198 | |||
199 | /** |
||
200 | * @ORM\Column(type="string") |
||
201 | */ |
||
202 | protected $customerRes5; |
||
203 | |||
204 | /** |
||
205 | * @ORM\Column(type="string") |
||
206 | */ |
||
207 | protected $customerIp; |
||
208 | |||
209 | /** |
||
210 | * @ORM\Column(type="string") |
||
211 | */ |
||
212 | protected $deliveryName; |
||
213 | |||
214 | /** |
||
215 | * @ORM\Column(type="string") |
||
216 | */ |
||
217 | protected $deliveryCompany; |
||
218 | |||
219 | /** |
||
220 | * @ORM\Column(type="string") |
||
221 | */ |
||
222 | protected $deliveryAddress; |
||
223 | |||
224 | /** |
||
225 | * @ORM\Column(type="string") |
||
226 | */ |
||
227 | protected $deliveryAddress2; |
||
228 | |||
229 | /** |
||
230 | * @ORM\Column(type="string") |
||
231 | */ |
||
232 | protected $deliveryZipCode; |
||
233 | |||
234 | /** |
||
235 | * @ORM\Column(type="string") |
||
236 | */ |
||
237 | protected $deliveryCity; |
||
238 | |||
239 | /** |
||
240 | * @ORM\Column(type="integer") |
||
241 | */ |
||
242 | protected $deliveryCountryID; |
||
243 | |||
244 | /** |
||
245 | * @ORM\Column(type="string") |
||
246 | */ |
||
247 | protected $deliveryCountry; |
||
248 | |||
249 | /** |
||
250 | * @ORM\Column(type="string") |
||
251 | */ |
||
252 | protected $deliveryPhone; |
||
253 | |||
254 | /** |
||
255 | * @ORM\Column(type="string") |
||
256 | */ |
||
257 | protected $deliveryFax; |
||
258 | |||
259 | /** |
||
260 | * @ORM\Column(type="string") |
||
261 | */ |
||
262 | protected $deliveryEmail; |
||
263 | |||
264 | /** |
||
265 | * @ORM\Column(type="string") |
||
266 | */ |
||
267 | protected $deliveryEan; |
||
268 | |||
269 | /** |
||
270 | * @ORM\Column(type="string") |
||
271 | */ |
||
272 | protected $shippingMethod; |
||
273 | |||
274 | /** |
||
275 | * @ORM\Column(type="decimal", precision=12, scale=2) |
||
276 | */ |
||
277 | protected $shippingFee; |
||
278 | |||
279 | /** |
||
280 | * @ORM\Column(type="string") |
||
281 | */ |
||
282 | protected $paymentMethod; |
||
283 | |||
284 | /** |
||
285 | * @ORM\Column(type="decimal", precision=12, scale=2) |
||
286 | */ |
||
287 | protected $paymentFee; |
||
288 | |||
289 | /** |
||
290 | * @ORM\Column(type="string") |
||
291 | */ |
||
292 | protected $loadBalancerRealIp; |
||
293 | |||
294 | /** |
||
295 | * @var string |
||
296 | * |
||
297 | * @ORM\Column(type="string") |
||
298 | */ |
||
299 | protected $referrer; |
||
300 | |||
301 | /** |
||
302 | * @ORM\OneToMany(targetEntity="PaymentLine", mappedBy="payment") |
||
303 | */ |
||
304 | protected $paymentLines; |
||
305 | |||
306 | /********************************** |
||
307 | * Properties specific to Altapay * |
||
308 | *********************************/ |
||
309 | |||
310 | /** |
||
311 | * @var string|null |
||
312 | * |
||
313 | * @ORM\Column(type="string", nullable=true) |
||
314 | */ |
||
315 | protected $altapayId; |
||
316 | |||
317 | /** |
||
318 | * @var string|null |
||
319 | * |
||
320 | * @ORM\Column(type="string", nullable=true) |
||
321 | */ |
||
322 | protected $cardStatus; |
||
323 | |||
324 | /** |
||
325 | * @var string|null |
||
326 | * |
||
327 | * @ORM\Column(type="string", nullable=true) |
||
328 | */ |
||
329 | protected $creditCardToken; |
||
330 | |||
331 | /** |
||
332 | * @var string|null |
||
333 | * |
||
334 | * @ORM\Column(type="string", nullable=true) |
||
335 | */ |
||
336 | protected $creditCardMaskedPan; |
||
337 | |||
338 | /** |
||
339 | * @var string|null |
||
340 | * |
||
341 | * @ORM\Column(type="string", nullable=true) |
||
342 | */ |
||
343 | protected $threeDSecureResult; |
||
344 | |||
345 | /** |
||
346 | * @var string|null |
||
347 | * |
||
348 | * @ORM\Column(type="string", nullable=true) |
||
349 | */ |
||
350 | protected $liableForChargeback; |
||
351 | |||
352 | /** |
||
353 | * @var string|null |
||
354 | * |
||
355 | * @ORM\Column(type="string", nullable=true) |
||
356 | */ |
||
357 | protected $blacklistToken; |
||
358 | |||
359 | /** |
||
360 | * @var string|null |
||
361 | * |
||
362 | * @ORM\Column(type="string", nullable=true) |
||
363 | */ |
||
364 | protected $shop; |
||
365 | |||
366 | /** |
||
367 | * @var string|null |
||
368 | * |
||
369 | * @ORM\Column(type="string", nullable=true) |
||
370 | */ |
||
371 | protected $terminal; |
||
372 | |||
373 | /** |
||
374 | * @var string|null |
||
375 | * |
||
376 | * @ORM\Column(type="string", nullable=true) |
||
377 | */ |
||
378 | protected $transactionStatus; |
||
379 | |||
380 | /** |
||
381 | * @var string|null |
||
382 | * |
||
383 | * @ORM\Column(type="string", nullable=true) |
||
384 | */ |
||
385 | protected $reasonCode; |
||
386 | |||
387 | /** |
||
388 | * @var int|null |
||
389 | * |
||
390 | * @ORM\Column(type="integer", nullable=true) |
||
391 | */ |
||
392 | protected $merchantCurrency; |
||
393 | |||
394 | /** |
||
395 | * @var string|null |
||
396 | * |
||
397 | * @ORM\Column(type="string", nullable=true) |
||
398 | */ |
||
399 | protected $merchantCurrencyAlpha; |
||
400 | |||
401 | /** |
||
402 | * @var int|null |
||
403 | * |
||
404 | * @ORM\Column(type="integer", nullable=true) |
||
405 | */ |
||
406 | protected $cardHolderCurrency; |
||
407 | |||
408 | /** |
||
409 | * @var string|null |
||
410 | * |
||
411 | * @ORM\Column(type="string", nullable=true) |
||
412 | */ |
||
413 | protected $cardHolderCurrencyAlpha; |
||
414 | |||
415 | /** |
||
416 | * @var float|null |
||
417 | * |
||
418 | * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true) |
||
419 | */ |
||
420 | protected $reservedAmount; |
||
421 | |||
422 | /** |
||
423 | * @var float|null |
||
424 | * |
||
425 | * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true) |
||
426 | */ |
||
427 | protected $capturedAmount; |
||
428 | |||
429 | /** |
||
430 | * @var float|null |
||
431 | * |
||
432 | * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true) |
||
433 | */ |
||
434 | protected $refundedAmount; |
||
435 | |||
436 | /** |
||
437 | * @var float|null |
||
438 | * |
||
439 | * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true) |
||
440 | */ |
||
441 | protected $recurringDefaultAmount; |
||
442 | |||
443 | /** |
||
444 | * @var \DateTime|null |
||
445 | * |
||
446 | * @ORM\Column(type="datetime", nullable=true) |
||
447 | */ |
||
448 | protected $createdDate; |
||
449 | |||
450 | /** |
||
451 | * @var \DateTime|null |
||
452 | * |
||
453 | * @ORM\Column(type="datetime", nullable=true) |
||
454 | */ |
||
455 | protected $updatedDate; |
||
456 | |||
457 | /** |
||
458 | * @var string|null |
||
459 | * |
||
460 | * @ORM\Column(type="string", nullable=true) |
||
461 | */ |
||
462 | protected $paymentNature; |
||
463 | |||
464 | /** |
||
465 | * @var boolean|null |
||
466 | * |
||
467 | * @ORM\Column(type="boolean", nullable=true) |
||
468 | */ |
||
469 | protected $supportsRefunds; |
||
470 | |||
471 | /** |
||
472 | * @var boolean|null |
||
473 | * |
||
474 | * @ORM\Column(type="boolean", nullable=true) |
||
475 | */ |
||
476 | protected $supportsRelease; |
||
477 | |||
478 | /** |
||
479 | * @var boolean|null |
||
480 | * |
||
481 | * @ORM\Column(type="boolean", nullable=true) |
||
482 | */ |
||
483 | protected $supportsMultipleCaptures; |
||
484 | |||
485 | /** |
||
486 | * @var boolean|null |
||
487 | * |
||
488 | * @ORM\Column(type="boolean", nullable=true) |
||
489 | */ |
||
490 | protected $supportsMultipleRefunds; |
||
491 | |||
492 | /** |
||
493 | * @var float|null |
||
494 | * |
||
495 | * @ORM\Column(type="float", nullable=true) |
||
496 | */ |
||
497 | protected $fraudRiskScore; |
||
498 | |||
499 | /** |
||
500 | * @var string|null |
||
501 | * |
||
502 | * @ORM\Column(type="string", nullable=true) |
||
503 | */ |
||
504 | protected $fraudExplanation; |
||
505 | |||
506 | |||
507 | public function __construct() |
||
513 | |||
514 | /** |
||
515 | * Returns true if the payment can be captured |
||
516 | * |
||
517 | * @todo implement this method |
||
518 | * |
||
519 | * @return bool |
||
520 | */ |
||
521 | public function isCaptureable() : bool |
||
525 | |||
526 | /** |
||
527 | * Returns true if the payment can be refunded |
||
528 | * |
||
529 | * @todo implement this method |
||
530 | * |
||
531 | * @return bool |
||
532 | */ |
||
533 | public function isRefundable() : bool |
||
537 | |||
538 | // @todo create type hints for getters and setters |
||
539 | |||
540 | /** |
||
541 | * @return int |
||
542 | */ |
||
543 | public function getId() : ?int |
||
547 | |||
548 | /** |
||
549 | * @param int $id |
||
550 | * |
||
551 | * @return Payment |
||
552 | */ |
||
553 | public function setId(int $id) : self |
||
559 | |||
560 | /** |
||
561 | * @return null|string |
||
562 | */ |
||
563 | public function getAltapayId() |
||
567 | |||
568 | /** |
||
569 | * @param null|string $altapayId |
||
570 | * @return Payment |
||
571 | */ |
||
572 | public function setAltapayId($altapayId) |
||
577 | |||
578 | /** |
||
579 | * @return null|string |
||
580 | */ |
||
581 | public function getCardStatus() |
||
585 | |||
586 | /** |
||
587 | * @param null|string $cardStatus |
||
588 | * @return Payment |
||
589 | */ |
||
590 | public function setCardStatus($cardStatus) |
||
595 | |||
596 | /** |
||
597 | * @return null|string |
||
598 | */ |
||
599 | public function getCreditCardToken() |
||
603 | |||
604 | /** |
||
605 | * @param null|string $creditCardToken |
||
606 | * @return Payment |
||
607 | */ |
||
608 | public function setCreditCardToken($creditCardToken) |
||
613 | |||
614 | /** |
||
615 | * @return null|string |
||
616 | */ |
||
617 | public function getCreditCardMaskedPan() |
||
621 | |||
622 | /** |
||
623 | * @param null|string $creditCardMaskedPan |
||
624 | * @return Payment |
||
625 | */ |
||
626 | public function setCreditCardMaskedPan($creditCardMaskedPan) |
||
631 | |||
632 | /** |
||
633 | * @return null|string |
||
634 | */ |
||
635 | public function getThreeDSecureResult() |
||
639 | |||
640 | /** |
||
641 | * @param null|string $threeDSecureResult |
||
642 | * @return Payment |
||
643 | */ |
||
644 | public function setThreeDSecureResult($threeDSecureResult) |
||
649 | |||
650 | /** |
||
651 | * @return null|string |
||
652 | */ |
||
653 | public function getLiableForChargeback() |
||
657 | |||
658 | /** |
||
659 | * @param null|string $liableForChargeback |
||
660 | * @return Payment |
||
661 | */ |
||
662 | public function setLiableForChargeback($liableForChargeback) |
||
667 | |||
668 | /** |
||
669 | * @return null|string |
||
670 | */ |
||
671 | public function getBlacklistToken() |
||
675 | |||
676 | /** |
||
677 | * @param null|string $blacklistToken |
||
678 | * @return Payment |
||
679 | */ |
||
680 | public function setBlacklistToken($blacklistToken) |
||
685 | |||
686 | /** |
||
687 | * @return null|string |
||
688 | */ |
||
689 | public function getShop() |
||
693 | |||
694 | /** |
||
695 | * @param null|string $shop |
||
696 | * @return Payment |
||
697 | */ |
||
698 | public function setShop($shop) |
||
703 | |||
704 | /** |
||
705 | * @return null|string |
||
706 | */ |
||
707 | public function getTerminal() |
||
711 | |||
712 | /** |
||
713 | * @param null|string $terminal |
||
714 | * @return Payment |
||
715 | */ |
||
716 | public function setTerminal($terminal) |
||
721 | |||
722 | /** |
||
723 | * @return null|string |
||
724 | */ |
||
725 | public function getTransactionStatus() |
||
729 | |||
730 | /** |
||
731 | * @param null|string $transactionStatus |
||
732 | * @return Payment |
||
733 | */ |
||
734 | public function setTransactionStatus($transactionStatus) |
||
739 | |||
740 | /** |
||
741 | * @return null|string |
||
742 | */ |
||
743 | public function getReasonCode() |
||
747 | |||
748 | /** |
||
749 | * @param null|string $reasonCode |
||
750 | * @return Payment |
||
751 | */ |
||
752 | public function setReasonCode($reasonCode) |
||
757 | |||
758 | /** |
||
759 | * @return int|null |
||
760 | */ |
||
761 | public function getMerchantCurrency() |
||
765 | |||
766 | /** |
||
767 | * @param int|null $merchantCurrency |
||
768 | * @return Payment |
||
769 | */ |
||
770 | public function setMerchantCurrency($merchantCurrency) |
||
775 | |||
776 | /** |
||
777 | * @return null|string |
||
778 | */ |
||
779 | public function getMerchantCurrencyAlpha() |
||
783 | |||
784 | /** |
||
785 | * @param null|string $merchantCurrencyAlpha |
||
786 | * @return Payment |
||
787 | */ |
||
788 | public function setMerchantCurrencyAlpha($merchantCurrencyAlpha) |
||
793 | |||
794 | /** |
||
795 | * @return int|null |
||
796 | */ |
||
797 | public function getCardHolderCurrency() |
||
801 | |||
802 | /** |
||
803 | * @param int|null $cardHolderCurrency |
||
804 | * @return Payment |
||
805 | */ |
||
806 | public function setCardHolderCurrency($cardHolderCurrency) |
||
811 | |||
812 | /** |
||
813 | * @return null|string |
||
814 | */ |
||
815 | public function getCardHolderCurrencyAlpha() |
||
819 | |||
820 | /** |
||
821 | * @param null|string $cardHolderCurrencyAlpha |
||
822 | * @return Payment |
||
823 | */ |
||
824 | public function setCardHolderCurrencyAlpha($cardHolderCurrencyAlpha) |
||
829 | |||
830 | /** |
||
831 | * @return float|null |
||
832 | */ |
||
833 | public function getReservedAmount() |
||
837 | |||
838 | /** |
||
839 | * @param float|null $reservedAmount |
||
840 | * @return Payment |
||
841 | */ |
||
842 | public function setReservedAmount($reservedAmount) |
||
847 | |||
848 | /** |
||
849 | * @return float|null |
||
850 | */ |
||
851 | public function getCapturedAmount() |
||
855 | |||
856 | /** |
||
857 | * @param float|null $capturedAmount |
||
858 | * @return Payment |
||
859 | */ |
||
860 | public function setCapturedAmount($capturedAmount) |
||
865 | |||
866 | /** |
||
867 | * @return float|null |
||
868 | */ |
||
869 | public function getRefundedAmount() |
||
873 | |||
874 | /** |
||
875 | * @param float|null $refundedAmount |
||
876 | * @return Payment |
||
877 | */ |
||
878 | public function setRefundedAmount($refundedAmount) |
||
883 | |||
884 | /** |
||
885 | * @return float|null |
||
886 | */ |
||
887 | public function getRecurringDefaultAmount() |
||
891 | |||
892 | /** |
||
893 | * @param float|null $recurringDefaultAmount |
||
894 | * @return Payment |
||
895 | */ |
||
896 | public function setRecurringDefaultAmount($recurringDefaultAmount) |
||
901 | |||
902 | /** |
||
903 | * @return \DateTime|null |
||
904 | */ |
||
905 | public function getCreatedDate() |
||
909 | |||
910 | /** |
||
911 | * @param \DateTime|null $createdDate |
||
912 | * @return Payment |
||
913 | */ |
||
914 | public function setCreatedDate($createdDate) |
||
919 | |||
920 | /** |
||
921 | * @return \DateTime|null |
||
922 | */ |
||
923 | public function getUpdatedDate() |
||
927 | |||
928 | /** |
||
929 | * @param \DateTime|null $updatedDate |
||
930 | * @return Payment |
||
931 | */ |
||
932 | public function setUpdatedDate($updatedDate) |
||
937 | |||
938 | /** |
||
939 | * @return null|string |
||
940 | */ |
||
941 | public function getPaymentNature() |
||
945 | |||
946 | /** |
||
947 | * @param null|string $paymentNature |
||
948 | * @return Payment |
||
949 | */ |
||
950 | public function setPaymentNature($paymentNature) |
||
955 | |||
956 | /** |
||
957 | * @return bool|null |
||
958 | */ |
||
959 | public function getSupportsRefunds() |
||
963 | |||
964 | /** |
||
965 | * @param bool|null $supportsRefunds |
||
966 | * @return Payment |
||
967 | */ |
||
968 | public function setSupportsRefunds($supportsRefunds) |
||
973 | |||
974 | /** |
||
975 | * @return bool|null |
||
976 | */ |
||
977 | public function getSupportsRelease() |
||
981 | |||
982 | /** |
||
983 | * @param bool|null $supportsRelease |
||
984 | * @return Payment |
||
985 | */ |
||
986 | public function setSupportsRelease($supportsRelease) |
||
991 | |||
992 | /** |
||
993 | * @return bool|null |
||
994 | */ |
||
995 | public function getSupportsMultipleCaptures() |
||
999 | |||
1000 | /** |
||
1001 | * @param bool|null $supportsMultipleCaptures |
||
1002 | * @return Payment |
||
1003 | */ |
||
1004 | public function setSupportsMultipleCaptures($supportsMultipleCaptures) |
||
1009 | |||
1010 | /** |
||
1011 | * @return bool|null |
||
1012 | */ |
||
1013 | public function getSupportsMultipleRefunds() |
||
1017 | |||
1018 | /** |
||
1019 | * @param bool|null $supportsMultipleRefunds |
||
1020 | * @return Payment |
||
1021 | */ |
||
1022 | public function setSupportsMultipleRefunds($supportsMultipleRefunds) |
||
1027 | |||
1028 | /** |
||
1029 | * @return float|null |
||
1030 | */ |
||
1031 | public function getFraudRiskScore() |
||
1035 | |||
1036 | /** |
||
1037 | * @param float|null $fraudRiskScore |
||
1038 | * @return Payment |
||
1039 | */ |
||
1040 | public function setFraudRiskScore($fraudRiskScore) |
||
1045 | |||
1046 | /** |
||
1047 | * @return null|string |
||
1048 | */ |
||
1049 | public function getFraudExplanation() |
||
1053 | |||
1054 | /** |
||
1055 | * @param null|string $fraudExplanation |
||
1056 | * @return Payment |
||
1057 | */ |
||
1058 | public function setFraudExplanation($fraudExplanation) |
||
1063 | } |
||
1064 |