Skip to content

Commit

Permalink
Release 8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wallee-deployment-user committed Feb 12, 2024
1 parent 5e04af2 commit 378cb44
Show file tree
Hide file tree
Showing 132 changed files with 1,179 additions and 1,258 deletions.
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[![Build Status](https://travis-ci.org/wallee-payment/java-sdk.svg?branch=master)](https://travis-ci.org/wallee-payment/java-sdk)

# wallee Java Library

The wallee Java library wraps around the wallee API. This library facilitates your interaction with various services such as transactions, accounts, and subscriptions.
Expand All @@ -23,7 +21,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.wallee</groupId>
<artifactId>wallee-java-sdk</artifactId>
<version>7.2.0</version>
<version>8.0.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -33,7 +31,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:7.2.0"
compile "com.wallee:wallee-java-sdk:8.0.0"
```

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

Then manually install the following JARs:

* `target/wallee-java-sdk-7.2.0.jar`
* `target/wallee-java-sdk-8.0.0.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 = '7.2.0'
version = '8.0.0'

buildscript {
repositories {
Expand Down
24 changes: 0 additions & 24 deletions build.sbt

This file was deleted.

10 changes: 7 additions & 3 deletions 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>7.2.0</version>
<version>8.0.0</version>
<url>https://www.wallee.com</url>
<description>The SDK for simplifying the integration with wallee API.</description>
<scm>
Expand Down Expand Up @@ -66,12 +66,12 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<configuration>
<systemProperties>
<systemPropertyVariables>
<property>
<name>loggerPath</name>
<value>conf/log4j.properties</value>
</property>
</systemProperties>
</systemPropertyVariables>
<argLine>-Xms512m -Xmx1500m</argLine>
<parallel>methods</parallel>
<forkMode>pertest</forkMode>
Expand Down Expand Up @@ -154,6 +154,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<configuration>
<additionalparam>-Xdoclint:-missing</additionalparam>
<quiet>true</quiet>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/wallee/sdk/DefaultHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void intercept(HttpRequest request) throws IOException {

private HttpHeaders getDefaultHeaders() {
HttpHeaders headers = new HttpHeaders();
headers.put("x-meta-sdk-version", "7.2.0");
headers.put("x-meta-sdk-version", "8.0.0");
headers.put("x-meta-sdk-language", "java");
headers.put("x-meta-sdk-provider", "wallee");
headers.put("x-meta-sdk-language-version", System.getProperty("java.version"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@
*/


package com.wallee.sdk;
package com.wallee.sdk.exception;

import com.wallee.sdk.ErrorCode;

/**
* Exception thrown when the Wallee SDK API call results in an invalid response.
* Exception thrown when the SDK API call results in an invalid response.
*/
public class WalleeSdkException extends RuntimeException {

Expand All @@ -33,10 +35,8 @@ public class WalleeSdkException extends RuntimeException {
/**
* Constructor.
*
* @param code
* the Wallee SDK error code
* @param message
* the exception message details
* @param code SDK error code
* @param message exception message details
*/
public WalleeSdkException(ErrorCode code, String message) {
super();
Expand All @@ -45,14 +45,14 @@ public WalleeSdkException(ErrorCode code, String message) {
}

/**
* @return the Wallee SDK error code
* @return SDK error code
*/
public ErrorCode getCode() {
return this.code;
}

/**
* @return the Wallee SDK error message
* @return SDK error message
*/
public String getMessage() {
return this.message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@

public class AbstractWebhookListenerUpdate {

@JsonProperty("enablePayloadSignatureAndState")
protected Boolean enablePayloadSignatureAndState = null;


@JsonProperty("entityStates")
protected List<String> entityStates = null;

Expand All @@ -55,6 +59,25 @@ public class AbstractWebhookListenerUpdate {



public AbstractWebhookListenerUpdate enablePayloadSignatureAndState(Boolean enablePayloadSignatureAndState) {
this.enablePayloadSignatureAndState = enablePayloadSignatureAndState;
return this;
}

/**
* Whether signature header and state property are enabled in webhook payload.
* @return enablePayloadSignatureAndState
**/
@ApiModelProperty(value = "Whether signature header and state property are enabled in webhook payload.")
public Boolean isEnablePayloadSignatureAndState() {
return enablePayloadSignatureAndState;
}

public void setEnablePayloadSignatureAndState(Boolean enablePayloadSignatureAndState) {
this.enablePayloadSignatureAndState = enablePayloadSignatureAndState;
}


public AbstractWebhookListenerUpdate entityStates(List<String> entityStates) {
this.entityStates = entityStates;
return this;
Expand Down Expand Up @@ -149,15 +172,16 @@ public boolean equals(java.lang.Object o) {
return false;
}
AbstractWebhookListenerUpdate abstractWebhookListenerUpdate = (AbstractWebhookListenerUpdate) o;
return Objects.equals(this.entityStates, abstractWebhookListenerUpdate.entityStates) &&
return Objects.equals(this.enablePayloadSignatureAndState, abstractWebhookListenerUpdate.enablePayloadSignatureAndState) &&
Objects.equals(this.entityStates, abstractWebhookListenerUpdate.entityStates) &&
Objects.equals(this.name, abstractWebhookListenerUpdate.name) &&
Objects.equals(this.notifyEveryChange, abstractWebhookListenerUpdate.notifyEveryChange) &&
Objects.equals(this.state, abstractWebhookListenerUpdate.state);
}

@Override
public int hashCode() {
return Objects.hash(entityStates, name, notifyEveryChange, state);
return Objects.hash(enablePayloadSignatureAndState, entityStates, name, notifyEveryChange, state);
}


Expand All @@ -166,6 +190,7 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AbstractWebhookListenerUpdate {\n");

sb.append(" enablePayloadSignatureAndState: ").append(toIndentedString(enablePayloadSignatureAndState)).append("\n");
sb.append(" entityStates: ").append(toIndentedString(entityStates)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" notifyEveryChange: ").append(toIndentedString(notifyEveryChange)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ public class PaymentConnectorConfiguration {
protected Long id = null;


@JsonProperty("imagePath")
protected String imagePath = null;


@JsonProperty("linkedSpaceId")
protected Long linkedSpaceId = null;

Expand Down Expand Up @@ -160,6 +164,16 @@ public Long getId() {
}


/**
*
* @return imagePath
**/
@ApiModelProperty(value = "")
public String getImagePath() {
return imagePath;
}


/**
* The ID of the space this object belongs to.
* @return linkedSpaceId
Expand Down Expand Up @@ -256,6 +270,7 @@ public boolean equals(java.lang.Object o) {
Objects.equals(this.enabledSalesChannels, paymentConnectorConfiguration.enabledSalesChannels) &&
Objects.equals(this.enabledSpaceViews, paymentConnectorConfiguration.enabledSpaceViews) &&
Objects.equals(this.id, paymentConnectorConfiguration.id) &&
Objects.equals(this.imagePath, paymentConnectorConfiguration.imagePath) &&
Objects.equals(this.linkedSpaceId, paymentConnectorConfiguration.linkedSpaceId) &&
Objects.equals(this.name, paymentConnectorConfiguration.name) &&
Objects.equals(this.paymentMethodConfiguration, paymentConnectorConfiguration.paymentMethodConfiguration) &&
Expand All @@ -268,7 +283,7 @@ public boolean equals(java.lang.Object o) {

@Override
public int hashCode() {
return Objects.hash(applicableForTransactionProcessing, conditions, connector, enabledSalesChannels, enabledSpaceViews, id, linkedSpaceId, name, paymentMethodConfiguration, plannedPurgeDate, priority, processorConfiguration, state, version);
return Objects.hash(applicableForTransactionProcessing, conditions, connector, enabledSalesChannels, enabledSpaceViews, id, imagePath, linkedSpaceId, name, paymentMethodConfiguration, plannedPurgeDate, priority, processorConfiguration, state, version);
}


Expand All @@ -283,6 +298,7 @@ public String toString() {
sb.append(" enabledSalesChannels: ").append(toIndentedString(enabledSalesChannels)).append("\n");
sb.append(" enabledSpaceViews: ").append(toIndentedString(enabledSpaceViews)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" imagePath: ").append(toIndentedString(imagePath)).append("\n");
sb.append(" linkedSpaceId: ").append(toIndentedString(linkedSpaceId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" paymentMethodConfiguration: ").append(toIndentedString(paymentMethodConfiguration)).append("\n");
Expand Down
20 changes: 18 additions & 2 deletions src/main/java/com/wallee/sdk/model/WebhookListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@

public class WebhookListener {

@JsonProperty("enablePayloadSignatureAndState")
protected Boolean enablePayloadSignatureAndState = null;


@JsonProperty("entity")
protected Long entity = null;

Expand Down Expand Up @@ -87,6 +91,16 @@ public class WebhookListener {



/**
* Whether signature header and state property are enabled in webhook payload.
* @return enablePayloadSignatureAndState
**/
@ApiModelProperty(value = "Whether signature header and state property are enabled in webhook payload.")
public Boolean isEnablePayloadSignatureAndState() {
return enablePayloadSignatureAndState;
}


/**
* The entity that is to be monitored.
* @return entity
Expand Down Expand Up @@ -207,7 +221,8 @@ public boolean equals(java.lang.Object o) {
return false;
}
WebhookListener webhookListener = (WebhookListener) o;
return Objects.equals(this.entity, webhookListener.entity) &&
return Objects.equals(this.enablePayloadSignatureAndState, webhookListener.enablePayloadSignatureAndState) &&
Objects.equals(this.entity, webhookListener.entity) &&
Objects.equals(this.entityStates, webhookListener.entityStates) &&
Objects.equals(this.id, webhookListener.id) &&
Objects.equals(this.identity, webhookListener.identity) &&
Expand All @@ -222,7 +237,7 @@ public boolean equals(java.lang.Object o) {

@Override
public int hashCode() {
return Objects.hash(entity, entityStates, id, identity, linkedSpaceId, name, notifyEveryChange, plannedPurgeDate, state, url, version);
return Objects.hash(enablePayloadSignatureAndState, entity, entityStates, id, identity, linkedSpaceId, name, notifyEveryChange, plannedPurgeDate, state, url, version);
}


Expand All @@ -231,6 +246,7 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WebhookListener {\n");

sb.append(" enablePayloadSignatureAndState: ").append(toIndentedString(enablePayloadSignatureAndState)).append("\n");
sb.append(" entity: ").append(toIndentedString(entity)).append("\n");
sb.append(" entityStates: ").append(toIndentedString(entityStates)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/com/wallee/sdk/model/WebhookListenerCreate.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ public boolean equals(java.lang.Object o) {
return false;
}
WebhookListenerCreate webhookListenerCreate = (WebhookListenerCreate) o;
return Objects.equals(this.entityStates, webhookListenerCreate.entityStates) &&
return Objects.equals(this.enablePayloadSignatureAndState, webhookListenerCreate.enablePayloadSignatureAndState) &&
Objects.equals(this.entityStates, webhookListenerCreate.entityStates) &&
Objects.equals(this.name, webhookListenerCreate.name) &&
Objects.equals(this.notifyEveryChange, webhookListenerCreate.notifyEveryChange) &&
Objects.equals(this.state, webhookListenerCreate.state) &&
Expand All @@ -130,7 +131,7 @@ public boolean equals(java.lang.Object o) {

@Override
public int hashCode() {
return Objects.hash(entityStates, name, notifyEveryChange, state, entity, identity, url, super.hashCode());
return Objects.hash(enablePayloadSignatureAndState, entityStates, name, notifyEveryChange, state, entity, identity, url, super.hashCode());
}


Expand All @@ -139,6 +140,7 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WebhookListenerCreate {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" enablePayloadSignatureAndState: ").append(toIndentedString(enablePayloadSignatureAndState)).append("\n");
sb.append(" entityStates: ").append(toIndentedString(entityStates)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" notifyEveryChange: ").append(toIndentedString(notifyEveryChange)).append("\n");
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/com/wallee/sdk/model/WebhookListenerUpdate.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ public boolean equals(java.lang.Object o) {
return false;
}
WebhookListenerUpdate webhookListenerUpdate = (WebhookListenerUpdate) o;
return Objects.equals(this.entityStates, webhookListenerUpdate.entityStates) &&
return Objects.equals(this.enablePayloadSignatureAndState, webhookListenerUpdate.enablePayloadSignatureAndState) &&
Objects.equals(this.entityStates, webhookListenerUpdate.entityStates) &&
Objects.equals(this.name, webhookListenerUpdate.name) &&
Objects.equals(this.notifyEveryChange, webhookListenerUpdate.notifyEveryChange) &&
Objects.equals(this.state, webhookListenerUpdate.state) &&
Expand All @@ -106,7 +107,7 @@ public boolean equals(java.lang.Object o) {

@Override
public int hashCode() {
return Objects.hash(entityStates, name, notifyEveryChange, state, id, version, super.hashCode());
return Objects.hash(enablePayloadSignatureAndState, entityStates, name, notifyEveryChange, state, id, version, super.hashCode());
}


Expand All @@ -115,6 +116,7 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WebhookListenerUpdate {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" enablePayloadSignatureAndState: ").append(toIndentedString(enablePayloadSignatureAndState)).append("\n");
sb.append(" entityStates: ").append(toIndentedString(entityStates)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" notifyEveryChange: ").append(toIndentedString(notifyEveryChange)).append("\n");
Expand Down
Loading

0 comments on commit 378cb44

Please sign in to comment.