Repository navigation
[CC-4253] Deprecate Sofort and remaining payment-type enum constants - #194
Merged
Merged
Conversation
Add class-level @deprecated to Sofort (mirroring Giropay) and @deprecated to the un-annotated PaymentTypeEnum constants SOFORT, GIROPAY, INVOICE and HIRE_PURCHASE_RATE_PLAN. Internal PaymentService dispatch branches are left unannotated, consistent with the already-deprecated constants. PIS is intentionally untouched (handled by CC-4065). Changelog updated under [Unreleased]. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Changelog and version edits are scoped to the release ticket (CC-4252), so this feature branch no longer touches CHANGELOG and won't conflict.
Ryouzanpaku
marked this pull request as ready for review
November 12, 2026 14:57
sixer1182
approved these changes
Nov 17, 2026
Member
|
Please disregard my earlier review comment on this PR. I re-checked it against the ticket (CC-4253) and all four points were wrong:
The PR implements the ticket as specified. One small remaining item from the ticket: please note the decision about |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Deprecation-only change, following the existing Giropay deprecation pattern. No production class, enum constant, or method is removed.
Annotated symbols
com.unzer.payment.paymenttypes.Sofort— class-level@Deprecated+@deprecatedjavadoc line, worded identically toGiropay.PaymentTypeEnum.SOFORTPaymentTypeEnum.GIROPAYPaymentTypeEnum.INVOICE(replacement:PaymentTypeEnum.UNZER_PAYLATER_INVOICE/PaylaterInvoice)PaymentTypeEnum.HIRE_PURCHASE_RATE_PLAN(replacement:PaymentTypeEnum.PAYLATER_INSTALLMENT/PaylaterInstallment)The pre-existing
charge(...)overloads inSofortwere already@Deprecatedand were left untouched.Deliberately not touched
PaymentService.java(case SOFORT:/case GIROPAY:/case INVOICE:/case HIRE_PURCHASE_RATE_PLAN:) are intentionally left unannotated and unsuppressed, consistent with how the already-deprecated constants are handled there.PaymentTypeEnum.PISis intentionally NOT touched — it is handled by a separate ticket (CC-4065) to avoid conflicts between the two PRs.Changelog
Added an
## [Unreleased]section with a### Deprecatedlist. No version bump, no existing release header edited.Verification
mvn test-compileclean (JDK 17).mvn test -Dtest=PaymentServiceTest— 8 passed.src/main(additions only).🤖 Generated with Claude Code