com.wallee.sdk.model.TransactionPending Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wallee-java-sdk Show documentation
Show all versions of wallee-java-sdk Show documentation
The SDK for simplifying the integration with wallee API.
/**
* 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.AbstractTransactionPending;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.*;
import java.time.OffsetDateTime;
/**
*
*/
@ApiModel(description = "")
public class TransactionPending extends AbstractTransactionPending {
@JsonProperty("id")
protected Long id = null;
@JsonProperty("version")
protected Long version = null;
public TransactionPending id(Long id) {
this.id = id;
return this;
}
/**
* The ID is the primary key of the entity. The ID identifies the entity uniquely.
* @return id
**/
@ApiModelProperty(required = true, value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public TransactionPending version(Long version) {
this.version = version;
return this;
}
/**
* The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
* @return version
**/
@ApiModelProperty(required = true, value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
public Long getVersion() {
return version;
}
public void setVersion(Long version) {
this.version = version;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TransactionPending transactionPending = (TransactionPending) o;
return Objects.equals(this.allowedPaymentMethodBrands, transactionPending.allowedPaymentMethodBrands) &&
Objects.equals(this.allowedPaymentMethodConfigurations, transactionPending.allowedPaymentMethodConfigurations) &&
Objects.equals(this.billingAddress, transactionPending.billingAddress) &&
Objects.equals(this.completionBehavior, transactionPending.completionBehavior) &&
Objects.equals(this.currency, transactionPending.currency) &&
Objects.equals(this.customerEmailAddress, transactionPending.customerEmailAddress) &&
Objects.equals(this.customerId, transactionPending.customerId) &&
Objects.equals(this.failedUrl, transactionPending.failedUrl) &&
Objects.equals(this.invoiceMerchantReference, transactionPending.invoiceMerchantReference) &&
Objects.equals(this.language, transactionPending.language) &&
Objects.equals(this.lineItems, transactionPending.lineItems) &&
Objects.equals(this.merchantReference, transactionPending.merchantReference) &&
Objects.equals(this.metaData, transactionPending.metaData) &&
Objects.equals(this.shippingAddress, transactionPending.shippingAddress) &&
Objects.equals(this.shippingMethod, transactionPending.shippingMethod) &&
Objects.equals(this.successUrl, transactionPending.successUrl) &&
Objects.equals(this.timeZone, transactionPending.timeZone) &&
Objects.equals(this.token, transactionPending.token) &&
Objects.equals(this.tokenizationMode, transactionPending.tokenizationMode) &&
Objects.equals(this.id, transactionPending.id) &&
Objects.equals(this.version, transactionPending.version) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(allowedPaymentMethodBrands, allowedPaymentMethodConfigurations, billingAddress, completionBehavior, currency, customerEmailAddress, customerId, failedUrl, invoiceMerchantReference, language, lineItems, merchantReference, metaData, shippingAddress, shippingMethod, successUrl, timeZone, token, tokenizationMode, id, version, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TransactionPending {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" allowedPaymentMethodBrands: ").append(toIndentedString(allowedPaymentMethodBrands)).append("\n");
sb.append(" allowedPaymentMethodConfigurations: ").append(toIndentedString(allowedPaymentMethodConfigurations)).append("\n");
sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n");
sb.append(" completionBehavior: ").append(toIndentedString(completionBehavior)).append("\n");
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
sb.append(" customerEmailAddress: ").append(toIndentedString(customerEmailAddress)).append("\n");
sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n");
sb.append(" failedUrl: ").append(toIndentedString(failedUrl)).append("\n");
sb.append(" invoiceMerchantReference: ").append(toIndentedString(invoiceMerchantReference)).append("\n");
sb.append(" language: ").append(toIndentedString(language)).append("\n");
sb.append(" lineItems: ").append(toIndentedString(lineItems)).append("\n");
sb.append(" merchantReference: ").append(toIndentedString(merchantReference)).append("\n");
sb.append(" metaData: ").append(toIndentedString(metaData)).append("\n");
sb.append(" shippingAddress: ").append(toIndentedString(shippingAddress)).append("\n");
sb.append(" shippingMethod: ").append(toIndentedString(shippingMethod)).append("\n");
sb.append(" successUrl: ").append(toIndentedString(successUrl)).append("\n");
sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n");
sb.append(" token: ").append(toIndentedString(token)).append("\n");
sb.append(" tokenizationMode: ").append(toIndentedString(tokenizationMode)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy