Skip to content

Commit a1e74a1

Browse files
Release 6.0.0
1 parent b0ff55c commit a1e74a1

File tree

108 files changed

+2939
-952
lines changed

Some content is hidden

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

108 files changed

+2939
-952
lines changed

.github/workflows/maven-publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2+
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
3+
4+
name: Maven Package
5+
on:
6+
push
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-java@v3
18+
with:
19+
distribution: 'temurin' # See 'Supported distributions' for available options
20+
java-version: '8'
21+
22+
- name: install
23+
run : mvn install -P !build-extras -DskipTests=true -Dmaven.javadoc.skip=true -B -V
24+
25+
- name: Build with Maven
26+
id: build
27+
run: mvn -B package --file pom.xml
28+
29+
- name: Release Maven package
30+
uses: samuelmeuli/action-maven-publish@v1
31+
with:
32+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
33+
gpg_passphrase: ${{ secrets.PASSPHRASE }}
34+
nexus_username: ${{ secrets.OSSRH_USERNAME }}
35+
nexus_password: ${{ secrets.OSSRH_TOKEN }}

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>ch.postfinance</groupId>
2525
<artifactId>postfinancecheckout-java-sdk</artifactId>
26-
<version>5.1.0</version>
26+
<version>6.0.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 "ch.postfinance:postfinancecheckout-java-sdk:5.1.0"
36+
compile "ch.postfinance:postfinancecheckout-java-sdk:6.0.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-5.1.0.jar`
49+
* `target/postfinancecheckout-java-sdk-6.0.0.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 = 'ch.postfinance'
5-
version = '5.1.0'
5+
version = '6.0.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 := "ch.postfinance",
44
name := "postfinancecheckout-java-sdk",
5-
version := "5.1.0",
5+
version := "6.0.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

pom.xml

Lines changed: 2 additions & 2 deletions
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>5.1.0</version>
8+
<version>6.0.0</version>
99
<url>https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html</url>
1010
<description>The SDK for simplifying the integration with PostFinance Checkout API.</description>
1111
<scm>
@@ -69,7 +69,7 @@
6969
<configuration>
7070
<rules>
7171
<requireMavenVersion>
72-
<version>(,3.6)</version>
72+
<version>(,3.9)</version>
7373
<message>Invalid Maven version. It should, at least, be 2.0</message>
7474
</requireMavenVersion>
7575
</rules>

src/main/java/ch/postfinance/sdk/ApiClient.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ public BankTransactionService getBankTransactionService() {
167167
return this.bankTransactionService;
168168
}
169169

170+
private CardProcessingService cardProcessingService;
171+
public CardProcessingService getCardProcessingService() {
172+
if (this.cardProcessingService == null) {
173+
this.cardProcessingService = new CardProcessingService(this);
174+
}
175+
return this.cardProcessingService;
176+
}
177+
170178
private ChargeAttemptService chargeAttemptService;
171179
public ChargeAttemptService getChargeAttemptService() {
172180
if (this.chargeAttemptService == null) {

src/main/java/ch/postfinance/sdk/DefaultHeaders.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void intercept(HttpRequest request) throws IOException {
3434

3535
private HttpHeaders getDefaultHeaders() {
3636
HttpHeaders headers = new HttpHeaders();
37-
headers.put("x-meta-sdk-version", "5.1.0");
37+
headers.put("x-meta-sdk-version", "6.0.0");
3838
headers.put("x-meta-sdk-language", "java");
3939
headers.put("x-meta-sdk-provider", "PostFinance Checkout");
4040
headers.put("x-meta-sdk-language-version", System.getProperty("java.version"));

src/main/java/ch/postfinance/sdk/model/AbstractAccountUpdate.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ public AbstractAccountUpdate name(String name) {
7474
}
7575

7676
/**
77-
* The name of the account identifies the account within the administrative interface.
77+
* The name used to identify the account.
7878
* @return name
7979
**/
80-
@ApiModelProperty(value = "The name of the account identifies the account within the administrative interface.")
80+
@ApiModelProperty(value = "The name used to identify the account.")
8181
public String getName() {
8282
return name;
8383
}
@@ -93,10 +93,10 @@ public AbstractAccountUpdate subaccountLimit(Long subaccountLimit) {
9393
}
9494

9595
/**
96-
* This property restricts the number of subaccounts which can be created within this account.
96+
* The number of sub-accounts that can be created within this account.
9797
* @return subaccountLimit
9898
**/
99-
@ApiModelProperty(value = "This property restricts the number of subaccounts which can be created within this account.")
99+
@ApiModelProperty(value = "The number of sub-accounts that can be created within this account.")
100100
public Long getSubaccountLimit() {
101101
return subaccountLimit;
102102
}

src/main/java/ch/postfinance/sdk/model/AbstractApplicationUserUpdate.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ public AbstractApplicationUserUpdate name(String name) {
5555
}
5656

5757
/**
58-
* The user name is used to identify the application user in administrative interfaces.
58+
* The name used to identify the application user.
5959
* @return name
6060
**/
61-
@ApiModelProperty(value = "The user name is used to identify the application user in administrative interfaces.")
61+
@ApiModelProperty(value = "The name used to identify the application user.")
6262
public String getName() {
6363
return name;
6464
}
@@ -74,10 +74,10 @@ public AbstractApplicationUserUpdate requestLimit(Long requestLimit) {
7474
}
7575

7676
/**
77-
* The request limit defines the maximum number of API request accepted within 2 minutes. This limit can only be changed with special privileges.
77+
* The maximum number of API requests that are accepted every 2 minutes.
7878
* @return requestLimit
7979
**/
80-
@ApiModelProperty(value = "The request limit defines the maximum number of API request accepted within 2 minutes. This limit can only be changed with special privileges.")
80+
@ApiModelProperty(value = "The maximum number of API requests that are accepted every 2 minutes.")
8181
public Long getRequestLimit() {
8282
return requestLimit;
8383
}

src/main/java/ch/postfinance/sdk/model/AbstractCustomerActive.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ public AbstractCustomerActive customerId(String customerId) {
7373
}
7474

7575
/**
76-
*
76+
* The customer&#39;s ID in the merchant&#39;s system.
7777
* @return customerId
7878
**/
79-
@ApiModelProperty(value = "")
79+
@ApiModelProperty(value = "The customer's ID in the merchant's system.")
8080
public String getCustomerId() {
8181
return customerId;
8282
}
@@ -92,10 +92,10 @@ public AbstractCustomerActive emailAddress(String emailAddress) {
9292
}
9393

9494
/**
95-
*
95+
* The customer&#39;s email address.
9696
* @return emailAddress
9797
**/
98-
@ApiModelProperty(value = "")
98+
@ApiModelProperty(value = "The customer's email address.")
9999
public String getEmailAddress() {
100100
return emailAddress;
101101
}
@@ -111,10 +111,10 @@ public AbstractCustomerActive familyName(String familyName) {
111111
}
112112

113113
/**
114-
*
114+
* The customer&#39;s family or last name.
115115
* @return familyName
116116
**/
117-
@ApiModelProperty(value = "")
117+
@ApiModelProperty(value = "The customer's family or last name.")
118118
public String getFamilyName() {
119119
return familyName;
120120
}
@@ -130,10 +130,10 @@ public AbstractCustomerActive givenName(String givenName) {
130130
}
131131

132132
/**
133-
*
133+
* The customer&#39;s given or first name.
134134
* @return givenName
135135
**/
136-
@ApiModelProperty(value = "")
136+
@ApiModelProperty(value = "The customer's given or first name.")
137137
public String getGivenName() {
138138
return givenName;
139139
}
@@ -176,10 +176,10 @@ public AbstractCustomerActive putMetaDataItem(String key, String metaDataItem) {
176176
}
177177

178178
/**
179-
* Meta data allow to store additional data along the object.
179+
* Allow to store additional information about the object.
180180
* @return metaData
181181
**/
182-
@ApiModelProperty(value = "Meta data allow to store additional data along the object.")
182+
@ApiModelProperty(value = "Allow to store additional information about the object.")
183183
public Map<String, String> getMetaData() {
184184
return metaData;
185185
}
@@ -195,10 +195,10 @@ public AbstractCustomerActive preferredCurrency(String preferredCurrency) {
195195
}
196196

197197
/**
198-
*
198+
* The customer&#39;s preferred currency.
199199
* @return preferredCurrency
200200
**/
201-
@ApiModelProperty(value = "")
201+
@ApiModelProperty(value = "The customer's preferred currency.")
202202
public String getPreferredCurrency() {
203203
return preferredCurrency;
204204
}

0 commit comments

Comments
 (0)