Skip to content

Commit d91d487

Browse files
committed
Release 2.2.0
1 parent 5724648 commit d91d487

File tree

213 files changed

+661
-428
lines changed

Some content is hidden

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

213 files changed

+661
-428
lines changed

README.md

Lines changed: 6 additions & 14 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.1.2</version>
26+
<version>2.2.0</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.1.2"
36+
compile "com.postfinancecheckout:postfinancecheckout-java-sdk:2.2.0"
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.1.2.jar`
49+
* `target/postfinancecheckout-java-sdk-2.2.0.jar`
5050
* `target/lib/*.jar`
5151

5252
## Usage
@@ -72,7 +72,7 @@ public class Example {
7272
ApiClient apiClient = new ApiClient(userId, secret);
7373

7474
// Create API service instance.
75-
TransactionService transactionService = new TransactionService(apiClient);
75+
TransactionService transactionService = apiClient.getTransactionService();
7676

7777
}
7878
}
@@ -105,8 +105,6 @@ public class TransactionPaymentPageServiceTest {
105105

106106
// Services
107107
private ApiClient apiClient;
108-
private TransactionPaymentPageService transactionPaymentPageService;
109-
private TransactionService transactionService;
110108

111109
// Models
112110
private TransactionCreate transactionPayload;
@@ -116,12 +114,6 @@ public class TransactionPaymentPageServiceTest {
116114
if (this.apiClient == null) {
117115
this.apiClient = new ApiClient(applicationUserId, authenticationKey);
118116
}
119-
if (this.transactionPaymentPageService == null) {
120-
this.transactionPaymentPageService = new TransactionPaymentPageService(this.apiClient);
121-
}
122-
if (this.transactionService == null) {
123-
this.transactionService = new TransactionService(this.apiClient);
124-
}
125117
}
126118

127119
/**
@@ -171,8 +163,8 @@ public class TransactionPaymentPageServiceTest {
171163
@Test
172164
public void paymentPageUrlTest() {
173165
try {
174-
Transaction transaction = this.transactionService.create(this.spaceId, this.getTransactionPayload());
175-
String paymentPageUrl = this.transactionPaymentPageService.paymentPageUrl(spaceId, transaction.getId());
166+
Transaction transaction = this.apiClient.getTransactionService().create(this.spaceId, this.getTransactionPayload());
167+
String paymentPageUrl = this.apiClient.getTransactionPaymentPageService.paymentPageUrl(spaceId, transaction.getId());
176168
Assert.assertTrue(paymentPageUrl.contains("https://"));
177169
} catch (Exception e) {
178170
e.printStackTrace();

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.1.2'
5+
version = '2.2.0'
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.1.2",
5+
version := "2.2.0",
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.1.2</version>
8+
<version>2.2.0</version>
99
<url>https://www.postfinance.ch/checkout</url>
1010
<description>The SDK for simplifying the integration with PostFinance Checkout API.</description>
1111
<scm>

0 commit comments

Comments
 (0)