com.wallee.sdk.model.TransactionInvoice 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.
The newest version!
/**
* 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.Address;
import com.wallee.sdk.model.Environment;
import com.wallee.sdk.model.LineItem;
import com.wallee.sdk.model.TransactionAwareEntity;
import com.wallee.sdk.model.TransactionCompletion;
import com.wallee.sdk.model.TransactionInvoiceState;
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;
/**
* The transaction invoice represents the invoice document for a particular transaction.
*/
@ApiModel(description = "The transaction invoice represents the invoice document for a particular transaction.")
public class TransactionInvoice extends TransactionAwareEntity {
@JsonProperty("amount")
protected BigDecimal amount = null;
@JsonProperty("billingAddress")
protected Address billingAddress = null;
@JsonProperty("completion")
protected TransactionCompletion completion = null;
@JsonProperty("createdOn")
protected OffsetDateTime createdOn = null;
@JsonProperty("derecognizedBy")
protected Long derecognizedBy = null;
@JsonProperty("derecognizedOn")
protected OffsetDateTime derecognizedOn = null;
@JsonProperty("dueOn")
protected OffsetDateTime dueOn = null;
@JsonProperty("environment")
protected Environment environment = null;
@JsonProperty("externalId")
protected String externalId = null;
@JsonProperty("language")
protected String language = null;
@JsonProperty("lineItems")
protected List lineItems = null;
@JsonProperty("merchantReference")
protected String merchantReference = null;
@JsonProperty("outstandingAmount")
protected BigDecimal outstandingAmount = null;
@JsonProperty("paidOn")
protected OffsetDateTime paidOn = null;
@JsonProperty("plannedPurgeDate")
protected OffsetDateTime plannedPurgeDate = null;
@JsonProperty("spaceViewId")
protected Long spaceViewId = null;
@JsonProperty("state")
protected TransactionInvoiceState state = null;
@JsonProperty("taxAmount")
protected BigDecimal taxAmount = null;
@JsonProperty("timeZone")
protected String timeZone = null;
@JsonProperty("version")
protected Integer version = null;
/**
*
* @return amount
**/
@ApiModelProperty(value = "")
public BigDecimal getAmount() {
return amount;
}
/**
*
* @return billingAddress
**/
@ApiModelProperty(value = "")
public Address getBillingAddress() {
return billingAddress;
}
/**
*
* @return completion
**/
@ApiModelProperty(value = "")
public TransactionCompletion getCompletion() {
return completion;
}
/**
* The date on which the invoice is created on.
* @return createdOn
**/
@ApiModelProperty(value = "The date on which the invoice is created on.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
/**
* The id of the user which marked the invoice as derecognized.
* @return derecognizedBy
**/
@ApiModelProperty(value = "The id of the user which marked the invoice as derecognized.")
public Long getDerecognizedBy() {
return derecognizedBy;
}
/**
* The date on which the invoice is marked as derecognized.
* @return derecognizedOn
**/
@ApiModelProperty(value = "The date on which the invoice is marked as derecognized.")
public OffsetDateTime getDerecognizedOn() {
return derecognizedOn;
}
/**
* The date on which the invoice should be paid on.
* @return dueOn
**/
@ApiModelProperty(value = "The date on which the invoice should be paid on.")
public OffsetDateTime getDueOn() {
return dueOn;
}
/**
*
* @return environment
**/
@ApiModelProperty(value = "")
public Environment getEnvironment() {
return environment;
}
/**
* The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.
* @return externalId
**/
@ApiModelProperty(value = "The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity.")
public String getExternalId() {
return externalId;
}
/**
* The language that is linked to the object.
* @return language
**/
@ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
/**
*
* @return lineItems
**/
@ApiModelProperty(value = "")
public List getLineItems() {
return lineItems;
}
/**
*
* @return merchantReference
**/
@ApiModelProperty(value = "")
public String getMerchantReference() {
return merchantReference;
}
/**
* The outstanding amount indicates how much the buyer owes the merchant. A negative amount indicates that the invoice is overpaid.
* @return outstandingAmount
**/
@ApiModelProperty(value = "The outstanding amount indicates how much the buyer owes the merchant. A negative amount indicates that the invoice is overpaid.")
public BigDecimal getOutstandingAmount() {
return outstandingAmount;
}
/**
* The date on which the invoice is marked as paid. Eventually this date lags behind of the actual paid date.
* @return paidOn
**/
@ApiModelProperty(value = "The date on which the invoice is marked as paid. Eventually this date lags behind of the actual paid date.")
public OffsetDateTime getPaidOn() {
return paidOn;
}
/**
* The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
@ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
* The ID of the space view this object is linked to.
* @return spaceViewId
**/
@ApiModelProperty(value = "The ID of the space view this object is linked to.")
public Long getSpaceViewId() {
return spaceViewId;
}
/**
* The object's current state.
* @return state
**/
@ApiModelProperty(value = "The object's current state.")
public TransactionInvoiceState getState() {
return state;
}
/**
*
* @return taxAmount
**/
@ApiModelProperty(value = "")
public BigDecimal getTaxAmount() {
return taxAmount;
}
/**
*
* @return timeZone
**/
@ApiModelProperty(value = "")
public String getTimeZone() {
return timeZone;
}
/**
* The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
@ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
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;
}
TransactionInvoice transactionInvoice = (TransactionInvoice) o;
return Objects.equals(this.id, transactionInvoice.id) &&
Objects.equals(this.linkedSpaceId, transactionInvoice.linkedSpaceId) &&
Objects.equals(this.linkedTransaction, transactionInvoice.linkedTransaction) &&
Objects.equals(this.amount, transactionInvoice.amount) &&
Objects.equals(this.billingAddress, transactionInvoice.billingAddress) &&
Objects.equals(this.completion, transactionInvoice.completion) &&
Objects.equals(this.createdOn, transactionInvoice.createdOn) &&
Objects.equals(this.derecognizedBy, transactionInvoice.derecognizedBy) &&
Objects.equals(this.derecognizedOn, transactionInvoice.derecognizedOn) &&
Objects.equals(this.dueOn, transactionInvoice.dueOn) &&
Objects.equals(this.environment, transactionInvoice.environment) &&
Objects.equals(this.externalId, transactionInvoice.externalId) &&
Objects.equals(this.language, transactionInvoice.language) &&
Objects.equals(this.lineItems, transactionInvoice.lineItems) &&
Objects.equals(this.merchantReference, transactionInvoice.merchantReference) &&
Objects.equals(this.outstandingAmount, transactionInvoice.outstandingAmount) &&
Objects.equals(this.paidOn, transactionInvoice.paidOn) &&
Objects.equals(this.plannedPurgeDate, transactionInvoice.plannedPurgeDate) &&
Objects.equals(this.spaceViewId, transactionInvoice.spaceViewId) &&
Objects.equals(this.state, transactionInvoice.state) &&
Objects.equals(this.taxAmount, transactionInvoice.taxAmount) &&
Objects.equals(this.timeZone, transactionInvoice.timeZone) &&
Objects.equals(this.version, transactionInvoice.version) &&
super.equals(o);
}
@Override
public int hashCode() {
return Objects.hash(id, linkedSpaceId, linkedTransaction, amount, billingAddress, completion, createdOn, derecognizedBy, derecognizedOn, dueOn, environment, externalId, language, lineItems, merchantReference, outstandingAmount, paidOn, plannedPurgeDate, spaceViewId, state, taxAmount, timeZone, version, super.hashCode());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TransactionInvoice {\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(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n");
sb.append(" completion: ").append(toIndentedString(completion)).append("\n");
sb.append(" createdOn: ").append(toIndentedString(createdOn)).append("\n");
sb.append(" derecognizedBy: ").append(toIndentedString(derecognizedBy)).append("\n");
sb.append(" derecognizedOn: ").append(toIndentedString(derecognizedOn)).append("\n");
sb.append(" dueOn: ").append(toIndentedString(dueOn)).append("\n");
sb.append(" environment: ").append(toIndentedString(environment)).append("\n");
sb.append(" externalId: ").append(toIndentedString(externalId)).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(" outstandingAmount: ").append(toIndentedString(outstandingAmount)).append("\n");
sb.append(" paidOn: ").append(toIndentedString(paidOn)).append("\n");
sb.append(" plannedPurgeDate: ").append(toIndentedString(plannedPurgeDate)).append("\n");
sb.append(" spaceViewId: ").append(toIndentedString(spaceViewId)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" taxAmount: ").append(toIndentedString(taxAmount)).append("\n");
sb.append(" timeZone: ").append(toIndentedString(timeZone)).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