From 88287b349bb1c9ce1da5762a915217a1d7cefe21 Mon Sep 17 00:00:00 2001 From: David Owusu Date: Thu, 5 Nov 2026 15:48:14 +0100 Subject: [PATCH 1/4] [CC-4252] Changelog for 5.10.0 release Consolidate the 5.10.0 release notes into one section: recurring flag on SepaDirectDebit (CC-4240), company field on Address (CC-3264), Sofort / enum-constant deprecations (CC-4253) and the confirmedAmount fix (CC-2923), alongside the already-merged Pis deprecation (CC-4065). The individual feature PRs carry no changelog entry so they don't conflict here. Co-Authored-By: Claude Opus 4.8 (1M context) --- CHANGELOG.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26f03214..30ce95c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [5.10.0](https://github.com/unzerdev/java-sdk/compare/5.9.0..5.10.0) + +### Added + +* `recurring` flag on `SepaDirectDebit` (`com.unzer.payment.paymenttypes.SepaDirectDebit`) for registering a payment type for recurring (mandate-based) collection. +* Optional `company` field on `Address` (`com.unzer.payment.Address`), used for billing and shipping addresses. ### Deprecated @@ -14,6 +19,11 @@ to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). and the corresponding `PaymentTypeEnum.PIS` constant. This does **not** affect the separate Open Banking payment type (`com.unzer.payment.paymenttypes.OpenBanking` / `PaymentTypeEnum.OPEN_BANKING`), which remains fully supported. +* Deprecated `Sofort` payment type (`com.unzer.payment.paymenttypes.Sofort`) and the `PaymentTypeEnum` constants `SOFORT`, `GIROPAY`, `INVOICE` and `HIRE_PURCHASE_RATE_PLAN`. Use `PaylaterInvoice` instead of Invoice and `PaylaterInstallment` instead of Hire Purchase. + +### Fixed + +* `confirmedAmount` on the PayPage V2 `Risk` object (`com.unzer.payment.models.paypage.Risk`) is now a nullable `Double` and is omitted from the request body when unset, instead of always defaulting to `0.0`. ## [5.9.0](https://github.com/unzerdev/java-sdk/compare/5.8.2..5.9.0) From 9a77898abd36c1bb74e44675ad3222a3362152c2 Mon Sep 17 00:00:00 2001 From: David Owusu <33735090+Ryouzanpaku@users.noreply.github.com> Date: Thu, 12 Nov 2026 15:27:36 +0100 Subject: [PATCH 2/4] [CC-4252] Bump project version to 5.10.0 Prior release PRs bumped pom.xml alongside the changelog; this was missing from the 5.10.0 release PR. Co-Authored-By: Claude Opus 4.8 (1M context) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6ed4a355..aa04bff3 100755 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.unzer.payment java-sdk - 5.9.0 + 5.10.0 Unzer Java SDK Unzer SDK provides an easy way to use Unzer Payment API. https://docs.unzer.com/ From f2182f2930e6915c8074065ff12e95f5e499dece Mon Sep 17 00:00:00 2001 From: David Owusu <33735090+Ryouzanpaku@users.noreply.github.com> Date: Tue, 24 Nov 2026 12:56:21 +0100 Subject: [PATCH 3/4] [CC-4252] [CC-4252] Note Double return-type change for Risk.getConfirmedAmount in changelog getConfirmedAmount() now returns Double instead of primitive double; callers assigning to a primitive double can hit a NullPointerException when unset. Addresses PR #193 review note (sixer1182). Co-Authored-By: Claude Opus 4.8 (1M context) --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30ce95c4..f4e24793 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,7 +23,7 @@ to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ### Fixed -* `confirmedAmount` on the PayPage V2 `Risk` object (`com.unzer.payment.models.paypage.Risk`) is now a nullable `Double` and is omitted from the request body when unset, instead of always defaulting to `0.0`. +* `confirmedAmount` on the PayPage V2 `Risk` object (`com.unzer.payment.models.paypage.Risk`) is now a nullable `Double` and is omitted from the request body when unset, instead of always defaulting to `0.0`. **Note:** `getConfirmedAmount()` now returns `Double` instead of primitive `double`; callers assigning the result to a primitive `double` will get a `NullPointerException` when the value was never set. ## [5.9.0](https://github.com/unzerdev/java-sdk/compare/5.8.2..5.9.0) From 6f0d4caabf5c40e969e2d779b83dec18f07c161f Mon Sep 17 00:00:00 2001 From: David Owusu <33735090+Ryouzanpaku@users.noreply.github.com> Date: Wed, 2 Dec 2026 13:31:21 +0100 Subject: [PATCH 4/4] [CC-4252] [CC-4252] Add SECCI plans entries; correct Risk.confirmedAmount note Move the SECCI plans feature, minimumInstallmentFee, and fetchPaylaterInstallmentPlans deprecation (from #198) into this release changelog, which owns the 5.10.0 version bump. Correct the Risk.confirmedAmount Fixed entry: the public double API is kept (see #193), so there is no source/binary break. Co-Authored-By: Claude Opus 4.8 (1M context) --- CHANGELOG.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4e24793..5d137da3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,9 +12,22 @@ to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). * `recurring` flag on `SepaDirectDebit` (`com.unzer.payment.paymenttypes.SepaDirectDebit`) for registering a payment type for recurring (mandate-based) collection. * Optional `company` field on `Address` (`com.unzer.payment.Address`), used for billing and shipping addresses. +* Added support for fetching Paylater **Invoice** and **Direct Debit** (CCD2) plans via the new + `Unzer#fetchPaylaterPlans(PaylaterPlansRequest, PaylaterPlanType)` method. Each returned plan + exposes its `secciUrl`; the SECCI PDF locale follows the configured `Locale` (`Accept-Language`). + * New enum `com.unzer.payment.models.paylater.PaylaterPlanType` + (`INSTALLMENT`, `INVOICE`, `DIRECT_DEBIT`) carrying the request URL segment. + * New request model `com.unzer.payment.models.paylater.PaylaterPlansRequest`. + * New result model `com.unzer.payment.PaylaterPlans`. +* Exposed `minimumInstallmentFee` on `com.unzer.payment.models.paylater.InstallmentPlan`; it is now + mapped from the API response for both the new `fetchPaylaterPlans` and the legacy + `fetchPaylaterInstallmentPlans` flows. ### Deprecated +* Deprecated `Unzer#fetchPaylaterInstallmentPlans(InstallmentPlansRequest)` in favour of + `Unzer#fetchPaylaterPlans(PaylaterPlansRequest, PaylaterPlanType.INSTALLMENT)`. The old method, + `InstallmentPlansRequest` and `PaylaterInstallmentPlans` remain as backward-compatible aliases. * Deprecated PIS / Unzer Bank Transfer payment type (`com.unzer.payment.paymenttypes.Pis`) and the corresponding `PaymentTypeEnum.PIS` constant. This does **not** affect the separate Open Banking payment type (`com.unzer.payment.paymenttypes.OpenBanking` / @@ -23,7 +36,7 @@ to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ### Fixed -* `confirmedAmount` on the PayPage V2 `Risk` object (`com.unzer.payment.models.paypage.Risk`) is now a nullable `Double` and is omitted from the request body when unset, instead of always defaulting to `0.0`. **Note:** `getConfirmedAmount()` now returns `Double` instead of primitive `double`; callers assigning the result to a primitive `double` will get a `NullPointerException` when the value was never set. +* `confirmedAmount` on the PayPage V2 `Risk` object (`com.unzer.payment.models.paypage.Risk`) is now omitted from the request body when unset, instead of always being sent as `0.0`. A value set via `setConfirmedAmount(...)` — including `0.0` — is still sent. The public `double getConfirmedAmount()` / `setConfirmedAmount(double)` API is unchanged, so there is no source- or binary-compatibility break. ## [5.9.0](https://github.com/unzerdev/java-sdk/compare/5.8.2..5.9.0)