From 790d0ff8d2022c2c70ba1aaf8d563d24aafe4210 Mon Sep 17 00:00:00 2001 From: Drew Rowan Date: Mon, 13 Jun 2022 11:58:02 +0300 Subject: [PATCH] Release 4.0.3 --- LICENSE | 2 +- README.md | 6 +- build.gradle | 2 +- build.sbt | 2 +- pom.xml | 2 +- src/main/java/com/wallee/sdk/ApiClient.java | 48 + .../com/wallee/sdk/model/AnalyticsQuery.java | 240 +++ .../sdk/model/AnalyticsQueryExecution.java | 261 ++++ .../model/AnalyticsQueryExecutionState.java | 70 + .../sdk/model/AnalyticsQueryResultBatch.java | 147 ++ .../sdk/model/AnalyticsSchemaColumn.java | 210 +++ .../sdk/model/AnalyticsSchemaTable.java | 132 ++ .../com/wallee/sdk/model/ChargeAttempt.java | 19 +- .../model/InvoiceReconciliationRecord.java | 558 +++++++ ...ceReconciliationRecordRejectionStatus.java | 68 + .../InvoiceReconciliationRecordState.java | 72 + .../InvoiceReconciliationRecordType.java | 130 ++ .../sdk/model/InvoiceReimbursement.java | 420 +++++ .../sdk/model/InvoiceReimbursementState.java | 72 + .../com/wallee/sdk/model/LineItemType.java | 4 +- .../PaymentAppChargeAttemptTargetState.java | 66 + .../PaymentAppChargeAttemptUpdateRequest.java | 205 +++ .../PaymentAppCompletionConfiguration.java | 159 ++ ...ymentAppCompletionConfigurationCreate.java | 204 +++ .../PaymentAppCompletionTargetState.java | 66 + .../PaymentAppCompletionUpdateRequest.java | 180 +++ .../wallee/sdk/model/PaymentAppConnector.java | 309 ++++ .../PaymentAppConnectorCreationRequest.java | 281 ++++ .../sdk/model/PaymentAppConnectorState.java | 66 + .../wallee/sdk/model/PaymentAppProcessor.java | 339 +++++ .../PaymentAppProcessorCreationRequest.java | 204 +++ .../sdk/model/PaymentAppProcessorState.java | 66 + .../model/PaymentAppRefundConfiguration.java | 127 ++ .../PaymentAppRefundConfigurationCreate.java | 154 ++ .../model/PaymentAppRefundTargetState.java | 66 + .../model/PaymentAppRefundUpdateRequest.java | 180 +++ .../sdk/model/PaymentAppVoidTargetState.java | 66 + .../model/PaymentAppVoidUpdateRequest.java | 180 +++ .../model/PaymentInitiationAdviceFile.java | 193 +++ .../PaymentInitiationAdviceFileState.java | 66 + .../model/PaymentProcessorConfiguration.java | 20 +- .../com/wallee/sdk/model/PaymentTerminal.java | 18 +- .../PaymentTerminalDccTransactionSum.java | 208 +++ .../sdk/model/PaymentTerminalLocation.java | 21 +- .../model/PaymentTerminalLocationVersion.java | 18 +- .../sdk/model/PaymentTerminalState.java | 2 + .../model/PaymentTerminalTransactionSum.java | 256 ++++ .../PaymentTerminalTransactionSummary.java | 244 +++ ...erminalTransactionSummaryFetchRequest.java | 155 ++ .../RenderedTerminalTransactionSummary.java | 120 ++ .../com/wallee/sdk/model/SpaceAddress.java | 34 +- .../wallee/sdk/model/SpaceAddressCreate.java | 52 +- .../SubscriptionProductVersionRetirement.java | 4 +- ...riptionProductVersionRetirementCreate.java | 4 +- .../com/wallee/sdk/model/Transaction.java | 24 +- .../wallee/sdk/model/TransactionCreate.java | 4 +- .../TransactionLineItemUpdateRequest.java | 140 -- .../sdk/model/TransactionLineItemVersion.java | 149 +- .../TransactionLineItemVersionCreate.java | 162 ++ .../TransactionLineItemVersionState.java | 72 + .../sdk/service/AnalyticsQueryService.java | 737 +++++++++ .../wallee/sdk/service/ChargeFlowService.java | 268 ++++ .../InvoiceReconciliationRecordService.java | 1163 ++++++++++++++ .../service/InvoiceReimbursementService.java | 755 +++++++++ .../sdk/service/PaymentTerminalService.java | 500 ++++++ .../service/PaymentTerminalTillService.java | 8 +- ...mentTerminalTransactionSummaryService.java | 630 ++++++++ .../sdk/service/PaymentWebAppService.java | 1348 +++++++++++++++++ .../TransactionLineItemVersionService.java | 629 ++++++++ .../sdk/service/TransactionService.java | 166 +- 70 files changed, 13210 insertions(+), 343 deletions(-) create mode 100644 src/main/java/com/wallee/sdk/model/AnalyticsQuery.java create mode 100644 src/main/java/com/wallee/sdk/model/AnalyticsQueryExecution.java create mode 100644 src/main/java/com/wallee/sdk/model/AnalyticsQueryExecutionState.java create mode 100644 src/main/java/com/wallee/sdk/model/AnalyticsQueryResultBatch.java create mode 100644 src/main/java/com/wallee/sdk/model/AnalyticsSchemaColumn.java create mode 100644 src/main/java/com/wallee/sdk/model/AnalyticsSchemaTable.java create mode 100644 src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecord.java create mode 100644 src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecordRejectionStatus.java create mode 100644 src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecordState.java create mode 100644 src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecordType.java create mode 100644 src/main/java/com/wallee/sdk/model/InvoiceReimbursement.java create mode 100644 src/main/java/com/wallee/sdk/model/InvoiceReimbursementState.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppChargeAttemptTargetState.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppChargeAttemptUpdateRequest.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppCompletionConfiguration.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppCompletionConfigurationCreate.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppCompletionTargetState.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppCompletionUpdateRequest.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppConnector.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppConnectorCreationRequest.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppConnectorState.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppProcessor.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppProcessorCreationRequest.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppProcessorState.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppRefundConfiguration.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppRefundConfigurationCreate.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppRefundTargetState.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppRefundUpdateRequest.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppVoidTargetState.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentAppVoidUpdateRequest.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentInitiationAdviceFile.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentInitiationAdviceFileState.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentTerminalDccTransactionSum.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentTerminalTransactionSum.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentTerminalTransactionSummary.java create mode 100644 src/main/java/com/wallee/sdk/model/PaymentTerminalTransactionSummaryFetchRequest.java create mode 100644 src/main/java/com/wallee/sdk/model/RenderedTerminalTransactionSummary.java delete mode 100644 src/main/java/com/wallee/sdk/model/TransactionLineItemUpdateRequest.java create mode 100644 src/main/java/com/wallee/sdk/model/TransactionLineItemVersionCreate.java create mode 100644 src/main/java/com/wallee/sdk/model/TransactionLineItemVersionState.java create mode 100644 src/main/java/com/wallee/sdk/service/AnalyticsQueryService.java create mode 100644 src/main/java/com/wallee/sdk/service/InvoiceReconciliationRecordService.java create mode 100644 src/main/java/com/wallee/sdk/service/InvoiceReimbursementService.java create mode 100644 src/main/java/com/wallee/sdk/service/PaymentTerminalTransactionSummaryService.java create mode 100644 src/main/java/com/wallee/sdk/service/PaymentWebAppService.java create mode 100644 src/main/java/com/wallee/sdk/service/TransactionLineItemVersionService.java diff --git a/LICENSE b/LICENSE index e24cd8df..80888072 100644 --- a/LICENSE +++ b/LICENSE @@ -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. diff --git a/README.md b/README.md index ccc0a18d..5b744f61 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Add this dependency to your project's POM: com.wallee wallee-java-sdk - 4.0.2 + 4.0.3 compile ``` @@ -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 @@ -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 diff --git a/build.gradle b/build.gradle index 9793b781..19d4a886 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'com.wallee' -version = '4.0.2' +version = '4.0.3' buildscript { repositories { diff --git a/build.sbt b/build.sbt index 9fb49523..a4cfa8c7 100644 --- a/build.sbt +++ b/build.sbt @@ -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"), diff --git a/pom.xml b/pom.xml index d2e08ae5..d900069b 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ wallee-java-sdk jar wallee-java-sdk - 4.0.2 + 4.0.3 https://www.wallee.com The SDK for simplifying the integration with wallee API. diff --git a/src/main/java/com/wallee/sdk/ApiClient.java b/src/main/java/com/wallee/sdk/ApiClient.java index 7f3400ee..cf6601e6 100644 --- a/src/main/java/com/wallee/sdk/ApiClient.java +++ b/src/main/java/com/wallee/sdk/ApiClient.java @@ -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) { @@ -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) { @@ -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) { @@ -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) { diff --git a/src/main/java/com/wallee/sdk/model/AnalyticsQuery.java b/src/main/java/com/wallee/sdk/model/AnalyticsQuery.java new file mode 100644 index 00000000..c8ba9c64 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/AnalyticsQuery.java @@ -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 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 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 getSpaceIds() { + return spaceIds; + } + + public void setSpaceIds(List 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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/AnalyticsQueryExecution.java b/src/main/java/com/wallee/sdk/model/AnalyticsQueryExecution.java new file mode 100644 index 00000000..cf54bd25 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/AnalyticsQueryExecution.java @@ -0,0 +1,261 @@ +/** +* 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.AnalyticsQueryExecutionState; +import com.wallee.sdk.model.FailureReason; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * Represents the execution of a query which has been submitted to Analytics. + */ +@ApiModel(description = "Represents the execution of a query which has been submitted to Analytics.") + +public class AnalyticsQueryExecution { + + @JsonProperty("account") + protected Long account = null; + + + @JsonProperty("externalId") + protected String externalId = null; + + + @JsonProperty("failureReason") + protected FailureReason failureReason = null; + + + @JsonProperty("id") + protected Long id = null; + + + @JsonProperty("processingEndTime") + protected OffsetDateTime processingEndTime = null; + + + @JsonProperty("processingStartTime") + protected OffsetDateTime processingStartTime = null; + + + @JsonProperty("queryString") + protected String queryString = null; + + + @JsonProperty("scannedDataInGb") + protected BigDecimal scannedDataInGb = null; + + + @JsonProperty("scannedDataLimit") + protected BigDecimal scannedDataLimit = null; + + + @JsonProperty("spaces") + protected List spaces = null; + + + @JsonProperty("state") + protected AnalyticsQueryExecutionState state = null; + + + + /** + * The account in which the query has been executed. + * @return account + **/ + @ApiModelProperty(value = "The account in which the query has been executed.") + public Long getAccount() { + return account; + } + + + /** + * The External ID of the query if one had been specified; otherwise null. + * @return externalId + **/ + @ApiModelProperty(value = "The External ID of the query if one had been specified; otherwise null.") + public String getExternalId() { + return externalId; + } + + + /** + * The reason of the failure if and only if the query has failed, otherwise null. + * @return failureReason + **/ + @ApiModelProperty(value = "The reason of the failure if and only if the query has failed, otherwise null.") + public FailureReason getFailureReason() { + return failureReason; + } + + + /** + * The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @return id + **/ + @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.") + public Long getId() { + return id; + } + + + /** + * The time at which processing of the query has finished (either successfully or by failure or by cancelation). Will be null if the query execution has not finished yet. + * @return processingEndTime + **/ + @ApiModelProperty(value = "The time at which processing of the query has finished (either successfully or by failure or by cancelation). Will be null if the query execution has not finished yet.") + public OffsetDateTime getProcessingEndTime() { + return processingEndTime; + } + + + /** + * The time at which processing of the query has started (never null). + * @return processingStartTime + **/ + @ApiModelProperty(value = "The time at which processing of the query has started (never null).") + public OffsetDateTime getProcessingStartTime() { + return processingStartTime; + } + + + /** + * The SQL statement which has been submitted for execution. + * @return queryString + **/ + @ApiModelProperty(value = "The SQL statement which has been submitted for execution.") + public String getQueryString() { + return queryString; + } + + + /** + * The amount of data scanned while processing the query (in GB). (Note that this amount may increase over time while the query is still being processed and not finished yet.) + * @return scannedDataInGb + **/ + @ApiModelProperty(value = "The amount of data scanned while processing the query (in GB). (Note that this amount may increase over time while the query is still being processed and not finished yet.)") + public BigDecimal getScannedDataInGb() { + return scannedDataInGb; + } + + + /** + * 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; + } + + + /** + * The spaces in which the query has been executed. May be empty if all spaces of the specified account have been queried. + * @return spaces + **/ + @ApiModelProperty(value = "The spaces in which the query has been executed. May be empty if all spaces of the specified account have been queried.") + public List getSpaces() { + return spaces; + } + + + /** + * The current state of the query execution. + * @return state + **/ + @ApiModelProperty(value = "The current state of the query execution.") + public AnalyticsQueryExecutionState getState() { + return state; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AnalyticsQueryExecution analyticsQueryExecution = (AnalyticsQueryExecution) o; + return Objects.equals(this.account, analyticsQueryExecution.account) && + Objects.equals(this.externalId, analyticsQueryExecution.externalId) && + Objects.equals(this.failureReason, analyticsQueryExecution.failureReason) && + Objects.equals(this.id, analyticsQueryExecution.id) && + Objects.equals(this.processingEndTime, analyticsQueryExecution.processingEndTime) && + Objects.equals(this.processingStartTime, analyticsQueryExecution.processingStartTime) && + Objects.equals(this.queryString, analyticsQueryExecution.queryString) && + Objects.equals(this.scannedDataInGb, analyticsQueryExecution.scannedDataInGb) && + Objects.equals(this.scannedDataLimit, analyticsQueryExecution.scannedDataLimit) && + Objects.equals(this.spaces, analyticsQueryExecution.spaces) && + Objects.equals(this.state, analyticsQueryExecution.state); + } + + @Override + public int hashCode() { + return Objects.hash(account, externalId, failureReason, id, processingEndTime, processingStartTime, queryString, scannedDataInGb, scannedDataLimit, spaces, state); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AnalyticsQueryExecution {\n"); + + sb.append(" account: ").append(toIndentedString(account)).append("\n"); + sb.append(" externalId: ").append(toIndentedString(externalId)).append("\n"); + sb.append(" failureReason: ").append(toIndentedString(failureReason)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" processingEndTime: ").append(toIndentedString(processingEndTime)).append("\n"); + sb.append(" processingStartTime: ").append(toIndentedString(processingStartTime)).append("\n"); + sb.append(" queryString: ").append(toIndentedString(queryString)).append("\n"); + sb.append(" scannedDataInGb: ").append(toIndentedString(scannedDataInGb)).append("\n"); + sb.append(" scannedDataLimit: ").append(toIndentedString(scannedDataLimit)).append("\n"); + sb.append(" spaces: ").append(toIndentedString(spaces)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/AnalyticsQueryExecutionState.java b/src/main/java/com/wallee/sdk/model/AnalyticsQueryExecutionState.java new file mode 100644 index 00000000..fe8d324f --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/AnalyticsQueryExecutionState.java @@ -0,0 +1,70 @@ +/** +* 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 io.swagger.annotations.ApiModel; +import java.util.*; +import java.time.OffsetDateTime; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * The state of a query execution. + */ +public enum AnalyticsQueryExecutionState { + + PROCESSING("PROCESSING"), + + PROCESSED("PROCESSED"), + + FAILED("FAILED"), + + CANCELED("CANCELED"); + + private String value; + + AnalyticsQueryExecutionState(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AnalyticsQueryExecutionState fromValue(String text) { + for (AnalyticsQueryExecutionState b : AnalyticsQueryExecutionState.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } +} + diff --git a/src/main/java/com/wallee/sdk/model/AnalyticsQueryResultBatch.java b/src/main/java/com/wallee/sdk/model/AnalyticsQueryResultBatch.java new file mode 100644 index 00000000..93c29575 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/AnalyticsQueryResultBatch.java @@ -0,0 +1,147 @@ +/** +* 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.AnalyticsQueryExecution; +import com.wallee.sdk.model.AnalyticsSchemaColumn; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * A batch of the result of a query executed in Analytics. + */ +@ApiModel(description = "A batch of the result of a query executed in Analytics.") + +public class AnalyticsQueryResultBatch { + + @JsonProperty("columns") + protected List columns = null; + + + @JsonProperty("nextToken") + protected String nextToken = null; + + + @JsonProperty("queryExecution") + protected AnalyticsQueryExecution queryExecution = null; + + + @JsonProperty("rows") + protected List> rows = null; + + + + /** + * The schemas of the columns returned by the query (in order). Will be null if the results of the query are not (yet) available. + * @return columns + **/ + @ApiModelProperty(value = "The schemas of the columns returned by the query (in order). Will be null if the results of the query are not (yet) available.") + public List getColumns() { + return columns; + } + + + /** + * The token to be provided to fetch the next batch of results. May be null if no more result batches are available. + * @return nextToken + **/ + @ApiModelProperty(value = "The token to be provided to fetch the next batch of results. May be null if no more result batches are available.") + public String getNextToken() { + return nextToken; + } + + + /** + * The query execution which produced the result. + * @return queryExecution + **/ + @ApiModelProperty(value = "The query execution which produced the result.") + public AnalyticsQueryExecution getQueryExecution() { + return queryExecution; + } + + + /** + * The rows of the result set contained in this batch where each row is a list of column values (in order of the columns specified in the query). Will be null if the results of the query are not (yet) available. + * @return rows + **/ + @ApiModelProperty(value = "The rows of the result set contained in this batch where each row is a list of column values (in order of the columns specified in the query). Will be null if the results of the query are not (yet) available.") + public List> getRows() { + return rows; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AnalyticsQueryResultBatch analyticsQueryResultBatch = (AnalyticsQueryResultBatch) o; + return Objects.equals(this.columns, analyticsQueryResultBatch.columns) && + Objects.equals(this.nextToken, analyticsQueryResultBatch.nextToken) && + Objects.equals(this.queryExecution, analyticsQueryResultBatch.queryExecution) && + Objects.equals(this.rows, analyticsQueryResultBatch.rows); + } + + @Override + public int hashCode() { + return Objects.hash(columns, nextToken, queryExecution, rows); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AnalyticsQueryResultBatch {\n"); + + sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); + sb.append(" nextToken: ").append(toIndentedString(nextToken)).append("\n"); + sb.append(" queryExecution: ").append(toIndentedString(queryExecution)).append("\n"); + sb.append(" rows: ").append(toIndentedString(rows)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/AnalyticsSchemaColumn.java b/src/main/java/com/wallee/sdk/model/AnalyticsSchemaColumn.java new file mode 100644 index 00000000..028ca79a --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/AnalyticsSchemaColumn.java @@ -0,0 +1,210 @@ +/** +* 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.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * Meta information about a column within a table. + */ +@ApiModel(description = "Meta information about a column within a table.") + +public class AnalyticsSchemaColumn { + + @JsonProperty("aliasName") + protected String aliasName = null; + + + @JsonProperty("columnName") + protected String columnName = null; + + + @JsonProperty("description") + protected Map description = null; + + + @JsonProperty("precision") + protected Integer precision = null; + + + @JsonProperty("referencedTable") + protected String referencedTable = null; + + + @JsonProperty("scale") + protected Integer scale = null; + + + @JsonProperty("tableName") + protected String tableName = null; + + + @JsonProperty("type") + protected String type = null; + + + + /** + * The name of the alias defined for the column in the query or null if none is defined. + * @return aliasName + **/ + @ApiModelProperty(value = "The name of the alias defined for the column in the query or null if none is defined.") + public String getAliasName() { + return aliasName; + } + + + /** + * The name of the column in the table or null if this is a synthetic column which is the result of some SQL expression. + * @return columnName + **/ + @ApiModelProperty(value = "The name of the column in the table or null if this is a synthetic column which is the result of some SQL expression.") + public String getColumnName() { + return columnName; + } + + + /** + * A human readable description of the property contained in this column or null if this is a synthetic column which is the result of some SQL expression. + * @return description + **/ + @ApiModelProperty(value = "A human readable description of the property contained in this column or null if this is a synthetic column which is the result of some SQL expression.") + public Map getDescription() { + return description; + } + + + /** + * The precision (maximal number of digits) for decimal data types, otherwise 0. + * @return precision + **/ + @ApiModelProperty(value = "The precision (maximal number of digits) for decimal data types, otherwise 0.") + public Integer getPrecision() { + return precision; + } + + + /** + * The name of the referenced table if this column represents a foreign-key relation to the IDs of another table, otherwise null. + * @return referencedTable + **/ + @ApiModelProperty(value = "The name of the referenced table if this column represents a foreign-key relation to the IDs of another table, otherwise null.") + public String getReferencedTable() { + return referencedTable; + } + + + /** + * The scale (maximal number number of digits in the fractional part) in case of a decimal data type, otherwise 0. + * @return scale + **/ + @ApiModelProperty(value = "The scale (maximal number number of digits in the fractional part) in case of a decimal data type, otherwise 0.") + public Integer getScale() { + return scale; + } + + + /** + * The name of the table which defines this column. + * @return tableName + **/ + @ApiModelProperty(value = "The name of the table which defines this column.") + public String getTableName() { + return tableName; + } + + + /** + * The ORC data type of the column value. + * @return type + **/ + @ApiModelProperty(value = "The ORC data type of the column value.") + public String getType() { + return type; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AnalyticsSchemaColumn analyticsSchemaColumn = (AnalyticsSchemaColumn) o; + return Objects.equals(this.aliasName, analyticsSchemaColumn.aliasName) && + Objects.equals(this.columnName, analyticsSchemaColumn.columnName) && + Objects.equals(this.description, analyticsSchemaColumn.description) && + Objects.equals(this.precision, analyticsSchemaColumn.precision) && + Objects.equals(this.referencedTable, analyticsSchemaColumn.referencedTable) && + Objects.equals(this.scale, analyticsSchemaColumn.scale) && + Objects.equals(this.tableName, analyticsSchemaColumn.tableName) && + Objects.equals(this.type, analyticsSchemaColumn.type); + } + + @Override + public int hashCode() { + return Objects.hash(aliasName, columnName, description, precision, referencedTable, scale, tableName, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AnalyticsSchemaColumn {\n"); + + sb.append(" aliasName: ").append(toIndentedString(aliasName)).append("\n"); + sb.append(" columnName: ").append(toIndentedString(columnName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" precision: ").append(toIndentedString(precision)).append("\n"); + sb.append(" referencedTable: ").append(toIndentedString(referencedTable)).append("\n"); + sb.append(" scale: ").append(toIndentedString(scale)).append("\n"); + sb.append(" tableName: ").append(toIndentedString(tableName)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/AnalyticsSchemaTable.java b/src/main/java/com/wallee/sdk/model/AnalyticsSchemaTable.java new file mode 100644 index 00000000..9f89ab57 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/AnalyticsSchemaTable.java @@ -0,0 +1,132 @@ +/** +* 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.AnalyticsSchemaColumn; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * The schema of a single table in Analytics. + */ +@ApiModel(description = "The schema of a single table in Analytics.") + +public class AnalyticsSchemaTable { + + @JsonProperty("columns") + protected List columns = null; + + + @JsonProperty("description") + protected Map description = null; + + + @JsonProperty("tableName") + protected String tableName = null; + + + + /** + * The schemas of all columns of this table. + * @return columns + **/ + @ApiModelProperty(value = "The schemas of all columns of this table.") + public List getColumns() { + return columns; + } + + + /** + * A human readable description of the entity type contained in this table. + * @return description + **/ + @ApiModelProperty(value = "A human readable description of the entity type contained in this table.") + public Map getDescription() { + return description; + } + + + /** + * The name of this table. + * @return tableName + **/ + @ApiModelProperty(value = "The name of this table.") + public String getTableName() { + return tableName; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AnalyticsSchemaTable analyticsSchemaTable = (AnalyticsSchemaTable) o; + return Objects.equals(this.columns, analyticsSchemaTable.columns) && + Objects.equals(this.description, analyticsSchemaTable.description) && + Objects.equals(this.tableName, analyticsSchemaTable.tableName); + } + + @Override + public int hashCode() { + return Objects.hash(columns, description, tableName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AnalyticsSchemaTable {\n"); + + sb.append(" columns: ").append(toIndentedString(columns)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" tableName: ").append(toIndentedString(tableName)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/ChargeAttempt.java b/src/main/java/com/wallee/sdk/model/ChargeAttempt.java index d356ade6..a5ac3777 100644 --- a/src/main/java/com/wallee/sdk/model/ChargeAttempt.java +++ b/src/main/java/com/wallee/sdk/model/ChargeAttempt.java @@ -28,6 +28,7 @@ import com.wallee.sdk.model.ChargeAttemptEnvironment; import com.wallee.sdk.model.ChargeAttemptState; import com.wallee.sdk.model.ConnectorInvocation; +import com.wallee.sdk.model.CustomersPresence; import com.wallee.sdk.model.FailureReason; import com.wallee.sdk.model.Label; import com.wallee.sdk.model.PaymentConnectorConfiguration; @@ -66,6 +67,10 @@ public class ChargeAttempt extends TransactionAwareEntity { protected OffsetDateTime createdOn = null; + @JsonProperty("customersPresence") + protected CustomersPresence customersPresence = null; + + @JsonProperty("environment") protected ChargeAttemptEnvironment environment = null; @@ -187,6 +192,16 @@ public OffsetDateTime getCreatedOn() { } + /** + * The customers presence indicates which kind of customer interaction was used during the charge attempt. + * @return customersPresence + **/ + @ApiModelProperty(value = "The customers presence indicates which kind of customer interaction was used during the charge attempt.") + public CustomersPresence getCustomersPresence() { + return customersPresence; + } + + /** * * @return environment @@ -404,6 +419,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.completionBehavior, chargeAttempt.completionBehavior) && Objects.equals(this.connectorConfiguration, chargeAttempt.connectorConfiguration) && Objects.equals(this.createdOn, chargeAttempt.createdOn) && + Objects.equals(this.customersPresence, chargeAttempt.customersPresence) && Objects.equals(this.environment, chargeAttempt.environment) && Objects.equals(this.failedOn, chargeAttempt.failedOn) && Objects.equals(this.failureReason, chargeAttempt.failureReason) && @@ -429,7 +445,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, linkedSpaceId, linkedTransaction, charge, completionBehavior, connectorConfiguration, createdOn, environment, failedOn, failureReason, initializingTokenVersion, invocation, labels, language, nextUpdateOn, plannedPurgeDate, redirectionUrl, salesChannel, spaceViewId, state, succeededOn, terminal, timeZone, timeoutOn, tokenVersion, userFailureMessage, version, super.hashCode()); + return Objects.hash(id, linkedSpaceId, linkedTransaction, charge, completionBehavior, connectorConfiguration, createdOn, customersPresence, environment, failedOn, failureReason, initializingTokenVersion, invocation, labels, language, nextUpdateOn, plannedPurgeDate, redirectionUrl, salesChannel, spaceViewId, state, succeededOn, terminal, timeZone, timeoutOn, tokenVersion, userFailureMessage, version, super.hashCode()); } @@ -445,6 +461,7 @@ public String toString() { sb.append(" completionBehavior: ").append(toIndentedString(completionBehavior)).append("\n"); sb.append(" connectorConfiguration: ").append(toIndentedString(connectorConfiguration)).append("\n"); sb.append(" createdOn: ").append(toIndentedString(createdOn)).append("\n"); + sb.append(" customersPresence: ").append(toIndentedString(customersPresence)).append("\n"); sb.append(" environment: ").append(toIndentedString(environment)).append("\n"); sb.append(" failedOn: ").append(toIndentedString(failedOn)).append("\n"); sb.append(" failureReason: ").append(toIndentedString(failureReason)).append("\n"); diff --git a/src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecord.java b/src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecord.java new file mode 100644 index 00000000..2bf7d466 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecord.java @@ -0,0 +1,558 @@ +/** +* 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.ChargeAttemptEnvironment; +import com.wallee.sdk.model.FailureReason; +import com.wallee.sdk.model.InvoiceReconciliationRecordRejectionStatus; +import com.wallee.sdk.model.InvoiceReconciliationRecordState; +import com.wallee.sdk.model.InvoiceReconciliationRecordType; +import com.wallee.sdk.model.TransactionAwareEntity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import java.time.OffsetDateTime; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class InvoiceReconciliationRecord extends TransactionAwareEntity { + + @JsonProperty("address") + protected String address = null; + + + @JsonProperty("amount") + protected BigDecimal amount = null; + + + @JsonProperty("city") + protected String city = null; + + + @JsonProperty("country") + protected String country = null; + + + @JsonProperty("createdOn") + protected OffsetDateTime createdOn = null; + + + @JsonProperty("currency") + protected String currency = null; + + + @JsonProperty("discardedBy") + protected Long discardedBy = null; + + + @JsonProperty("discardedOn") + protected OffsetDateTime discardedOn = null; + + + @JsonProperty("environment") + protected ChargeAttemptEnvironment environment = null; + + + @JsonProperty("familyName") + protected String familyName = null; + + + @JsonProperty("givenName") + protected String givenName = null; + + + @JsonProperty("iban") + protected String iban = null; + + + @JsonProperty("lastResolutionFailure") + protected FailureReason lastResolutionFailure = null; + + + @JsonProperty("participantNumber") + protected String participantNumber = null; + + + @JsonProperty("paymentFeeAmount") + protected BigDecimal paymentFeeAmount = null; + + + @JsonProperty("paymentFeeCurrency") + protected String paymentFeeCurrency = null; + + + @JsonProperty("plannedPurgeDate") + protected OffsetDateTime plannedPurgeDate = null; + + + @JsonProperty("postCode") + protected String postCode = null; + + + @JsonProperty("referenceNumber") + protected String referenceNumber = null; + + + @JsonProperty("rejectionStatus") + protected InvoiceReconciliationRecordRejectionStatus rejectionStatus = null; + + + @JsonProperty("resolvedBy") + protected Long resolvedBy = null; + + + @JsonProperty("resolvedOn") + protected OffsetDateTime resolvedOn = null; + + + @JsonProperty("senderBankAccount") + protected String senderBankAccount = null; + + + @JsonProperty("state") + protected InvoiceReconciliationRecordState state = null; + + + @JsonProperty("street") + protected String street = null; + + + @JsonProperty("type") + protected InvoiceReconciliationRecordType type = null; + + + @JsonProperty("uniqueId") + protected String uniqueId = null; + + + @JsonProperty("valueDate") + protected OffsetDateTime valueDate = null; + + + @JsonProperty("version") + protected Integer version = null; + + + + /** + * + * @return address + **/ + @ApiModelProperty(value = "") + public String getAddress() { + return address; + } + + + /** + * + * @return amount + **/ + @ApiModelProperty(value = "") + public BigDecimal getAmount() { + return amount; + } + + + /** + * + * @return city + **/ + @ApiModelProperty(value = "") + public String getCity() { + return city; + } + + + /** + * + * @return country + **/ + @ApiModelProperty(value = "") + public String getCountry() { + return country; + } + + + /** + * The created on date indicates the date on which the entity was stored into the database. + * @return createdOn + **/ + @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.") + public OffsetDateTime getCreatedOn() { + return createdOn; + } + + + /** + * + * @return currency + **/ + @ApiModelProperty(value = "") + public String getCurrency() { + return currency; + } + + + /** + * + * @return discardedBy + **/ + @ApiModelProperty(value = "") + public Long getDiscardedBy() { + return discardedBy; + } + + + /** + * The discarded on date indicates when the bank transaction has been discarded. + * @return discardedOn + **/ + @ApiModelProperty(value = "The discarded on date indicates when the bank transaction has been discarded.") + public OffsetDateTime getDiscardedOn() { + return discardedOn; + } + + + /** + * + * @return environment + **/ + @ApiModelProperty(value = "") + public ChargeAttemptEnvironment getEnvironment() { + return environment; + } + + + /** + * + * @return familyName + **/ + @ApiModelProperty(value = "") + public String getFamilyName() { + return familyName; + } + + + /** + * + * @return givenName + **/ + @ApiModelProperty(value = "") + public String getGivenName() { + return givenName; + } + + + /** + * + * @return iban + **/ + @ApiModelProperty(value = "") + public String getIban() { + return iban; + } + + + /** + * + * @return lastResolutionFailure + **/ + @ApiModelProperty(value = "") + public FailureReason getLastResolutionFailure() { + return lastResolutionFailure; + } + + + /** + * + * @return participantNumber + **/ + @ApiModelProperty(value = "") + public String getParticipantNumber() { + return participantNumber; + } + + + /** + * + * @return paymentFeeAmount + **/ + @ApiModelProperty(value = "") + public BigDecimal getPaymentFeeAmount() { + return paymentFeeAmount; + } + + + /** + * + * @return paymentFeeCurrency + **/ + @ApiModelProperty(value = "") + public String getPaymentFeeCurrency() { + return paymentFeeCurrency; + } + + + /** + * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @return plannedPurgeDate + **/ + @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.") + public OffsetDateTime getPlannedPurgeDate() { + return plannedPurgeDate; + } + + + /** + * + * @return postCode + **/ + @ApiModelProperty(value = "") + public String getPostCode() { + return postCode; + } + + + /** + * + * @return referenceNumber + **/ + @ApiModelProperty(value = "") + public String getReferenceNumber() { + return referenceNumber; + } + + + /** + * + * @return rejectionStatus + **/ + @ApiModelProperty(value = "") + public InvoiceReconciliationRecordRejectionStatus getRejectionStatus() { + return rejectionStatus; + } + + + /** + * + * @return resolvedBy + **/ + @ApiModelProperty(value = "") + public Long getResolvedBy() { + return resolvedBy; + } + + + /** + * The resolved on date indicates when the bank transaction has been resolved. + * @return resolvedOn + **/ + @ApiModelProperty(value = "The resolved on date indicates when the bank transaction has been resolved.") + public OffsetDateTime getResolvedOn() { + return resolvedOn; + } + + + /** + * + * @return senderBankAccount + **/ + @ApiModelProperty(value = "") + public String getSenderBankAccount() { + return senderBankAccount; + } + + + /** + * + * @return state + **/ + @ApiModelProperty(value = "") + public InvoiceReconciliationRecordState getState() { + return state; + } + + + /** + * + * @return street + **/ + @ApiModelProperty(value = "") + public String getStreet() { + return street; + } + + + /** + * + * @return type + **/ + @ApiModelProperty(value = "") + public InvoiceReconciliationRecordType getType() { + return type; + } + + + /** + * + * @return uniqueId + **/ + @ApiModelProperty(value = "") + public String getUniqueId() { + return uniqueId; + } + + + /** + * + * @return valueDate + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getValueDate() { + return valueDate; + } + + + /** + * The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @return version + **/ + @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.") + public Integer getVersion() { + return version; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvoiceReconciliationRecord invoiceReconciliationRecord = (InvoiceReconciliationRecord) o; + return Objects.equals(this.id, invoiceReconciliationRecord.id) && + Objects.equals(this.linkedSpaceId, invoiceReconciliationRecord.linkedSpaceId) && + Objects.equals(this.linkedTransaction, invoiceReconciliationRecord.linkedTransaction) && + Objects.equals(this.address, invoiceReconciliationRecord.address) && + Objects.equals(this.amount, invoiceReconciliationRecord.amount) && + Objects.equals(this.city, invoiceReconciliationRecord.city) && + Objects.equals(this.country, invoiceReconciliationRecord.country) && + Objects.equals(this.createdOn, invoiceReconciliationRecord.createdOn) && + Objects.equals(this.currency, invoiceReconciliationRecord.currency) && + Objects.equals(this.discardedBy, invoiceReconciliationRecord.discardedBy) && + Objects.equals(this.discardedOn, invoiceReconciliationRecord.discardedOn) && + Objects.equals(this.environment, invoiceReconciliationRecord.environment) && + Objects.equals(this.familyName, invoiceReconciliationRecord.familyName) && + Objects.equals(this.givenName, invoiceReconciliationRecord.givenName) && + Objects.equals(this.iban, invoiceReconciliationRecord.iban) && + Objects.equals(this.lastResolutionFailure, invoiceReconciliationRecord.lastResolutionFailure) && + Objects.equals(this.participantNumber, invoiceReconciliationRecord.participantNumber) && + Objects.equals(this.paymentFeeAmount, invoiceReconciliationRecord.paymentFeeAmount) && + Objects.equals(this.paymentFeeCurrency, invoiceReconciliationRecord.paymentFeeCurrency) && + Objects.equals(this.plannedPurgeDate, invoiceReconciliationRecord.plannedPurgeDate) && + Objects.equals(this.postCode, invoiceReconciliationRecord.postCode) && + Objects.equals(this.referenceNumber, invoiceReconciliationRecord.referenceNumber) && + Objects.equals(this.rejectionStatus, invoiceReconciliationRecord.rejectionStatus) && + Objects.equals(this.resolvedBy, invoiceReconciliationRecord.resolvedBy) && + Objects.equals(this.resolvedOn, invoiceReconciliationRecord.resolvedOn) && + Objects.equals(this.senderBankAccount, invoiceReconciliationRecord.senderBankAccount) && + Objects.equals(this.state, invoiceReconciliationRecord.state) && + Objects.equals(this.street, invoiceReconciliationRecord.street) && + Objects.equals(this.type, invoiceReconciliationRecord.type) && + Objects.equals(this.uniqueId, invoiceReconciliationRecord.uniqueId) && + Objects.equals(this.valueDate, invoiceReconciliationRecord.valueDate) && + Objects.equals(this.version, invoiceReconciliationRecord.version) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(id, linkedSpaceId, linkedTransaction, address, amount, city, country, createdOn, currency, discardedBy, discardedOn, environment, familyName, givenName, iban, lastResolutionFailure, participantNumber, paymentFeeAmount, paymentFeeCurrency, plannedPurgeDate, postCode, referenceNumber, rejectionStatus, resolvedBy, resolvedOn, senderBankAccount, state, street, type, uniqueId, valueDate, version, super.hashCode()); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvoiceReconciliationRecord {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" linkedSpaceId: ").append(toIndentedString(linkedSpaceId)).append("\n"); + sb.append(" linkedTransaction: ").append(toIndentedString(linkedTransaction)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" city: ").append(toIndentedString(city)).append("\n"); + sb.append(" country: ").append(toIndentedString(country)).append("\n"); + sb.append(" createdOn: ").append(toIndentedString(createdOn)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" discardedBy: ").append(toIndentedString(discardedBy)).append("\n"); + sb.append(" discardedOn: ").append(toIndentedString(discardedOn)).append("\n"); + sb.append(" environment: ").append(toIndentedString(environment)).append("\n"); + sb.append(" familyName: ").append(toIndentedString(familyName)).append("\n"); + sb.append(" givenName: ").append(toIndentedString(givenName)).append("\n"); + sb.append(" iban: ").append(toIndentedString(iban)).append("\n"); + sb.append(" lastResolutionFailure: ").append(toIndentedString(lastResolutionFailure)).append("\n"); + sb.append(" participantNumber: ").append(toIndentedString(participantNumber)).append("\n"); + sb.append(" paymentFeeAmount: ").append(toIndentedString(paymentFeeAmount)).append("\n"); + sb.append(" paymentFeeCurrency: ").append(toIndentedString(paymentFeeCurrency)).append("\n"); + sb.append(" plannedPurgeDate: ").append(toIndentedString(plannedPurgeDate)).append("\n"); + sb.append(" postCode: ").append(toIndentedString(postCode)).append("\n"); + sb.append(" referenceNumber: ").append(toIndentedString(referenceNumber)).append("\n"); + sb.append(" rejectionStatus: ").append(toIndentedString(rejectionStatus)).append("\n"); + sb.append(" resolvedBy: ").append(toIndentedString(resolvedBy)).append("\n"); + sb.append(" resolvedOn: ").append(toIndentedString(resolvedOn)).append("\n"); + sb.append(" senderBankAccount: ").append(toIndentedString(senderBankAccount)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" street: ").append(toIndentedString(street)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" uniqueId: ").append(toIndentedString(uniqueId)).append("\n"); + sb.append(" valueDate: ").append(toIndentedString(valueDate)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecordRejectionStatus.java b/src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecordRejectionStatus.java new file mode 100644 index 00000000..01ca90f6 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecordRejectionStatus.java @@ -0,0 +1,68 @@ +/** +* 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 io.swagger.annotations.ApiModel; +import java.util.*; +import java.time.OffsetDateTime; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * + */ +public enum InvoiceReconciliationRecordRejectionStatus { + + NONE("NONE"), + + REJECTED("REJECTED"), + + BULK_REJECTED("BULK_REJECTED"); + + private String value; + + InvoiceReconciliationRecordRejectionStatus(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static InvoiceReconciliationRecordRejectionStatus fromValue(String text) { + for (InvoiceReconciliationRecordRejectionStatus b : InvoiceReconciliationRecordRejectionStatus.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } +} + diff --git a/src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecordState.java b/src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecordState.java new file mode 100644 index 00000000..efb06885 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecordState.java @@ -0,0 +1,72 @@ +/** +* 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 io.swagger.annotations.ApiModel; +import java.util.*; +import java.time.OffsetDateTime; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * + */ +public enum InvoiceReconciliationRecordState { + + CREATE("CREATE"), + + PENDING("PENDING"), + + UNRESOLVED("UNRESOLVED"), + + RESOLVED("RESOLVED"), + + DISCARDED("DISCARDED"); + + private String value; + + InvoiceReconciliationRecordState(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static InvoiceReconciliationRecordState fromValue(String text) { + for (InvoiceReconciliationRecordState b : InvoiceReconciliationRecordState.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } +} + diff --git a/src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecordType.java b/src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecordType.java new file mode 100644 index 00000000..3a3a2a31 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/InvoiceReconciliationRecordType.java @@ -0,0 +1,130 @@ +/** +* 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.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class InvoiceReconciliationRecordType { + + @JsonProperty("description") + protected Map description = null; + + + @JsonProperty("id") + protected Long id = null; + + + @JsonProperty("name") + protected Map name = null; + + + + /** + * + * @return description + **/ + @ApiModelProperty(value = "") + public Map getDescription() { + return description; + } + + + /** + * The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @return id + **/ + @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.") + public Long getId() { + return id; + } + + + /** + * + * @return name + **/ + @ApiModelProperty(value = "") + public Map getName() { + return name; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvoiceReconciliationRecordType invoiceReconciliationRecordType = (InvoiceReconciliationRecordType) o; + return Objects.equals(this.description, invoiceReconciliationRecordType.description) && + Objects.equals(this.id, invoiceReconciliationRecordType.id) && + Objects.equals(this.name, invoiceReconciliationRecordType.name); + } + + @Override + public int hashCode() { + return Objects.hash(description, id, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvoiceReconciliationRecordType {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/InvoiceReimbursement.java b/src/main/java/com/wallee/sdk/model/InvoiceReimbursement.java new file mode 100644 index 00000000..a82863fe --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/InvoiceReimbursement.java @@ -0,0 +1,420 @@ +/** +* 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.InvoiceReimbursementState; +import com.wallee.sdk.model.PaymentConnectorConfiguration; +import com.wallee.sdk.model.PaymentInitiationAdviceFile; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import java.time.OffsetDateTime; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class InvoiceReimbursement { + + @JsonProperty("amount") + protected BigDecimal amount = null; + + + @JsonProperty("createdOn") + protected OffsetDateTime createdOn = null; + + + @JsonProperty("currency") + protected String currency = null; + + + @JsonProperty("discardedBy") + protected Long discardedBy = null; + + + @JsonProperty("discardedOn") + protected OffsetDateTime discardedOn = null; + + + @JsonProperty("id") + protected Long id = null; + + + @JsonProperty("linkedSpaceId") + protected Long linkedSpaceId = null; + + + @JsonProperty("paymentConnectorConfiguration") + protected PaymentConnectorConfiguration paymentConnectorConfiguration = null; + + + @JsonProperty("paymentInitiationAdviceFile") + protected PaymentInitiationAdviceFile paymentInitiationAdviceFile = null; + + + @JsonProperty("processedBy") + protected Long processedBy = null; + + + @JsonProperty("processedOn") + protected OffsetDateTime processedOn = null; + + + @JsonProperty("recipientCity") + protected String recipientCity = null; + + + @JsonProperty("recipientCountry") + protected String recipientCountry = null; + + + @JsonProperty("recipientFamilyName") + protected String recipientFamilyName = null; + + + @JsonProperty("recipientGivenName") + protected String recipientGivenName = null; + + + @JsonProperty("recipientIban") + protected String recipientIban = null; + + + @JsonProperty("recipientPostcode") + protected String recipientPostcode = null; + + + @JsonProperty("recipientStreet") + protected String recipientStreet = null; + + + @JsonProperty("senderIban") + protected String senderIban = null; + + + @JsonProperty("state") + protected InvoiceReimbursementState state = null; + + + @JsonProperty("version") + protected Integer version = null; + + + + /** + * + * @return amount + **/ + @ApiModelProperty(value = "") + public BigDecimal getAmount() { + return amount; + } + + + /** + * The created on date indicates the date on which the entity was stored into the database. + * @return createdOn + **/ + @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.") + public OffsetDateTime getCreatedOn() { + return createdOn; + } + + + /** + * + * @return currency + **/ + @ApiModelProperty(value = "") + public String getCurrency() { + return currency; + } + + + /** + * + * @return discardedBy + **/ + @ApiModelProperty(value = "") + public Long getDiscardedBy() { + return discardedBy; + } + + + /** + * + * @return discardedOn + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getDiscardedOn() { + return discardedOn; + } + + + /** + * The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @return id + **/ + @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.") + public Long getId() { + return id; + } + + + /** + * The linked space id holds the ID of the space to which the entity belongs to. + * @return linkedSpaceId + **/ + @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.") + public Long getLinkedSpaceId() { + return linkedSpaceId; + } + + + /** + * + * @return paymentConnectorConfiguration + **/ + @ApiModelProperty(value = "") + public PaymentConnectorConfiguration getPaymentConnectorConfiguration() { + return paymentConnectorConfiguration; + } + + + /** + * + * @return paymentInitiationAdviceFile + **/ + @ApiModelProperty(value = "") + public PaymentInitiationAdviceFile getPaymentInitiationAdviceFile() { + return paymentInitiationAdviceFile; + } + + + /** + * + * @return processedBy + **/ + @ApiModelProperty(value = "") + public Long getProcessedBy() { + return processedBy; + } + + + /** + * + * @return processedOn + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getProcessedOn() { + return processedOn; + } + + + /** + * + * @return recipientCity + **/ + @ApiModelProperty(value = "") + public String getRecipientCity() { + return recipientCity; + } + + + /** + * + * @return recipientCountry + **/ + @ApiModelProperty(value = "") + public String getRecipientCountry() { + return recipientCountry; + } + + + /** + * + * @return recipientFamilyName + **/ + @ApiModelProperty(value = "") + public String getRecipientFamilyName() { + return recipientFamilyName; + } + + + /** + * + * @return recipientGivenName + **/ + @ApiModelProperty(value = "") + public String getRecipientGivenName() { + return recipientGivenName; + } + + + /** + * + * @return recipientIban + **/ + @ApiModelProperty(value = "") + public String getRecipientIban() { + return recipientIban; + } + + + /** + * + * @return recipientPostcode + **/ + @ApiModelProperty(value = "") + public String getRecipientPostcode() { + return recipientPostcode; + } + + + /** + * + * @return recipientStreet + **/ + @ApiModelProperty(value = "") + public String getRecipientStreet() { + return recipientStreet; + } + + + /** + * + * @return senderIban + **/ + @ApiModelProperty(value = "") + public String getSenderIban() { + return senderIban; + } + + + /** + * + * @return state + **/ + @ApiModelProperty(value = "") + public InvoiceReimbursementState getState() { + return state; + } + + + /** + * The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @return version + **/ + @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.") + public Integer getVersion() { + return version; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvoiceReimbursement invoiceReimbursement = (InvoiceReimbursement) o; + return Objects.equals(this.amount, invoiceReimbursement.amount) && + Objects.equals(this.createdOn, invoiceReimbursement.createdOn) && + Objects.equals(this.currency, invoiceReimbursement.currency) && + Objects.equals(this.discardedBy, invoiceReimbursement.discardedBy) && + Objects.equals(this.discardedOn, invoiceReimbursement.discardedOn) && + Objects.equals(this.id, invoiceReimbursement.id) && + Objects.equals(this.linkedSpaceId, invoiceReimbursement.linkedSpaceId) && + Objects.equals(this.paymentConnectorConfiguration, invoiceReimbursement.paymentConnectorConfiguration) && + Objects.equals(this.paymentInitiationAdviceFile, invoiceReimbursement.paymentInitiationAdviceFile) && + Objects.equals(this.processedBy, invoiceReimbursement.processedBy) && + Objects.equals(this.processedOn, invoiceReimbursement.processedOn) && + Objects.equals(this.recipientCity, invoiceReimbursement.recipientCity) && + Objects.equals(this.recipientCountry, invoiceReimbursement.recipientCountry) && + Objects.equals(this.recipientFamilyName, invoiceReimbursement.recipientFamilyName) && + Objects.equals(this.recipientGivenName, invoiceReimbursement.recipientGivenName) && + Objects.equals(this.recipientIban, invoiceReimbursement.recipientIban) && + Objects.equals(this.recipientPostcode, invoiceReimbursement.recipientPostcode) && + Objects.equals(this.recipientStreet, invoiceReimbursement.recipientStreet) && + Objects.equals(this.senderIban, invoiceReimbursement.senderIban) && + Objects.equals(this.state, invoiceReimbursement.state) && + Objects.equals(this.version, invoiceReimbursement.version); + } + + @Override + public int hashCode() { + return Objects.hash(amount, createdOn, currency, discardedBy, discardedOn, id, linkedSpaceId, paymentConnectorConfiguration, paymentInitiationAdviceFile, processedBy, processedOn, recipientCity, recipientCountry, recipientFamilyName, recipientGivenName, recipientIban, recipientPostcode, recipientStreet, senderIban, state, version); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvoiceReimbursement {\n"); + + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" createdOn: ").append(toIndentedString(createdOn)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" discardedBy: ").append(toIndentedString(discardedBy)).append("\n"); + sb.append(" discardedOn: ").append(toIndentedString(discardedOn)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" linkedSpaceId: ").append(toIndentedString(linkedSpaceId)).append("\n"); + sb.append(" paymentConnectorConfiguration: ").append(toIndentedString(paymentConnectorConfiguration)).append("\n"); + sb.append(" paymentInitiationAdviceFile: ").append(toIndentedString(paymentInitiationAdviceFile)).append("\n"); + sb.append(" processedBy: ").append(toIndentedString(processedBy)).append("\n"); + sb.append(" processedOn: ").append(toIndentedString(processedOn)).append("\n"); + sb.append(" recipientCity: ").append(toIndentedString(recipientCity)).append("\n"); + sb.append(" recipientCountry: ").append(toIndentedString(recipientCountry)).append("\n"); + sb.append(" recipientFamilyName: ").append(toIndentedString(recipientFamilyName)).append("\n"); + sb.append(" recipientGivenName: ").append(toIndentedString(recipientGivenName)).append("\n"); + sb.append(" recipientIban: ").append(toIndentedString(recipientIban)).append("\n"); + sb.append(" recipientPostcode: ").append(toIndentedString(recipientPostcode)).append("\n"); + sb.append(" recipientStreet: ").append(toIndentedString(recipientStreet)).append("\n"); + sb.append(" senderIban: ").append(toIndentedString(senderIban)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/InvoiceReimbursementState.java b/src/main/java/com/wallee/sdk/model/InvoiceReimbursementState.java new file mode 100644 index 00000000..a0b6fb7d --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/InvoiceReimbursementState.java @@ -0,0 +1,72 @@ +/** +* 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 io.swagger.annotations.ApiModel; +import java.util.*; +import java.time.OffsetDateTime; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * + */ +public enum InvoiceReimbursementState { + + PENDING("PENDING"), + + MANUAL_REVIEW("MANUAL_REVIEW"), + + PROCESSING("PROCESSING"), + + PROCESSED("PROCESSED"), + + DISCARDED("DISCARDED"); + + private String value; + + InvoiceReimbursementState(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static InvoiceReimbursementState fromValue(String text) { + for (InvoiceReimbursementState b : InvoiceReimbursementState.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } +} + diff --git a/src/main/java/com/wallee/sdk/model/LineItemType.java b/src/main/java/com/wallee/sdk/model/LineItemType.java index 05bda3ca..77ba3dcf 100644 --- a/src/main/java/com/wallee/sdk/model/LineItemType.java +++ b/src/main/java/com/wallee/sdk/model/LineItemType.java @@ -39,7 +39,9 @@ public enum LineItemType { FEE("FEE"), - PRODUCT("PRODUCT"); + PRODUCT("PRODUCT"), + + TIP("TIP"); private String value; diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppChargeAttemptTargetState.java b/src/main/java/com/wallee/sdk/model/PaymentAppChargeAttemptTargetState.java new file mode 100644 index 00000000..52092482 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppChargeAttemptTargetState.java @@ -0,0 +1,66 @@ +/** +* 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 io.swagger.annotations.ApiModel; +import java.util.*; +import java.time.OffsetDateTime; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * The target state indicates the state that should be set on the charge attempt. + */ +public enum PaymentAppChargeAttemptTargetState { + + SUCCESSFUL("SUCCESSFUL"), + + FAILED("FAILED"); + + private String value; + + PaymentAppChargeAttemptTargetState(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PaymentAppChargeAttemptTargetState fromValue(String text) { + for (PaymentAppChargeAttemptTargetState b : PaymentAppChargeAttemptTargetState.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppChargeAttemptUpdateRequest.java b/src/main/java/com/wallee/sdk/model/PaymentAppChargeAttemptUpdateRequest.java new file mode 100644 index 00000000..66367ec1 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppChargeAttemptUpdateRequest.java @@ -0,0 +1,205 @@ +/** +* 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.PaymentAppChargeAttemptTargetState; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * The charge attempt update request allows to change the state of a charge attempt. The charge attempt must be linked with a processor that was created by the payment Web App that invokes the operation. + */ +@ApiModel(description = "The charge attempt update request allows to change the state of a charge attempt. The charge attempt must be linked with a processor that was created by the payment Web App that invokes the operation.") + +public class PaymentAppChargeAttemptUpdateRequest { + + @JsonProperty("chargeAttemptId") + protected Long chargeAttemptId = null; + + + @JsonProperty("endUserFailureMessage") + protected String endUserFailureMessage = null; + + + @JsonProperty("failureReasonId") + protected Long failureReasonId = null; + + + @JsonProperty("reference") + protected String reference = null; + + + @JsonProperty("targetState") + protected PaymentAppChargeAttemptTargetState targetState = null; + + + + public PaymentAppChargeAttemptUpdateRequest chargeAttemptId(Long chargeAttemptId) { + this.chargeAttemptId = chargeAttemptId; + return this; + } + + /** + * This is the ID of the charge attempt that should be updated. + * @return chargeAttemptId + **/ + @ApiModelProperty(value = "This is the ID of the charge attempt that should be updated.") + public Long getChargeAttemptId() { + return chargeAttemptId; + } + + public void setChargeAttemptId(Long chargeAttemptId) { + this.chargeAttemptId = chargeAttemptId; + } + + + public PaymentAppChargeAttemptUpdateRequest endUserFailureMessage(String endUserFailureMessage) { + this.endUserFailureMessage = endUserFailureMessage; + return this; + } + + /** + * The end user failure message indicates to the end user (buyer) why the payment failed. The message has to be in the language of the end user. The language is provided within the payment page invocation URL. + * @return endUserFailureMessage + **/ + @ApiModelProperty(value = "The end user failure message indicates to the end user (buyer) why the payment failed. The message has to be in the language of the end user. The language is provided within the payment page invocation URL.") + public String getEndUserFailureMessage() { + return endUserFailureMessage; + } + + public void setEndUserFailureMessage(String endUserFailureMessage) { + this.endUserFailureMessage = endUserFailureMessage; + } + + + public PaymentAppChargeAttemptUpdateRequest failureReasonId(Long failureReasonId) { + this.failureReasonId = failureReasonId; + return this; + } + + /** + * The failure reason indicates why the charge attempt failed. It is required when the target state is FAILED. + * @return failureReasonId + **/ + @ApiModelProperty(value = "The failure reason indicates why the charge attempt failed. It is required when the target state is FAILED.") + public Long getFailureReasonId() { + return failureReasonId; + } + + public void setFailureReasonId(Long failureReasonId) { + this.failureReasonId = failureReasonId; + } + + + public PaymentAppChargeAttemptUpdateRequest reference(String reference) { + this.reference = reference; + return this; + } + + /** + * The reference identifies the charge attempt within the systems of the external service provider. It is required when the target state is SUCCESSFUL. + * @return reference + **/ + @ApiModelProperty(value = "The reference identifies the charge attempt within the systems of the external service provider. It is required when the target state is SUCCESSFUL.") + public String getReference() { + return reference; + } + + public void setReference(String reference) { + this.reference = reference; + } + + + public PaymentAppChargeAttemptUpdateRequest targetState(PaymentAppChargeAttemptTargetState targetState) { + this.targetState = targetState; + return this; + } + + /** + * The target state defines the state into which the charge attempt should be switched into. Once the charge attempt changed the state it will not be possible to change it again. + * @return targetState + **/ + @ApiModelProperty(value = "The target state defines the state into which the charge attempt should be switched into. Once the charge attempt changed the state it will not be possible to change it again.") + public PaymentAppChargeAttemptTargetState getTargetState() { + return targetState; + } + + public void setTargetState(PaymentAppChargeAttemptTargetState targetState) { + this.targetState = targetState; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentAppChargeAttemptUpdateRequest paymentAppChargeAttemptUpdateRequest = (PaymentAppChargeAttemptUpdateRequest) o; + return Objects.equals(this.chargeAttemptId, paymentAppChargeAttemptUpdateRequest.chargeAttemptId) && + Objects.equals(this.endUserFailureMessage, paymentAppChargeAttemptUpdateRequest.endUserFailureMessage) && + Objects.equals(this.failureReasonId, paymentAppChargeAttemptUpdateRequest.failureReasonId) && + Objects.equals(this.reference, paymentAppChargeAttemptUpdateRequest.reference) && + Objects.equals(this.targetState, paymentAppChargeAttemptUpdateRequest.targetState); + } + + @Override + public int hashCode() { + return Objects.hash(chargeAttemptId, endUserFailureMessage, failureReasonId, reference, targetState); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentAppChargeAttemptUpdateRequest {\n"); + + sb.append(" chargeAttemptId: ").append(toIndentedString(chargeAttemptId)).append("\n"); + sb.append(" endUserFailureMessage: ").append(toIndentedString(endUserFailureMessage)).append("\n"); + sb.append(" failureReasonId: ").append(toIndentedString(failureReasonId)).append("\n"); + sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); + sb.append(" targetState: ").append(toIndentedString(targetState)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppCompletionConfiguration.java b/src/main/java/com/wallee/sdk/model/PaymentAppCompletionConfiguration.java new file mode 100644 index 00000000..1031eb18 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppCompletionConfiguration.java @@ -0,0 +1,159 @@ +/** +* 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.util.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class PaymentAppCompletionConfiguration { + + @JsonProperty("completionEndpoint") + protected String completionEndpoint = null; + + + @JsonProperty("completionTimeoutInMinutes") + protected Integer completionTimeoutInMinutes = null; + + + @JsonProperty("maximalCompletionDelayInDays") + protected Integer maximalCompletionDelayInDays = null; + + + @JsonProperty("multipleCompletionsSupported") + protected Boolean multipleCompletionsSupported = null; + + + @JsonProperty("voidEndpoint") + protected String voidEndpoint = null; + + + + /** + * The completion endpoint is invoked to request the payment service provider to execute a completion. + * @return completionEndpoint + **/ + @ApiModelProperty(value = "The completion endpoint is invoked to request the payment service provider to execute a completion.") + public String getCompletionEndpoint() { + return completionEndpoint; + } + + + /** + * When the completion or the void is triggered we expect a feedback about the state of it. This timeout defines after how long we consider the void resp. completion as failed without receiving a final state update. + * @return completionTimeoutInMinutes + **/ + @ApiModelProperty(value = "When the completion or the void is triggered we expect a feedback about the state of it. This timeout defines after how long we consider the void resp. completion as failed without receiving a final state update.") + public Integer getCompletionTimeoutInMinutes() { + return completionTimeoutInMinutes; + } + + + /** + * The completion resp. the void can be triggered a while after the authorization of the transaction has been executed. This delay defines how many days after the authorization the void resp. completion must be triggered at the latest. + * @return maximalCompletionDelayInDays + **/ + @ApiModelProperty(value = "The completion resp. the void can be triggered a while after the authorization of the transaction has been executed. This delay defines how many days after the authorization the void resp. completion must be triggered at the latest.") + public Integer getMaximalCompletionDelayInDays() { + return maximalCompletionDelayInDays; + } + + + /** + * This flag indicates whether the connector supports multiple completions for a single transaction or not. + * @return multipleCompletionsSupported + **/ + @ApiModelProperty(value = "This flag indicates whether the connector supports multiple completions for a single transaction or not.") + public Boolean isMultipleCompletionsSupported() { + return multipleCompletionsSupported; + } + + + /** + * The void endpoint is invoked to request the payment service provider to execute a void. + * @return voidEndpoint + **/ + @ApiModelProperty(value = "The void endpoint is invoked to request the payment service provider to execute a void.") + public String getVoidEndpoint() { + return voidEndpoint; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentAppCompletionConfiguration paymentAppCompletionConfiguration = (PaymentAppCompletionConfiguration) o; + return Objects.equals(this.completionEndpoint, paymentAppCompletionConfiguration.completionEndpoint) && + Objects.equals(this.completionTimeoutInMinutes, paymentAppCompletionConfiguration.completionTimeoutInMinutes) && + Objects.equals(this.maximalCompletionDelayInDays, paymentAppCompletionConfiguration.maximalCompletionDelayInDays) && + Objects.equals(this.multipleCompletionsSupported, paymentAppCompletionConfiguration.multipleCompletionsSupported) && + Objects.equals(this.voidEndpoint, paymentAppCompletionConfiguration.voidEndpoint); + } + + @Override + public int hashCode() { + return Objects.hash(completionEndpoint, completionTimeoutInMinutes, maximalCompletionDelayInDays, multipleCompletionsSupported, voidEndpoint); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentAppCompletionConfiguration {\n"); + + sb.append(" completionEndpoint: ").append(toIndentedString(completionEndpoint)).append("\n"); + sb.append(" completionTimeoutInMinutes: ").append(toIndentedString(completionTimeoutInMinutes)).append("\n"); + sb.append(" maximalCompletionDelayInDays: ").append(toIndentedString(maximalCompletionDelayInDays)).append("\n"); + sb.append(" multipleCompletionsSupported: ").append(toIndentedString(multipleCompletionsSupported)).append("\n"); + sb.append(" voidEndpoint: ").append(toIndentedString(voidEndpoint)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppCompletionConfigurationCreate.java b/src/main/java/com/wallee/sdk/model/PaymentAppCompletionConfigurationCreate.java new file mode 100644 index 00000000..9b6d128f --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppCompletionConfigurationCreate.java @@ -0,0 +1,204 @@ +/** +* 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.util.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class PaymentAppCompletionConfigurationCreate { + + @JsonProperty("completionEndpoint") + protected String completionEndpoint = null; + + + @JsonProperty("completionTimeoutInMinutes") + protected Integer completionTimeoutInMinutes = null; + + + @JsonProperty("maximalCompletionDelayInDays") + protected Integer maximalCompletionDelayInDays = null; + + + @JsonProperty("multipleCompletionsSupported") + protected Boolean multipleCompletionsSupported = null; + + + @JsonProperty("voidEndpoint") + protected String voidEndpoint = null; + + + + public PaymentAppCompletionConfigurationCreate completionEndpoint(String completionEndpoint) { + this.completionEndpoint = completionEndpoint; + return this; + } + + /** + * The completion endpoint is invoked to request the payment service provider to execute a completion. + * @return completionEndpoint + **/ + @ApiModelProperty(value = "The completion endpoint is invoked to request the payment service provider to execute a completion.") + public String getCompletionEndpoint() { + return completionEndpoint; + } + + public void setCompletionEndpoint(String completionEndpoint) { + this.completionEndpoint = completionEndpoint; + } + + + public PaymentAppCompletionConfigurationCreate completionTimeoutInMinutes(Integer completionTimeoutInMinutes) { + this.completionTimeoutInMinutes = completionTimeoutInMinutes; + return this; + } + + /** + * When the completion or the void is triggered we expect a feedback about the state of it. This timeout defines after how long we consider the void resp. completion as failed without receiving a final state update. + * @return completionTimeoutInMinutes + **/ + @ApiModelProperty(value = "When the completion or the void is triggered we expect a feedback about the state of it. This timeout defines after how long we consider the void resp. completion as failed without receiving a final state update.") + public Integer getCompletionTimeoutInMinutes() { + return completionTimeoutInMinutes; + } + + public void setCompletionTimeoutInMinutes(Integer completionTimeoutInMinutes) { + this.completionTimeoutInMinutes = completionTimeoutInMinutes; + } + + + public PaymentAppCompletionConfigurationCreate maximalCompletionDelayInDays(Integer maximalCompletionDelayInDays) { + this.maximalCompletionDelayInDays = maximalCompletionDelayInDays; + return this; + } + + /** + * The completion resp. the void can be triggered a while after the authorization of the transaction has been executed. This delay defines how many days after the authorization the void resp. completion must be triggered at the latest. + * @return maximalCompletionDelayInDays + **/ + @ApiModelProperty(value = "The completion resp. the void can be triggered a while after the authorization of the transaction has been executed. This delay defines how many days after the authorization the void resp. completion must be triggered at the latest.") + public Integer getMaximalCompletionDelayInDays() { + return maximalCompletionDelayInDays; + } + + public void setMaximalCompletionDelayInDays(Integer maximalCompletionDelayInDays) { + this.maximalCompletionDelayInDays = maximalCompletionDelayInDays; + } + + + public PaymentAppCompletionConfigurationCreate multipleCompletionsSupported(Boolean multipleCompletionsSupported) { + this.multipleCompletionsSupported = multipleCompletionsSupported; + return this; + } + + /** + * This flag indicates whether the connector supports multiple completions for a single transaction or not. + * @return multipleCompletionsSupported + **/ + @ApiModelProperty(value = "This flag indicates whether the connector supports multiple completions for a single transaction or not.") + public Boolean isMultipleCompletionsSupported() { + return multipleCompletionsSupported; + } + + public void setMultipleCompletionsSupported(Boolean multipleCompletionsSupported) { + this.multipleCompletionsSupported = multipleCompletionsSupported; + } + + + public PaymentAppCompletionConfigurationCreate voidEndpoint(String voidEndpoint) { + this.voidEndpoint = voidEndpoint; + return this; + } + + /** + * The void endpoint is invoked to request the payment service provider to execute a void. + * @return voidEndpoint + **/ + @ApiModelProperty(value = "The void endpoint is invoked to request the payment service provider to execute a void.") + public String getVoidEndpoint() { + return voidEndpoint; + } + + public void setVoidEndpoint(String voidEndpoint) { + this.voidEndpoint = voidEndpoint; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentAppCompletionConfigurationCreate paymentAppCompletionConfigurationCreate = (PaymentAppCompletionConfigurationCreate) o; + return Objects.equals(this.completionEndpoint, paymentAppCompletionConfigurationCreate.completionEndpoint) && + Objects.equals(this.completionTimeoutInMinutes, paymentAppCompletionConfigurationCreate.completionTimeoutInMinutes) && + Objects.equals(this.maximalCompletionDelayInDays, paymentAppCompletionConfigurationCreate.maximalCompletionDelayInDays) && + Objects.equals(this.multipleCompletionsSupported, paymentAppCompletionConfigurationCreate.multipleCompletionsSupported) && + Objects.equals(this.voidEndpoint, paymentAppCompletionConfigurationCreate.voidEndpoint); + } + + @Override + public int hashCode() { + return Objects.hash(completionEndpoint, completionTimeoutInMinutes, maximalCompletionDelayInDays, multipleCompletionsSupported, voidEndpoint); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentAppCompletionConfigurationCreate {\n"); + + sb.append(" completionEndpoint: ").append(toIndentedString(completionEndpoint)).append("\n"); + sb.append(" completionTimeoutInMinutes: ").append(toIndentedString(completionTimeoutInMinutes)).append("\n"); + sb.append(" maximalCompletionDelayInDays: ").append(toIndentedString(maximalCompletionDelayInDays)).append("\n"); + sb.append(" multipleCompletionsSupported: ").append(toIndentedString(multipleCompletionsSupported)).append("\n"); + sb.append(" voidEndpoint: ").append(toIndentedString(voidEndpoint)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppCompletionTargetState.java b/src/main/java/com/wallee/sdk/model/PaymentAppCompletionTargetState.java new file mode 100644 index 00000000..be81be2d --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppCompletionTargetState.java @@ -0,0 +1,66 @@ +/** +* 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 io.swagger.annotations.ApiModel; +import java.util.*; +import java.time.OffsetDateTime; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * The target state indicates the state that should be set on the completion. + */ +public enum PaymentAppCompletionTargetState { + + SUCCESSFUL("SUCCESSFUL"), + + FAILED("FAILED"); + + private String value; + + PaymentAppCompletionTargetState(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PaymentAppCompletionTargetState fromValue(String text) { + for (PaymentAppCompletionTargetState b : PaymentAppCompletionTargetState.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppCompletionUpdateRequest.java b/src/main/java/com/wallee/sdk/model/PaymentAppCompletionUpdateRequest.java new file mode 100644 index 00000000..10966f75 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppCompletionUpdateRequest.java @@ -0,0 +1,180 @@ +/** +* 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.PaymentAppCompletionTargetState; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * The completion update request allows to change the state of a completion. The completion must be linked with a processor that was created by the payment Web App that invokes the operation. + */ +@ApiModel(description = "The completion update request allows to change the state of a completion. The completion must be linked with a processor that was created by the payment Web App that invokes the operation.") + +public class PaymentAppCompletionUpdateRequest { + + @JsonProperty("completionId") + protected Long completionId = null; + + + @JsonProperty("failureReasonId") + protected Long failureReasonId = null; + + + @JsonProperty("reference") + protected String reference = null; + + + @JsonProperty("targetState") + protected PaymentAppCompletionTargetState targetState = null; + + + + public PaymentAppCompletionUpdateRequest completionId(Long completionId) { + this.completionId = completionId; + return this; + } + + /** + * This is the ID of the completion that should be updated. + * @return completionId + **/ + @ApiModelProperty(value = "This is the ID of the completion that should be updated.") + public Long getCompletionId() { + return completionId; + } + + public void setCompletionId(Long completionId) { + this.completionId = completionId; + } + + + public PaymentAppCompletionUpdateRequest failureReasonId(Long failureReasonId) { + this.failureReasonId = failureReasonId; + return this; + } + + /** + * The failure reason indicates why the completion failed. It is required when the target state is FAILED. + * @return failureReasonId + **/ + @ApiModelProperty(value = "The failure reason indicates why the completion failed. It is required when the target state is FAILED.") + public Long getFailureReasonId() { + return failureReasonId; + } + + public void setFailureReasonId(Long failureReasonId) { + this.failureReasonId = failureReasonId; + } + + + public PaymentAppCompletionUpdateRequest reference(String reference) { + this.reference = reference; + return this; + } + + /** + * The reference identifies the completion within the systems of the external service provider. It is required when the target state is SUCCESSFUL. + * @return reference + **/ + @ApiModelProperty(value = "The reference identifies the completion within the systems of the external service provider. It is required when the target state is SUCCESSFUL.") + public String getReference() { + return reference; + } + + public void setReference(String reference) { + this.reference = reference; + } + + + public PaymentAppCompletionUpdateRequest targetState(PaymentAppCompletionTargetState targetState) { + this.targetState = targetState; + return this; + } + + /** + * The target state defines the state into which the completion should be switched into. Once the completion changed the state it will not be possible to change it again. + * @return targetState + **/ + @ApiModelProperty(value = "The target state defines the state into which the completion should be switched into. Once the completion changed the state it will not be possible to change it again.") + public PaymentAppCompletionTargetState getTargetState() { + return targetState; + } + + public void setTargetState(PaymentAppCompletionTargetState targetState) { + this.targetState = targetState; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentAppCompletionUpdateRequest paymentAppCompletionUpdateRequest = (PaymentAppCompletionUpdateRequest) o; + return Objects.equals(this.completionId, paymentAppCompletionUpdateRequest.completionId) && + Objects.equals(this.failureReasonId, paymentAppCompletionUpdateRequest.failureReasonId) && + Objects.equals(this.reference, paymentAppCompletionUpdateRequest.reference) && + Objects.equals(this.targetState, paymentAppCompletionUpdateRequest.targetState); + } + + @Override + public int hashCode() { + return Objects.hash(completionId, failureReasonId, reference, targetState); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentAppCompletionUpdateRequest {\n"); + + sb.append(" completionId: ").append(toIndentedString(completionId)).append("\n"); + sb.append(" failureReasonId: ").append(toIndentedString(failureReasonId)).append("\n"); + sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); + sb.append(" targetState: ").append(toIndentedString(targetState)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppConnector.java b/src/main/java/com/wallee/sdk/model/PaymentAppConnector.java new file mode 100644 index 00000000..810c8323 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppConnector.java @@ -0,0 +1,309 @@ +/** +* 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.PaymentAppCompletionConfiguration; +import com.wallee.sdk.model.PaymentAppConnectorState; +import com.wallee.sdk.model.PaymentAppProcessor; +import com.wallee.sdk.model.PaymentAppRefundConfiguration; +import com.wallee.sdk.model.PaymentConnectorConfiguration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class PaymentAppConnector { + + @JsonProperty("authorizationTimeout") + protected String authorizationTimeout = null; + + + @JsonProperty("completionConfiguration") + protected PaymentAppCompletionConfiguration completionConfiguration = null; + + + @JsonProperty("connectorConfiguration") + protected PaymentConnectorConfiguration connectorConfiguration = null; + + + @JsonProperty("createdOn") + protected OffsetDateTime createdOn = null; + + + @JsonProperty("externalId") + protected String externalId = null; + + + @JsonProperty("id") + protected Long id = null; + + + @JsonProperty("linkedSpaceId") + protected Long linkedSpaceId = null; + + + @JsonProperty("name") + protected String name = null; + + + @JsonProperty("paymentPageEndpoint") + protected String paymentPageEndpoint = null; + + + @JsonProperty("processor") + protected PaymentAppProcessor processor = null; + + + @JsonProperty("refundConfiguration") + protected PaymentAppRefundConfiguration refundConfiguration = null; + + + @JsonProperty("state") + protected PaymentAppConnectorState state = null; + + + @JsonProperty("updatedOn") + protected OffsetDateTime updatedOn = null; + + + @JsonProperty("version") + protected Integer version = null; + + + + /** + * + * @return authorizationTimeout + **/ + @ApiModelProperty(value = "") + public String getAuthorizationTimeout() { + return authorizationTimeout; + } + + + /** + * The completion configuration defines how the deferred completion is processed. If it is not present it means that deferred completion is not supported by this connector. + * @return completionConfiguration + **/ + @ApiModelProperty(value = "The completion configuration defines how the deferred completion is processed. If it is not present it means that deferred completion is not supported by this connector.") + public PaymentAppCompletionConfiguration getCompletionConfiguration() { + return completionConfiguration; + } + + + /** + * The connector configuration references the configuration that was created as part of this connector within the space. The connector configuration is referenced within transactions created with this connector. + * @return connectorConfiguration + **/ + @ApiModelProperty(value = "The connector configuration references the configuration that was created as part of this connector within the space. The connector configuration is referenced within transactions created with this connector.") + public PaymentConnectorConfiguration getConnectorConfiguration() { + return connectorConfiguration; + } + + + /** + * The created on date indicates when the connector was added. + * @return createdOn + **/ + @ApiModelProperty(value = "The created on date indicates when the connector was added.") + public OffsetDateTime getCreatedOn() { + return createdOn; + } + + + /** + * The external ID corresponds to the ID provided during inserting of the processor. + * @return externalId + **/ + @ApiModelProperty(value = "The external ID corresponds to the ID provided during inserting of the processor.") + public String getExternalId() { + return externalId; + } + + + /** + * The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @return id + **/ + @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.") + public Long getId() { + return id; + } + + + /** + * The linked space id holds the ID of the space to which the entity belongs to. + * @return linkedSpaceId + **/ + @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.") + public Long getLinkedSpaceId() { + return linkedSpaceId; + } + + + /** + * The name of the connector will be displayed within the user interfaces that the merchant is interacting with. + * @return name + **/ + @ApiModelProperty(value = "The name of the connector will be displayed within the user interfaces that the merchant is interacting with.") + public String getName() { + return name; + } + + + /** + * The payment page endpoint is invoked to process the transaction. The endpoint is defined by the external service provider. + * @return paymentPageEndpoint + **/ + @ApiModelProperty(value = "The payment page endpoint is invoked to process the transaction. The endpoint is defined by the external service provider.") + public String getPaymentPageEndpoint() { + return paymentPageEndpoint; + } + + + /** + * The processor references the app processor to which this connector belongs to. The relationship is established during the creation of the connector. + * @return processor + **/ + @ApiModelProperty(value = "The processor references the app processor to which this connector belongs to. The relationship is established during the creation of the connector.") + public PaymentAppProcessor getProcessor() { + return processor; + } + + + /** + * The refund configuration defines how refunds are processed. If it is not present it means that refunds are not supported by this connector. + * @return refundConfiguration + **/ + @ApiModelProperty(value = "The refund configuration defines how refunds are processed. If it is not present it means that refunds are not supported by this connector.") + public PaymentAppRefundConfiguration getRefundConfiguration() { + return refundConfiguration; + } + + + /** + * + * @return state + **/ + @ApiModelProperty(value = "") + public PaymentAppConnectorState getState() { + return state; + } + + + /** + * The updated on date indicates when the last time the connector was updated on. + * @return updatedOn + **/ + @ApiModelProperty(value = "The updated on date indicates when the last time the connector was updated on.") + public OffsetDateTime getUpdatedOn() { + return updatedOn; + } + + + /** + * The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @return version + **/ + @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.") + public Integer getVersion() { + return version; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentAppConnector paymentAppConnector = (PaymentAppConnector) o; + return Objects.equals(this.authorizationTimeout, paymentAppConnector.authorizationTimeout) && + Objects.equals(this.completionConfiguration, paymentAppConnector.completionConfiguration) && + Objects.equals(this.connectorConfiguration, paymentAppConnector.connectorConfiguration) && + Objects.equals(this.createdOn, paymentAppConnector.createdOn) && + Objects.equals(this.externalId, paymentAppConnector.externalId) && + Objects.equals(this.id, paymentAppConnector.id) && + Objects.equals(this.linkedSpaceId, paymentAppConnector.linkedSpaceId) && + Objects.equals(this.name, paymentAppConnector.name) && + Objects.equals(this.paymentPageEndpoint, paymentAppConnector.paymentPageEndpoint) && + Objects.equals(this.processor, paymentAppConnector.processor) && + Objects.equals(this.refundConfiguration, paymentAppConnector.refundConfiguration) && + Objects.equals(this.state, paymentAppConnector.state) && + Objects.equals(this.updatedOn, paymentAppConnector.updatedOn) && + Objects.equals(this.version, paymentAppConnector.version); + } + + @Override + public int hashCode() { + return Objects.hash(authorizationTimeout, completionConfiguration, connectorConfiguration, createdOn, externalId, id, linkedSpaceId, name, paymentPageEndpoint, processor, refundConfiguration, state, updatedOn, version); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentAppConnector {\n"); + + sb.append(" authorizationTimeout: ").append(toIndentedString(authorizationTimeout)).append("\n"); + sb.append(" completionConfiguration: ").append(toIndentedString(completionConfiguration)).append("\n"); + sb.append(" connectorConfiguration: ").append(toIndentedString(connectorConfiguration)).append("\n"); + sb.append(" createdOn: ").append(toIndentedString(createdOn)).append("\n"); + sb.append(" externalId: ").append(toIndentedString(externalId)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" linkedSpaceId: ").append(toIndentedString(linkedSpaceId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" paymentPageEndpoint: ").append(toIndentedString(paymentPageEndpoint)).append("\n"); + sb.append(" processor: ").append(toIndentedString(processor)).append("\n"); + sb.append(" refundConfiguration: ").append(toIndentedString(refundConfiguration)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" updatedOn: ").append(toIndentedString(updatedOn)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppConnectorCreationRequest.java b/src/main/java/com/wallee/sdk/model/PaymentAppConnectorCreationRequest.java new file mode 100644 index 00000000..e9ba451e --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppConnectorCreationRequest.java @@ -0,0 +1,281 @@ +/** +* 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.PaymentAppCompletionConfigurationCreate; +import com.wallee.sdk.model.PaymentAppRefundConfigurationCreate; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class PaymentAppConnectorCreationRequest { + + @JsonProperty("authorizationTimeoutInMinutes") + protected Integer authorizationTimeoutInMinutes = null; + + + @JsonProperty("completionConfiguration") + protected PaymentAppCompletionConfigurationCreate completionConfiguration = null; + + + @JsonProperty("connector") + protected Long connector = null; + + + @JsonProperty("externalId") + protected String externalId = null; + + + @JsonProperty("name") + protected String name = null; + + + @JsonProperty("paymentPageEndpoint") + protected String paymentPageEndpoint = null; + + + @JsonProperty("processorExternalId") + protected String processorExternalId = null; + + + @JsonProperty("refundConfiguration") + protected PaymentAppRefundConfigurationCreate refundConfiguration = null; + + + + public PaymentAppConnectorCreationRequest authorizationTimeoutInMinutes(Integer authorizationTimeoutInMinutes) { + this.authorizationTimeoutInMinutes = authorizationTimeoutInMinutes; + return this; + } + + /** + * When the transaction is not authorized within this timeout the transaction is considered as failed. + * @return authorizationTimeoutInMinutes + **/ + @ApiModelProperty(required = true, value = "When the transaction is not authorized within this timeout the transaction is considered as failed.") + public Integer getAuthorizationTimeoutInMinutes() { + return authorizationTimeoutInMinutes; + } + + public void setAuthorizationTimeoutInMinutes(Integer authorizationTimeoutInMinutes) { + this.authorizationTimeoutInMinutes = authorizationTimeoutInMinutes; + } + + + public PaymentAppConnectorCreationRequest completionConfiguration(PaymentAppCompletionConfigurationCreate completionConfiguration) { + this.completionConfiguration = completionConfiguration; + return this; + } + + /** + * The completion configuration allows the connector to support deferred completions on a transaction. If it is not provided the connector will not process transactions in deferred mode. + * @return completionConfiguration + **/ + @ApiModelProperty(value = "The completion configuration allows the connector to support deferred completions on a transaction. If it is not provided the connector will not process transactions in deferred mode.") + public PaymentAppCompletionConfigurationCreate getCompletionConfiguration() { + return completionConfiguration; + } + + public void setCompletionConfiguration(PaymentAppCompletionConfigurationCreate completionConfiguration) { + this.completionConfiguration = completionConfiguration; + } + + + public PaymentAppConnectorCreationRequest connector(Long connector) { + this.connector = connector; + return this; + } + + /** + * The ID of the connector identifies which connector that should be linked with this web app connector. The connector defines the payment method. + * @return connector + **/ + @ApiModelProperty(required = true, value = "The ID of the connector identifies which connector that should be linked with this web app connector. The connector defines the payment method.") + public Long getConnector() { + return connector; + } + + public void setConnector(Long connector) { + this.connector = connector; + } + + + public PaymentAppConnectorCreationRequest externalId(String externalId) { + this.externalId = externalId; + return this; + } + + /** + * The external ID identifies the connector within the external system. It has to be unique per processor external ID and for any subsequent update the same ID must be sent. + * @return externalId + **/ + @ApiModelProperty(required = true, value = "The external ID identifies the connector within the external system. It has to be unique per processor external ID and for any subsequent update the same ID must be sent.") + public String getExternalId() { + return externalId; + } + + public void setExternalId(String externalId) { + this.externalId = externalId; + } + + + public PaymentAppConnectorCreationRequest name(String name) { + this.name = name; + return this; + } + + /** + * The name of the connector will be displayed within the user interfaces that the merchant is interacting with. + * @return name + **/ + @ApiModelProperty(required = true, value = "The name of the connector will be displayed within the user interfaces that the merchant is interacting with.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + public PaymentAppConnectorCreationRequest paymentPageEndpoint(String paymentPageEndpoint) { + this.paymentPageEndpoint = paymentPageEndpoint; + return this; + } + + /** + * The payment page endpoint URL will be invoked by the buyer to carry out the authorization of the payment. + * @return paymentPageEndpoint + **/ + @ApiModelProperty(required = true, value = "The payment page endpoint URL will be invoked by the buyer to carry out the authorization of the payment.") + public String getPaymentPageEndpoint() { + return paymentPageEndpoint; + } + + public void setPaymentPageEndpoint(String paymentPageEndpoint) { + this.paymentPageEndpoint = paymentPageEndpoint; + } + + + public PaymentAppConnectorCreationRequest processorExternalId(String processorExternalId) { + this.processorExternalId = processorExternalId; + return this; + } + + /** + * The external ID of the processor identifies the processor to which this connector belongs to. The processor cannot be changed once it has been set on a connector. + * @return processorExternalId + **/ + @ApiModelProperty(required = true, value = "The external ID of the processor identifies the processor to which this connector belongs to. The processor cannot be changed once it has been set on a connector.") + public String getProcessorExternalId() { + return processorExternalId; + } + + public void setProcessorExternalId(String processorExternalId) { + this.processorExternalId = processorExternalId; + } + + + public PaymentAppConnectorCreationRequest refundConfiguration(PaymentAppRefundConfigurationCreate refundConfiguration) { + this.refundConfiguration = refundConfiguration; + return this; + } + + /** + * The refund configuration allows the connector to support refunds on transactions. In case no refund configuration is provided the connector will not support refunds. + * @return refundConfiguration + **/ + @ApiModelProperty(value = "The refund configuration allows the connector to support refunds on transactions. In case no refund configuration is provided the connector will not support refunds.") + public PaymentAppRefundConfigurationCreate getRefundConfiguration() { + return refundConfiguration; + } + + public void setRefundConfiguration(PaymentAppRefundConfigurationCreate refundConfiguration) { + this.refundConfiguration = refundConfiguration; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentAppConnectorCreationRequest paymentAppConnectorCreationRequest = (PaymentAppConnectorCreationRequest) o; + return Objects.equals(this.authorizationTimeoutInMinutes, paymentAppConnectorCreationRequest.authorizationTimeoutInMinutes) && + Objects.equals(this.completionConfiguration, paymentAppConnectorCreationRequest.completionConfiguration) && + Objects.equals(this.connector, paymentAppConnectorCreationRequest.connector) && + Objects.equals(this.externalId, paymentAppConnectorCreationRequest.externalId) && + Objects.equals(this.name, paymentAppConnectorCreationRequest.name) && + Objects.equals(this.paymentPageEndpoint, paymentAppConnectorCreationRequest.paymentPageEndpoint) && + Objects.equals(this.processorExternalId, paymentAppConnectorCreationRequest.processorExternalId) && + Objects.equals(this.refundConfiguration, paymentAppConnectorCreationRequest.refundConfiguration); + } + + @Override + public int hashCode() { + return Objects.hash(authorizationTimeoutInMinutes, completionConfiguration, connector, externalId, name, paymentPageEndpoint, processorExternalId, refundConfiguration); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentAppConnectorCreationRequest {\n"); + + sb.append(" authorizationTimeoutInMinutes: ").append(toIndentedString(authorizationTimeoutInMinutes)).append("\n"); + sb.append(" completionConfiguration: ").append(toIndentedString(completionConfiguration)).append("\n"); + sb.append(" connector: ").append(toIndentedString(connector)).append("\n"); + sb.append(" externalId: ").append(toIndentedString(externalId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" paymentPageEndpoint: ").append(toIndentedString(paymentPageEndpoint)).append("\n"); + sb.append(" processorExternalId: ").append(toIndentedString(processorExternalId)).append("\n"); + sb.append(" refundConfiguration: ").append(toIndentedString(refundConfiguration)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppConnectorState.java b/src/main/java/com/wallee/sdk/model/PaymentAppConnectorState.java new file mode 100644 index 00000000..fee5aae5 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppConnectorState.java @@ -0,0 +1,66 @@ +/** +* 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 io.swagger.annotations.ApiModel; +import java.util.*; +import java.time.OffsetDateTime; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * + */ +public enum PaymentAppConnectorState { + + ACTIVE("ACTIVE"), + + DELETED("DELETED"); + + private String value; + + PaymentAppConnectorState(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PaymentAppConnectorState fromValue(String text) { + for (PaymentAppConnectorState b : PaymentAppConnectorState.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppProcessor.java b/src/main/java/com/wallee/sdk/model/PaymentAppProcessor.java new file mode 100644 index 00000000..fe60d4b4 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppProcessor.java @@ -0,0 +1,339 @@ +/** +* 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.ChargeAttemptEnvironment; +import com.wallee.sdk.model.PaymentAppProcessorState; +import com.wallee.sdk.model.PaymentProcessorConfiguration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class PaymentAppProcessor { + + @JsonProperty("configuredEnvironment") + protected ChargeAttemptEnvironment configuredEnvironment = null; + + + @JsonProperty("createdOn") + protected OffsetDateTime createdOn = null; + + + @JsonProperty("documentationUrl") + protected String documentationUrl = null; + + + @JsonProperty("externalId") + protected String externalId = null; + + + @JsonProperty("id") + protected Long id = null; + + + @JsonProperty("installationId") + protected Long installationId = null; + + + @JsonProperty("linkedSpaceId") + protected Long linkedSpaceId = null; + + + @JsonProperty("name") + protected String name = null; + + + @JsonProperty("processorConfiguration") + protected PaymentProcessorConfiguration processorConfiguration = null; + + + @JsonProperty("productionModeUrl") + protected String productionModeUrl = null; + + + @JsonProperty("state") + protected PaymentAppProcessorState state = null; + + + @JsonProperty("svgIcon") + protected String svgIcon = null; + + + @JsonProperty("updatedOn") + protected OffsetDateTime updatedOn = null; + + + @JsonProperty("usableInProduction") + protected Boolean usableInProduction = null; + + + @JsonProperty("usableInProductionSince") + protected OffsetDateTime usableInProductionSince = null; + + + @JsonProperty("version") + protected Integer version = null; + + + + /** + * + * @return configuredEnvironment + **/ + @ApiModelProperty(value = "") + public ChargeAttemptEnvironment getConfiguredEnvironment() { + return configuredEnvironment; + } + + + /** + * The created on date is the date when this processor has been added. + * @return createdOn + **/ + @ApiModelProperty(value = "The created on date is the date when this processor has been added.") + public OffsetDateTime getCreatedOn() { + return createdOn; + } + + + /** + * The documentation URL points to a web site that describes how to configure and use the processor. + * @return documentationUrl + **/ + @ApiModelProperty(value = "The documentation URL points to a web site that describes how to configure and use the processor.") + public String getDocumentationUrl() { + return documentationUrl; + } + + + /** + * The external ID corresponds to the ID that was provided during creation of the processor. + * @return externalId + **/ + @ApiModelProperty(value = "The external ID corresponds to the ID that was provided during creation of the processor.") + public String getExternalId() { + return externalId; + } + + + /** + * The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @return id + **/ + @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.") + public Long getId() { + return id; + } + + + /** + * The installation ID identifies the Web App installation. + * @return installationId + **/ + @ApiModelProperty(value = "The installation ID identifies the Web App installation.") + public Long getInstallationId() { + return installationId; + } + + + /** + * The linked space id holds the ID of the space to which the entity belongs to. + * @return linkedSpaceId + **/ + @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.") + public Long getLinkedSpaceId() { + return linkedSpaceId; + } + + + /** + * The name of the processor will be displayed within the user interfaces that the merchant is interacting with. + * @return name + **/ + @ApiModelProperty(value = "The name of the processor will be displayed within the user interfaces that the merchant is interacting with.") + public String getName() { + return name; + } + + + /** + * This processor configuration is created as part of the app processor. Any transaction created with the processor is linked with this processor configuration. + * @return processorConfiguration + **/ + @ApiModelProperty(value = "This processor configuration is created as part of the app processor. Any transaction created with the processor is linked with this processor configuration.") + public PaymentProcessorConfiguration getProcessorConfiguration() { + return processorConfiguration; + } + + + /** + * When the user sets the processor into the production mode the user will be forwarded to this URL to configure the production environment. When no URL is provided no redirection will happen. + * @return productionModeUrl + **/ + @ApiModelProperty(value = "When the user sets the processor into the production mode the user will be forwarded to this URL to configure the production environment. When no URL is provided no redirection will happen.") + public String getProductionModeUrl() { + return productionModeUrl; + } + + + /** + * + * @return state + **/ + @ApiModelProperty(value = "") + public PaymentAppProcessorState getState() { + return state; + } + + + /** + * + * @return svgIcon + **/ + @ApiModelProperty(value = "") + public String getSvgIcon() { + return svgIcon; + } + + + /** + * The updated on date indicates when the last update on the processor occurred. + * @return updatedOn + **/ + @ApiModelProperty(value = "The updated on date indicates when the last update on the processor occurred.") + public OffsetDateTime getUpdatedOn() { + return updatedOn; + } + + + /** + * When the processor is ready to be used for transactions in the production environment this flag is set to true. + * @return usableInProduction + **/ + @ApiModelProperty(value = "When the processor is ready to be used for transactions in the production environment this flag is set to true.") + public Boolean isUsableInProduction() { + return usableInProduction; + } + + + /** + * + * @return usableInProductionSince + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getUsableInProductionSince() { + return usableInProductionSince; + } + + + /** + * The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @return version + **/ + @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.") + public Integer getVersion() { + return version; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentAppProcessor paymentAppProcessor = (PaymentAppProcessor) o; + return Objects.equals(this.configuredEnvironment, paymentAppProcessor.configuredEnvironment) && + Objects.equals(this.createdOn, paymentAppProcessor.createdOn) && + Objects.equals(this.documentationUrl, paymentAppProcessor.documentationUrl) && + Objects.equals(this.externalId, paymentAppProcessor.externalId) && + Objects.equals(this.id, paymentAppProcessor.id) && + Objects.equals(this.installationId, paymentAppProcessor.installationId) && + Objects.equals(this.linkedSpaceId, paymentAppProcessor.linkedSpaceId) && + Objects.equals(this.name, paymentAppProcessor.name) && + Objects.equals(this.processorConfiguration, paymentAppProcessor.processorConfiguration) && + Objects.equals(this.productionModeUrl, paymentAppProcessor.productionModeUrl) && + Objects.equals(this.state, paymentAppProcessor.state) && + Objects.equals(this.svgIcon, paymentAppProcessor.svgIcon) && + Objects.equals(this.updatedOn, paymentAppProcessor.updatedOn) && + Objects.equals(this.usableInProduction, paymentAppProcessor.usableInProduction) && + Objects.equals(this.usableInProductionSince, paymentAppProcessor.usableInProductionSince) && + Objects.equals(this.version, paymentAppProcessor.version); + } + + @Override + public int hashCode() { + return Objects.hash(configuredEnvironment, createdOn, documentationUrl, externalId, id, installationId, linkedSpaceId, name, processorConfiguration, productionModeUrl, state, svgIcon, updatedOn, usableInProduction, usableInProductionSince, version); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentAppProcessor {\n"); + + sb.append(" configuredEnvironment: ").append(toIndentedString(configuredEnvironment)).append("\n"); + sb.append(" createdOn: ").append(toIndentedString(createdOn)).append("\n"); + sb.append(" documentationUrl: ").append(toIndentedString(documentationUrl)).append("\n"); + sb.append(" externalId: ").append(toIndentedString(externalId)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" installationId: ").append(toIndentedString(installationId)).append("\n"); + sb.append(" linkedSpaceId: ").append(toIndentedString(linkedSpaceId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" processorConfiguration: ").append(toIndentedString(processorConfiguration)).append("\n"); + sb.append(" productionModeUrl: ").append(toIndentedString(productionModeUrl)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" svgIcon: ").append(toIndentedString(svgIcon)).append("\n"); + sb.append(" updatedOn: ").append(toIndentedString(updatedOn)).append("\n"); + sb.append(" usableInProduction: ").append(toIndentedString(usableInProduction)).append("\n"); + sb.append(" usableInProductionSince: ").append(toIndentedString(usableInProductionSince)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppProcessorCreationRequest.java b/src/main/java/com/wallee/sdk/model/PaymentAppProcessorCreationRequest.java new file mode 100644 index 00000000..5c4a61af --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppProcessorCreationRequest.java @@ -0,0 +1,204 @@ +/** +* 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.util.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class PaymentAppProcessorCreationRequest { + + @JsonProperty("documentationUrl") + protected String documentationUrl = null; + + + @JsonProperty("externalId") + protected String externalId = null; + + + @JsonProperty("name") + protected String name = null; + + + @JsonProperty("productionModeUrl") + protected String productionModeUrl = null; + + + @JsonProperty("svgIcon") + protected String svgIcon = null; + + + + public PaymentAppProcessorCreationRequest documentationUrl(String documentationUrl) { + this.documentationUrl = documentationUrl; + return this; + } + + /** + * The documentation URL has to point to a description of how to configure and use the processor. + * @return documentationUrl + **/ + @ApiModelProperty(required = true, value = "The documentation URL has to point to a description of how to configure and use the processor.") + public String getDocumentationUrl() { + return documentationUrl; + } + + public void setDocumentationUrl(String documentationUrl) { + this.documentationUrl = documentationUrl; + } + + + public PaymentAppProcessorCreationRequest externalId(String externalId) { + this.externalId = externalId; + return this; + } + + /** + * The external ID identifies the processor within the external system. It has to be unique per space and for any subsequent update the same ID must be sent. + * @return externalId + **/ + @ApiModelProperty(required = true, value = "The external ID identifies the processor within the external system. It has to be unique per space and for any subsequent update the same ID must be sent.") + public String getExternalId() { + return externalId; + } + + public void setExternalId(String externalId) { + this.externalId = externalId; + } + + + public PaymentAppProcessorCreationRequest name(String name) { + this.name = name; + return this; + } + + /** + * The name of the processor will be displayed within the user interfaces that the merchant is interacting with. + * @return name + **/ + @ApiModelProperty(required = true, value = "The name of the processor will be displayed within the user interfaces that the merchant is interacting with.") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + public PaymentAppProcessorCreationRequest productionModeUrl(String productionModeUrl) { + this.productionModeUrl = productionModeUrl; + return this; + } + + /** + * The production mode URL has to point to a site on which the merchant can set up the production mode for the processor. + * @return productionModeUrl + **/ + @ApiModelProperty(value = "The production mode URL has to point to a site on which the merchant can set up the production mode for the processor.") + public String getProductionModeUrl() { + return productionModeUrl; + } + + public void setProductionModeUrl(String productionModeUrl) { + this.productionModeUrl = productionModeUrl; + } + + + public PaymentAppProcessorCreationRequest svgIcon(String svgIcon) { + this.svgIcon = svgIcon; + return this; + } + + /** + * The SVG icon will be displayed to the user to represent this processor. + * @return svgIcon + **/ + @ApiModelProperty(required = true, value = "The SVG icon will be displayed to the user to represent this processor.") + public String getSvgIcon() { + return svgIcon; + } + + public void setSvgIcon(String svgIcon) { + this.svgIcon = svgIcon; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentAppProcessorCreationRequest paymentAppProcessorCreationRequest = (PaymentAppProcessorCreationRequest) o; + return Objects.equals(this.documentationUrl, paymentAppProcessorCreationRequest.documentationUrl) && + Objects.equals(this.externalId, paymentAppProcessorCreationRequest.externalId) && + Objects.equals(this.name, paymentAppProcessorCreationRequest.name) && + Objects.equals(this.productionModeUrl, paymentAppProcessorCreationRequest.productionModeUrl) && + Objects.equals(this.svgIcon, paymentAppProcessorCreationRequest.svgIcon); + } + + @Override + public int hashCode() { + return Objects.hash(documentationUrl, externalId, name, productionModeUrl, svgIcon); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentAppProcessorCreationRequest {\n"); + + sb.append(" documentationUrl: ").append(toIndentedString(documentationUrl)).append("\n"); + sb.append(" externalId: ").append(toIndentedString(externalId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" productionModeUrl: ").append(toIndentedString(productionModeUrl)).append("\n"); + sb.append(" svgIcon: ").append(toIndentedString(svgIcon)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppProcessorState.java b/src/main/java/com/wallee/sdk/model/PaymentAppProcessorState.java new file mode 100644 index 00000000..2e066246 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppProcessorState.java @@ -0,0 +1,66 @@ +/** +* 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 io.swagger.annotations.ApiModel; +import java.util.*; +import java.time.OffsetDateTime; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * + */ +public enum PaymentAppProcessorState { + + ACTIVE("ACTIVE"), + + DELETED("DELETED"); + + private String value; + + PaymentAppProcessorState(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PaymentAppProcessorState fromValue(String text) { + for (PaymentAppProcessorState b : PaymentAppProcessorState.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppRefundConfiguration.java b/src/main/java/com/wallee/sdk/model/PaymentAppRefundConfiguration.java new file mode 100644 index 00000000..c40384ab --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppRefundConfiguration.java @@ -0,0 +1,127 @@ +/** +* 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.util.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class PaymentAppRefundConfiguration { + + @JsonProperty("multipleRefundsSupported") + protected Boolean multipleRefundsSupported = null; + + + @JsonProperty("refundEndpoint") + protected String refundEndpoint = null; + + + @JsonProperty("refundTimeoutInMinutes") + protected Integer refundTimeoutInMinutes = null; + + + + /** + * This flag indicates whether the connector supports multiple refunds for a single transaction or not. + * @return multipleRefundsSupported + **/ + @ApiModelProperty(value = "This flag indicates whether the connector supports multiple refunds for a single transaction or not.") + public Boolean isMultipleRefundsSupported() { + return multipleRefundsSupported; + } + + + /** + * The refund endpoint is invoked to request the payment service provider to execute a refund. + * @return refundEndpoint + **/ + @ApiModelProperty(value = "The refund endpoint is invoked to request the payment service provider to execute a refund.") + public String getRefundEndpoint() { + return refundEndpoint; + } + + + /** + * When the refund is triggered we expect a feedback about the state of it. This timeout defines after how long we consider the refund as failed without receiving a final state update. + * @return refundTimeoutInMinutes + **/ + @ApiModelProperty(value = "When the refund is triggered we expect a feedback about the state of it. This timeout defines after how long we consider the refund as failed without receiving a final state update.") + public Integer getRefundTimeoutInMinutes() { + return refundTimeoutInMinutes; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentAppRefundConfiguration paymentAppRefundConfiguration = (PaymentAppRefundConfiguration) o; + return Objects.equals(this.multipleRefundsSupported, paymentAppRefundConfiguration.multipleRefundsSupported) && + Objects.equals(this.refundEndpoint, paymentAppRefundConfiguration.refundEndpoint) && + Objects.equals(this.refundTimeoutInMinutes, paymentAppRefundConfiguration.refundTimeoutInMinutes); + } + + @Override + public int hashCode() { + return Objects.hash(multipleRefundsSupported, refundEndpoint, refundTimeoutInMinutes); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentAppRefundConfiguration {\n"); + + sb.append(" multipleRefundsSupported: ").append(toIndentedString(multipleRefundsSupported)).append("\n"); + sb.append(" refundEndpoint: ").append(toIndentedString(refundEndpoint)).append("\n"); + sb.append(" refundTimeoutInMinutes: ").append(toIndentedString(refundTimeoutInMinutes)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppRefundConfigurationCreate.java b/src/main/java/com/wallee/sdk/model/PaymentAppRefundConfigurationCreate.java new file mode 100644 index 00000000..5d611fd9 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppRefundConfigurationCreate.java @@ -0,0 +1,154 @@ +/** +* 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.util.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class PaymentAppRefundConfigurationCreate { + + @JsonProperty("multipleRefundsSupported") + protected Boolean multipleRefundsSupported = null; + + + @JsonProperty("refundEndpoint") + protected String refundEndpoint = null; + + + @JsonProperty("refundTimeoutInMinutes") + protected Integer refundTimeoutInMinutes = null; + + + + public PaymentAppRefundConfigurationCreate multipleRefundsSupported(Boolean multipleRefundsSupported) { + this.multipleRefundsSupported = multipleRefundsSupported; + return this; + } + + /** + * This flag indicates whether the connector supports multiple refunds for a single transaction or not. + * @return multipleRefundsSupported + **/ + @ApiModelProperty(value = "This flag indicates whether the connector supports multiple refunds for a single transaction or not.") + public Boolean isMultipleRefundsSupported() { + return multipleRefundsSupported; + } + + public void setMultipleRefundsSupported(Boolean multipleRefundsSupported) { + this.multipleRefundsSupported = multipleRefundsSupported; + } + + + public PaymentAppRefundConfigurationCreate refundEndpoint(String refundEndpoint) { + this.refundEndpoint = refundEndpoint; + return this; + } + + /** + * The refund endpoint is invoked to request the payment service provider to execute a refund. + * @return refundEndpoint + **/ + @ApiModelProperty(value = "The refund endpoint is invoked to request the payment service provider to execute a refund.") + public String getRefundEndpoint() { + return refundEndpoint; + } + + public void setRefundEndpoint(String refundEndpoint) { + this.refundEndpoint = refundEndpoint; + } + + + public PaymentAppRefundConfigurationCreate refundTimeoutInMinutes(Integer refundTimeoutInMinutes) { + this.refundTimeoutInMinutes = refundTimeoutInMinutes; + return this; + } + + /** + * When the refund is triggered we expect a feedback about the state of it. This timeout defines after how long we consider the refund as failed without receiving a final state update. + * @return refundTimeoutInMinutes + **/ + @ApiModelProperty(value = "When the refund is triggered we expect a feedback about the state of it. This timeout defines after how long we consider the refund as failed without receiving a final state update.") + public Integer getRefundTimeoutInMinutes() { + return refundTimeoutInMinutes; + } + + public void setRefundTimeoutInMinutes(Integer refundTimeoutInMinutes) { + this.refundTimeoutInMinutes = refundTimeoutInMinutes; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentAppRefundConfigurationCreate paymentAppRefundConfigurationCreate = (PaymentAppRefundConfigurationCreate) o; + return Objects.equals(this.multipleRefundsSupported, paymentAppRefundConfigurationCreate.multipleRefundsSupported) && + Objects.equals(this.refundEndpoint, paymentAppRefundConfigurationCreate.refundEndpoint) && + Objects.equals(this.refundTimeoutInMinutes, paymentAppRefundConfigurationCreate.refundTimeoutInMinutes); + } + + @Override + public int hashCode() { + return Objects.hash(multipleRefundsSupported, refundEndpoint, refundTimeoutInMinutes); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentAppRefundConfigurationCreate {\n"); + + sb.append(" multipleRefundsSupported: ").append(toIndentedString(multipleRefundsSupported)).append("\n"); + sb.append(" refundEndpoint: ").append(toIndentedString(refundEndpoint)).append("\n"); + sb.append(" refundTimeoutInMinutes: ").append(toIndentedString(refundTimeoutInMinutes)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppRefundTargetState.java b/src/main/java/com/wallee/sdk/model/PaymentAppRefundTargetState.java new file mode 100644 index 00000000..1d83bdb8 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppRefundTargetState.java @@ -0,0 +1,66 @@ +/** +* 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 io.swagger.annotations.ApiModel; +import java.util.*; +import java.time.OffsetDateTime; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * The target state indicates the state that should be set on the refund. + */ +public enum PaymentAppRefundTargetState { + + SUCCESSFUL("SUCCESSFUL"), + + FAILED("FAILED"); + + private String value; + + PaymentAppRefundTargetState(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PaymentAppRefundTargetState fromValue(String text) { + for (PaymentAppRefundTargetState b : PaymentAppRefundTargetState.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppRefundUpdateRequest.java b/src/main/java/com/wallee/sdk/model/PaymentAppRefundUpdateRequest.java new file mode 100644 index 00000000..63745ec1 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppRefundUpdateRequest.java @@ -0,0 +1,180 @@ +/** +* 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.PaymentAppRefundTargetState; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * The refund update request allows to change the state of a refund. The refund must be linked with a processor that was created by the payment Web App that invokes the operation. + */ +@ApiModel(description = "The refund update request allows to change the state of a refund. The refund must be linked with a processor that was created by the payment Web App that invokes the operation.") + +public class PaymentAppRefundUpdateRequest { + + @JsonProperty("failureReasonId") + protected Long failureReasonId = null; + + + @JsonProperty("reference") + protected String reference = null; + + + @JsonProperty("refundId") + protected Long refundId = null; + + + @JsonProperty("targetState") + protected PaymentAppRefundTargetState targetState = null; + + + + public PaymentAppRefundUpdateRequest failureReasonId(Long failureReasonId) { + this.failureReasonId = failureReasonId; + return this; + } + + /** + * The failure reason indicates why the refund failed. It is required when the target state is FAILED. + * @return failureReasonId + **/ + @ApiModelProperty(value = "The failure reason indicates why the refund failed. It is required when the target state is FAILED.") + public Long getFailureReasonId() { + return failureReasonId; + } + + public void setFailureReasonId(Long failureReasonId) { + this.failureReasonId = failureReasonId; + } + + + public PaymentAppRefundUpdateRequest reference(String reference) { + this.reference = reference; + return this; + } + + /** + * The reference identifies the refund within the systems of the external service provider. It is required when the target state is SUCCESSFUL. + * @return reference + **/ + @ApiModelProperty(value = "The reference identifies the refund within the systems of the external service provider. It is required when the target state is SUCCESSFUL.") + public String getReference() { + return reference; + } + + public void setReference(String reference) { + this.reference = reference; + } + + + public PaymentAppRefundUpdateRequest refundId(Long refundId) { + this.refundId = refundId; + return this; + } + + /** + * This is the ID of the refund that should be updated. + * @return refundId + **/ + @ApiModelProperty(value = "This is the ID of the refund that should be updated.") + public Long getRefundId() { + return refundId; + } + + public void setRefundId(Long refundId) { + this.refundId = refundId; + } + + + public PaymentAppRefundUpdateRequest targetState(PaymentAppRefundTargetState targetState) { + this.targetState = targetState; + return this; + } + + /** + * The target state defines the state into which the refund should be switched into. Once the refund changed the state it will not be possible to change it again. + * @return targetState + **/ + @ApiModelProperty(value = "The target state defines the state into which the refund should be switched into. Once the refund changed the state it will not be possible to change it again.") + public PaymentAppRefundTargetState getTargetState() { + return targetState; + } + + public void setTargetState(PaymentAppRefundTargetState targetState) { + this.targetState = targetState; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentAppRefundUpdateRequest paymentAppRefundUpdateRequest = (PaymentAppRefundUpdateRequest) o; + return Objects.equals(this.failureReasonId, paymentAppRefundUpdateRequest.failureReasonId) && + Objects.equals(this.reference, paymentAppRefundUpdateRequest.reference) && + Objects.equals(this.refundId, paymentAppRefundUpdateRequest.refundId) && + Objects.equals(this.targetState, paymentAppRefundUpdateRequest.targetState); + } + + @Override + public int hashCode() { + return Objects.hash(failureReasonId, reference, refundId, targetState); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentAppRefundUpdateRequest {\n"); + + sb.append(" failureReasonId: ").append(toIndentedString(failureReasonId)).append("\n"); + sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); + sb.append(" refundId: ").append(toIndentedString(refundId)).append("\n"); + sb.append(" targetState: ").append(toIndentedString(targetState)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppVoidTargetState.java b/src/main/java/com/wallee/sdk/model/PaymentAppVoidTargetState.java new file mode 100644 index 00000000..4644c74f --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppVoidTargetState.java @@ -0,0 +1,66 @@ +/** +* 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 io.swagger.annotations.ApiModel; +import java.util.*; +import java.time.OffsetDateTime; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * The target state indicates the state that should be set on the void. + */ +public enum PaymentAppVoidTargetState { + + SUCCESSFUL("SUCCESSFUL"), + + FAILED("FAILED"); + + private String value; + + PaymentAppVoidTargetState(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PaymentAppVoidTargetState fromValue(String text) { + for (PaymentAppVoidTargetState b : PaymentAppVoidTargetState.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentAppVoidUpdateRequest.java b/src/main/java/com/wallee/sdk/model/PaymentAppVoidUpdateRequest.java new file mode 100644 index 00000000..da3654ee --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentAppVoidUpdateRequest.java @@ -0,0 +1,180 @@ +/** +* 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.PaymentAppVoidTargetState; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * The void update request allows to change the state of a void. The void must be linked with a processor that was created by the payment Web App that invokes the operation. + */ +@ApiModel(description = "The void update request allows to change the state of a void. The void must be linked with a processor that was created by the payment Web App that invokes the operation.") + +public class PaymentAppVoidUpdateRequest { + + @JsonProperty("failureReasonId") + protected Long failureReasonId = null; + + + @JsonProperty("reference") + protected String reference = null; + + + @JsonProperty("targetState") + protected PaymentAppVoidTargetState targetState = null; + + + @JsonProperty("voidId") + protected Long voidId = null; + + + + public PaymentAppVoidUpdateRequest failureReasonId(Long failureReasonId) { + this.failureReasonId = failureReasonId; + return this; + } + + /** + * The failure reason indicates why the void failed. It is required when the target state is FAILED. + * @return failureReasonId + **/ + @ApiModelProperty(value = "The failure reason indicates why the void failed. It is required when the target state is FAILED.") + public Long getFailureReasonId() { + return failureReasonId; + } + + public void setFailureReasonId(Long failureReasonId) { + this.failureReasonId = failureReasonId; + } + + + public PaymentAppVoidUpdateRequest reference(String reference) { + this.reference = reference; + return this; + } + + /** + * The reference identifies the void within the systems of the external service provider. It is required when the target state is SUCCESSFUL. + * @return reference + **/ + @ApiModelProperty(value = "The reference identifies the void within the systems of the external service provider. It is required when the target state is SUCCESSFUL.") + public String getReference() { + return reference; + } + + public void setReference(String reference) { + this.reference = reference; + } + + + public PaymentAppVoidUpdateRequest targetState(PaymentAppVoidTargetState targetState) { + this.targetState = targetState; + return this; + } + + /** + * The target state defines the state into which the void should be switched into. Once the void changed the state it will not be possible to change it again. + * @return targetState + **/ + @ApiModelProperty(value = "The target state defines the state into which the void should be switched into. Once the void changed the state it will not be possible to change it again.") + public PaymentAppVoidTargetState getTargetState() { + return targetState; + } + + public void setTargetState(PaymentAppVoidTargetState targetState) { + this.targetState = targetState; + } + + + public PaymentAppVoidUpdateRequest voidId(Long voidId) { + this.voidId = voidId; + return this; + } + + /** + * This is the ID of the void that should be updated. + * @return voidId + **/ + @ApiModelProperty(value = "This is the ID of the void that should be updated.") + public Long getVoidId() { + return voidId; + } + + public void setVoidId(Long voidId) { + this.voidId = voidId; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentAppVoidUpdateRequest paymentAppVoidUpdateRequest = (PaymentAppVoidUpdateRequest) o; + return Objects.equals(this.failureReasonId, paymentAppVoidUpdateRequest.failureReasonId) && + Objects.equals(this.reference, paymentAppVoidUpdateRequest.reference) && + Objects.equals(this.targetState, paymentAppVoidUpdateRequest.targetState) && + Objects.equals(this.voidId, paymentAppVoidUpdateRequest.voidId); + } + + @Override + public int hashCode() { + return Objects.hash(failureReasonId, reference, targetState, voidId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentAppVoidUpdateRequest {\n"); + + sb.append(" failureReasonId: ").append(toIndentedString(failureReasonId)).append("\n"); + sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); + sb.append(" targetState: ").append(toIndentedString(targetState)).append("\n"); + sb.append(" voidId: ").append(toIndentedString(voidId)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentInitiationAdviceFile.java b/src/main/java/com/wallee/sdk/model/PaymentInitiationAdviceFile.java new file mode 100644 index 00000000..8c674a78 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentInitiationAdviceFile.java @@ -0,0 +1,193 @@ +/** +* 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.PaymentInitiationAdviceFileState; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class PaymentInitiationAdviceFile { + + @JsonProperty("createdOn") + protected OffsetDateTime createdOn = null; + + + @JsonProperty("fileGeneratedOn") + protected OffsetDateTime fileGeneratedOn = null; + + + @JsonProperty("id") + protected Long id = null; + + + @JsonProperty("linkedSpaceId") + protected Long linkedSpaceId = null; + + + @JsonProperty("name") + protected String name = null; + + + @JsonProperty("processedOn") + protected OffsetDateTime processedOn = null; + + + @JsonProperty("state") + protected PaymentInitiationAdviceFileState state = null; + + + + /** + * The created on date indicates the date on which the entity was stored into the database. + * @return createdOn + **/ + @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.") + public OffsetDateTime getCreatedOn() { + return createdOn; + } + + + /** + * + * @return fileGeneratedOn + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getFileGeneratedOn() { + return fileGeneratedOn; + } + + + /** + * The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @return id + **/ + @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.") + public Long getId() { + return id; + } + + + /** + * The linked space id holds the ID of the space to which the entity belongs to. + * @return linkedSpaceId + **/ + @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.") + public Long getLinkedSpaceId() { + return linkedSpaceId; + } + + + /** + * + * @return name + **/ + @ApiModelProperty(value = "") + public String getName() { + return name; + } + + + /** + * + * @return processedOn + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getProcessedOn() { + return processedOn; + } + + + /** + * + * @return state + **/ + @ApiModelProperty(value = "") + public PaymentInitiationAdviceFileState getState() { + return state; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentInitiationAdviceFile paymentInitiationAdviceFile = (PaymentInitiationAdviceFile) o; + return Objects.equals(this.createdOn, paymentInitiationAdviceFile.createdOn) && + Objects.equals(this.fileGeneratedOn, paymentInitiationAdviceFile.fileGeneratedOn) && + Objects.equals(this.id, paymentInitiationAdviceFile.id) && + Objects.equals(this.linkedSpaceId, paymentInitiationAdviceFile.linkedSpaceId) && + Objects.equals(this.name, paymentInitiationAdviceFile.name) && + Objects.equals(this.processedOn, paymentInitiationAdviceFile.processedOn) && + Objects.equals(this.state, paymentInitiationAdviceFile.state); + } + + @Override + public int hashCode() { + return Objects.hash(createdOn, fileGeneratedOn, id, linkedSpaceId, name, processedOn, state); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentInitiationAdviceFile {\n"); + + sb.append(" createdOn: ").append(toIndentedString(createdOn)).append("\n"); + sb.append(" fileGeneratedOn: ").append(toIndentedString(fileGeneratedOn)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" linkedSpaceId: ").append(toIndentedString(linkedSpaceId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" processedOn: ").append(toIndentedString(processedOn)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentInitiationAdviceFileState.java b/src/main/java/com/wallee/sdk/model/PaymentInitiationAdviceFileState.java new file mode 100644 index 00000000..206cf254 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentInitiationAdviceFileState.java @@ -0,0 +1,66 @@ +/** +* 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 io.swagger.annotations.ApiModel; +import java.util.*; +import java.time.OffsetDateTime; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * + */ +public enum PaymentInitiationAdviceFileState { + + PENDING("PENDING"), + + PROCESSED("PROCESSED"); + + private String value; + + PaymentInitiationAdviceFileState(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PaymentInitiationAdviceFileState fromValue(String text) { + for (PaymentInitiationAdviceFileState b : PaymentInitiationAdviceFileState.values()) { + if (String.valueOf(b.value).equals(text)) { + return b; + } + } + return null; + } +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentProcessorConfiguration.java b/src/main/java/com/wallee/sdk/model/PaymentProcessorConfiguration.java index 88f79ea9..80872685 100644 --- a/src/main/java/com/wallee/sdk/model/PaymentProcessorConfiguration.java +++ b/src/main/java/com/wallee/sdk/model/PaymentProcessorConfiguration.java @@ -38,6 +38,10 @@ public class PaymentProcessorConfiguration { + @JsonProperty("applicationManaged") + protected Boolean applicationManaged = null; + + @JsonProperty("contractId") protected Long contractId = null; @@ -71,6 +75,16 @@ public class PaymentProcessorConfiguration { + /** + * The configuration is managed by the application and cannot be changed via the user interface. + * @return applicationManaged + **/ + @ApiModelProperty(value = "The configuration is managed by the application and cannot be changed via the user interface.") + public Boolean isApplicationManaged() { + return applicationManaged; + } + + /** * The contract links the processor configuration with the contract that is used to process payments. * @return contractId @@ -161,7 +175,8 @@ public boolean equals(java.lang.Object o) { return false; } PaymentProcessorConfiguration paymentProcessorConfiguration = (PaymentProcessorConfiguration) o; - return Objects.equals(this.contractId, paymentProcessorConfiguration.contractId) && + return Objects.equals(this.applicationManaged, paymentProcessorConfiguration.applicationManaged) && + Objects.equals(this.contractId, paymentProcessorConfiguration.contractId) && Objects.equals(this.id, paymentProcessorConfiguration.id) && Objects.equals(this.linkedSpaceId, paymentProcessorConfiguration.linkedSpaceId) && Objects.equals(this.name, paymentProcessorConfiguration.name) && @@ -173,7 +188,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(contractId, id, linkedSpaceId, name, plannedPurgeDate, processor, state, version); + return Objects.hash(applicationManaged, contractId, id, linkedSpaceId, name, plannedPurgeDate, processor, state, version); } @@ -182,6 +197,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentProcessorConfiguration {\n"); + sb.append(" applicationManaged: ").append(toIndentedString(applicationManaged)).append("\n"); sb.append(" contractId: ").append(toIndentedString(contractId)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" linkedSpaceId: ").append(toIndentedString(linkedSpaceId)).append("\n"); diff --git a/src/main/java/com/wallee/sdk/model/PaymentTerminal.java b/src/main/java/com/wallee/sdk/model/PaymentTerminal.java index a7f38f1b..fb68eefe 100644 --- a/src/main/java/com/wallee/sdk/model/PaymentTerminal.java +++ b/src/main/java/com/wallee/sdk/model/PaymentTerminal.java @@ -49,6 +49,10 @@ public class PaymentTerminal { protected String defaultCurrency = null; + @JsonProperty("externalId") + protected String externalId = null; + + @JsonProperty("id") protected Long id = null; @@ -106,6 +110,16 @@ public String getDefaultCurrency() { } + /** + * A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead. + * @return externalId + **/ + @ApiModelProperty(value = "A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.") + public String getExternalId() { + return externalId; + } + + /** * The ID is the primary key of the entity. The ID identifies the entity uniquely. * @return id @@ -208,6 +222,7 @@ public boolean equals(java.lang.Object o) { PaymentTerminal paymentTerminal = (PaymentTerminal) o; return Objects.equals(this.configurationVersion, paymentTerminal.configurationVersion) && Objects.equals(this.defaultCurrency, paymentTerminal.defaultCurrency) && + Objects.equals(this.externalId, paymentTerminal.externalId) && Objects.equals(this.id, paymentTerminal.id) && Objects.equals(this.identifier, paymentTerminal.identifier) && Objects.equals(this.linkedSpaceId, paymentTerminal.linkedSpaceId) && @@ -221,7 +236,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(configurationVersion, defaultCurrency, id, identifier, linkedSpaceId, locationVersion, name, plannedPurgeDate, state, type, version); + return Objects.hash(configurationVersion, defaultCurrency, externalId, id, identifier, linkedSpaceId, locationVersion, name, plannedPurgeDate, state, type, version); } @@ -232,6 +247,7 @@ public String toString() { sb.append(" configurationVersion: ").append(toIndentedString(configurationVersion)).append("\n"); sb.append(" defaultCurrency: ").append(toIndentedString(defaultCurrency)).append("\n"); + sb.append(" externalId: ").append(toIndentedString(externalId)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n"); sb.append(" linkedSpaceId: ").append(toIndentedString(linkedSpaceId)).append("\n"); diff --git a/src/main/java/com/wallee/sdk/model/PaymentTerminalDccTransactionSum.java b/src/main/java/com/wallee/sdk/model/PaymentTerminalDccTransactionSum.java new file mode 100644 index 00000000..96a0ca05 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentTerminalDccTransactionSum.java @@ -0,0 +1,208 @@ +/** +* 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.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class PaymentTerminalDccTransactionSum { + + @JsonProperty("brand") + protected String brand = null; + + + @JsonProperty("dccAmount") + protected BigDecimal dccAmount = null; + + + @JsonProperty("dccCurrency") + protected String dccCurrency = null; + + + @JsonProperty("id") + protected Long id = null; + + + @JsonProperty("transactionAmount") + protected BigDecimal transactionAmount = null; + + + @JsonProperty("transactionCount") + protected Integer transactionCount = null; + + + @JsonProperty("transactionCurrency") + protected String transactionCurrency = null; + + + @JsonProperty("version") + protected Integer version = null; + + + + /** + * + * @return brand + **/ + @ApiModelProperty(value = "") + public String getBrand() { + return brand; + } + + + /** + * + * @return dccAmount + **/ + @ApiModelProperty(value = "") + public BigDecimal getDccAmount() { + return dccAmount; + } + + + /** + * + * @return dccCurrency + **/ + @ApiModelProperty(value = "") + public String getDccCurrency() { + return dccCurrency; + } + + + /** + * The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @return id + **/ + @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.") + public Long getId() { + return id; + } + + + /** + * + * @return transactionAmount + **/ + @ApiModelProperty(value = "") + public BigDecimal getTransactionAmount() { + return transactionAmount; + } + + + /** + * + * @return transactionCount + **/ + @ApiModelProperty(value = "") + public Integer getTransactionCount() { + return transactionCount; + } + + + /** + * + * @return transactionCurrency + **/ + @ApiModelProperty(value = "") + public String getTransactionCurrency() { + return transactionCurrency; + } + + + /** + * The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @return version + **/ + @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.") + public Integer getVersion() { + return version; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentTerminalDccTransactionSum paymentTerminalDccTransactionSum = (PaymentTerminalDccTransactionSum) o; + return Objects.equals(this.brand, paymentTerminalDccTransactionSum.brand) && + Objects.equals(this.dccAmount, paymentTerminalDccTransactionSum.dccAmount) && + Objects.equals(this.dccCurrency, paymentTerminalDccTransactionSum.dccCurrency) && + Objects.equals(this.id, paymentTerminalDccTransactionSum.id) && + Objects.equals(this.transactionAmount, paymentTerminalDccTransactionSum.transactionAmount) && + Objects.equals(this.transactionCount, paymentTerminalDccTransactionSum.transactionCount) && + Objects.equals(this.transactionCurrency, paymentTerminalDccTransactionSum.transactionCurrency) && + Objects.equals(this.version, paymentTerminalDccTransactionSum.version); + } + + @Override + public int hashCode() { + return Objects.hash(brand, dccAmount, dccCurrency, id, transactionAmount, transactionCount, transactionCurrency, version); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentTerminalDccTransactionSum {\n"); + + sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); + sb.append(" dccAmount: ").append(toIndentedString(dccAmount)).append("\n"); + sb.append(" dccCurrency: ").append(toIndentedString(dccCurrency)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" transactionAmount: ").append(toIndentedString(transactionAmount)).append("\n"); + sb.append(" transactionCount: ").append(toIndentedString(transactionCount)).append("\n"); + sb.append(" transactionCurrency: ").append(toIndentedString(transactionCurrency)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentTerminalLocation.java b/src/main/java/com/wallee/sdk/model/PaymentTerminalLocation.java index 1a752469..a10e3f15 100644 --- a/src/main/java/com/wallee/sdk/model/PaymentTerminalLocation.java +++ b/src/main/java/com/wallee/sdk/model/PaymentTerminalLocation.java @@ -24,7 +24,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import com.wallee.sdk.model.PaymentTerminalAddress; import com.wallee.sdk.model.PaymentTerminalLocationState; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -39,8 +38,8 @@ public class PaymentTerminalLocation { - @JsonProperty("contactAddress") - protected PaymentTerminalAddress contactAddress = null; + @JsonProperty("externalId") + protected String externalId = null; @JsonProperty("id") @@ -69,12 +68,12 @@ public class PaymentTerminalLocation { /** - * - * @return contactAddress + * A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead. + * @return externalId **/ - @ApiModelProperty(value = "") - public PaymentTerminalAddress getContactAddress() { - return contactAddress; + @ApiModelProperty(value = "A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.") + public String getExternalId() { + return externalId; } @@ -148,7 +147,7 @@ public boolean equals(java.lang.Object o) { return false; } PaymentTerminalLocation paymentTerminalLocation = (PaymentTerminalLocation) o; - return Objects.equals(this.contactAddress, paymentTerminalLocation.contactAddress) && + return Objects.equals(this.externalId, paymentTerminalLocation.externalId) && Objects.equals(this.id, paymentTerminalLocation.id) && Objects.equals(this.linkedSpaceId, paymentTerminalLocation.linkedSpaceId) && Objects.equals(this.name, paymentTerminalLocation.name) && @@ -159,7 +158,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(contactAddress, id, linkedSpaceId, name, plannedPurgeDate, state, version); + return Objects.hash(externalId, id, linkedSpaceId, name, plannedPurgeDate, state, version); } @@ -168,7 +167,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentTerminalLocation {\n"); - sb.append(" contactAddress: ").append(toIndentedString(contactAddress)).append("\n"); + sb.append(" externalId: ").append(toIndentedString(externalId)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" linkedSpaceId: ").append(toIndentedString(linkedSpaceId)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/src/main/java/com/wallee/sdk/model/PaymentTerminalLocationVersion.java b/src/main/java/com/wallee/sdk/model/PaymentTerminalLocationVersion.java index 3353aee9..6ccfa8b8 100644 --- a/src/main/java/com/wallee/sdk/model/PaymentTerminalLocationVersion.java +++ b/src/main/java/com/wallee/sdk/model/PaymentTerminalLocationVersion.java @@ -44,6 +44,10 @@ public class PaymentTerminalLocationVersion { protected PaymentTerminalAddress address = null; + @JsonProperty("contactAddress") + protected PaymentTerminalAddress contactAddress = null; + + @JsonProperty("createdBy") protected Long createdBy = null; @@ -91,6 +95,16 @@ public PaymentTerminalAddress getAddress() { } + /** + * + * @return contactAddress + **/ + @ApiModelProperty(value = "") + public PaymentTerminalAddress getContactAddress() { + return contactAddress; + } + + /** * * @return createdBy @@ -192,6 +206,7 @@ public boolean equals(java.lang.Object o) { } PaymentTerminalLocationVersion paymentTerminalLocationVersion = (PaymentTerminalLocationVersion) o; return Objects.equals(this.address, paymentTerminalLocationVersion.address) && + Objects.equals(this.contactAddress, paymentTerminalLocationVersion.contactAddress) && Objects.equals(this.createdBy, paymentTerminalLocationVersion.createdBy) && Objects.equals(this.createdOn, paymentTerminalLocationVersion.createdOn) && Objects.equals(this.id, paymentTerminalLocationVersion.id) && @@ -205,7 +220,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(address, createdBy, createdOn, id, linkedSpaceId, location, plannedPurgeDate, state, version, versionAppliedImmediately); + return Objects.hash(address, contactAddress, createdBy, createdOn, id, linkedSpaceId, location, plannedPurgeDate, state, version, versionAppliedImmediately); } @@ -215,6 +230,7 @@ public String toString() { sb.append("class PaymentTerminalLocationVersion {\n"); sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" contactAddress: ").append(toIndentedString(contactAddress)).append("\n"); sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); sb.append(" createdOn: ").append(toIndentedString(createdOn)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); diff --git a/src/main/java/com/wallee/sdk/model/PaymentTerminalState.java b/src/main/java/com/wallee/sdk/model/PaymentTerminalState.java index bc811982..2b4d0633 100644 --- a/src/main/java/com/wallee/sdk/model/PaymentTerminalState.java +++ b/src/main/java/com/wallee/sdk/model/PaymentTerminalState.java @@ -33,6 +33,8 @@ */ public enum PaymentTerminalState { + CREATE("CREATE"), + PREPARING("PREPARING"), ACTIVE("ACTIVE"), diff --git a/src/main/java/com/wallee/sdk/model/PaymentTerminalTransactionSum.java b/src/main/java/com/wallee/sdk/model/PaymentTerminalTransactionSum.java new file mode 100644 index 00000000..188584be --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentTerminalTransactionSum.java @@ -0,0 +1,256 @@ +/** +* 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.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class PaymentTerminalTransactionSum { + + @JsonProperty("brand") + protected String brand = null; + + + @JsonProperty("dccTipAmount") + protected BigDecimal dccTipAmount = null; + + + @JsonProperty("dccTransactionAmount") + protected BigDecimal dccTransactionAmount = null; + + + @JsonProperty("dccTransactionCount") + protected Integer dccTransactionCount = null; + + + @JsonProperty("id") + protected Long id = null; + + + @JsonProperty("product") + protected String product = null; + + + @JsonProperty("transactionAmount") + protected BigDecimal transactionAmount = null; + + + @JsonProperty("transactionCount") + protected Integer transactionCount = null; + + + @JsonProperty("transactionCurrency") + protected String transactionCurrency = null; + + + @JsonProperty("transactionTipAmount") + protected BigDecimal transactionTipAmount = null; + + + @JsonProperty("version") + protected Integer version = null; + + + + /** + * + * @return brand + **/ + @ApiModelProperty(value = "") + public String getBrand() { + return brand; + } + + + /** + * + * @return dccTipAmount + **/ + @ApiModelProperty(value = "") + public BigDecimal getDccTipAmount() { + return dccTipAmount; + } + + + /** + * + * @return dccTransactionAmount + **/ + @ApiModelProperty(value = "") + public BigDecimal getDccTransactionAmount() { + return dccTransactionAmount; + } + + + /** + * + * @return dccTransactionCount + **/ + @ApiModelProperty(value = "") + public Integer getDccTransactionCount() { + return dccTransactionCount; + } + + + /** + * The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @return id + **/ + @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.") + public Long getId() { + return id; + } + + + /** + * + * @return product + **/ + @ApiModelProperty(value = "") + public String getProduct() { + return product; + } + + + /** + * + * @return transactionAmount + **/ + @ApiModelProperty(value = "") + public BigDecimal getTransactionAmount() { + return transactionAmount; + } + + + /** + * + * @return transactionCount + **/ + @ApiModelProperty(value = "") + public Integer getTransactionCount() { + return transactionCount; + } + + + /** + * + * @return transactionCurrency + **/ + @ApiModelProperty(value = "") + public String getTransactionCurrency() { + return transactionCurrency; + } + + + /** + * + * @return transactionTipAmount + **/ + @ApiModelProperty(value = "") + public BigDecimal getTransactionTipAmount() { + return transactionTipAmount; + } + + + /** + * The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @return version + **/ + @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.") + public Integer getVersion() { + return version; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentTerminalTransactionSum paymentTerminalTransactionSum = (PaymentTerminalTransactionSum) o; + return Objects.equals(this.brand, paymentTerminalTransactionSum.brand) && + Objects.equals(this.dccTipAmount, paymentTerminalTransactionSum.dccTipAmount) && + Objects.equals(this.dccTransactionAmount, paymentTerminalTransactionSum.dccTransactionAmount) && + Objects.equals(this.dccTransactionCount, paymentTerminalTransactionSum.dccTransactionCount) && + Objects.equals(this.id, paymentTerminalTransactionSum.id) && + Objects.equals(this.product, paymentTerminalTransactionSum.product) && + Objects.equals(this.transactionAmount, paymentTerminalTransactionSum.transactionAmount) && + Objects.equals(this.transactionCount, paymentTerminalTransactionSum.transactionCount) && + Objects.equals(this.transactionCurrency, paymentTerminalTransactionSum.transactionCurrency) && + Objects.equals(this.transactionTipAmount, paymentTerminalTransactionSum.transactionTipAmount) && + Objects.equals(this.version, paymentTerminalTransactionSum.version); + } + + @Override + public int hashCode() { + return Objects.hash(brand, dccTipAmount, dccTransactionAmount, dccTransactionCount, id, product, transactionAmount, transactionCount, transactionCurrency, transactionTipAmount, version); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentTerminalTransactionSum {\n"); + + sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); + sb.append(" dccTipAmount: ").append(toIndentedString(dccTipAmount)).append("\n"); + sb.append(" dccTransactionAmount: ").append(toIndentedString(dccTransactionAmount)).append("\n"); + sb.append(" dccTransactionCount: ").append(toIndentedString(dccTransactionCount)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" product: ").append(toIndentedString(product)).append("\n"); + sb.append(" transactionAmount: ").append(toIndentedString(transactionAmount)).append("\n"); + sb.append(" transactionCount: ").append(toIndentedString(transactionCount)).append("\n"); + sb.append(" transactionCurrency: ").append(toIndentedString(transactionCurrency)).append("\n"); + sb.append(" transactionTipAmount: ").append(toIndentedString(transactionTipAmount)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentTerminalTransactionSummary.java b/src/main/java/com/wallee/sdk/model/PaymentTerminalTransactionSummary.java new file mode 100644 index 00000000..8217fefd --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentTerminalTransactionSummary.java @@ -0,0 +1,244 @@ +/** +* 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.PaymentTerminalDccTransactionSum; +import com.wallee.sdk.model.PaymentTerminalTransactionSum; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class PaymentTerminalTransactionSummary { + + @JsonProperty("dccTransactionSums") + protected List dccTransactionSums = null; + + + @JsonProperty("endedOn") + protected OffsetDateTime endedOn = null; + + + @JsonProperty("id") + protected Long id = null; + + + @JsonProperty("linkedSpaceId") + protected Long linkedSpaceId = null; + + + @JsonProperty("numberOfTransactions") + protected Integer numberOfTransactions = null; + + + @JsonProperty("paymentTerminal") + protected Long paymentTerminal = null; + + + @JsonProperty("receipt") + protected String receipt = null; + + + @JsonProperty("startedOn") + protected OffsetDateTime startedOn = null; + + + @JsonProperty("transactionSums") + protected List transactionSums = null; + + + @JsonProperty("version") + protected Integer version = null; + + + + /** + * + * @return dccTransactionSums + **/ + @ApiModelProperty(value = "") + public List getDccTransactionSums() { + return dccTransactionSums; + } + + + /** + * + * @return endedOn + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getEndedOn() { + return endedOn; + } + + + /** + * The ID is the primary key of the entity. The ID identifies the entity uniquely. + * @return id + **/ + @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.") + public Long getId() { + return id; + } + + + /** + * The linked space id holds the ID of the space to which the entity belongs to. + * @return linkedSpaceId + **/ + @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.") + public Long getLinkedSpaceId() { + return linkedSpaceId; + } + + + /** + * + * @return numberOfTransactions + **/ + @ApiModelProperty(value = "") + public Integer getNumberOfTransactions() { + return numberOfTransactions; + } + + + /** + * + * @return paymentTerminal + **/ + @ApiModelProperty(value = "") + public Long getPaymentTerminal() { + return paymentTerminal; + } + + + /** + * + * @return receipt + **/ + @ApiModelProperty(value = "") + public String getReceipt() { + return receipt; + } + + + /** + * + * @return startedOn + **/ + @ApiModelProperty(value = "") + public OffsetDateTime getStartedOn() { + return startedOn; + } + + + /** + * + * @return transactionSums + **/ + @ApiModelProperty(value = "") + public List getTransactionSums() { + return transactionSums; + } + + + /** + * The version number indicates the version of the entity. The version is incremented whenever the entity is changed. + * @return version + **/ + @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.") + public Integer getVersion() { + return version; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentTerminalTransactionSummary paymentTerminalTransactionSummary = (PaymentTerminalTransactionSummary) o; + return Objects.equals(this.dccTransactionSums, paymentTerminalTransactionSummary.dccTransactionSums) && + Objects.equals(this.endedOn, paymentTerminalTransactionSummary.endedOn) && + Objects.equals(this.id, paymentTerminalTransactionSummary.id) && + Objects.equals(this.linkedSpaceId, paymentTerminalTransactionSummary.linkedSpaceId) && + Objects.equals(this.numberOfTransactions, paymentTerminalTransactionSummary.numberOfTransactions) && + Objects.equals(this.paymentTerminal, paymentTerminalTransactionSummary.paymentTerminal) && + Objects.equals(this.receipt, paymentTerminalTransactionSummary.receipt) && + Objects.equals(this.startedOn, paymentTerminalTransactionSummary.startedOn) && + Objects.equals(this.transactionSums, paymentTerminalTransactionSummary.transactionSums) && + Objects.equals(this.version, paymentTerminalTransactionSummary.version); + } + + @Override + public int hashCode() { + return Objects.hash(dccTransactionSums, endedOn, id, linkedSpaceId, numberOfTransactions, paymentTerminal, receipt, startedOn, transactionSums, version); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentTerminalTransactionSummary {\n"); + + sb.append(" dccTransactionSums: ").append(toIndentedString(dccTransactionSums)).append("\n"); + sb.append(" endedOn: ").append(toIndentedString(endedOn)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" linkedSpaceId: ").append(toIndentedString(linkedSpaceId)).append("\n"); + sb.append(" numberOfTransactions: ").append(toIndentedString(numberOfTransactions)).append("\n"); + sb.append(" paymentTerminal: ").append(toIndentedString(paymentTerminal)).append("\n"); + sb.append(" receipt: ").append(toIndentedString(receipt)).append("\n"); + sb.append(" startedOn: ").append(toIndentedString(startedOn)).append("\n"); + sb.append(" transactionSums: ").append(toIndentedString(transactionSums)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/PaymentTerminalTransactionSummaryFetchRequest.java b/src/main/java/com/wallee/sdk/model/PaymentTerminalTransactionSummaryFetchRequest.java new file mode 100644 index 00000000..904ef437 --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/PaymentTerminalTransactionSummaryFetchRequest.java @@ -0,0 +1,155 @@ +/** +* 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.TerminalReceiptFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.time.OffsetDateTime; + +/** + * The receipt fetch request allows to retrieve the receipt documents for a terminal transaction. + */ +@ApiModel(description = "The receipt fetch request allows to retrieve the receipt documents for a terminal transaction.") + +public class PaymentTerminalTransactionSummaryFetchRequest { + + @JsonProperty("format") + protected TerminalReceiptFormat format = null; + + + @JsonProperty("summaryId") + protected Long summaryId = null; + + + @JsonProperty("width") + protected Integer width = null; + + + + public PaymentTerminalTransactionSummaryFetchRequest format(TerminalReceiptFormat format) { + this.format = format; + return this; + } + + /** + * The format determines in what format the receipt will be returned in. + * @return format + **/ + @ApiModelProperty(required = true, value = "The format determines in what format the receipt will be returned in.") + public TerminalReceiptFormat getFormat() { + return format; + } + + public void setFormat(TerminalReceiptFormat format) { + this.format = format; + } + + + public PaymentTerminalTransactionSummaryFetchRequest summaryId(Long summaryId) { + this.summaryId = summaryId; + return this; + } + + /** + * The id of the transaction summary receipt whose content should be returned. + * @return summaryId + **/ + @ApiModelProperty(required = true, value = "The id of the transaction summary receipt whose content should be returned.") + public Long getSummaryId() { + return summaryId; + } + + public void setSummaryId(Long summaryId) { + this.summaryId = summaryId; + } + + + public PaymentTerminalTransactionSummaryFetchRequest width(Integer width) { + this.width = width; + return this; + } + + /** + * The width controls how width the document will be rendered. In case of the PDF format the width is in mm. In case of the text format the width is in the number of chars per line. + * @return width + **/ + @ApiModelProperty(value = "The width controls how width the document will be rendered. In case of the PDF format the width is in mm. In case of the text format the width is in the number of chars per line.") + public Integer getWidth() { + return width; + } + + public void setWidth(Integer width) { + this.width = width; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentTerminalTransactionSummaryFetchRequest paymentTerminalTransactionSummaryFetchRequest = (PaymentTerminalTransactionSummaryFetchRequest) o; + return Objects.equals(this.format, paymentTerminalTransactionSummaryFetchRequest.format) && + Objects.equals(this.summaryId, paymentTerminalTransactionSummaryFetchRequest.summaryId) && + Objects.equals(this.width, paymentTerminalTransactionSummaryFetchRequest.width); + } + + @Override + public int hashCode() { + return Objects.hash(format, summaryId, width); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentTerminalTransactionSummaryFetchRequest {\n"); + + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" summaryId: ").append(toIndentedString(summaryId)).append("\n"); + sb.append(" width: ").append(toIndentedString(width)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/RenderedTerminalTransactionSummary.java b/src/main/java/com/wallee/sdk/model/RenderedTerminalTransactionSummary.java new file mode 100644 index 00000000..2230badf --- /dev/null +++ b/src/main/java/com/wallee/sdk/model/RenderedTerminalTransactionSummary.java @@ -0,0 +1,120 @@ +/** +* 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.util.*; +import java.time.OffsetDateTime; + +/** + * + */ +@ApiModel(description = "") + +public class RenderedTerminalTransactionSummary { + + @JsonProperty("data") + protected byte[] data = null; + + + @JsonProperty("mimeType") + protected String mimeType = null; + + + + public RenderedTerminalTransactionSummary data(byte[] data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @ApiModelProperty(value = "") + public byte[] getData() { + return data; + } + + public void setData(byte[] data) { + this.data = data; + } + + + /** + * The mime type indicates the format of the receipt document. The mime type depends on the requested receipt format. + * @return mimeType + **/ + @ApiModelProperty(value = "The mime type indicates the format of the receipt document. The mime type depends on the requested receipt format.") + public String getMimeType() { + return mimeType; + } + + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RenderedTerminalTransactionSummary renderedTerminalTransactionSummary = (RenderedTerminalTransactionSummary) o; + return Arrays.equals(this.data, renderedTerminalTransactionSummary.data) && + Objects.equals(this.mimeType, renderedTerminalTransactionSummary.mimeType); + } + + @Override + public int hashCode() { + return Objects.hash(Arrays.hashCode(data), mimeType); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RenderedTerminalTransactionSummary {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" mimeType: ").append(toIndentedString(mimeType)).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 "); + } + +} + diff --git a/src/main/java/com/wallee/sdk/model/SpaceAddress.java b/src/main/java/com/wallee/sdk/model/SpaceAddress.java index 55ebd009..a226c62c 100644 --- a/src/main/java/com/wallee/sdk/model/SpaceAddress.java +++ b/src/main/java/com/wallee/sdk/model/SpaceAddress.java @@ -60,10 +60,18 @@ public class SpaceAddress { protected String givenName = null; + @JsonProperty("mobilePhoneNumber") + protected String mobilePhoneNumber = null; + + @JsonProperty("organizationName") protected String organizationName = null; + @JsonProperty("phoneNumber") + protected String phoneNumber = null; + + @JsonProperty("postalState") protected String postalState = null; @@ -149,6 +157,16 @@ public String getGivenName() { } + /** + * + * @return mobilePhoneNumber + **/ + @ApiModelProperty(value = "") + public String getMobilePhoneNumber() { + return mobilePhoneNumber; + } + + /** * * @return organizationName @@ -159,6 +177,16 @@ public String getOrganizationName() { } + /** + * + * @return phoneNumber + **/ + @ApiModelProperty(value = "") + public String getPhoneNumber() { + return phoneNumber; + } + + /** * * @return postalState @@ -235,7 +263,9 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.emailAddress, spaceAddress.emailAddress) && Objects.equals(this.familyName, spaceAddress.familyName) && Objects.equals(this.givenName, spaceAddress.givenName) && + Objects.equals(this.mobilePhoneNumber, spaceAddress.mobilePhoneNumber) && Objects.equals(this.organizationName, spaceAddress.organizationName) && + Objects.equals(this.phoneNumber, spaceAddress.phoneNumber) && Objects.equals(this.postalState, spaceAddress.postalState) && Objects.equals(this.postcode, spaceAddress.postcode) && Objects.equals(this.salesTaxNumber, spaceAddress.salesTaxNumber) && @@ -246,7 +276,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(city, country, dependentLocality, emailAddress, familyName, givenName, organizationName, postalState, postcode, salesTaxNumber, salutation, sortingCode, street); + return Objects.hash(city, country, dependentLocality, emailAddress, familyName, givenName, mobilePhoneNumber, organizationName, phoneNumber, postalState, postcode, salesTaxNumber, salutation, sortingCode, street); } @@ -261,7 +291,9 @@ public String toString() { sb.append(" emailAddress: ").append(toIndentedString(emailAddress)).append("\n"); sb.append(" familyName: ").append(toIndentedString(familyName)).append("\n"); sb.append(" givenName: ").append(toIndentedString(givenName)).append("\n"); + sb.append(" mobilePhoneNumber: ").append(toIndentedString(mobilePhoneNumber)).append("\n"); sb.append(" organizationName: ").append(toIndentedString(organizationName)).append("\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append(" postalState: ").append(toIndentedString(postalState)).append("\n"); sb.append(" postcode: ").append(toIndentedString(postcode)).append("\n"); sb.append(" salesTaxNumber: ").append(toIndentedString(salesTaxNumber)).append("\n"); diff --git a/src/main/java/com/wallee/sdk/model/SpaceAddressCreate.java b/src/main/java/com/wallee/sdk/model/SpaceAddressCreate.java index 6bd02f44..d029bf46 100644 --- a/src/main/java/com/wallee/sdk/model/SpaceAddressCreate.java +++ b/src/main/java/com/wallee/sdk/model/SpaceAddressCreate.java @@ -60,10 +60,18 @@ public class SpaceAddressCreate { protected String givenName = null; + @JsonProperty("mobilePhoneNumber") + protected String mobilePhoneNumber = null; + + @JsonProperty("organizationName") protected String organizationName = null; + @JsonProperty("phoneNumber") + protected String phoneNumber = null; + + @JsonProperty("postalState") protected String postalState = null; @@ -203,6 +211,25 @@ public void setGivenName(String givenName) { } + public SpaceAddressCreate mobilePhoneNumber(String mobilePhoneNumber) { + this.mobilePhoneNumber = mobilePhoneNumber; + return this; + } + + /** + * + * @return mobilePhoneNumber + **/ + @ApiModelProperty(value = "") + public String getMobilePhoneNumber() { + return mobilePhoneNumber; + } + + public void setMobilePhoneNumber(String mobilePhoneNumber) { + this.mobilePhoneNumber = mobilePhoneNumber; + } + + public SpaceAddressCreate organizationName(String organizationName) { this.organizationName = organizationName; return this; @@ -222,6 +249,25 @@ public void setOrganizationName(String organizationName) { } + public SpaceAddressCreate phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * + * @return phoneNumber + **/ + @ApiModelProperty(value = "") + public String getPhoneNumber() { + return phoneNumber; + } + + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + public SpaceAddressCreate postalState(String postalState) { this.postalState = postalState; return this; @@ -352,7 +398,9 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.emailAddress, spaceAddressCreate.emailAddress) && Objects.equals(this.familyName, spaceAddressCreate.familyName) && Objects.equals(this.givenName, spaceAddressCreate.givenName) && + Objects.equals(this.mobilePhoneNumber, spaceAddressCreate.mobilePhoneNumber) && Objects.equals(this.organizationName, spaceAddressCreate.organizationName) && + Objects.equals(this.phoneNumber, spaceAddressCreate.phoneNumber) && Objects.equals(this.postalState, spaceAddressCreate.postalState) && Objects.equals(this.postcode, spaceAddressCreate.postcode) && Objects.equals(this.salesTaxNumber, spaceAddressCreate.salesTaxNumber) && @@ -363,7 +411,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(city, country, dependentLocality, emailAddress, familyName, givenName, organizationName, postalState, postcode, salesTaxNumber, salutation, sortingCode, street); + return Objects.hash(city, country, dependentLocality, emailAddress, familyName, givenName, mobilePhoneNumber, organizationName, phoneNumber, postalState, postcode, salesTaxNumber, salutation, sortingCode, street); } @@ -378,7 +426,9 @@ public String toString() { sb.append(" emailAddress: ").append(toIndentedString(emailAddress)).append("\n"); sb.append(" familyName: ").append(toIndentedString(familyName)).append("\n"); sb.append(" givenName: ").append(toIndentedString(givenName)).append("\n"); + sb.append(" mobilePhoneNumber: ").append(toIndentedString(mobilePhoneNumber)).append("\n"); sb.append(" organizationName: ").append(toIndentedString(organizationName)).append("\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); sb.append(" postalState: ").append(toIndentedString(postalState)).append("\n"); sb.append(" postcode: ").append(toIndentedString(postcode)).append("\n"); sb.append(" salesTaxNumber: ").append(toIndentedString(salesTaxNumber)).append("\n"); diff --git a/src/main/java/com/wallee/sdk/model/SubscriptionProductVersionRetirement.java b/src/main/java/com/wallee/sdk/model/SubscriptionProductVersionRetirement.java index 4e4bb32c..0c94eaa8 100644 --- a/src/main/java/com/wallee/sdk/model/SubscriptionProductVersionRetirement.java +++ b/src/main/java/com/wallee/sdk/model/SubscriptionProductVersionRetirement.java @@ -119,10 +119,10 @@ public Boolean isRespectTerminiationPeriodsEnabled() { /** - * + * When a target product is not chosen, all customers with the retired product will be terminated. * @return targetProduct **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "When a target product is not chosen, all customers with the retired product will be terminated.") public SubscriptionProduct getTargetProduct() { return targetProduct; } diff --git a/src/main/java/com/wallee/sdk/model/SubscriptionProductVersionRetirementCreate.java b/src/main/java/com/wallee/sdk/model/SubscriptionProductVersionRetirementCreate.java index bbc9fd88..fc52e408 100644 --- a/src/main/java/com/wallee/sdk/model/SubscriptionProductVersionRetirementCreate.java +++ b/src/main/java/com/wallee/sdk/model/SubscriptionProductVersionRetirementCreate.java @@ -93,10 +93,10 @@ public SubscriptionProductVersionRetirementCreate targetProduct(Long targetProdu } /** - * + * When a target product is not chosen, all customers with the retired product will be terminated. * @return targetProduct **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "When a target product is not chosen, all customers with the retired product will be terminated.") public Long getTargetProduct() { return targetProduct; } diff --git a/src/main/java/com/wallee/sdk/model/Transaction.java b/src/main/java/com/wallee/sdk/model/Transaction.java index 8b118928..6b8d3248 100644 --- a/src/main/java/com/wallee/sdk/model/Transaction.java +++ b/src/main/java/com/wallee/sdk/model/Transaction.java @@ -334,6 +334,10 @@ public class Transaction { protected String windowWidth = null; + @JsonProperty("yearsToKeep") + protected Integer yearsToKeep = null; + + /** * @@ -566,10 +570,10 @@ public String getCustomerId() { /** - * The customer's presence indicates what kind of authentication methods can be used during the authorization of the transaction. If no value is provided, 'Virtually Present' is used by default. + * The customer's presence indicates what kind of authentication method was finally used during authorization of the transaction. If no value is provided, 'Virtually Present' is used by default. * @return customersPresence **/ - @ApiModelProperty(value = "The customer's presence indicates what kind of authentication methods can be used during the authorization of the transaction. If no value is provided, 'Virtually Present' is used by default.") + @ApiModelProperty(value = "The customer's presence indicates what kind of authentication method was finally used during authorization of the transaction. If no value is provided, 'Virtually Present' is used by default.") public CustomersPresence getCustomersPresence() { return customersPresence; } @@ -1025,6 +1029,16 @@ public String getWindowWidth() { } + /** + * The number of years the transaction will be stored after it has been authorized. + * @return yearsToKeep + **/ + @ApiModelProperty(value = "The number of years the transaction will be stored after it has been authorized.") + public Integer getYearsToKeep() { + return yearsToKeep; + } + + @Override public boolean equals(java.lang.Object o) { @@ -1103,12 +1117,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.userInterfaceType, transaction.userInterfaceType) && Objects.equals(this.version, transaction.version) && Objects.equals(this.windowHeight, transaction.windowHeight) && - Objects.equals(this.windowWidth, transaction.windowWidth); + Objects.equals(this.windowWidth, transaction.windowWidth) && + Objects.equals(this.yearsToKeep, transaction.yearsToKeep); } @Override public int hashCode() { - return Objects.hash(acceptHeader, acceptLanguageHeader, allowedPaymentMethodBrands, allowedPaymentMethodConfigurations, authorizationAmount, authorizationEnvironment, authorizationSalesChannel, authorizationTimeoutOn, authorizedOn, autoConfirmationEnabled, billingAddress, chargeRetryEnabled, completedAmount, completedOn, completionBehavior, completionTimeoutOn, confirmedBy, confirmedOn, createdBy, createdOn, currency, customerEmailAddress, customerId, customersPresence, deliveryDecisionMadeOn, deviceSessionIdentifier, emailsDisabled, endOfLife, environment, environmentSelectionStrategy, failedOn, failedUrl, failureReason, group, id, internetProtocolAddress, internetProtocolAddressCountry, invoiceMerchantReference, javaEnabled, language, lineItems, linkedSpaceId, merchantReference, metaData, parent, paymentConnectorConfiguration, plannedPurgeDate, processingOn, refundedAmount, screenColorDepth, screenHeight, screenWidth, shippingAddress, shippingMethod, spaceViewId, state, successUrl, terminal, timeZone, token, tokenizationMode, totalAppliedFees, totalSettledAmount, userAgentHeader, userFailureMessage, userInterfaceType, version, windowHeight, windowWidth); + return Objects.hash(acceptHeader, acceptLanguageHeader, allowedPaymentMethodBrands, allowedPaymentMethodConfigurations, authorizationAmount, authorizationEnvironment, authorizationSalesChannel, authorizationTimeoutOn, authorizedOn, autoConfirmationEnabled, billingAddress, chargeRetryEnabled, completedAmount, completedOn, completionBehavior, completionTimeoutOn, confirmedBy, confirmedOn, createdBy, createdOn, currency, customerEmailAddress, customerId, customersPresence, deliveryDecisionMadeOn, deviceSessionIdentifier, emailsDisabled, endOfLife, environment, environmentSelectionStrategy, failedOn, failedUrl, failureReason, group, id, internetProtocolAddress, internetProtocolAddressCountry, invoiceMerchantReference, javaEnabled, language, lineItems, linkedSpaceId, merchantReference, metaData, parent, paymentConnectorConfiguration, plannedPurgeDate, processingOn, refundedAmount, screenColorDepth, screenHeight, screenWidth, shippingAddress, shippingMethod, spaceViewId, state, successUrl, terminal, timeZone, token, tokenizationMode, totalAppliedFees, totalSettledAmount, userAgentHeader, userFailureMessage, userInterfaceType, version, windowHeight, windowWidth, yearsToKeep); } @@ -1186,6 +1201,7 @@ public String toString() { sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" windowHeight: ").append(toIndentedString(windowHeight)).append("\n"); sb.append(" windowWidth: ").append(toIndentedString(windowWidth)).append("\n"); + sb.append(" yearsToKeep: ").append(toIndentedString(yearsToKeep)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/wallee/sdk/model/TransactionCreate.java b/src/main/java/com/wallee/sdk/model/TransactionCreate.java index a002d5cb..d07583d1 100644 --- a/src/main/java/com/wallee/sdk/model/TransactionCreate.java +++ b/src/main/java/com/wallee/sdk/model/TransactionCreate.java @@ -119,10 +119,10 @@ public TransactionCreate customersPresence(CustomersPresence customersPresence) } /** - * The customer's presence indicates what kind of authentication methods can be used during the authorization of the transaction. If no value is provided, 'Virtually Present' is used by default. + * The customer's presence indicates what kind of authentication method was finally used during authorization of the transaction. If no value is provided, 'Virtually Present' is used by default. * @return customersPresence **/ - @ApiModelProperty(value = "The customer's presence indicates what kind of authentication methods can be used during the authorization of the transaction. If no value is provided, 'Virtually Present' is used by default.") + @ApiModelProperty(value = "The customer's presence indicates what kind of authentication method was finally used during authorization of the transaction. If no value is provided, 'Virtually Present' is used by default.") public CustomersPresence getCustomersPresence() { return customersPresence; } diff --git a/src/main/java/com/wallee/sdk/model/TransactionLineItemUpdateRequest.java b/src/main/java/com/wallee/sdk/model/TransactionLineItemUpdateRequest.java deleted file mode 100644 index bbdb72e1..00000000 --- a/src/main/java/com/wallee/sdk/model/TransactionLineItemUpdateRequest.java +++ /dev/null @@ -1,140 +0,0 @@ -/** -* 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.LineItemCreate; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import java.util.*; -import java.time.OffsetDateTime; - -/** - * - */ -@ApiModel(description = "") - -public class TransactionLineItemUpdateRequest { - - @JsonProperty("newLineItems") - protected List newLineItems = null; - - - @JsonProperty("transactionId") - protected Long transactionId = null; - - - - public TransactionLineItemUpdateRequest newLineItems(List newLineItems) { - this.newLineItems = newLineItems; - return this; - } - - public TransactionLineItemUpdateRequest addNewLineItemsItem(LineItemCreate newLineItemsItem) { - if (this.newLineItems == null) { - this.newLineItems = new ArrayList<>(); - } - this.newLineItems.add(newLineItemsItem); - return this; - } - - /** - * - * @return newLineItems - **/ - @ApiModelProperty(value = "") - public List getNewLineItems() { - return newLineItems; - } - - public void setNewLineItems(List newLineItems) { - this.newLineItems = newLineItems; - } - - - public TransactionLineItemUpdateRequest transactionId(Long transactionId) { - this.transactionId = transactionId; - return this; - } - - /** - * - * @return transactionId - **/ - @ApiModelProperty(required = true, value = "") - public Long getTransactionId() { - return transactionId; - } - - public void setTransactionId(Long transactionId) { - this.transactionId = transactionId; - } - - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TransactionLineItemUpdateRequest transactionLineItemUpdateRequest = (TransactionLineItemUpdateRequest) o; - return Objects.equals(this.newLineItems, transactionLineItemUpdateRequest.newLineItems) && - Objects.equals(this.transactionId, transactionLineItemUpdateRequest.transactionId); - } - - @Override - public int hashCode() { - return Objects.hash(newLineItems, transactionId); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TransactionLineItemUpdateRequest {\n"); - - sb.append(" newLineItems: ").append(toIndentedString(newLineItems)).append("\n"); - sb.append(" transactionId: ").append(toIndentedString(transactionId)).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 "); - } - -} - diff --git a/src/main/java/com/wallee/sdk/model/TransactionLineItemVersion.java b/src/main/java/com/wallee/sdk/model/TransactionLineItemVersion.java index 429e7c06..fb5f2e02 100644 --- a/src/main/java/com/wallee/sdk/model/TransactionLineItemVersion.java +++ b/src/main/java/com/wallee/sdk/model/TransactionLineItemVersion.java @@ -24,9 +24,12 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import com.wallee.sdk.model.FailureReason; +import com.wallee.sdk.model.Label; import com.wallee.sdk.model.LineItem; import com.wallee.sdk.model.Transaction; import com.wallee.sdk.model.TransactionAwareEntity; +import com.wallee.sdk.model.TransactionLineItemVersionState; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; @@ -55,6 +58,22 @@ public class TransactionLineItemVersion extends TransactionAwareEntity { protected OffsetDateTime createdOn = null; + @JsonProperty("externalId") + protected String externalId = null; + + + @JsonProperty("failedOn") + protected OffsetDateTime failedOn = null; + + + @JsonProperty("failureReason") + protected FailureReason failureReason = null; + + + @JsonProperty("labels") + protected List