Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.swagger.client.model.Transaction Maven / Gradle / Ivy
/*
* finAPI RESTful Services
* finAPI RESTful Services
*
* OpenAPI spec version: v1.64.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.swagger.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.client.model.Category;
import io.swagger.client.model.Label;
import io.swagger.client.model.PaypalTransactionData;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
/**
* Container for a transaction's data
*/
@ApiModel(description = "Container for a transaction's data")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-05T12:19:21.458Z")
public class Transaction {
@SerializedName("id")
private Long id = null;
@SerializedName("parentId")
private Long parentId = null;
@SerializedName("accountId")
private Long accountId = null;
@SerializedName("valueDate")
private String valueDate = null;
@SerializedName("bankBookingDate")
private String bankBookingDate = null;
@SerializedName("finapiBookingDate")
private String finapiBookingDate = null;
@SerializedName("amount")
private BigDecimal amount = null;
@SerializedName("purpose")
private String purpose = null;
@SerializedName("counterpartName")
private String counterpartName = null;
@SerializedName("counterpartAccountNumber")
private String counterpartAccountNumber = null;
@SerializedName("counterpartIban")
private String counterpartIban = null;
@SerializedName("counterpartBlz")
private String counterpartBlz = null;
@SerializedName("counterpartBic")
private String counterpartBic = null;
@SerializedName("counterpartBankName")
private String counterpartBankName = null;
@SerializedName("counterpartMandateReference")
private String counterpartMandateReference = null;
@SerializedName("counterpartCustomerReference")
private String counterpartCustomerReference = null;
@SerializedName("counterpartCreditorId")
private String counterpartCreditorId = null;
@SerializedName("type")
private String type = null;
@SerializedName("typeCodeZka")
private String typeCodeZka = null;
@SerializedName("typeCodeSwift")
private String typeCodeSwift = null;
@SerializedName("sepaPurposeCode")
private String sepaPurposeCode = null;
@SerializedName("primanota")
private String primanota = null;
@SerializedName("category")
private Category category = null;
@SerializedName("labels")
private List labels = null;
@SerializedName("isPotentialDuplicate")
private Boolean isPotentialDuplicate = null;
@SerializedName("isAdjustingEntry")
private Boolean isAdjustingEntry = null;
@SerializedName("isNew")
private Boolean isNew = null;
@SerializedName("importDate")
private String importDate = null;
@SerializedName("children")
private List children = null;
@SerializedName("paypalData")
private PaypalTransactionData paypalData = null;
@SerializedName("endToEndReference")
private String endToEndReference = null;
public Transaction id(Long id) {
this.id = id;
return this;
}
/**
* Transaction identifier
* @return id
**/
@ApiModelProperty(example = "1", required = true, value = "Transaction identifier")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Transaction parentId(Long parentId) {
this.parentId = parentId;
return this;
}
/**
* Parent transaction identifier
* @return parentId
**/
@ApiModelProperty(example = "2", value = "Parent transaction identifier")
public Long getParentId() {
return parentId;
}
public void setParentId(Long parentId) {
this.parentId = parentId;
}
public Transaction accountId(Long accountId) {
this.accountId = accountId;
return this;
}
/**
* Account identifier
* @return accountId
**/
@ApiModelProperty(example = "1", required = true, value = "Account identifier")
public Long getAccountId() {
return accountId;
}
public void setAccountId(Long accountId) {
this.accountId = accountId;
}
public Transaction valueDate(String valueDate) {
this.valueDate = valueDate;
return this;
}
/**
* Value date in the format 'YYYY-MM-DD HH:MM:SS.SSS' (german time).
* @return valueDate
**/
@ApiModelProperty(example = "2018-01-01 00:00:00.000", required = true, value = "Value date in the format 'YYYY-MM-DD HH:MM:SS.SSS' (german time).")
public String getValueDate() {
return valueDate;
}
public void setValueDate(String valueDate) {
this.valueDate = valueDate;
}
public Transaction bankBookingDate(String bankBookingDate) {
this.bankBookingDate = bankBookingDate;
return this;
}
/**
* Bank booking date in the format 'YYYY-MM-DD HH:MM:SS.SSS' (german time).
* @return bankBookingDate
**/
@ApiModelProperty(example = "2018-01-01 00.00.00.000", required = true, value = "Bank booking date in the format 'YYYY-MM-DD HH:MM:SS.SSS' (german time).")
public String getBankBookingDate() {
return bankBookingDate;
}
public void setBankBookingDate(String bankBookingDate) {
this.bankBookingDate = bankBookingDate;
}
public Transaction finapiBookingDate(String finapiBookingDate) {
this.finapiBookingDate = finapiBookingDate;
return this;
}
/**
* finAPI Booking date in the format 'YYYY-MM-DD HH:MM:SS.SSS' (german time). NOTE: In some cases, banks may deliver transactions that are booked in future, but already included in the current account balance. To keep the account balance consistent with the set of transactions, such \"future transactions\" will be imported with their finapiBookingDate set to the current date (i.e.: date of import). The finapiBookingDate will automatically get adjusted towards the bankBookingDate each time the associated bank account is updated. Example: A transaction is imported on July, 3rd, with a bank reported booking date of July, 6th. The transaction will be imported with its finapiBookingDate set to July, 3rd. Then, on July 4th, the associated account is updated. During this update, the transaction's finapiBookingDate will be automatically adjusted to July 4th. This adjustment of the finapiBookingDate takes place on each update until the bank account is updated on July 6th or later, in which case the transaction's finapiBookingDate will be adjusted to its final value, July 6th.<br/> The finapiBookingDate is the date that is used by the finAPI PFM services. E.g. when you calculate the spendings of an account for the current month, and have a transaction with finapiBookingDate in the current month but bankBookingDate at the beginning of the next month, then this transaction is included in the calculations (as the bank has this transaction's amount included in the current account balance as well).
* @return finapiBookingDate
**/
@ApiModelProperty(example = "2018-01-01 00:00:00.000", required = true, value = "finAPI Booking date in the format 'YYYY-MM-DD HH:MM:SS.SSS' (german time). NOTE: In some cases, banks may deliver transactions that are booked in future, but already included in the current account balance. To keep the account balance consistent with the set of transactions, such \"future transactions\" will be imported with their finapiBookingDate set to the current date (i.e.: date of import). The finapiBookingDate will automatically get adjusted towards the bankBookingDate each time the associated bank account is updated. Example: A transaction is imported on July, 3rd, with a bank reported booking date of July, 6th. The transaction will be imported with its finapiBookingDate set to July, 3rd. Then, on July 4th, the associated account is updated. During this update, the transaction's finapiBookingDate will be automatically adjusted to July 4th. This adjustment of the finapiBookingDate takes place on each update until the bank account is updated on July 6th or later, in which case the transaction's finapiBookingDate will be adjusted to its final value, July 6th. The finapiBookingDate is the date that is used by the finAPI PFM services. E.g. when you calculate the spendings of an account for the current month, and have a transaction with finapiBookingDate in the current month but bankBookingDate at the beginning of the next month, then this transaction is included in the calculations (as the bank has this transaction's amount included in the current account balance as well).")
public String getFinapiBookingDate() {
return finapiBookingDate;
}
public void setFinapiBookingDate(String finapiBookingDate) {
this.finapiBookingDate = finapiBookingDate;
}
public Transaction amount(BigDecimal amount) {
this.amount = amount;
return this;
}
/**
* Transaction amount
* @return amount
**/
@ApiModelProperty(example = "-99.99", required = true, value = "Transaction amount")
public BigDecimal getAmount() {
return amount;
}
public void setAmount(BigDecimal amount) {
this.amount = amount;
}
public Transaction purpose(String purpose) {
this.purpose = purpose;
return this;
}
/**
* Transaction purpose. Maximum length: 2000
* @return purpose
**/
@ApiModelProperty(example = "Restaurantbesuch", value = "Transaction purpose. Maximum length: 2000")
public String getPurpose() {
return purpose;
}
public void setPurpose(String purpose) {
this.purpose = purpose;
}
public Transaction counterpartName(String counterpartName) {
this.counterpartName = counterpartName;
return this;
}
/**
* Counterpart name. Maximum length: 80
* @return counterpartName
**/
@ApiModelProperty(example = "Bar Centrale", value = "Counterpart name. Maximum length: 80")
public String getCounterpartName() {
return counterpartName;
}
public void setCounterpartName(String counterpartName) {
this.counterpartName = counterpartName;
}
public Transaction counterpartAccountNumber(String counterpartAccountNumber) {
this.counterpartAccountNumber = counterpartAccountNumber;
return this;
}
/**
* Counterpart account number
* @return counterpartAccountNumber
**/
@ApiModelProperty(example = "0061110500", value = "Counterpart account number")
public String getCounterpartAccountNumber() {
return counterpartAccountNumber;
}
public void setCounterpartAccountNumber(String counterpartAccountNumber) {
this.counterpartAccountNumber = counterpartAccountNumber;
}
public Transaction counterpartIban(String counterpartIban) {
this.counterpartIban = counterpartIban;
return this;
}
/**
* Counterpart IBAN
* @return counterpartIban
**/
@ApiModelProperty(example = "DE13700800000061110500", value = "Counterpart IBAN")
public String getCounterpartIban() {
return counterpartIban;
}
public void setCounterpartIban(String counterpartIban) {
this.counterpartIban = counterpartIban;
}
public Transaction counterpartBlz(String counterpartBlz) {
this.counterpartBlz = counterpartBlz;
return this;
}
/**
* Counterpart BLZ
* @return counterpartBlz
**/
@ApiModelProperty(example = "70080000", value = "Counterpart BLZ")
public String getCounterpartBlz() {
return counterpartBlz;
}
public void setCounterpartBlz(String counterpartBlz) {
this.counterpartBlz = counterpartBlz;
}
public Transaction counterpartBic(String counterpartBic) {
this.counterpartBic = counterpartBic;
return this;
}
/**
* Counterpart BIC
* @return counterpartBic
**/
@ApiModelProperty(example = "DRESDEFF700", value = "Counterpart BIC")
public String getCounterpartBic() {
return counterpartBic;
}
public void setCounterpartBic(String counterpartBic) {
this.counterpartBic = counterpartBic;
}
public Transaction counterpartBankName(String counterpartBankName) {
this.counterpartBankName = counterpartBankName;
return this;
}
/**
* Counterpart Bank name
* @return counterpartBankName
**/
@ApiModelProperty(example = "Commerzbank vormals Dresdner Bank", value = "Counterpart Bank name")
public String getCounterpartBankName() {
return counterpartBankName;
}
public void setCounterpartBankName(String counterpartBankName) {
this.counterpartBankName = counterpartBankName;
}
public Transaction counterpartMandateReference(String counterpartMandateReference) {
this.counterpartMandateReference = counterpartMandateReference;
return this;
}
/**
* The mandate reference of the counterpart
* @return counterpartMandateReference
**/
@ApiModelProperty(example = "MR123", value = "The mandate reference of the counterpart")
public String getCounterpartMandateReference() {
return counterpartMandateReference;
}
public void setCounterpartMandateReference(String counterpartMandateReference) {
this.counterpartMandateReference = counterpartMandateReference;
}
public Transaction counterpartCustomerReference(String counterpartCustomerReference) {
this.counterpartCustomerReference = counterpartCustomerReference;
return this;
}
/**
* The customer reference of the counterpart
* @return counterpartCustomerReference
**/
@ApiModelProperty(example = "CUR123", value = "The customer reference of the counterpart")
public String getCounterpartCustomerReference() {
return counterpartCustomerReference;
}
public void setCounterpartCustomerReference(String counterpartCustomerReference) {
this.counterpartCustomerReference = counterpartCustomerReference;
}
public Transaction counterpartCreditorId(String counterpartCreditorId) {
this.counterpartCreditorId = counterpartCreditorId;
return this;
}
/**
* The creditor ID of the counterpart
* @return counterpartCreditorId
**/
@ApiModelProperty(example = "CRI123", value = "The creditor ID of the counterpart")
public String getCounterpartCreditorId() {
return counterpartCreditorId;
}
public void setCounterpartCreditorId(String counterpartCreditorId) {
this.counterpartCreditorId = counterpartCreditorId;
}
public Transaction type(String type) {
this.type = type;
return this;
}
/**
* Transaction type, according to the bank. If set, this will contain a German term that you can display to the user. Some examples of common values are: \"Lastschrift\", \"Auslandsüberweisung\", \"Gebühren\", \"Zinsen\". The maximum possible length of this field is 255 characters.
* @return type
**/
@ApiModelProperty(example = "Überweisungsauftrag", value = "Transaction type, according to the bank. If set, this will contain a German term that you can display to the user. Some examples of common values are: \"Lastschrift\", \"Auslandsüberweisung\", \"Gebühren\", \"Zinsen\". The maximum possible length of this field is 255 characters.")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Transaction typeCodeZka(String typeCodeZka) {
this.typeCodeZka = typeCodeZka;
return this;
}
/**
* ZKA business transaction code which relates to the transaction's type. Possible values range from 1 through 999. If no information about the ZKA type code is available, then this field will be null.
* @return typeCodeZka
**/
@ApiModelProperty(example = "999", value = "ZKA business transaction code which relates to the transaction's type. Possible values range from 1 through 999. If no information about the ZKA type code is available, then this field will be null.")
public String getTypeCodeZka() {
return typeCodeZka;
}
public void setTypeCodeZka(String typeCodeZka) {
this.typeCodeZka = typeCodeZka;
}
public Transaction typeCodeSwift(String typeCodeSwift) {
this.typeCodeSwift = typeCodeSwift;
return this;
}
/**
* SWIFT transaction type code. If no information about the SWIFT code is available, then this field will be null.
* @return typeCodeSwift
**/
@ApiModelProperty(example = "RAPRDE51", value = "SWIFT transaction type code. If no information about the SWIFT code is available, then this field will be null.")
public String getTypeCodeSwift() {
return typeCodeSwift;
}
public void setTypeCodeSwift(String typeCodeSwift) {
this.typeCodeSwift = typeCodeSwift;
}
public Transaction sepaPurposeCode(String sepaPurposeCode) {
this.sepaPurposeCode = sepaPurposeCode;
return this;
}
/**
* SEPA purpose code, according to ISO 20022
* @return sepaPurposeCode
**/
@ApiModelProperty(example = "OTHR", value = "SEPA purpose code, according to ISO 20022")
public String getSepaPurposeCode() {
return sepaPurposeCode;
}
public void setSepaPurposeCode(String sepaPurposeCode) {
this.sepaPurposeCode = sepaPurposeCode;
}
public Transaction primanota(String primanota) {
this.primanota = primanota;
return this;
}
/**
* Transaction primanota (bank side identification number)
* @return primanota
**/
@ApiModelProperty(example = "Primanota", value = "Transaction primanota (bank side identification number)")
public String getPrimanota() {
return primanota;
}
public void setPrimanota(String primanota) {
this.primanota = primanota;
}
public Transaction category(Category category) {
this.category = category;
return this;
}
/**
* Transaction category, if any is assigned. Note: Recently imported transactions that have currently no category assigned might still get categorized by the background categorization process. To check the status of the background categorization, see GET /bankConnections. Manual category assignments to a transaction will remove the transaction from the background categorization process (i.e. the background categorization process will never overwrite a manual category assignment).
* @return category
**/
@ApiModelProperty(value = "Transaction category, if any is assigned. Note: Recently imported transactions that have currently no category assigned might still get categorized by the background categorization process. To check the status of the background categorization, see GET /bankConnections. Manual category assignments to a transaction will remove the transaction from the background categorization process (i.e. the background categorization process will never overwrite a manual category assignment).")
public Category getCategory() {
return category;
}
public void setCategory(Category category) {
this.category = category;
}
public Transaction labels(List labels) {
this.labels = labels;
return this;
}
public Transaction addLabelsItem(Label labelsItem) {
if (this.labels == null) {
this.labels = new ArrayList();
}
this.labels.add(labelsItem);
return this;
}
/**
* Array of assigned labels
* @return labels
**/
@ApiModelProperty(value = "Array of assigned labels")
public List getLabels() {
return labels;
}
public void setLabels(List labels) {
this.labels = labels;
}
public Transaction isPotentialDuplicate(Boolean isPotentialDuplicate) {
this.isPotentialDuplicate = isPotentialDuplicate;
return this;
}
/**
* While finAPI uses a well-elaborated algorithm for uniquely identifying transactions, there is still the possibility that during an account update, a transaction that was imported previously may be imported a second time as a new transaction. For example, this can happen if some transaction data changes on the bank server side. However, finAPI also includes an algorithm of identifying such \"potential duplicate\" transactions. If this field is set to true, it means that finAPI detected a similar transaction that might actually be the same. It is recommended to communicate this information to the end user, and give him an option to delete the transaction in case he confirms that it really is a duplicate.
* @return isPotentialDuplicate
**/
@ApiModelProperty(example = "false", required = true, value = "While finAPI uses a well-elaborated algorithm for uniquely identifying transactions, there is still the possibility that during an account update, a transaction that was imported previously may be imported a second time as a new transaction. For example, this can happen if some transaction data changes on the bank server side. However, finAPI also includes an algorithm of identifying such \"potential duplicate\" transactions. If this field is set to true, it means that finAPI detected a similar transaction that might actually be the same. It is recommended to communicate this information to the end user, and give him an option to delete the transaction in case he confirms that it really is a duplicate.")
public Boolean isIsPotentialDuplicate() {
return isPotentialDuplicate;
}
public void setIsPotentialDuplicate(Boolean isPotentialDuplicate) {
this.isPotentialDuplicate = isPotentialDuplicate;
}
public Transaction isAdjustingEntry(Boolean isAdjustingEntry) {
this.isAdjustingEntry = isAdjustingEntry;
return this;
}
/**
* Indicating whether this transaction is an adjusting entry ('Zwischensaldo').<br/><br/>Adjusting entries do not originate from the bank, but are added by finAPI during an account update when the bank reported account balance does not add up to the set of transactions that finAPI receives for the account. In this case, the adjusting entry will fix the deviation between the balance and the received transactions so that both adds up again.<br/><br/>Possible causes for such deviations are:<br/>- Inconsistencies in how the bank calculates the balance, for instance when not yet booked transactions are already included in the balance, but not included in the set of transactions<br/>- Gaps in the transaction history that finAPI receives, for instance because the account has not been updated for a while and older transactions are no longer available
* @return isAdjustingEntry
**/
@ApiModelProperty(example = "false", required = true, value = "Indicating whether this transaction is an adjusting entry ('Zwischensaldo'). Adjusting entries do not originate from the bank, but are added by finAPI during an account update when the bank reported account balance does not add up to the set of transactions that finAPI receives for the account. In this case, the adjusting entry will fix the deviation between the balance and the received transactions so that both adds up again. Possible causes for such deviations are: - Inconsistencies in how the bank calculates the balance, for instance when not yet booked transactions are already included in the balance, but not included in the set of transactions - Gaps in the transaction history that finAPI receives, for instance because the account has not been updated for a while and older transactions are no longer available")
public Boolean isIsAdjustingEntry() {
return isAdjustingEntry;
}
public void setIsAdjustingEntry(Boolean isAdjustingEntry) {
this.isAdjustingEntry = isAdjustingEntry;
}
public Transaction isNew(Boolean isNew) {
this.isNew = isNew;
return this;
}
/**
* Indicating whether this transaction is 'new' or not. Any newly imported transaction will have this flag initially set to true. How you use this field is up to your interpretation. For example, you might want to set it to false once a user has clicked on/seen the transaction. You can change this flag to 'false' with the PATCH method.
* @return isNew
**/
@ApiModelProperty(example = "true", required = true, value = "Indicating whether this transaction is 'new' or not. Any newly imported transaction will have this flag initially set to true. How you use this field is up to your interpretation. For example, you might want to set it to false once a user has clicked on/seen the transaction. You can change this flag to 'false' with the PATCH method.")
public Boolean isIsNew() {
return isNew;
}
public void setIsNew(Boolean isNew) {
this.isNew = isNew;
}
public Transaction importDate(String importDate) {
this.importDate = importDate;
return this;
}
/**
* Date of transaction import, in the format 'YYYY-MM-DD HH:MM:SS.SSS' (german time).
* @return importDate
**/
@ApiModelProperty(example = "2018-01-01 00:00:00.000", required = true, value = "Date of transaction import, in the format 'YYYY-MM-DD HH:MM:SS.SSS' (german time).")
public String getImportDate() {
return importDate;
}
public void setImportDate(String importDate) {
this.importDate = importDate;
}
public Transaction children(List children) {
this.children = children;
return this;
}
public Transaction addChildrenItem(Long childrenItem) {
if (this.children == null) {
this.children = new ArrayList();
}
this.children.add(childrenItem);
return this;
}
/**
* Sub-transactions identifiers (if this transaction is split)
* @return children
**/
@ApiModelProperty(example = "[1,2,3]", value = "Sub-transactions identifiers (if this transaction is split)")
public List getChildren() {
return children;
}
public void setChildren(List children) {
this.children = children;
}
public Transaction paypalData(PaypalTransactionData paypalData) {
this.paypalData = paypalData;
return this;
}
/**
* Additional, PayPal-specific transaction data. This field is only set for transactions that belong to an account of the 'PayPal' bank (BLZ 'PAYPAL').
* @return paypalData
**/
@ApiModelProperty(value = "Additional, PayPal-specific transaction data. This field is only set for transactions that belong to an account of the 'PayPal' bank (BLZ 'PAYPAL').")
public PaypalTransactionData getPaypalData() {
return paypalData;
}
public void setPaypalData(PaypalTransactionData paypalData) {
this.paypalData = paypalData;
}
public Transaction endToEndReference(String endToEndReference) {
this.endToEndReference = endToEndReference;
return this;
}
/**
* End-To-End reference
* @return endToEndReference
**/
@ApiModelProperty(example = "001100550526", value = "End-To-End reference")
public String getEndToEndReference() {
return endToEndReference;
}
public void setEndToEndReference(String endToEndReference) {
this.endToEndReference = endToEndReference;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Transaction transaction = (Transaction) o;
return Objects.equals(this.id, transaction.id) &&
Objects.equals(this.parentId, transaction.parentId) &&
Objects.equals(this.accountId, transaction.accountId) &&
Objects.equals(this.valueDate, transaction.valueDate) &&
Objects.equals(this.bankBookingDate, transaction.bankBookingDate) &&
Objects.equals(this.finapiBookingDate, transaction.finapiBookingDate) &&
Objects.equals(this.amount, transaction.amount) &&
Objects.equals(this.purpose, transaction.purpose) &&
Objects.equals(this.counterpartName, transaction.counterpartName) &&
Objects.equals(this.counterpartAccountNumber, transaction.counterpartAccountNumber) &&
Objects.equals(this.counterpartIban, transaction.counterpartIban) &&
Objects.equals(this.counterpartBlz, transaction.counterpartBlz) &&
Objects.equals(this.counterpartBic, transaction.counterpartBic) &&
Objects.equals(this.counterpartBankName, transaction.counterpartBankName) &&
Objects.equals(this.counterpartMandateReference, transaction.counterpartMandateReference) &&
Objects.equals(this.counterpartCustomerReference, transaction.counterpartCustomerReference) &&
Objects.equals(this.counterpartCreditorId, transaction.counterpartCreditorId) &&
Objects.equals(this.type, transaction.type) &&
Objects.equals(this.typeCodeZka, transaction.typeCodeZka) &&
Objects.equals(this.typeCodeSwift, transaction.typeCodeSwift) &&
Objects.equals(this.sepaPurposeCode, transaction.sepaPurposeCode) &&
Objects.equals(this.primanota, transaction.primanota) &&
Objects.equals(this.category, transaction.category) &&
Objects.equals(this.labels, transaction.labels) &&
Objects.equals(this.isPotentialDuplicate, transaction.isPotentialDuplicate) &&
Objects.equals(this.isAdjustingEntry, transaction.isAdjustingEntry) &&
Objects.equals(this.isNew, transaction.isNew) &&
Objects.equals(this.importDate, transaction.importDate) &&
Objects.equals(this.children, transaction.children) &&
Objects.equals(this.paypalData, transaction.paypalData) &&
Objects.equals(this.endToEndReference, transaction.endToEndReference);
}
@Override
public int hashCode() {
return Objects.hash(id, parentId, accountId, valueDate, bankBookingDate, finapiBookingDate, amount, purpose, counterpartName, counterpartAccountNumber, counterpartIban, counterpartBlz, counterpartBic, counterpartBankName, counterpartMandateReference, counterpartCustomerReference, counterpartCreditorId, type, typeCodeZka, typeCodeSwift, sepaPurposeCode, primanota, category, labels, isPotentialDuplicate, isAdjustingEntry, isNew, importDate, children, paypalData, endToEndReference);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Transaction {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" valueDate: ").append(toIndentedString(valueDate)).append("\n");
sb.append(" bankBookingDate: ").append(toIndentedString(bankBookingDate)).append("\n");
sb.append(" finapiBookingDate: ").append(toIndentedString(finapiBookingDate)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" purpose: ").append(toIndentedString(purpose)).append("\n");
sb.append(" counterpartName: ").append(toIndentedString(counterpartName)).append("\n");
sb.append(" counterpartAccountNumber: ").append(toIndentedString(counterpartAccountNumber)).append("\n");
sb.append(" counterpartIban: ").append(toIndentedString(counterpartIban)).append("\n");
sb.append(" counterpartBlz: ").append(toIndentedString(counterpartBlz)).append("\n");
sb.append(" counterpartBic: ").append(toIndentedString(counterpartBic)).append("\n");
sb.append(" counterpartBankName: ").append(toIndentedString(counterpartBankName)).append("\n");
sb.append(" counterpartMandateReference: ").append(toIndentedString(counterpartMandateReference)).append("\n");
sb.append(" counterpartCustomerReference: ").append(toIndentedString(counterpartCustomerReference)).append("\n");
sb.append(" counterpartCreditorId: ").append(toIndentedString(counterpartCreditorId)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" typeCodeZka: ").append(toIndentedString(typeCodeZka)).append("\n");
sb.append(" typeCodeSwift: ").append(toIndentedString(typeCodeSwift)).append("\n");
sb.append(" sepaPurposeCode: ").append(toIndentedString(sepaPurposeCode)).append("\n");
sb.append(" primanota: ").append(toIndentedString(primanota)).append("\n");
sb.append(" category: ").append(toIndentedString(category)).append("\n");
sb.append(" labels: ").append(toIndentedString(labels)).append("\n");
sb.append(" isPotentialDuplicate: ").append(toIndentedString(isPotentialDuplicate)).append("\n");
sb.append(" isAdjustingEntry: ").append(toIndentedString(isAdjustingEntry)).append("\n");
sb.append(" isNew: ").append(toIndentedString(isNew)).append("\n");
sb.append(" importDate: ").append(toIndentedString(importDate)).append("\n");
sb.append(" children: ").append(toIndentedString(children)).append("\n");
sb.append(" paypalData: ").append(toIndentedString(paypalData)).append("\n");
sb.append(" endToEndReference: ").append(toIndentedString(endToEndReference)).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 ");
}
}