Skip to content

Commit

Permalink
Release 4.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrowanwallee committed Jun 13, 2022
1 parent aa734da commit 790d0ff
Show file tree
Hide file tree
Showing 70 changed files with 13,210 additions and 343 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 2021 wallee AG
Copyright 2022 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>4.0.2</version>
<version>4.0.3</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:4.0.2"
compile "com.wallee:wallee-java-sdk:4.0.3"
```

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

Then manually install the following JARs:

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

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 := "4.0.2",
version := "4.0.3",
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>4.0.2</version>
<version>4.0.3</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 @@ -117,6 +117,14 @@ public AccountService getAccountService() {
return this.accountService;
}

private AnalyticsQueryService analyticsQueryService;
public AnalyticsQueryService getAnalyticsQueryService() {
if (this.analyticsQueryService == null) {
this.analyticsQueryService = new AnalyticsQueryService(this);
}
return this.analyticsQueryService;
}

private ApplicationUserService applicationUserService;
public ApplicationUserService getApplicationUserService() {
if (this.applicationUserService == null) {
Expand Down Expand Up @@ -365,6 +373,22 @@ public InternalTransferBankTransactionService getInternalTransferBankTransaction
return this.internalTransferBankTransactionService;
}

private InvoiceReconciliationRecordService invoiceReconciliationRecordService;
public InvoiceReconciliationRecordService getInvoiceReconciliationRecordService() {
if (this.invoiceReconciliationRecordService == null) {
this.invoiceReconciliationRecordService = new InvoiceReconciliationRecordService(this);
}
return this.invoiceReconciliationRecordService;
}

private InvoiceReimbursementService invoiceReimbursementService;
public InvoiceReimbursementService getInvoiceReimbursementService() {
if (this.invoiceReimbursementService == null) {
this.invoiceReimbursementService = new InvoiceReimbursementService(this);
}
return this.invoiceReimbursementService;
}

private LabelDescriptionGroupService labelDescriptionGroupService;
public LabelDescriptionGroupService getLabelDescriptionGroupService() {
if (this.labelDescriptionGroupService == null) {
Expand Down Expand Up @@ -493,6 +517,22 @@ public PaymentTerminalTillService getPaymentTerminalTillService() {
return this.paymentTerminalTillService;
}

private PaymentTerminalTransactionSummaryService paymentTerminalTransactionSummaryService;
public PaymentTerminalTransactionSummaryService getPaymentTerminalTransactionSummaryService() {
if (this.paymentTerminalTransactionSummaryService == null) {
this.paymentTerminalTransactionSummaryService = new PaymentTerminalTransactionSummaryService(this);
}
return this.paymentTerminalTransactionSummaryService;
}

private PaymentWebAppService paymentWebAppService;
public PaymentWebAppService getPaymentWebAppService() {
if (this.paymentWebAppService == null) {
this.paymentWebAppService = new PaymentWebAppService(this);
}
return this.paymentWebAppService;
}

private PermissionService permissionService;
public PermissionService getPermissionService() {
if (this.permissionService == null) {
Expand Down Expand Up @@ -829,6 +869,14 @@ public TransactionLightboxService getTransactionLightboxService() {
return this.transactionLightboxService;
}

private TransactionLineItemVersionService transactionLineItemVersionService;
public TransactionLineItemVersionService getTransactionLineItemVersionService() {
if (this.transactionLineItemVersionService == null) {
this.transactionLineItemVersionService = new TransactionLineItemVersionService(this);
}
return this.transactionLineItemVersionService;
}

private TransactionMobileSdkService transactionMobileSdkService;
public TransactionMobileSdkService getTransactionMobileSdkService() {
if (this.transactionMobileSdkService == null) {
Expand Down
240 changes: 240 additions & 0 deletions src/main/java/com/wallee/sdk/model/AnalyticsQuery.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
/**
* 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.*;
import java.time.OffsetDateTime;

/**
* Represents a query to be submitted for execution in Analytics.
*/
@ApiModel(description = "Represents a query to be submitted for execution in Analytics.")

public class AnalyticsQuery {

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


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


@JsonProperty("maxCacheAge")
protected Integer maxCacheAge = null;


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


@JsonProperty("scannedDataLimit")
protected BigDecimal scannedDataLimit = null;


@JsonProperty("spaceIds")
protected List<Long> spaceIds = null;



public AnalyticsQuery accountId(Long accountId) {
this.accountId = accountId;
return this;
}

/**
* The mandatory ID of an account in which the query shall be executed. Must be a valid account ID greater than 0.
* @return accountId
**/
@ApiModelProperty(required = true, value = "The mandatory ID of an account in which the query shall be executed. Must be a valid account ID greater than 0.")
public Long getAccountId() {
return accountId;
}

public void setAccountId(Long accountId) {
this.accountId = accountId;
}


public AnalyticsQuery externalId(String externalId) {
this.externalId = externalId;
return this;
}

/**
* A client generated nonce which uniquely identifies the query to be executed. Subsequent submissions with the same external ID will not re-execute the query but instead return the existing execution with that ID. Either the External ID or a Maximal Cache Age greater than 0 must be specified. If both are specified the External ID will have precedence and the Maximal Cache Age will be ignored.
* @return externalId
**/
@ApiModelProperty(value = "A client generated nonce which uniquely identifies the query to be executed. Subsequent submissions with the same external ID will not re-execute the query but instead return the existing execution with that ID. Either the External ID or a Maximal Cache Age greater than 0 must be specified. If both are specified the External ID will have precedence and the Maximal Cache Age will be ignored.")
public String getExternalId() {
return externalId;
}

public void setExternalId(String externalId) {
this.externalId = externalId;
}


public AnalyticsQuery maxCacheAge(Integer maxCacheAge) {
this.maxCacheAge = maxCacheAge;
return this;
}

/**
* The maximal age in minutes of cached query executions to return. If an equivalent query execution with the same Query String, Account ID and Spaces parameters not older than the specified age is already available that execution will be returned instead of a newly started execution. Set to 0 or null (and set a unique, previously unused External ID) to force a new query execution irrespective of previous executions. Either the External ID or a Cache Duration greater than 0 must be specified. If both are specified, the External ID will be preferred (and the Maximal Cache Age ignored).
* @return maxCacheAge
**/
@ApiModelProperty(value = "The maximal age in minutes of cached query executions to return. If an equivalent query execution with the same Query String, Account ID and Spaces parameters not older than the specified age is already available that execution will be returned instead of a newly started execution. Set to 0 or null (and set a unique, previously unused External ID) to force a new query execution irrespective of previous executions. Either the External ID or a Cache Duration greater than 0 must be specified. If both are specified, the External ID will be preferred (and the Maximal Cache Age ignored).")
public Integer getMaxCacheAge() {
return maxCacheAge;
}

public void setMaxCacheAge(Integer maxCacheAge) {
this.maxCacheAge = maxCacheAge;
}


public AnalyticsQuery queryString(String queryString) {
this.queryString = queryString;
return this;
}

/**
* The SQL statement which is being submitted for execution. Must be a valid PrestoDB/Athena SQL statement.
* @return queryString
**/
@ApiModelProperty(value = "The SQL statement which is being submitted for execution. Must be a valid PrestoDB/Athena SQL statement.")
public String getQueryString() {
return queryString;
}

public void setQueryString(String queryString) {
this.queryString = queryString;
}


public AnalyticsQuery scannedDataLimit(BigDecimal scannedDataLimit) {
this.scannedDataLimit = scannedDataLimit;
return this;
}

/**
* The maximal amount of scanned data that this query is allowed to scan. After this limit is reached query will be canceled by the system.
* @return scannedDataLimit
**/
@ApiModelProperty(value = "The maximal amount of scanned data that this query is allowed to scan. After this limit is reached query will be canceled by the system. ")
public BigDecimal getScannedDataLimit() {
return scannedDataLimit;
}

public void setScannedDataLimit(BigDecimal scannedDataLimit) {
this.scannedDataLimit = scannedDataLimit;
}


public AnalyticsQuery spaceIds(List<Long> spaceIds) {
this.spaceIds = spaceIds;
return this;
}

public AnalyticsQuery addSpaceIdsItem(Long spaceIdsItem) {
if (this.spaceIds == null) {
this.spaceIds = new ArrayList<>();
}
this.spaceIds.add(spaceIdsItem);
return this;
}

/**
* The IDs of the spaces in which the query shall be executed. At most 5 space IDs may be specified. All specified spaces must be owned by the account specified by the accountId property. The spaces property may be missing or empty to query all spaces of the specified account.
* @return spaceIds
**/
@ApiModelProperty(value = "The IDs of the spaces in which the query shall be executed. At most 5 space IDs may be specified. All specified spaces must be owned by the account specified by the accountId property. The spaces property may be missing or empty to query all spaces of the specified account.")
public List<Long> getSpaceIds() {
return spaceIds;
}

public void setSpaceIds(List<Long> spaceIds) {
this.spaceIds = spaceIds;
}



@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AnalyticsQuery analyticsQuery = (AnalyticsQuery) o;
return Objects.equals(this.accountId, analyticsQuery.accountId) &&
Objects.equals(this.externalId, analyticsQuery.externalId) &&
Objects.equals(this.maxCacheAge, analyticsQuery.maxCacheAge) &&
Objects.equals(this.queryString, analyticsQuery.queryString) &&
Objects.equals(this.scannedDataLimit, analyticsQuery.scannedDataLimit) &&
Objects.equals(this.spaceIds, analyticsQuery.spaceIds);
}

@Override
public int hashCode() {
return Objects.hash(accountId, externalId, maxCacheAge, queryString, scannedDataLimit, spaceIds);
}


@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AnalyticsQuery {\n");

sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" externalId: ").append(toIndentedString(externalId)).append("\n");
sb.append(" maxCacheAge: ").append(toIndentedString(maxCacheAge)).append("\n");
sb.append(" queryString: ").append(toIndentedString(queryString)).append("\n");
sb.append(" scannedDataLimit: ").append(toIndentedString(scannedDataLimit)).append("\n");
sb.append(" spaceIds: ").append(toIndentedString(spaceIds)).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 790d0ff

Please sign in to comment.