com.prowidesoftware.swift.model.mx.dic.TransactionInterest1 Maven / Gradle / Ivy
package com.prowidesoftware.swift.model.mx.dic;
import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Provides transaction specific interest information that applies to the underlying transaction.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TransactionInterest1", propOrder = {
"amt",
"cdtDbtInd",
"tp",
"rate",
"frToDt",
"rsn"
})
public class TransactionInterest1 {
@XmlElement(name = "Amt", required = true)
protected CurrencyAndAmount amt;
@XmlElement(name = "CdtDbtInd", required = true)
@XmlSchemaType(name = "string")
protected CreditDebitCode cdtDbtInd;
@XmlElement(name = "Tp")
protected InterestType1Choice tp;
@XmlElement(name = "Rate")
protected List rate;
@XmlElement(name = "FrToDt")
protected DateTimePeriodDetails frToDt;
@XmlElement(name = "Rsn")
protected String rsn;
/**
* Gets the value of the amt property.
*
* @return
* possible object is
* {@link CurrencyAndAmount }
*
*/
public CurrencyAndAmount getAmt() {
return amt;
}
/**
* Sets the value of the amt property.
*
* @param value
* allowed object is
* {@link CurrencyAndAmount }
*
*/
public TransactionInterest1 setAmt(CurrencyAndAmount value) {
this.amt = value;
return this;
}
/**
* Gets the value of the cdtDbtInd property.
*
* @return
* possible object is
* {@link CreditDebitCode }
*
*/
public CreditDebitCode getCdtDbtInd() {
return cdtDbtInd;
}
/**
* Sets the value of the cdtDbtInd property.
*
* @param value
* allowed object is
* {@link CreditDebitCode }
*
*/
public TransactionInterest1 setCdtDbtInd(CreditDebitCode value) {
this.cdtDbtInd = value;
return this;
}
/**
* Gets the value of the tp property.
*
* @return
* possible object is
* {@link InterestType1Choice }
*
*/
public InterestType1Choice getTp() {
return tp;
}
/**
* Sets the value of the tp property.
*
* @param value
* allowed object is
* {@link InterestType1Choice }
*
*/
public TransactionInterest1 setTp(InterestType1Choice value) {
this.tp = value;
return this;
}
/**
* Gets the value of the rate property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a {@code set} method for the rate property.
*
*
* For example, to add a new item, do as follows:
*
* getRate().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Rate1 }
*
*
* @return
* The value of the rate property.
*/
public List getRate() {
if (rate == null) {
rate = new ArrayList<>();
}
return this.rate;
}
/**
* Gets the value of the frToDt property.
*
* @return
* possible object is
* {@link DateTimePeriodDetails }
*
*/
public DateTimePeriodDetails getFrToDt() {
return frToDt;
}
/**
* Sets the value of the frToDt property.
*
* @param value
* allowed object is
* {@link DateTimePeriodDetails }
*
*/
public TransactionInterest1 setFrToDt(DateTimePeriodDetails value) {
this.frToDt = value;
return this;
}
/**
* Gets the value of the rsn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRsn() {
return rsn;
}
/**
* Sets the value of the rsn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TransactionInterest1 setRsn(String value) {
this.rsn = value;
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
/**
* Adds a new item to the rate list.
* @see #getRate()
*
*/
public TransactionInterest1 addRate(Rate1 rate) {
getRate().add(rate);
return this;
}
}