Skip to content

Commit af67efa

Browse files
authored
[CC-444] Prepare release 4.2.0 (#132)
Co-authored-by: Vladislav Lipianin <>
1 parent 9415795 commit af67efa

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres
77
to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
88

9-
## [UNRELEASED](https://github.com/unzerdev/java-sdk/compare/4.1.0..4.2.0)
9+
## [4.2.0](https://github.com/unzerdev/java-sdk/compare/4.1.0..4.2.0)
1010

11-
This Java SDK version supports Unzer Paylater Installment.
11+
This Java SDK version delivers Unzer Paylater Installment to Java projects.
1212

1313
### Added
1414

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![Logo](docs/images/unzer_logo.svg)
1+
<img src="docs/images/unzer_logo.svg" height="120px" alt="Unzer logo"/>
22

33
# Unzer Java Payment SDK
44

@@ -14,7 +14,7 @@ Java 1.8 or later.
1414
<dependency>
1515
<groupId>com.unzer.payment</groupId>
1616
<artifactId>java-sdk</artifactId>
17-
<version>4.1.0</version>
17+
<version>4.2.0</version>
1818
</dependency>
1919
```
2020

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.unzer.payment</groupId>
88
<artifactId>java-sdk</artifactId>
9-
<version>4.1.0</version>
9+
<version>4.2.0</version>
1010
<name>Unzer Java SDK</name>
1111
<description>Unzer Java SDK provides an easy way to connect to the Unzer Rest API.</description>
1212
<url>https://docs.unzer.com/</url>

src/main/java/com/unzer/payment/service/PaymentService.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,10 @@ public Cancel cancelAuthorization(String paymentId, Cancel cancel)
712712
}
713713

714714
private Cancel cancel(Cancel cancel, String url) throws HttpCommunicationException {
715-
String response = restCommunication.httpPost(url, unzer.getPrivateKey(),
716-
apiToSdkMapper.map(cancel));
715+
String response = restCommunication.httpPost(
716+
url, unzer.getPrivateKey(),
717+
apiToSdkMapper.map(cancel)
718+
);
717719
JsonCancel jsonCancel = jsonParser.fromJson(response, JsonCancel.class);
718720
cancel = (Cancel) apiToSdkMapper.mapToBusinessObject(jsonCancel, cancel);
719721
cancel.setPayment(fetchPayment(jsonCancel.getResources().getPaymentId()));

0 commit comments

Comments
 (0)