Skip to content

Commit c719e3a

Browse files
committed
Release 2.2.8
1 parent bd62127 commit c719e3a

File tree

282 files changed

+3773
-2081
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

282 files changed

+3773
-2081
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2020 customweb GmbH
189+
Copyright 2020 wallee AG
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Add this dependency to your project's POM:
2323
<dependency>
2424
<groupId>com.postfinancecheckout</groupId>
2525
<artifactId>postfinancecheckout-java-sdk</artifactId>
26-
<version>2.2.7</version>
26+
<version>2.2.8</version>
2727
<scope>compile</scope>
2828
</dependency>
2929
```
@@ -33,7 +33,7 @@ Add this dependency to your project's POM:
3333
Add this dependency to your project's build file:
3434

3535
```groovy
36-
compile "com.postfinancecheckout:postfinancecheckout-java-sdk:2.2.7"
36+
compile "com.postfinancecheckout:postfinancecheckout-java-sdk:2.2.8"
3737
```
3838

3939
### Others
@@ -46,7 +46,7 @@ mvn clean package
4646

4747
Then manually install the following JARs:
4848

49-
* `target/postfinancecheckout-java-sdk-2.2.7.jar`
49+
* `target/postfinancecheckout-java-sdk-2.2.8.jar`
5050
* `target/lib/*.jar`
5151

5252
## Usage

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.postfinancecheckout'
5-
version = '2.2.7'
5+
version = '2.2.8'
66

77
buildscript {
88
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.postfinancecheckout",
44
name := "postfinancecheckout-java-sdk",
5-
version := "2.2.7",
5+
version := "2.2.8",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>postfinancecheckout-java-sdk</artifactId>
66
<packaging>jar</packaging>
77
<name>postfinancecheckout-java-sdk</name>
8-
<version>2.2.7</version>
8+
<version>2.2.8</version>
99
<url>https://www.postfinance.ch/checkout</url>
1010
<description>The SDK for simplifying the integration with PostFinance Checkout API.</description>
1111
<scm>

src/main/java/com/postfinancecheckout/sdk/ApiClient.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ public class ApiClient {
2323
private final ObjectMapper objectMapper;
2424
private final long userId;
2525
private final String applicationKey;
26+
public final static int READ_TIMEOUT = 20 * 1000;
2627

2728
// A reasonable default object mapper. Client can pass in a chosen ObjectMapper anyway, this is just for reasonable defaults.
2829
private static ObjectMapper createDefaultObjectMapper() {
2930
ObjectMapper objectMapper = new ObjectMapper()
3031
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
3132
.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)
32-
.setDateFormat(new RFC3339DateFormat());
33-
objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
33+
.setDateFormat(new RFC3339DateFormat())
34+
.setSerializationInclusion(JsonInclude.Include.NON_NULL);
3435
objectMapper.registerModule(new JavaTimeModule());
3536
return objectMapper;
3637
}

src/main/java/com/postfinancecheckout/sdk/RFC3339DateFormat.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* SDK
2+
* PostFinance Checkout SDK
33
*
4-
* This library allows to interact with the payment service.
4+
* This library allows to interact with the PostFinance Checkout payment service.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -18,19 +18,22 @@
1818

1919
package com.postfinancecheckout.sdk;
2020

21-
import com.fasterxml.jackson.databind.util.ISO8601DateFormat;
22-
import com.fasterxml.jackson.databind.util.ISO8601Utils;
21+
import com.fasterxml.jackson.databind.util.StdDateFormat;
2322

23+
import java.text.DateFormat;
2424
import java.text.FieldPosition;
25+
import java.text.SimpleDateFormat;
2526
import java.util.Date;
27+
import java.util.TimeZone;
2628

27-
28-
public class RFC3339DateFormat extends ISO8601DateFormat {
29+
public class RFC3339DateFormat extends StdDateFormat {
2930

3031
// Same as ISO8601DateFormat but serializing milliseconds.
3132
@Override
3233
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
33-
String value = ISO8601Utils.format(date, true);
34+
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
35+
dateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
36+
String value = dateFormat.format(date);
3437
toAppendTo.append(value);
3538
return toAppendTo;
3639
}

src/main/java/com/postfinancecheckout/sdk/StringUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* SDK
2+
* PostFinance Checkout SDK
33
*
4-
* This library allows to interact with the payment service.
4+
* This library allows to interact with the PostFinance Checkout payment service.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

src/main/java/com/postfinancecheckout/sdk/model/AbstractAccountUpdate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* SDK
2+
* PostFinance Checkout SDK
33
*
4-
* This library allows to interact with the payment service.
4+
* This library allows to interact with the PostFinance Checkout payment service.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

src/main/java/com/postfinancecheckout/sdk/model/AbstractApplicationUserUpdate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* SDK
2+
* PostFinance Checkout SDK
33
*
4-
* This library allows to interact with the payment service.
4+
* This library allows to interact with the PostFinance Checkout payment service.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)