Complex classes like PaymentRequest 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 PaymentRequest, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
8 | class PaymentRequest |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | protected $apiKey; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $merchant; |
||
19 | |||
20 | /** |
||
21 | * @var int |
||
22 | */ |
||
23 | protected $orderId; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $sessionId; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $currencySymbol; |
||
34 | |||
35 | /** |
||
36 | * @var float |
||
37 | */ |
||
38 | protected $totalAmount; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | protected $callBackUrl; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | */ |
||
48 | protected $fullCallBackOkUrl; |
||
49 | |||
50 | /** |
||
51 | * @var string |
||
52 | */ |
||
53 | protected $callBackOkUrl; |
||
54 | |||
55 | /** |
||
56 | * @var string |
||
57 | */ |
||
58 | protected $callBackServerUrl; |
||
59 | |||
60 | /** |
||
61 | * @var int |
||
62 | */ |
||
63 | protected $languageId; |
||
64 | |||
65 | /** |
||
66 | * @var boolean |
||
67 | */ |
||
68 | protected $testMode; |
||
69 | |||
70 | /** |
||
71 | * @var int |
||
72 | */ |
||
73 | protected $paymentGatewayCurrencyCode; |
||
74 | |||
75 | /** |
||
76 | * @var int |
||
77 | */ |
||
78 | protected $cardTypeId; |
||
79 | |||
80 | /** |
||
81 | * @var string |
||
82 | */ |
||
83 | protected $customerRekvNr; |
||
84 | |||
85 | /** |
||
86 | * @var string |
||
87 | */ |
||
88 | protected $customerName; |
||
89 | |||
90 | /** |
||
91 | * @var string |
||
92 | */ |
||
93 | protected $customerCompany; |
||
94 | |||
95 | /** |
||
96 | * @var string |
||
97 | */ |
||
98 | protected $customerAddress; |
||
99 | |||
100 | /** |
||
101 | * @var string |
||
102 | */ |
||
103 | protected $customerAddress2; |
||
104 | |||
105 | /** |
||
106 | * @var string |
||
107 | */ |
||
108 | protected $customerZipCode; |
||
109 | |||
110 | /** |
||
111 | * @var string |
||
112 | */ |
||
113 | protected $customerCity; |
||
114 | |||
115 | /** |
||
116 | * @var int |
||
117 | */ |
||
118 | protected $customerCountryId; |
||
119 | |||
120 | /** |
||
121 | * @var string |
||
122 | */ |
||
123 | protected $customerCountry; |
||
124 | |||
125 | /** |
||
126 | * @var string |
||
127 | */ |
||
128 | protected $customerPhone; |
||
129 | |||
130 | /** |
||
131 | * @var string |
||
132 | */ |
||
133 | protected $customerFax; |
||
134 | |||
135 | /** |
||
136 | * @var string |
||
137 | */ |
||
138 | protected $customerEmail; |
||
139 | |||
140 | /** |
||
141 | * @var string |
||
142 | */ |
||
143 | protected $customerNote; |
||
144 | |||
145 | /** |
||
146 | * @var string |
||
147 | */ |
||
148 | protected $customerCvrnr; |
||
149 | |||
150 | /** |
||
151 | * @var int |
||
152 | */ |
||
153 | protected $customerCustTypeId; |
||
154 | |||
155 | /** |
||
156 | * @var string |
||
157 | */ |
||
158 | protected $customerEan; |
||
159 | |||
160 | /** |
||
161 | * @var string |
||
162 | */ |
||
163 | protected $customerRes1; |
||
164 | |||
165 | /** |
||
166 | * @var string |
||
167 | */ |
||
168 | protected $customerRes2; |
||
169 | |||
170 | /** |
||
171 | * @var string |
||
172 | */ |
||
173 | protected $customerRes3; |
||
174 | |||
175 | /** |
||
176 | * @var string |
||
177 | */ |
||
178 | protected $customerRes4; |
||
179 | |||
180 | /** |
||
181 | * @var string |
||
182 | */ |
||
183 | protected $customerRes5; |
||
184 | |||
185 | /** |
||
186 | * @var string |
||
187 | */ |
||
188 | protected $customerIp; |
||
189 | |||
190 | /** |
||
191 | * @var string |
||
192 | */ |
||
193 | protected $deliveryName; |
||
194 | |||
195 | /** |
||
196 | * @var string |
||
197 | */ |
||
198 | protected $deliveryCompany; |
||
199 | |||
200 | /** |
||
201 | * @var string |
||
202 | */ |
||
203 | protected $deliveryAddress; |
||
204 | |||
205 | /** |
||
206 | * @var string |
||
207 | */ |
||
208 | protected $deliveryAddress2; |
||
209 | |||
210 | /** |
||
211 | * @var string |
||
212 | */ |
||
213 | protected $deliveryZipCode; |
||
214 | |||
215 | /** |
||
216 | * @var string |
||
217 | */ |
||
218 | protected $deliveryCity; |
||
219 | |||
220 | /** |
||
221 | * @var int |
||
222 | */ |
||
223 | protected $deliveryCountryID; |
||
224 | |||
225 | /** |
||
226 | * @var string |
||
227 | */ |
||
228 | protected $deliveryCountry; |
||
229 | |||
230 | /** |
||
231 | * @var string |
||
232 | */ |
||
233 | protected $deliveryPhone; |
||
234 | |||
235 | /** |
||
236 | * @var string |
||
237 | */ |
||
238 | protected $deliveryFax; |
||
239 | |||
240 | /** |
||
241 | * @var string |
||
242 | */ |
||
243 | protected $deliveryEmail; |
||
244 | |||
245 | /** |
||
246 | * @var string |
||
247 | */ |
||
248 | protected $deliveryEan; |
||
249 | |||
250 | /** |
||
251 | * @var string |
||
252 | */ |
||
253 | protected $shippingMethod; |
||
254 | |||
255 | /** |
||
256 | * @var float |
||
257 | */ |
||
258 | protected $shippingFee; |
||
259 | |||
260 | /** |
||
261 | * @var string |
||
262 | */ |
||
263 | protected $paymentMethod; |
||
264 | |||
265 | /** |
||
266 | * @var float |
||
267 | */ |
||
268 | protected $paymentFee; |
||
269 | |||
270 | /** |
||
271 | * @var string |
||
272 | */ |
||
273 | protected $loadBalancerRealIp; |
||
274 | |||
275 | /** |
||
276 | * @var OrderLine[] |
||
277 | */ |
||
278 | protected $orderLines; |
||
279 | |||
280 | public function __construct() |
||
284 | |||
285 | public function populateFromRequest(ServerRequestInterface $request) |
||
374 | |||
375 | /** |
||
376 | * Takes strings like |
||
377 | * - 1.000,50 |
||
378 | * - 1,000.50 |
||
379 | * - 1000.50 |
||
380 | * - 1000,50 |
||
381 | * |
||
382 | * and returns 1000.50 |
||
383 | * |
||
384 | * @param string $str |
||
385 | * @return float |
||
386 | */ |
||
387 | public static function currencyStringToFloat(string $str) : float |
||
396 | |||
397 | /** |
||
398 | * @return string |
||
399 | */ |
||
400 | public function getApiKey() : string |
||
404 | |||
405 | /** |
||
406 | * @param string $apiKey |
||
407 | * @return PaymentRequest |
||
408 | */ |
||
409 | public function setApiKey(string $apiKey) : self |
||
414 | |||
415 | /** |
||
416 | * @return string |
||
417 | */ |
||
418 | public function getMerchant() : string |
||
422 | |||
423 | /** |
||
424 | * @param string $merchant |
||
425 | * @return PaymentRequest |
||
426 | */ |
||
427 | public function setMerchant(string $merchant) : self |
||
432 | |||
433 | /** |
||
434 | * @return int |
||
435 | */ |
||
436 | public function getOrderId() : int |
||
440 | |||
441 | /** |
||
442 | * @param int $orderId |
||
443 | * @return PaymentRequest |
||
444 | */ |
||
445 | public function setOrderId(int $orderId) : self |
||
450 | |||
451 | /** |
||
452 | * @return string |
||
453 | */ |
||
454 | public function getSessionId() : string |
||
458 | |||
459 | /** |
||
460 | * @param string $sessionId |
||
461 | * @return PaymentRequest |
||
462 | */ |
||
463 | public function setSessionId(string $sessionId) : self |
||
468 | |||
469 | /** |
||
470 | * @return string |
||
471 | */ |
||
472 | public function getCurrencySymbol() : string |
||
476 | |||
477 | /** |
||
478 | * @param string $currencySymbol |
||
479 | * @return PaymentRequest |
||
480 | */ |
||
481 | public function setCurrencySymbol(string $currencySymbol) : self |
||
486 | |||
487 | /** |
||
488 | * @return float |
||
489 | */ |
||
490 | public function getTotalAmount() : float |
||
494 | |||
495 | /** |
||
496 | * @param float $totalAmount |
||
497 | * @return PaymentRequest |
||
498 | */ |
||
499 | public function setTotalAmount(float $totalAmount) : self |
||
504 | |||
505 | /** |
||
506 | * @return string |
||
507 | */ |
||
508 | public function getCallBackUrl() : string |
||
512 | |||
513 | /** |
||
514 | * @param string $callBackUrl |
||
515 | * @return PaymentRequest |
||
516 | */ |
||
517 | public function setCallBackUrl(string $callBackUrl) : self |
||
522 | |||
523 | /** |
||
524 | * @return string |
||
525 | */ |
||
526 | public function getFullCallBackOkUrl() : string |
||
530 | |||
531 | /** |
||
532 | * @param string $fullCallBackOkUrl |
||
533 | * @return PaymentRequest |
||
534 | */ |
||
535 | public function setFullCallBackOkUrl(string $fullCallBackOkUrl) : self |
||
540 | |||
541 | /** |
||
542 | * @return string |
||
543 | */ |
||
544 | public function getCallBackOkUrl() : string |
||
548 | |||
549 | /** |
||
550 | * @param string $callBackOkUrl |
||
551 | * @return PaymentRequest |
||
552 | */ |
||
553 | public function setCallBackOkUrl(string $callBackOkUrl) : self |
||
558 | |||
559 | /** |
||
560 | * @return string |
||
561 | */ |
||
562 | public function getCallBackServerUrl() : string |
||
566 | |||
567 | /** |
||
568 | * @param string $callBackServerUrl |
||
569 | * @return PaymentRequest |
||
570 | */ |
||
571 | public function setCallBackServerUrl(string $callBackServerUrl) : self |
||
576 | |||
577 | /** |
||
578 | * @return int |
||
579 | */ |
||
580 | public function getLanguageId() : int |
||
584 | |||
585 | /** |
||
586 | * @param int $languageId |
||
587 | * @return PaymentRequest |
||
588 | */ |
||
589 | public function setLanguageId(int $languageId) : self |
||
594 | |||
595 | /** |
||
596 | * @return bool |
||
597 | */ |
||
598 | public function isTestMode(): bool |
||
602 | |||
603 | /** |
||
604 | * @param bool $testMode |
||
605 | * @return PaymentRequest |
||
606 | */ |
||
607 | public function setTestMode(bool $testMode) : self |
||
612 | |||
613 | /** |
||
614 | * @return int |
||
615 | */ |
||
616 | public function getPaymentGatewayCurrencyCode() |
||
620 | |||
621 | /** |
||
622 | * @param int $paymentGatewayCurrencyCode |
||
623 | * @return PaymentRequest |
||
624 | */ |
||
625 | public function setPaymentGatewayCurrencyCode(int $paymentGatewayCurrencyCode) : self |
||
630 | |||
631 | /** |
||
632 | * @return int |
||
633 | */ |
||
634 | public function getCardTypeId() |
||
638 | |||
639 | /** |
||
640 | * @param int $cardTypeId |
||
641 | * @return PaymentRequest |
||
642 | */ |
||
643 | public function setCardTypeId(int $cardTypeId) : self |
||
648 | |||
649 | /** |
||
650 | * @return string |
||
651 | */ |
||
652 | public function getCustomerRekvNr() : string |
||
656 | |||
657 | /** |
||
658 | * @param string $customerRekvNr |
||
659 | * @return PaymentRequest |
||
660 | */ |
||
661 | public function setCustomerRekvNr(string $customerRekvNr) : self |
||
666 | |||
667 | /** |
||
668 | * @return string |
||
669 | */ |
||
670 | public function getCustomerName() : string |
||
674 | |||
675 | /** |
||
676 | * @param string $customerName |
||
677 | * @return PaymentRequest |
||
678 | */ |
||
679 | public function setCustomerName(string $customerName) : self |
||
684 | |||
685 | /** |
||
686 | * @return string |
||
687 | */ |
||
688 | public function getCustomerCompany() : string |
||
692 | |||
693 | /** |
||
694 | * @param string $customerCompany |
||
695 | * @return PaymentRequest |
||
696 | */ |
||
697 | public function setCustomerCompany(string $customerCompany) : self |
||
702 | |||
703 | /** |
||
704 | * @return string |
||
705 | */ |
||
706 | public function getCustomerAddress() : string |
||
710 | |||
711 | /** |
||
712 | * @param string $customerAddress |
||
713 | * @return PaymentRequest |
||
714 | */ |
||
715 | public function setCustomerAddress(string $customerAddress) : self |
||
720 | |||
721 | /** |
||
722 | * @return string |
||
723 | */ |
||
724 | public function getCustomerAddress2() : string |
||
728 | |||
729 | /** |
||
730 | * @param string $customerAddress2 |
||
731 | * @return PaymentRequest |
||
732 | */ |
||
733 | public function setCustomerAddress2(string $customerAddress2) : self |
||
738 | |||
739 | /** |
||
740 | * @return string |
||
741 | */ |
||
742 | public function getCustomerZipCode() : string |
||
746 | |||
747 | /** |
||
748 | * @param string $customerZipCode |
||
749 | * @return PaymentRequest |
||
750 | */ |
||
751 | public function setCustomerZipCode(string $customerZipCode) : self |
||
756 | |||
757 | /** |
||
758 | * @return string |
||
759 | */ |
||
760 | public function getCustomerCity() : string |
||
764 | |||
765 | /** |
||
766 | * @param string $customerCity |
||
767 | * @return PaymentRequest |
||
768 | */ |
||
769 | public function setCustomerCity(string $customerCity) : self |
||
774 | |||
775 | /** |
||
776 | * @return int |
||
777 | */ |
||
778 | public function getCustomerCountryId() |
||
782 | |||
783 | /** |
||
784 | * @param int $customerCountryId |
||
785 | * @return PaymentRequest |
||
786 | */ |
||
787 | public function setCustomerCountryId(int $customerCountryId) : self |
||
792 | |||
793 | /** |
||
794 | * @return string |
||
795 | */ |
||
796 | public function getCustomerCountry() : string |
||
800 | |||
801 | /** |
||
802 | * @param string $customerCountry |
||
803 | * @return PaymentRequest |
||
804 | */ |
||
805 | public function setCustomerCountry(string $customerCountry) : self |
||
810 | |||
811 | /** |
||
812 | * @return string |
||
813 | */ |
||
814 | public function getCustomerPhone() : string |
||
818 | |||
819 | /** |
||
820 | * @param string $customerPhone |
||
821 | * @return PaymentRequest |
||
822 | */ |
||
823 | public function setCustomerPhone(string $customerPhone) : self |
||
828 | |||
829 | /** |
||
830 | * @return string |
||
831 | */ |
||
832 | public function getCustomerFax() : string |
||
836 | |||
837 | /** |
||
838 | * @param string $customerFax |
||
839 | * @return PaymentRequest |
||
840 | */ |
||
841 | public function setCustomerFax(string $customerFax) : self |
||
846 | |||
847 | /** |
||
848 | * @return string |
||
849 | */ |
||
850 | public function getCustomerEmail() : string |
||
854 | |||
855 | /** |
||
856 | * @param string $customerEmail |
||
857 | * @return PaymentRequest |
||
858 | */ |
||
859 | public function setCustomerEmail(string $customerEmail) : self |
||
864 | |||
865 | /** |
||
866 | * @return string |
||
867 | */ |
||
868 | public function getCustomerNote() : string |
||
872 | |||
873 | /** |
||
874 | * @param string $customerNote |
||
875 | * @return PaymentRequest |
||
876 | */ |
||
877 | public function setCustomerNote(string $customerNote) : self |
||
882 | |||
883 | /** |
||
884 | * @return string |
||
885 | */ |
||
886 | public function getCustomerCvrnr() : string |
||
890 | |||
891 | /** |
||
892 | * @param string $customerCvrnr |
||
893 | * @return PaymentRequest |
||
894 | */ |
||
895 | public function setCustomerCvrnr(string $customerCvrnr) : self |
||
900 | |||
901 | /** |
||
902 | * @return int |
||
903 | */ |
||
904 | public function getCustomerCustTypeId() : int |
||
908 | |||
909 | /** |
||
910 | * @param int $customerCustTypeId |
||
911 | * @return PaymentRequest |
||
912 | */ |
||
913 | public function setCustomerCustTypeId(int $customerCustTypeId) : self |
||
918 | |||
919 | /** |
||
920 | * @return string |
||
921 | */ |
||
922 | public function getCustomerEan() : string |
||
926 | |||
927 | /** |
||
928 | * @param string $customerEan |
||
929 | * @return PaymentRequest |
||
930 | */ |
||
931 | public function setCustomerEan(string $customerEan) : self |
||
936 | |||
937 | /** |
||
938 | * @return string |
||
939 | */ |
||
940 | public function getCustomerRes1() : string |
||
944 | |||
945 | /** |
||
946 | * @param string $customerRes1 |
||
947 | * @return PaymentRequest |
||
948 | */ |
||
949 | public function setCustomerRes1(string $customerRes1) : self |
||
954 | |||
955 | /** |
||
956 | * @return string |
||
957 | */ |
||
958 | public function getCustomerRes2() : string |
||
962 | |||
963 | /** |
||
964 | * @param string $customerRes2 |
||
965 | * @return PaymentRequest |
||
966 | */ |
||
967 | public function setCustomerRes2(string $customerRes2) : self |
||
972 | |||
973 | /** |
||
974 | * @return string |
||
975 | */ |
||
976 | public function getCustomerRes3() : string |
||
980 | |||
981 | /** |
||
982 | * @param string $customerRes3 |
||
983 | * @return PaymentRequest |
||
984 | */ |
||
985 | public function setCustomerRes3(string $customerRes3) : self |
||
990 | |||
991 | /** |
||
992 | * @return string |
||
993 | */ |
||
994 | public function getCustomerRes4() : string |
||
998 | |||
999 | /** |
||
1000 | * @param string $customerRes4 |
||
1001 | * @return PaymentRequest |
||
1002 | */ |
||
1003 | public function setCustomerRes4(string $customerRes4) : self |
||
1008 | |||
1009 | /** |
||
1010 | * @return string |
||
1011 | */ |
||
1012 | public function getCustomerRes5() : string |
||
1016 | |||
1017 | /** |
||
1018 | * @param string $customerRes5 |
||
1019 | * @return PaymentRequest |
||
1020 | */ |
||
1021 | public function setCustomerRes5(string $customerRes5) : self |
||
1026 | |||
1027 | /** |
||
1028 | * @return string |
||
1029 | */ |
||
1030 | public function getCustomerIp() : string |
||
1034 | |||
1035 | /** |
||
1036 | * @param string $customerIp |
||
1037 | * @return PaymentRequest |
||
1038 | */ |
||
1039 | public function setCustomerIp(string $customerIp) : self |
||
1044 | |||
1045 | /** |
||
1046 | * @return string |
||
1047 | */ |
||
1048 | public function getDeliveryName() : string |
||
1052 | |||
1053 | /** |
||
1054 | * @param string $deliveryName |
||
1055 | * @return PaymentRequest |
||
1056 | */ |
||
1057 | public function setDeliveryName(string $deliveryName) : self |
||
1062 | |||
1063 | /** |
||
1064 | * @return string |
||
1065 | */ |
||
1066 | public function getDeliveryCompany() : string |
||
1070 | |||
1071 | /** |
||
1072 | * @param string $deliveryCompany |
||
1073 | * @return PaymentRequest |
||
1074 | */ |
||
1075 | public function setDeliveryCompany(string $deliveryCompany) : self |
||
1080 | |||
1081 | /** |
||
1082 | * @return string |
||
1083 | */ |
||
1084 | public function getDeliveryAddress() : string |
||
1088 | |||
1089 | /** |
||
1090 | * @param string $deliveryAddress |
||
1091 | * @return PaymentRequest |
||
1092 | */ |
||
1093 | public function setDeliveryAddress(string $deliveryAddress) : self |
||
1098 | |||
1099 | /** |
||
1100 | * @return string |
||
1101 | */ |
||
1102 | public function getDeliveryAddress2() : string |
||
1106 | |||
1107 | /** |
||
1108 | * @param string $deliveryAddress2 |
||
1109 | * @return PaymentRequest |
||
1110 | */ |
||
1111 | public function setDeliveryAddress2(string $deliveryAddress2) : self |
||
1116 | |||
1117 | /** |
||
1118 | * @return string |
||
1119 | */ |
||
1120 | public function getDeliveryZipCode() : string |
||
1124 | |||
1125 | /** |
||
1126 | * @param string $deliveryZipCode |
||
1127 | * @return PaymentRequest |
||
1128 | */ |
||
1129 | public function setDeliveryZipCode(string $deliveryZipCode) : self |
||
1134 | |||
1135 | /** |
||
1136 | * @return string |
||
1137 | */ |
||
1138 | public function getDeliveryCity() : string |
||
1142 | |||
1143 | /** |
||
1144 | * @param string $deliveryCity |
||
1145 | * @return PaymentRequest |
||
1146 | */ |
||
1147 | public function setDeliveryCity(string $deliveryCity) : self |
||
1152 | |||
1153 | /** |
||
1154 | * @return int |
||
1155 | */ |
||
1156 | public function getDeliveryCountryID() |
||
1160 | |||
1161 | /** |
||
1162 | * @param int $deliveryCountryID |
||
1163 | * @return PaymentRequest |
||
1164 | */ |
||
1165 | public function setDeliveryCountryID(int $deliveryCountryID) : self |
||
1170 | |||
1171 | /** |
||
1172 | * @return string |
||
1173 | */ |
||
1174 | public function getDeliveryCountry() : string |
||
1178 | |||
1179 | /** |
||
1180 | * @param string $deliveryCountry |
||
1181 | * @return PaymentRequest |
||
1182 | */ |
||
1183 | public function setDeliveryCountry(string $deliveryCountry) : self |
||
1188 | |||
1189 | /** |
||
1190 | * @return string |
||
1191 | */ |
||
1192 | public function getDeliveryPhone() : string |
||
1196 | |||
1197 | /** |
||
1198 | * @param string $deliveryPhone |
||
1199 | * @return PaymentRequest |
||
1200 | */ |
||
1201 | public function setDeliveryPhone(string $deliveryPhone) : self |
||
1206 | |||
1207 | /** |
||
1208 | * @return string |
||
1209 | */ |
||
1210 | public function getDeliveryFax() : string |
||
1214 | |||
1215 | /** |
||
1216 | * @param string $deliveryFax |
||
1217 | * @return PaymentRequest |
||
1218 | */ |
||
1219 | public function setDeliveryFax(string $deliveryFax) : self |
||
1224 | |||
1225 | /** |
||
1226 | * @return string |
||
1227 | */ |
||
1228 | public function getDeliveryEmail() : string |
||
1232 | |||
1233 | /** |
||
1234 | * @param string $deliveryEmail |
||
1235 | * @return PaymentRequest |
||
1236 | */ |
||
1237 | public function setDeliveryEmail(string $deliveryEmail) : self |
||
1242 | |||
1243 | /** |
||
1244 | * @return string |
||
1245 | */ |
||
1246 | public function getDeliveryEan() : string |
||
1250 | |||
1251 | /** |
||
1252 | * @param string $deliveryEan |
||
1253 | * @return PaymentRequest |
||
1254 | */ |
||
1255 | public function setDeliveryEan(string $deliveryEan) : self |
||
1260 | |||
1261 | /** |
||
1262 | * @return string |
||
1263 | */ |
||
1264 | public function getShippingMethod() : string |
||
1268 | |||
1269 | /** |
||
1270 | * @param string $shippingMethod |
||
1271 | * @return PaymentRequest |
||
1272 | */ |
||
1273 | public function setShippingMethod(string $shippingMethod) : self |
||
1278 | |||
1279 | /** |
||
1280 | * @return float |
||
1281 | */ |
||
1282 | public function getShippingFee() : float |
||
1286 | |||
1287 | /** |
||
1288 | * @param float $shippingFee |
||
1289 | * @return PaymentRequest |
||
1290 | */ |
||
1291 | public function setShippingFee(float $shippingFee) : self |
||
1296 | |||
1297 | /** |
||
1298 | * @return string |
||
1299 | */ |
||
1300 | public function getPaymentMethod() : string |
||
1304 | |||
1305 | /** |
||
1306 | * @param string $paymentMethod |
||
1307 | * @return PaymentRequest |
||
1308 | */ |
||
1309 | public function setPaymentMethod(string $paymentMethod) : self |
||
1314 | |||
1315 | /** |
||
1316 | * @return float |
||
1317 | */ |
||
1318 | public function getPaymentFee() : float |
||
1322 | |||
1323 | /** |
||
1324 | * @param float $paymentFee |
||
1325 | * @return PaymentRequest |
||
1326 | */ |
||
1327 | public function setPaymentFee(float $paymentFee) : self |
||
1332 | |||
1333 | /** |
||
1334 | * @return string |
||
1335 | */ |
||
1336 | public function getLoadBalancerRealIp() : string |
||
1340 | |||
1341 | /** |
||
1342 | * @param string $loadBalancerRealIp |
||
1343 | * @return PaymentRequest |
||
1344 | */ |
||
1345 | public function setLoadBalancerRealIp(string $loadBalancerRealIp) : self |
||
1350 | |||
1351 | /** |
||
1352 | * @return OrderLine[] |
||
1353 | */ |
||
1354 | public function getOrderLines() : array |
||
1358 | |||
1359 | /** |
||
1360 | * @param OrderLine[] $orderLines |
||
1361 | * @return PaymentRequest |
||
1362 | */ |
||
1363 | public function setOrderLines(array $orderLines) : self |
||
1368 | |||
1369 | /** |
||
1370 | * @param OrderLine $orderLine |
||
1371 | * @return PaymentRequest |
||
1372 | */ |
||
1373 | public function addOrderLine(OrderLine $orderLine) : self |
||
1378 | } |
||
1379 |