diff --git a/CHANGELOG.md b/CHANGELOG.md index 26f03214..5d137da3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,14 +6,37 @@ 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. +* 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` / `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 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) 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/