Skip to content

Commit d3f8482

Browse files
author
Thomas Hunziker
committed
Release 2.2.12
1 parent 734d90d commit d3f8482

39 files changed

+5419
-225
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 wallee AG
189+
Copyright 2021 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.11</version>
26+
<version>2.2.12</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.11"
36+
compile "com.postfinancecheckout:postfinancecheckout-java-sdk:2.2.12"
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.11.jar`
49+
* `target/postfinancecheckout-java-sdk-2.2.12.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.11'
5+
version = '2.2.12'
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.11",
5+
version := "2.2.12",
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.11</version>
8+
<version>2.2.12</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: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,14 @@ public ChargeAttemptService getChargeAttemptService() {
133133
return this.chargeAttemptService;
134134
}
135135

136+
private ChargeBankTransactionService chargeBankTransactionService;
137+
public ChargeBankTransactionService getChargeBankTransactionService() {
138+
if (this.chargeBankTransactionService == null) {
139+
this.chargeBankTransactionService = new ChargeBankTransactionService(this);
140+
}
141+
return this.chargeBankTransactionService;
142+
}
143+
136144
private ChargeFlowLevelPaymentLinkService chargeFlowLevelPaymentLinkService;
137145
public ChargeFlowLevelPaymentLinkService getChargeFlowLevelPaymentLinkService() {
138146
if (this.chargeFlowLevelPaymentLinkService == null) {
@@ -237,6 +245,14 @@ public DocumentTemplateTypeService getDocumentTemplateTypeService() {
237245
return this.documentTemplateTypeService;
238246
}
239247

248+
private ExternalTransferBankTransactionService externalTransferBankTransactionService;
249+
public ExternalTransferBankTransactionService getExternalTransferBankTransactionService() {
250+
if (this.externalTransferBankTransactionService == null) {
251+
this.externalTransferBankTransactionService = new ExternalTransferBankTransactionService(this);
252+
}
253+
return this.externalTransferBankTransactionService;
254+
}
255+
240256
private HumanUserService humanUserService;
241257
public HumanUserService getHumanUserService() {
242258
if (this.humanUserService == null) {
@@ -245,6 +261,14 @@ public HumanUserService getHumanUserService() {
245261
return this.humanUserService;
246262
}
247263

264+
private InternalTransferBankTransactionService internalTransferBankTransactionService;
265+
public InternalTransferBankTransactionService getInternalTransferBankTransactionService() {
266+
if (this.internalTransferBankTransactionService == null) {
267+
this.internalTransferBankTransactionService = new InternalTransferBankTransactionService(this);
268+
}
269+
return this.internalTransferBankTransactionService;
270+
}
271+
248272
private LabelDescriptionGroupService labelDescriptionGroupService;
249273
public LabelDescriptionGroupService getLabelDescriptionGroupService() {
250274
if (this.labelDescriptionGroupService == null) {
@@ -357,6 +381,14 @@ public PermissionService getPermissionService() {
357381
return this.permissionService;
358382
}
359383

384+
private RefundBankTransactionService refundBankTransactionService;
385+
public RefundBankTransactionService getRefundBankTransactionService() {
386+
if (this.refundBankTransactionService == null) {
387+
this.refundBankTransactionService = new RefundBankTransactionService(this);
388+
}
389+
return this.refundBankTransactionService;
390+
}
391+
360392
private RefundCommentService refundCommentService;
361393
public RefundCommentService getRefundCommentService() {
362394
if (this.refundCommentService == null) {
@@ -365,6 +397,14 @@ public RefundCommentService getRefundCommentService() {
365397
return this.refundCommentService;
366398
}
367399

400+
private RefundRecoveryBankTransactionService refundRecoveryBankTransactionService;
401+
public RefundRecoveryBankTransactionService getRefundRecoveryBankTransactionService() {
402+
if (this.refundRecoveryBankTransactionService == null) {
403+
this.refundRecoveryBankTransactionService = new RefundRecoveryBankTransactionService(this);
404+
}
405+
return this.refundRecoveryBankTransactionService;
406+
}
407+
368408
private RefundService refundService;
369409
public RefundService getRefundService() {
370410
if (this.refundService == null) {

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

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import com.fasterxml.jackson.annotation.JsonCreator;
2626
import com.fasterxml.jackson.annotation.JsonValue;
2727
import com.postfinancecheckout.sdk.model.LineItemCreate;
28+
import com.postfinancecheckout.sdk.model.PaymentLinkAddressHandlingMode;
2829
import com.postfinancecheckout.sdk.model.PaymentMethodConfiguration;
2930
import io.swagger.annotations.ApiModel;
3031
import io.swagger.annotations.ApiModelProperty;
@@ -56,8 +57,8 @@ public class AbstractPaymentLinkUpdate {
5657
protected OffsetDateTime availableUntil = null;
5758

5859

59-
@JsonProperty("billingAddressRequired")
60-
protected Boolean billingAddressRequired = null;
60+
@JsonProperty("billingAddressHandlingMode")
61+
protected PaymentLinkAddressHandlingMode billingAddressHandlingMode = null;
6162

6263

6364
@JsonProperty("currency")
@@ -80,8 +81,8 @@ public class AbstractPaymentLinkUpdate {
8081
protected String name = null;
8182

8283

83-
@JsonProperty("shippingAddressRequired")
84-
protected Boolean shippingAddressRequired = null;
84+
@JsonProperty("shippingAddressHandlingMode")
85+
protected PaymentLinkAddressHandlingMode shippingAddressHandlingMode = null;
8586

8687

8788

@@ -169,22 +170,22 @@ public void setAvailableUntil(OffsetDateTime availableUntil) {
169170
}
170171

171172

172-
public AbstractPaymentLinkUpdate billingAddressRequired(Boolean billingAddressRequired) {
173-
this.billingAddressRequired = billingAddressRequired;
173+
public AbstractPaymentLinkUpdate billingAddressHandlingMode(PaymentLinkAddressHandlingMode billingAddressHandlingMode) {
174+
this.billingAddressHandlingMode = billingAddressHandlingMode;
174175
return this;
175176
}
176177

177178
/**
178-
* By making the billing address required the transaction can only be created when a billing address is provided within the request.
179-
* @return billingAddressRequired
179+
* The billing address handling mode controls if the address is collected or not and how it is collected.
180+
* @return billingAddressHandlingMode
180181
**/
181-
@ApiModelProperty(value = "By making the billing address required the transaction can only be created when a billing address is provided within the request.")
182-
public Boolean isBillingAddressRequired() {
183-
return billingAddressRequired;
182+
@ApiModelProperty(value = "The billing address handling mode controls if the address is collected or not and how it is collected.")
183+
public PaymentLinkAddressHandlingMode getBillingAddressHandlingMode() {
184+
return billingAddressHandlingMode;
184185
}
185186

186-
public void setBillingAddressRequired(Boolean billingAddressRequired) {
187-
this.billingAddressRequired = billingAddressRequired;
187+
public void setBillingAddressHandlingMode(PaymentLinkAddressHandlingMode billingAddressHandlingMode) {
188+
this.billingAddressHandlingMode = billingAddressHandlingMode;
188189
}
189190

190191

@@ -291,22 +292,22 @@ public void setName(String name) {
291292
}
292293

293294

294-
public AbstractPaymentLinkUpdate shippingAddressRequired(Boolean shippingAddressRequired) {
295-
this.shippingAddressRequired = shippingAddressRequired;
295+
public AbstractPaymentLinkUpdate shippingAddressHandlingMode(PaymentLinkAddressHandlingMode shippingAddressHandlingMode) {
296+
this.shippingAddressHandlingMode = shippingAddressHandlingMode;
296297
return this;
297298
}
298299

299300
/**
300-
* By making the shipping address required the transaction can only be created when a shipping address is provided within the request.
301-
* @return shippingAddressRequired
301+
* The shipping address handling mode controls if the address is collected or not and how it is collected.
302+
* @return shippingAddressHandlingMode
302303
**/
303-
@ApiModelProperty(value = "By making the shipping address required the transaction can only be created when a shipping address is provided within the request.")
304-
public Boolean isShippingAddressRequired() {
305-
return shippingAddressRequired;
304+
@ApiModelProperty(value = "The shipping address handling mode controls if the address is collected or not and how it is collected.")
305+
public PaymentLinkAddressHandlingMode getShippingAddressHandlingMode() {
306+
return shippingAddressHandlingMode;
306307
}
307308

308-
public void setShippingAddressRequired(Boolean shippingAddressRequired) {
309-
this.shippingAddressRequired = shippingAddressRequired;
309+
public void setShippingAddressHandlingMode(PaymentLinkAddressHandlingMode shippingAddressHandlingMode) {
310+
this.shippingAddressHandlingMode = shippingAddressHandlingMode;
310311
}
311312

312313

@@ -324,18 +325,18 @@ public boolean equals(java.lang.Object o) {
324325
Objects.equals(this.appliedSpaceView, abstractPaymentLinkUpdate.appliedSpaceView) &&
325326
Objects.equals(this.availableFrom, abstractPaymentLinkUpdate.availableFrom) &&
326327
Objects.equals(this.availableUntil, abstractPaymentLinkUpdate.availableUntil) &&
327-
Objects.equals(this.billingAddressRequired, abstractPaymentLinkUpdate.billingAddressRequired) &&
328+
Objects.equals(this.billingAddressHandlingMode, abstractPaymentLinkUpdate.billingAddressHandlingMode) &&
328329
Objects.equals(this.currency, abstractPaymentLinkUpdate.currency) &&
329330
Objects.equals(this.language, abstractPaymentLinkUpdate.language) &&
330331
Objects.equals(this.lineItems, abstractPaymentLinkUpdate.lineItems) &&
331332
Objects.equals(this.maximalNumberOfTransactions, abstractPaymentLinkUpdate.maximalNumberOfTransactions) &&
332333
Objects.equals(this.name, abstractPaymentLinkUpdate.name) &&
333-
Objects.equals(this.shippingAddressRequired, abstractPaymentLinkUpdate.shippingAddressRequired);
334+
Objects.equals(this.shippingAddressHandlingMode, abstractPaymentLinkUpdate.shippingAddressHandlingMode);
334335
}
335336

336337
@Override
337338
public int hashCode() {
338-
return Objects.hash(allowedPaymentMethodConfigurations, appliedSpaceView, availableFrom, availableUntil, billingAddressRequired, currency, language, lineItems, maximalNumberOfTransactions, name, shippingAddressRequired);
339+
return Objects.hash(allowedPaymentMethodConfigurations, appliedSpaceView, availableFrom, availableUntil, billingAddressHandlingMode, currency, language, lineItems, maximalNumberOfTransactions, name, shippingAddressHandlingMode);
339340
}
340341

341342

@@ -348,13 +349,13 @@ public String toString() {
348349
sb.append(" appliedSpaceView: ").append(toIndentedString(appliedSpaceView)).append("\n");
349350
sb.append(" availableFrom: ").append(toIndentedString(availableFrom)).append("\n");
350351
sb.append(" availableUntil: ").append(toIndentedString(availableUntil)).append("\n");
351-
sb.append(" billingAddressRequired: ").append(toIndentedString(billingAddressRequired)).append("\n");
352+
sb.append(" billingAddressHandlingMode: ").append(toIndentedString(billingAddressHandlingMode)).append("\n");
352353
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
353354
sb.append(" language: ").append(toIndentedString(language)).append("\n");
354355
sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n");
355356
sb.append(" maximalNumberOfTransactions: ").append(toIndentedString(maximalNumberOfTransactions)).append("\n");
356357
sb.append(" name: ").append(toIndentedString(name)).append("\n");
357-
sb.append(" shippingAddressRequired: ").append(toIndentedString(shippingAddressRequired)).append("\n");
358+
sb.append(" shippingAddressHandlingMode: ").append(toIndentedString(shippingAddressHandlingMode)).append("\n");
358359
sb.append("}");
359360
return sb.toString();
360361
}

0 commit comments

Comments
 (0)