Skip to content

Commit

Permalink
Release 2.2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hunziker committed Jan 21, 2021
1 parent 734d90d commit d3f8482
Show file tree
Hide file tree
Showing 39 changed files with 5,419 additions and 225 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 wallee AG
Copyright 2021 wallee AG

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.postfinancecheckout</groupId>
<artifactId>postfinancecheckout-java-sdk</artifactId>
<version>2.2.11</version>
<version>2.2.12</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -33,7 +33,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "com.postfinancecheckout:postfinancecheckout-java-sdk:2.2.11"
compile "com.postfinancecheckout:postfinancecheckout-java-sdk:2.2.12"
```

### Others
Expand All @@ -46,7 +46,7 @@ mvn clean package

Then manually install the following JARs:

* `target/postfinancecheckout-java-sdk-2.2.11.jar`
* `target/postfinancecheckout-java-sdk-2.2.12.jar`
* `target/lib/*.jar`

## Usage
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'com.postfinancecheckout'
version = '2.2.11'
version = '2.2.12'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "com.postfinancecheckout",
name := "postfinancecheckout-java-sdk",
version := "2.2.11",
version := "2.2.12",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>postfinancecheckout-java-sdk</artifactId>
<packaging>jar</packaging>
<name>postfinancecheckout-java-sdk</name>
<version>2.2.11</version>
<version>2.2.12</version>
<url>https://www.postfinance.ch/checkout</url>
<description>The SDK for simplifying the integration with PostFinance Checkout API.</description>
<scm>
Expand Down
40 changes: 40 additions & 0 deletions src/main/java/com/postfinancecheckout/sdk/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ public ChargeAttemptService getChargeAttemptService() {
return this.chargeAttemptService;
}

private ChargeBankTransactionService chargeBankTransactionService;
public ChargeBankTransactionService getChargeBankTransactionService() {
if (this.chargeBankTransactionService == null) {
this.chargeBankTransactionService = new ChargeBankTransactionService(this);
}
return this.chargeBankTransactionService;
}

private ChargeFlowLevelPaymentLinkService chargeFlowLevelPaymentLinkService;
public ChargeFlowLevelPaymentLinkService getChargeFlowLevelPaymentLinkService() {
if (this.chargeFlowLevelPaymentLinkService == null) {
Expand Down Expand Up @@ -237,6 +245,14 @@ public DocumentTemplateTypeService getDocumentTemplateTypeService() {
return this.documentTemplateTypeService;
}

private ExternalTransferBankTransactionService externalTransferBankTransactionService;
public ExternalTransferBankTransactionService getExternalTransferBankTransactionService() {
if (this.externalTransferBankTransactionService == null) {
this.externalTransferBankTransactionService = new ExternalTransferBankTransactionService(this);
}
return this.externalTransferBankTransactionService;
}

private HumanUserService humanUserService;
public HumanUserService getHumanUserService() {
if (this.humanUserService == null) {
Expand All @@ -245,6 +261,14 @@ public HumanUserService getHumanUserService() {
return this.humanUserService;
}

private InternalTransferBankTransactionService internalTransferBankTransactionService;
public InternalTransferBankTransactionService getInternalTransferBankTransactionService() {
if (this.internalTransferBankTransactionService == null) {
this.internalTransferBankTransactionService = new InternalTransferBankTransactionService(this);
}
return this.internalTransferBankTransactionService;
}

private LabelDescriptionGroupService labelDescriptionGroupService;
public LabelDescriptionGroupService getLabelDescriptionGroupService() {
if (this.labelDescriptionGroupService == null) {
Expand Down Expand Up @@ -357,6 +381,14 @@ public PermissionService getPermissionService() {
return this.permissionService;
}

private RefundBankTransactionService refundBankTransactionService;
public RefundBankTransactionService getRefundBankTransactionService() {
if (this.refundBankTransactionService == null) {
this.refundBankTransactionService = new RefundBankTransactionService(this);
}
return this.refundBankTransactionService;
}

private RefundCommentService refundCommentService;
public RefundCommentService getRefundCommentService() {
if (this.refundCommentService == null) {
Expand All @@ -365,6 +397,14 @@ public RefundCommentService getRefundCommentService() {
return this.refundCommentService;
}

private RefundRecoveryBankTransactionService refundRecoveryBankTransactionService;
public RefundRecoveryBankTransactionService getRefundRecoveryBankTransactionService() {
if (this.refundRecoveryBankTransactionService == null) {
this.refundRecoveryBankTransactionService = new RefundRecoveryBankTransactionService(this);
}
return this.refundRecoveryBankTransactionService;
}

private RefundService refundService;
public RefundService getRefundService() {
if (this.refundService == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.postfinancecheckout.sdk.model.LineItemCreate;
import com.postfinancecheckout.sdk.model.PaymentLinkAddressHandlingMode;
import com.postfinancecheckout.sdk.model.PaymentMethodConfiguration;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
Expand Down Expand Up @@ -56,8 +57,8 @@ public class AbstractPaymentLinkUpdate {
protected OffsetDateTime availableUntil = null;


@JsonProperty("billingAddressRequired")
protected Boolean billingAddressRequired = null;
@JsonProperty("billingAddressHandlingMode")
protected PaymentLinkAddressHandlingMode billingAddressHandlingMode = null;


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


@JsonProperty("shippingAddressRequired")
protected Boolean shippingAddressRequired = null;
@JsonProperty("shippingAddressHandlingMode")
protected PaymentLinkAddressHandlingMode shippingAddressHandlingMode = null;



Expand Down Expand Up @@ -169,22 +170,22 @@ public void setAvailableUntil(OffsetDateTime availableUntil) {
}


public AbstractPaymentLinkUpdate billingAddressRequired(Boolean billingAddressRequired) {
this.billingAddressRequired = billingAddressRequired;
public AbstractPaymentLinkUpdate billingAddressHandlingMode(PaymentLinkAddressHandlingMode billingAddressHandlingMode) {
this.billingAddressHandlingMode = billingAddressHandlingMode;
return this;
}

/**
* By making the billing address required the transaction can only be created when a billing address is provided within the request.
* @return billingAddressRequired
* The billing address handling mode controls if the address is collected or not and how it is collected.
* @return billingAddressHandlingMode
**/
@ApiModelProperty(value = "By making the billing address required the transaction can only be created when a billing address is provided within the request.")
public Boolean isBillingAddressRequired() {
return billingAddressRequired;
@ApiModelProperty(value = "The billing address handling mode controls if the address is collected or not and how it is collected.")
public PaymentLinkAddressHandlingMode getBillingAddressHandlingMode() {
return billingAddressHandlingMode;
}

public void setBillingAddressRequired(Boolean billingAddressRequired) {
this.billingAddressRequired = billingAddressRequired;
public void setBillingAddressHandlingMode(PaymentLinkAddressHandlingMode billingAddressHandlingMode) {
this.billingAddressHandlingMode = billingAddressHandlingMode;
}


Expand Down Expand Up @@ -291,22 +292,22 @@ public void setName(String name) {
}


public AbstractPaymentLinkUpdate shippingAddressRequired(Boolean shippingAddressRequired) {
this.shippingAddressRequired = shippingAddressRequired;
public AbstractPaymentLinkUpdate shippingAddressHandlingMode(PaymentLinkAddressHandlingMode shippingAddressHandlingMode) {
this.shippingAddressHandlingMode = shippingAddressHandlingMode;
return this;
}

/**
* By making the shipping address required the transaction can only be created when a shipping address is provided within the request.
* @return shippingAddressRequired
* The shipping address handling mode controls if the address is collected or not and how it is collected.
* @return shippingAddressHandlingMode
**/
@ApiModelProperty(value = "By making the shipping address required the transaction can only be created when a shipping address is provided within the request.")
public Boolean isShippingAddressRequired() {
return shippingAddressRequired;
@ApiModelProperty(value = "The shipping address handling mode controls if the address is collected or not and how it is collected.")
public PaymentLinkAddressHandlingMode getShippingAddressHandlingMode() {
return shippingAddressHandlingMode;
}

public void setShippingAddressRequired(Boolean shippingAddressRequired) {
this.shippingAddressRequired = shippingAddressRequired;
public void setShippingAddressHandlingMode(PaymentLinkAddressHandlingMode shippingAddressHandlingMode) {
this.shippingAddressHandlingMode = shippingAddressHandlingMode;
}


Expand All @@ -324,18 +325,18 @@ public boolean equals(java.lang.Object o) {
Objects.equals(this.appliedSpaceView, abstractPaymentLinkUpdate.appliedSpaceView) &&
Objects.equals(this.availableFrom, abstractPaymentLinkUpdate.availableFrom) &&
Objects.equals(this.availableUntil, abstractPaymentLinkUpdate.availableUntil) &&
Objects.equals(this.billingAddressRequired, abstractPaymentLinkUpdate.billingAddressRequired) &&
Objects.equals(this.billingAddressHandlingMode, abstractPaymentLinkUpdate.billingAddressHandlingMode) &&
Objects.equals(this.currency, abstractPaymentLinkUpdate.currency) &&
Objects.equals(this.language, abstractPaymentLinkUpdate.language) &&
Objects.equals(this.lineItems, abstractPaymentLinkUpdate.lineItems) &&
Objects.equals(this.maximalNumberOfTransactions, abstractPaymentLinkUpdate.maximalNumberOfTransactions) &&
Objects.equals(this.name, abstractPaymentLinkUpdate.name) &&
Objects.equals(this.shippingAddressRequired, abstractPaymentLinkUpdate.shippingAddressRequired);
Objects.equals(this.shippingAddressHandlingMode, abstractPaymentLinkUpdate.shippingAddressHandlingMode);
}

@Override
public int hashCode() {
return Objects.hash(allowedPaymentMethodConfigurations, appliedSpaceView, availableFrom, availableUntil, billingAddressRequired, currency, language, lineItems, maximalNumberOfTransactions, name, shippingAddressRequired);
return Objects.hash(allowedPaymentMethodConfigurations, appliedSpaceView, availableFrom, availableUntil, billingAddressHandlingMode, currency, language, lineItems, maximalNumberOfTransactions, name, shippingAddressHandlingMode);
}


Expand All @@ -348,13 +349,13 @@ public String toString() {
sb.append(" appliedSpaceView: ").append(toIndentedString(appliedSpaceView)).append("\n");
sb.append(" availableFrom: ").append(toIndentedString(availableFrom)).append("\n");
sb.append(" availableUntil: ").append(toIndentedString(availableUntil)).append("\n");
sb.append(" billingAddressRequired: ").append(toIndentedString(billingAddressRequired)).append("\n");
sb.append(" billingAddressHandlingMode: ").append(toIndentedString(billingAddressHandlingMode)).append("\n");
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
sb.append(" language: ").append(toIndentedString(language)).append("\n");
sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n");
sb.append(" maximalNumberOfTransactions: ").append(toIndentedString(maximalNumberOfTransactions)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" shippingAddressRequired: ").append(toIndentedString(shippingAddressRequired)).append("\n");
sb.append(" shippingAddressHandlingMode: ").append(toIndentedString(shippingAddressHandlingMode)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
Loading

0 comments on commit d3f8482

Please sign in to comment.