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 |
||
| 24 | class Payment extends BasePayment |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var int |
||
| 28 | * |
||
| 29 | * @ORM\Id |
||
| 30 | * @ORM\Column(name="id", type="integer") |
||
| 31 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 32 | */ |
||
| 33 | protected $id; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @Assert\NotBlank() |
||
| 37 | * @Assert\Length(max="191") |
||
| 38 | * |
||
| 39 | * @ORM\Column(type="string", length=191) |
||
| 40 | */ |
||
| 41 | protected $apiKey; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @Assert\NotBlank() |
||
| 45 | * @Assert\Length(max="191") |
||
| 46 | * |
||
| 47 | * @ORM\Column(type="string", length=191) |
||
| 48 | */ |
||
| 49 | protected $merchant; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @ORM\Column(type="integer") |
||
| 53 | */ |
||
| 54 | protected $orderId; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @ORM\Column(type="text") |
||
| 58 | */ |
||
| 59 | protected $sessionId; |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @Assert\NotBlank() |
||
| 63 | * @Assert\Length(max="191") |
||
| 64 | * |
||
| 65 | * @ORM\Column(type="string", length=191) |
||
| 66 | */ |
||
| 67 | protected $currencySymbol; |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @Assert\NotBlank() |
||
| 71 | * |
||
| 72 | * @ORM\Column(type="decimal", precision=12, scale=2) |
||
| 73 | */ |
||
| 74 | protected $totalAmount; |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @Assert\NotBlank() |
||
| 78 | * @Assert\Length(max="191") |
||
| 79 | * |
||
| 80 | * @ORM\Column(type="string", length=191) |
||
| 81 | */ |
||
| 82 | protected $callBackUrl; |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @Assert\NotBlank() |
||
| 86 | * @Assert\Length(max="191") |
||
| 87 | * |
||
| 88 | * @ORM\Column(type="string", length=191) |
||
| 89 | */ |
||
| 90 | protected $fullCallBackOkUrl; |
||
| 91 | |||
| 92 | /** |
||
| 93 | * @Assert\NotBlank() |
||
| 94 | * @Assert\Length(max="191") |
||
| 95 | * |
||
| 96 | * @ORM\Column(type="string", length=191) |
||
| 97 | */ |
||
| 98 | protected $callBackOkUrl; |
||
| 99 | |||
| 100 | /** |
||
| 101 | * @Assert\NotBlank() |
||
| 102 | * @Assert\Length(max="191") |
||
| 103 | * |
||
| 104 | * @ORM\Column(type="string", length=191) |
||
| 105 | */ |
||
| 106 | protected $callBackServerUrl; |
||
| 107 | |||
| 108 | /** |
||
| 109 | * @Assert\NotBlank() |
||
| 110 | * |
||
| 111 | * @ORM\Column(type="integer") |
||
| 112 | */ |
||
| 113 | protected $languageId; |
||
| 114 | |||
| 115 | /** |
||
| 116 | * @Assert\NotBlank() |
||
| 117 | * @Assert\Length(max="191") |
||
| 118 | * |
||
| 119 | * @ORM\Column(type="string", length=191) |
||
| 120 | */ |
||
| 121 | protected $testMode; |
||
| 122 | |||
| 123 | /** |
||
| 124 | * @Assert\NotBlank() |
||
| 125 | * |
||
| 126 | * @ORM\Column(type="integer") |
||
| 127 | */ |
||
| 128 | protected $paymentGatewayCurrencyCode; |
||
| 129 | |||
| 130 | /** |
||
| 131 | * @Assert\NotBlank() |
||
| 132 | * |
||
| 133 | * @ORM\Column(type="integer") |
||
| 134 | */ |
||
| 135 | protected $cardTypeId; |
||
| 136 | |||
| 137 | /** |
||
| 138 | * @Assert\NotBlank() |
||
| 139 | * @Assert\Length(max="191") |
||
| 140 | * |
||
| 141 | * @ORM\Column(type="string", length=191) |
||
| 142 | */ |
||
| 143 | protected $customerRekvNr; |
||
| 144 | |||
| 145 | /** |
||
| 146 | * @Assert\NotBlank() |
||
| 147 | * @Assert\Length(max="191") |
||
| 148 | * |
||
| 149 | * @ORM\Column(type="string", length=191) |
||
| 150 | */ |
||
| 151 | protected $customerName; |
||
| 152 | |||
| 153 | /** |
||
| 154 | * @ORM\Column(type="string", nullable=true) |
||
| 155 | */ |
||
| 156 | protected $customerCompany; |
||
| 157 | |||
| 158 | /** |
||
| 159 | * @Assert\NotBlank() |
||
| 160 | * @Assert\Length(max="191") |
||
| 161 | * |
||
| 162 | * @ORM\Column(type="string", length=191) |
||
| 163 | */ |
||
| 164 | protected $customerAddress; |
||
| 165 | |||
| 166 | /** |
||
| 167 | * @ORM\Column(type="string", nullable=true) |
||
| 168 | */ |
||
| 169 | protected $customerAddress2; |
||
| 170 | |||
| 171 | /** |
||
| 172 | * @Assert\NotBlank() |
||
| 173 | * @Assert\Length(max="191") |
||
| 174 | * |
||
| 175 | * @ORM\Column(type="string", length=191) |
||
| 176 | */ |
||
| 177 | protected $customerZipCode; |
||
| 178 | |||
| 179 | /** |
||
| 180 | * @Assert\NotBlank() |
||
| 181 | * @Assert\Length(max="191") |
||
| 182 | * |
||
| 183 | * @ORM\Column(type="string", length=191) |
||
| 184 | */ |
||
| 185 | protected $customerCity; |
||
| 186 | |||
| 187 | /** |
||
| 188 | * @Assert\NotBlank() |
||
| 189 | * |
||
| 190 | * @ORM\Column(type="integer") |
||
| 191 | */ |
||
| 192 | protected $customerCountryId; |
||
| 193 | |||
| 194 | /** |
||
| 195 | * @Assert\NotBlank() |
||
| 196 | * @Assert\Length(max="191") |
||
| 197 | * |
||
| 198 | * @ORM\Column(type="string", length=191) |
||
| 199 | */ |
||
| 200 | protected $customerCountry; |
||
| 201 | |||
| 202 | /** |
||
| 203 | * @Assert\NotBlank() |
||
| 204 | * @Assert\Length(max="191") |
||
| 205 | * |
||
| 206 | * @ORM\Column(type="string", length=191) |
||
| 207 | */ |
||
| 208 | protected $customerPhone; |
||
| 209 | |||
| 210 | /** |
||
| 211 | * @ORM\Column(type="string", nullable=true) |
||
| 212 | */ |
||
| 213 | protected $customerFax; |
||
| 214 | |||
| 215 | /** |
||
| 216 | * @Assert\NotBlank() |
||
| 217 | * @Assert\Length(max="191") |
||
| 218 | * |
||
| 219 | * @ORM\Column(type="string", length=191) |
||
| 220 | */ |
||
| 221 | protected $customerEmail; |
||
| 222 | |||
| 223 | /** |
||
| 224 | * @ORM\Column(type="text", nullable=true) |
||
| 225 | */ |
||
| 226 | protected $customerNote; |
||
| 227 | |||
| 228 | /** |
||
| 229 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 230 | */ |
||
| 231 | protected $customerCvrnr; |
||
| 232 | |||
| 233 | /** |
||
| 234 | * @Assert\NotBlank() |
||
| 235 | * |
||
| 236 | * @ORM\Column(type="integer") |
||
| 237 | */ |
||
| 238 | protected $customerCustTypeId; |
||
| 239 | |||
| 240 | /** |
||
| 241 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 242 | */ |
||
| 243 | protected $customerEan; |
||
| 244 | |||
| 245 | /** |
||
| 246 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 247 | */ |
||
| 248 | protected $customerRes1; |
||
| 249 | |||
| 250 | /** |
||
| 251 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 252 | */ |
||
| 253 | protected $customerRes2; |
||
| 254 | |||
| 255 | /** |
||
| 256 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 257 | */ |
||
| 258 | protected $customerRes3; |
||
| 259 | |||
| 260 | /** |
||
| 261 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 262 | */ |
||
| 263 | protected $customerRes4; |
||
| 264 | |||
| 265 | /** |
||
| 266 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 267 | */ |
||
| 268 | protected $customerRes5; |
||
| 269 | |||
| 270 | /** |
||
| 271 | * @Assert\NotBlank() |
||
| 272 | * @Assert\Length(max="191") |
||
| 273 | * |
||
| 274 | * @ORM\Column(type="string", length=191) |
||
| 275 | */ |
||
| 276 | protected $customerIp; |
||
| 277 | |||
| 278 | /** |
||
| 279 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 280 | */ |
||
| 281 | protected $deliveryName; |
||
| 282 | |||
| 283 | /** |
||
| 284 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 285 | */ |
||
| 286 | protected $deliveryCompany; |
||
| 287 | |||
| 288 | /** |
||
| 289 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 290 | */ |
||
| 291 | protected $deliveryAddress; |
||
| 292 | |||
| 293 | /** |
||
| 294 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 295 | */ |
||
| 296 | protected $deliveryAddress2; |
||
| 297 | |||
| 298 | /** |
||
| 299 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 300 | */ |
||
| 301 | protected $deliveryZipCode; |
||
| 302 | |||
| 303 | /** |
||
| 304 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 305 | */ |
||
| 306 | protected $deliveryCity; |
||
| 307 | |||
| 308 | /** |
||
| 309 | * @ORM\Column(type="integer", nullable=true) |
||
| 310 | */ |
||
| 311 | protected $deliveryCountryID; |
||
| 312 | |||
| 313 | /** |
||
| 314 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 315 | */ |
||
| 316 | protected $deliveryCountry; |
||
| 317 | |||
| 318 | /** |
||
| 319 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 320 | */ |
||
| 321 | protected $deliveryPhone; |
||
| 322 | |||
| 323 | /** |
||
| 324 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 325 | */ |
||
| 326 | protected $deliveryFax; |
||
| 327 | |||
| 328 | /** |
||
| 329 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 330 | */ |
||
| 331 | protected $deliveryEmail; |
||
| 332 | |||
| 333 | /** |
||
| 334 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 335 | */ |
||
| 336 | protected $deliveryEan; |
||
| 337 | |||
| 338 | /** |
||
| 339 | * @Assert\NotBlank() |
||
| 340 | * @Assert\Length(max="191") |
||
| 341 | * |
||
| 342 | * @ORM\Column(type="string", length=191) |
||
| 343 | */ |
||
| 344 | protected $shippingMethod; |
||
| 345 | |||
| 346 | /** |
||
| 347 | * @Assert\NotBlank() |
||
| 348 | * |
||
| 349 | * @ORM\Column(type="decimal", precision=12, scale=2) |
||
| 350 | */ |
||
| 351 | protected $shippingFee; |
||
| 352 | |||
| 353 | /** |
||
| 354 | * @Assert\NotBlank() |
||
| 355 | * @Assert\Length(max="191") |
||
| 356 | * |
||
| 357 | * @ORM\Column(type="string", length=191) |
||
| 358 | */ |
||
| 359 | protected $paymentMethod; |
||
| 360 | |||
| 361 | /** |
||
| 362 | * @Assert\NotBlank() |
||
| 363 | * |
||
| 364 | * @ORM\Column(type="decimal", precision=12, scale=2) |
||
| 365 | */ |
||
| 366 | protected $paymentFee; |
||
| 367 | |||
| 368 | /** |
||
| 369 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 370 | */ |
||
| 371 | protected $loadBalancerRealIp; |
||
| 372 | |||
| 373 | /** |
||
| 374 | * @var string |
||
| 375 | * |
||
| 376 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 377 | */ |
||
| 378 | protected $referrer; |
||
| 379 | |||
| 380 | /** |
||
| 381 | * @ORM\OneToMany(targetEntity="PaymentLine", mappedBy="payment", cascade={"persist", "remove"}, fetch="EAGER") |
||
| 382 | */ |
||
| 383 | protected $paymentLines; |
||
| 384 | |||
| 385 | /********************************** |
||
| 386 | * Properties specific to Altapay * |
||
| 387 | *********************************/ |
||
| 388 | |||
| 389 | /** |
||
| 390 | * @var string|null |
||
| 391 | * |
||
| 392 | * @ORM\Column(type="string", nullable=true, unique=true, length=191) |
||
| 393 | */ |
||
| 394 | protected $altapayId; |
||
| 395 | |||
| 396 | /** |
||
| 397 | * @var string|null |
||
| 398 | * |
||
| 399 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 400 | */ |
||
| 401 | protected $cardStatus; |
||
| 402 | |||
| 403 | /** |
||
| 404 | * @var string|null |
||
| 405 | * |
||
| 406 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 407 | */ |
||
| 408 | protected $creditCardToken; |
||
| 409 | |||
| 410 | /** |
||
| 411 | * @var string|null |
||
| 412 | * |
||
| 413 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 414 | */ |
||
| 415 | protected $creditCardMaskedPan; |
||
| 416 | |||
| 417 | /** |
||
| 418 | * @var string|null |
||
| 419 | * |
||
| 420 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 421 | */ |
||
| 422 | protected $threeDSecureResult; |
||
| 423 | |||
| 424 | /** |
||
| 425 | * @var string|null |
||
| 426 | * |
||
| 427 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 428 | */ |
||
| 429 | protected $liableForChargeback; |
||
| 430 | |||
| 431 | /** |
||
| 432 | * @var string|null |
||
| 433 | * |
||
| 434 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 435 | */ |
||
| 436 | protected $blacklistToken; |
||
| 437 | |||
| 438 | /** |
||
| 439 | * @var string|null |
||
| 440 | * |
||
| 441 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 442 | */ |
||
| 443 | protected $shop; |
||
| 444 | |||
| 445 | /** |
||
| 446 | * @var string|null |
||
| 447 | * |
||
| 448 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 449 | */ |
||
| 450 | protected $terminal; |
||
| 451 | |||
| 452 | /** |
||
| 453 | * @var string|null |
||
| 454 | * |
||
| 455 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 456 | */ |
||
| 457 | protected $transactionStatus; |
||
| 458 | |||
| 459 | /** |
||
| 460 | * @var string|null |
||
| 461 | * |
||
| 462 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 463 | */ |
||
| 464 | protected $reasonCode; |
||
| 465 | |||
| 466 | /** |
||
| 467 | * @var int|null |
||
| 468 | * |
||
| 469 | * @ORM\Column(type="integer", nullable=true) |
||
| 470 | */ |
||
| 471 | protected $merchantCurrency; |
||
| 472 | |||
| 473 | /** |
||
| 474 | * @var string|null |
||
| 475 | * |
||
| 476 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 477 | */ |
||
| 478 | protected $merchantCurrencyAlpha; |
||
| 479 | |||
| 480 | /** |
||
| 481 | * @var int|null |
||
| 482 | * |
||
| 483 | * @ORM\Column(type="integer", nullable=true) |
||
| 484 | */ |
||
| 485 | protected $cardHolderCurrency; |
||
| 486 | |||
| 487 | /** |
||
| 488 | * @var string|null |
||
| 489 | * |
||
| 490 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 491 | */ |
||
| 492 | protected $cardHolderCurrencyAlpha; |
||
| 493 | |||
| 494 | /** |
||
| 495 | * @var float|null |
||
| 496 | * |
||
| 497 | * @ORM\Column(type="decimal", precision=10, scale=2) |
||
| 498 | */ |
||
| 499 | protected $reservedAmount; |
||
| 500 | |||
| 501 | /** |
||
| 502 | * @var float|null |
||
| 503 | * |
||
| 504 | * @ORM\Column(type="decimal", precision=10, scale=2) |
||
| 505 | */ |
||
| 506 | protected $capturedAmount; |
||
| 507 | |||
| 508 | /** |
||
| 509 | * @var float|null |
||
| 510 | * |
||
| 511 | * @ORM\Column(type="decimal", precision=10, scale=2) |
||
| 512 | */ |
||
| 513 | protected $refundedAmount; |
||
| 514 | |||
| 515 | /** |
||
| 516 | * @var float|null |
||
| 517 | * |
||
| 518 | * @ORM\Column(type="decimal", precision=10, scale=2) |
||
| 519 | */ |
||
| 520 | protected $recurringDefaultAmount; |
||
| 521 | |||
| 522 | /** |
||
| 523 | * @var \DateTime|null |
||
| 524 | * |
||
| 525 | * @ORM\Column(type="datetime", nullable=true) |
||
| 526 | */ |
||
| 527 | protected $createdDate; |
||
| 528 | |||
| 529 | /** |
||
| 530 | * @var \DateTime|null |
||
| 531 | * |
||
| 532 | * @ORM\Column(type="datetime", nullable=true) |
||
| 533 | */ |
||
| 534 | protected $updatedDate; |
||
| 535 | |||
| 536 | /** |
||
| 537 | * @var string|null |
||
| 538 | * |
||
| 539 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 540 | */ |
||
| 541 | protected $paymentNature; |
||
| 542 | |||
| 543 | /** |
||
| 544 | * @var bool|null |
||
| 545 | * |
||
| 546 | * @ORM\Column(type="boolean", nullable=true) |
||
| 547 | */ |
||
| 548 | protected $supportsRefunds; |
||
| 549 | |||
| 550 | /** |
||
| 551 | * @var bool|null |
||
| 552 | * |
||
| 553 | * @ORM\Column(type="boolean", nullable=true) |
||
| 554 | */ |
||
| 555 | protected $supportsRelease; |
||
| 556 | |||
| 557 | /** |
||
| 558 | * @var bool|null |
||
| 559 | * |
||
| 560 | * @ORM\Column(type="boolean", nullable=true) |
||
| 561 | */ |
||
| 562 | protected $supportsMultipleCaptures; |
||
| 563 | |||
| 564 | /** |
||
| 565 | * @var bool|null |
||
| 566 | * |
||
| 567 | * @ORM\Column(type="boolean", nullable=true) |
||
| 568 | */ |
||
| 569 | protected $supportsMultipleRefunds; |
||
| 570 | |||
| 571 | /** |
||
| 572 | * @var float|null |
||
| 573 | * |
||
| 574 | * @ORM\Column(type="float", nullable=true) |
||
| 575 | */ |
||
| 576 | protected $fraudRiskScore; |
||
| 577 | |||
| 578 | /** |
||
| 579 | * @var string|null |
||
| 580 | * |
||
| 581 | * @ORM\Column(type="string", nullable=true, length=191) |
||
| 582 | */ |
||
| 583 | protected $fraudExplanation; |
||
| 584 | |||
| 585 | public function __construct() |
||
| 595 | |||
| 596 | /** |
||
| 597 | * This will transform a Dandomain Payment (parent) to a Payment (child). |
||
| 598 | * |
||
| 599 | * @param DandomainPayment $dandomainPayment |
||
| 600 | * |
||
| 601 | * @return Payment |
||
| 602 | */ |
||
| 603 | public static function createFromDandomainPayment(DandomainPayment $dandomainPayment) |
||
| 638 | |||
| 639 | /** |
||
| 640 | * Returns true if the payment can be captured. |
||
| 641 | * |
||
| 642 | * @return bool |
||
| 643 | */ |
||
| 644 | public function isCaptureable(): bool |
||
| 656 | |||
| 657 | /** |
||
| 658 | * Returns true if the payment can be refunded. |
||
| 659 | * |
||
| 660 | * @return bool |
||
| 661 | */ |
||
| 662 | public function isRefundable(): bool |
||
| 674 | |||
| 675 | /** |
||
| 676 | * @return float |
||
| 677 | */ |
||
| 678 | public function refundableAmount() |
||
| 684 | |||
| 685 | /** |
||
| 686 | * @return float |
||
| 687 | */ |
||
| 688 | public function capturableAmount() |
||
| 695 | |||
| 696 | // @todo create type hints for getters and setters |
||
| 697 | |||
| 698 | /** |
||
| 699 | * @return int |
||
| 700 | */ |
||
| 701 | public function getId(): ?int |
||
| 705 | |||
| 706 | /** |
||
| 707 | * @param int $id |
||
| 708 | * |
||
| 709 | * @return Payment |
||
| 710 | */ |
||
| 711 | public function setId(int $id): self |
||
| 717 | |||
| 718 | /** |
||
| 719 | * @return null|string |
||
| 720 | */ |
||
| 721 | public function getAltapayId() |
||
| 725 | |||
| 726 | /** |
||
| 727 | * @param null|string $altapayId |
||
| 728 | * |
||
| 729 | * @return Payment |
||
| 730 | */ |
||
| 731 | public function setAltapayId($altapayId) |
||
| 737 | |||
| 738 | /** |
||
| 739 | * @return null|string |
||
| 740 | */ |
||
| 741 | public function getCardStatus() |
||
| 745 | |||
| 746 | /** |
||
| 747 | * @param null|string $cardStatus |
||
| 748 | * |
||
| 749 | * @return Payment |
||
| 750 | */ |
||
| 751 | public function setCardStatus($cardStatus) |
||
| 757 | |||
| 758 | /** |
||
| 759 | * @return null|string |
||
| 760 | */ |
||
| 761 | public function getCreditCardToken() |
||
| 765 | |||
| 766 | /** |
||
| 767 | * @param null|string $creditCardToken |
||
| 768 | * |
||
| 769 | * @return Payment |
||
| 770 | */ |
||
| 771 | public function setCreditCardToken($creditCardToken) |
||
| 777 | |||
| 778 | /** |
||
| 779 | * @return null|string |
||
| 780 | */ |
||
| 781 | public function getCreditCardMaskedPan() |
||
| 785 | |||
| 786 | /** |
||
| 787 | * @param null|string $creditCardMaskedPan |
||
| 788 | * |
||
| 789 | * @return Payment |
||
| 790 | */ |
||
| 791 | public function setCreditCardMaskedPan($creditCardMaskedPan) |
||
| 797 | |||
| 798 | /** |
||
| 799 | * @return null|string |
||
| 800 | */ |
||
| 801 | public function getThreeDSecureResult() |
||
| 805 | |||
| 806 | /** |
||
| 807 | * @param null|string $threeDSecureResult |
||
| 808 | * |
||
| 809 | * @return Payment |
||
| 810 | */ |
||
| 811 | public function setThreeDSecureResult($threeDSecureResult) |
||
| 817 | |||
| 818 | /** |
||
| 819 | * @return null|string |
||
| 820 | */ |
||
| 821 | public function getLiableForChargeback() |
||
| 825 | |||
| 826 | /** |
||
| 827 | * @param null|string $liableForChargeback |
||
| 828 | * |
||
| 829 | * @return Payment |
||
| 830 | */ |
||
| 831 | public function setLiableForChargeback($liableForChargeback) |
||
| 837 | |||
| 838 | /** |
||
| 839 | * @return null|string |
||
| 840 | */ |
||
| 841 | public function getBlacklistToken() |
||
| 845 | |||
| 846 | /** |
||
| 847 | * @param null|string $blacklistToken |
||
| 848 | * |
||
| 849 | * @return Payment |
||
| 850 | */ |
||
| 851 | public function setBlacklistToken($blacklistToken) |
||
| 857 | |||
| 858 | /** |
||
| 859 | * @return null|string |
||
| 860 | */ |
||
| 861 | public function getShop() |
||
| 865 | |||
| 866 | /** |
||
| 867 | * @param null|string $shop |
||
| 868 | * |
||
| 869 | * @return Payment |
||
| 870 | */ |
||
| 871 | public function setShop($shop) |
||
| 877 | |||
| 878 | /** |
||
| 879 | * @return null|string |
||
| 880 | */ |
||
| 881 | public function getTerminal() |
||
| 885 | |||
| 886 | /** |
||
| 887 | * @param null|string $terminal |
||
| 888 | * |
||
| 889 | * @return Payment |
||
| 890 | */ |
||
| 891 | public function setTerminal($terminal) |
||
| 897 | |||
| 898 | /** |
||
| 899 | * @return null|string |
||
| 900 | */ |
||
| 901 | public function getTransactionStatus() |
||
| 905 | |||
| 906 | /** |
||
| 907 | * @param null|string $transactionStatus |
||
| 908 | * |
||
| 909 | * @return Payment |
||
| 910 | */ |
||
| 911 | public function setTransactionStatus($transactionStatus) |
||
| 917 | |||
| 918 | /** |
||
| 919 | * @return null|string |
||
| 920 | */ |
||
| 921 | public function getReasonCode() |
||
| 925 | |||
| 926 | /** |
||
| 927 | * @param null|string $reasonCode |
||
| 928 | * |
||
| 929 | * @return Payment |
||
| 930 | */ |
||
| 931 | public function setReasonCode($reasonCode) |
||
| 937 | |||
| 938 | /** |
||
| 939 | * @return int|null |
||
| 940 | */ |
||
| 941 | public function getMerchantCurrency() |
||
| 945 | |||
| 946 | /** |
||
| 947 | * @param int|null $merchantCurrency |
||
| 948 | * |
||
| 949 | * @return Payment |
||
| 950 | */ |
||
| 951 | public function setMerchantCurrency($merchantCurrency) |
||
| 957 | |||
| 958 | /** |
||
| 959 | * @return null|string |
||
| 960 | */ |
||
| 961 | public function getMerchantCurrencyAlpha() |
||
| 965 | |||
| 966 | /** |
||
| 967 | * @param null|string $merchantCurrencyAlpha |
||
| 968 | * |
||
| 969 | * @return Payment |
||
| 970 | */ |
||
| 971 | public function setMerchantCurrencyAlpha($merchantCurrencyAlpha) |
||
| 977 | |||
| 978 | /** |
||
| 979 | * @return int|null |
||
| 980 | */ |
||
| 981 | public function getCardHolderCurrency() |
||
| 985 | |||
| 986 | /** |
||
| 987 | * @param int|null $cardHolderCurrency |
||
| 988 | * |
||
| 989 | * @return Payment |
||
| 990 | */ |
||
| 991 | public function setCardHolderCurrency($cardHolderCurrency) |
||
| 997 | |||
| 998 | /** |
||
| 999 | * @return null|string |
||
| 1000 | */ |
||
| 1001 | public function getCardHolderCurrencyAlpha() |
||
| 1005 | |||
| 1006 | /** |
||
| 1007 | * @param null|string $cardHolderCurrencyAlpha |
||
| 1008 | * |
||
| 1009 | * @return Payment |
||
| 1010 | */ |
||
| 1011 | public function setCardHolderCurrencyAlpha($cardHolderCurrencyAlpha) |
||
| 1017 | |||
| 1018 | /** |
||
| 1019 | * @return float|null |
||
| 1020 | */ |
||
| 1021 | public function getReservedAmount() |
||
| 1025 | |||
| 1026 | /** |
||
| 1027 | * @param float|null $reservedAmount |
||
| 1028 | * |
||
| 1029 | * @return Payment |
||
| 1030 | */ |
||
| 1031 | public function setReservedAmount($reservedAmount) |
||
| 1037 | |||
| 1038 | /** |
||
| 1039 | * @return float|null |
||
| 1040 | */ |
||
| 1041 | public function getCapturedAmount() |
||
| 1045 | |||
| 1046 | /** |
||
| 1047 | * @param float|null $capturedAmount |
||
| 1048 | * |
||
| 1049 | * @return Payment |
||
| 1050 | */ |
||
| 1051 | public function setCapturedAmount($capturedAmount) |
||
| 1057 | |||
| 1058 | /** |
||
| 1059 | * @return float|null |
||
| 1060 | */ |
||
| 1061 | public function getRefundedAmount() |
||
| 1065 | |||
| 1066 | /** |
||
| 1067 | * @param float|null $refundedAmount |
||
| 1068 | * |
||
| 1069 | * @return Payment |
||
| 1070 | */ |
||
| 1071 | public function setRefundedAmount($refundedAmount) |
||
| 1077 | |||
| 1078 | /** |
||
| 1079 | * @return float|null |
||
| 1080 | */ |
||
| 1081 | public function getRecurringDefaultAmount() |
||
| 1085 | |||
| 1086 | /** |
||
| 1087 | * @param float|null $recurringDefaultAmount |
||
| 1088 | * |
||
| 1089 | * @return Payment |
||
| 1090 | */ |
||
| 1091 | public function setRecurringDefaultAmount($recurringDefaultAmount) |
||
| 1097 | |||
| 1098 | /** |
||
| 1099 | * @return \DateTime|null |
||
| 1100 | */ |
||
| 1101 | public function getCreatedDate() |
||
| 1105 | |||
| 1106 | /** |
||
| 1107 | * @param \DateTimeInterface|null $createdDate |
||
| 1108 | * |
||
| 1109 | * @return Payment |
||
| 1110 | */ |
||
| 1111 | public function setCreatedDate($createdDate) |
||
| 1117 | |||
| 1118 | /** |
||
| 1119 | * @return \DateTime|null |
||
| 1120 | */ |
||
| 1121 | public function getUpdatedDate() |
||
| 1125 | |||
| 1126 | /** |
||
| 1127 | * @param \DateTimeInterface|null $updatedDate |
||
| 1128 | * |
||
| 1129 | * @return Payment |
||
| 1130 | */ |
||
| 1131 | public function setUpdatedDate($updatedDate) |
||
| 1137 | |||
| 1138 | /** |
||
| 1139 | * @return null|string |
||
| 1140 | */ |
||
| 1141 | public function getPaymentNature() |
||
| 1145 | |||
| 1146 | /** |
||
| 1147 | * @param null|string $paymentNature |
||
| 1148 | * |
||
| 1149 | * @return Payment |
||
| 1150 | */ |
||
| 1151 | public function setPaymentNature($paymentNature) |
||
| 1157 | |||
| 1158 | /** |
||
| 1159 | * @return bool|null |
||
| 1160 | */ |
||
| 1161 | public function getSupportsRefunds() |
||
| 1165 | |||
| 1166 | /** |
||
| 1167 | * @param bool|null $supportsRefunds |
||
| 1168 | * |
||
| 1169 | * @return Payment |
||
| 1170 | */ |
||
| 1171 | public function setSupportsRefunds($supportsRefunds) |
||
| 1177 | |||
| 1178 | /** |
||
| 1179 | * @return bool|null |
||
| 1180 | */ |
||
| 1181 | public function getSupportsRelease() |
||
| 1185 | |||
| 1186 | /** |
||
| 1187 | * @param bool|null $supportsRelease |
||
| 1188 | * |
||
| 1189 | * @return Payment |
||
| 1190 | */ |
||
| 1191 | public function setSupportsRelease($supportsRelease) |
||
| 1197 | |||
| 1198 | /** |
||
| 1199 | * @return bool|null |
||
| 1200 | */ |
||
| 1201 | public function getSupportsMultipleCaptures() |
||
| 1205 | |||
| 1206 | /** |
||
| 1207 | * @param bool|null $supportsMultipleCaptures |
||
| 1208 | * |
||
| 1209 | * @return Payment |
||
| 1210 | */ |
||
| 1211 | public function setSupportsMultipleCaptures($supportsMultipleCaptures) |
||
| 1217 | |||
| 1218 | /** |
||
| 1219 | * @return bool|null |
||
| 1220 | */ |
||
| 1221 | public function getSupportsMultipleRefunds() |
||
| 1225 | |||
| 1226 | /** |
||
| 1227 | * @param bool|null $supportsMultipleRefunds |
||
| 1228 | * |
||
| 1229 | * @return Payment |
||
| 1230 | */ |
||
| 1231 | public function setSupportsMultipleRefunds($supportsMultipleRefunds) |
||
| 1237 | |||
| 1238 | /** |
||
| 1239 | * @return float|null |
||
| 1240 | */ |
||
| 1241 | public function getFraudRiskScore() |
||
| 1245 | |||
| 1246 | /** |
||
| 1247 | * @param float|null $fraudRiskScore |
||
| 1248 | * |
||
| 1249 | * @return Payment |
||
| 1250 | */ |
||
| 1251 | public function setFraudRiskScore($fraudRiskScore) |
||
| 1257 | |||
| 1258 | /** |
||
| 1259 | * @return null|string |
||
| 1260 | */ |
||
| 1261 | public function getFraudExplanation() |
||
| 1265 | |||
| 1266 | /** |
||
| 1267 | * @param null|string $fraudExplanation |
||
| 1268 | * |
||
| 1269 | * @return Payment |
||
| 1270 | */ |
||
| 1271 | public function setFraudExplanation($fraudExplanation) |
||
| 1277 | } |
||
| 1278 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..