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 2e9c584 commit a2c4284
Show file tree
Hide file tree
Showing 56 changed files with 7,547 additions and 389 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.wallee</groupId>
<artifactId>wallee-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.wallee:wallee-java-sdk:2.2.11"
compile "com.wallee:wallee-java-sdk:2.2.12"
```

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

Then manually install the following JARs:

* `target/wallee-java-sdk-2.2.11.jar`
* `target/wallee-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.wallee'
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.wallee",
name := "wallee-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>wallee-java-sdk</artifactId>
<packaging>jar</packaging>
<name>wallee-java-sdk</name>
<version>2.2.11</version>
<version>2.2.12</version>
<url>https://www.wallee.com</url>
<description>The SDK for simplifying the integration with wallee API.</description>
<scm>
Expand Down
48 changes: 48 additions & 0 deletions src/main/java/com/wallee/sdk/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,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 @@ -269,6 +277,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 Down Expand Up @@ -317,6 +333,14 @@ public InstallmentPlanSliceConfigurationService getInstallmentPlanSliceConfigura
return this.installmentPlanSliceConfigurationService;
}

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 @@ -453,6 +477,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 @@ -461,6 +493,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 Expand Up @@ -821,6 +861,14 @@ public UserSpaceRoleService getUserSpaceRoleService() {
return this.userSpaceRoleService;
}

private WebAppService webAppService;
public WebAppService getWebAppService() {
if (this.webAppService == null) {
this.webAppService = new WebAppService(this);
}
return this.webAppService;
}

private WebhookListenerService webhookListenerService;
public WebhookListenerService getWebhookListenerService() {
if (this.webhookListenerService == null) {
Expand Down
55 changes: 28 additions & 27 deletions src/main/java/com/wallee/sdk/model/AbstractPaymentLinkUpdate.java
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.wallee.sdk.model.LineItemCreate;
import com.wallee.sdk.model.PaymentLinkAddressHandlingMode;
import com.wallee.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
104 changes: 104 additions & 0 deletions src/main/java/com/wallee/sdk/model/AuthenticatedCardData.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
/**
* wallee SDK
*
* This library allows to interact with the wallee payment service.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


package com.wallee.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.wallee.sdk.model.CardholderAuthentication;
import com.wallee.sdk.model.TokenizedCardData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.*;
import java.time.OffsetDateTime;

/**
* This model holds the card data and optional cardholder authentication details.
*/
@ApiModel(description = "This model holds the card data and optional cardholder authentication details.")

public class AuthenticatedCardData extends TokenizedCardData {

@JsonProperty("cardholderAuthentication")
protected CardholderAuthentication cardholderAuthentication = null;



/**
* The cardholder authentication information. The authentication is optional and can be provided if the cardholder has been already authenticated (e.g. in 3-D Secure system).
* @return cardholderAuthentication
**/
@ApiModelProperty(value = "The cardholder authentication information. The authentication is optional and can be provided if the cardholder has been already authenticated (e.g. in 3-D Secure system).")
public CardholderAuthentication getCardholderAuthentication() {
return cardholderAuthentication;
}



@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AuthenticatedCardData authenticatedCardData = (AuthenticatedCardData) o;
return Objects.equals(this.cryptogram, authenticatedCardData.cryptogram) &&
Objects.equals(this.recurringIndicator, authenticatedCardData.recurringIndicator) &&
Objects.equals(this.tokenRequestorId, authenticatedCardData.tokenRequestorId) &&
Objects.equals(this.cardholderAuthentication, authenticatedCardData.cardholderAuthentication) &&
super.equals(o);
}

@Override
public int hashCode() {
return Objects.hash(cryptogram, recurringIndicator, tokenRequestorId, cardholderAuthentication, super.hashCode());
}


@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AuthenticatedCardData {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" cryptogram: ").append(toIndentedString(cryptogram)).append("\n");
sb.append(" recurringIndicator: ").append(toIndentedString(recurringIndicator)).append("\n");
sb.append(" tokenRequestorId: ").append(toIndentedString(tokenRequestorId)).append("\n");
sb.append(" cardholderAuthentication: ").append(toIndentedString(cardholderAuthentication)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}

}

Loading

0 comments on commit a2c4284

Please sign in to comment.