Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.unzer.payment</groupId>
<artifactId>java-sdk</artifactId>
<version>5.9.0</version>
<version>5.10.0</version>
<name>Unzer Java SDK</name>
<description>Unzer SDK provides an easy way to use Unzer Payment API.</description>
<url>https://docs.unzer.com/</url>
Expand Down
Loading