com.prowidesoftware.swift.model.mx.dic.TaxAmount1 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.math.BigDecimal;
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.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;
/**
* Set of elements used to provide information on the tax amount(s) of tax record.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TaxAmount1", propOrder = {
"rate",
"taxblBaseAmt",
"ttlAmt",
"dtls"
})
public class TaxAmount1 {
@XmlElement(name = "Rate")
protected BigDecimal rate;
@XmlElement(name = "TaxblBaseAmt")
protected ActiveOrHistoricCurrencyAndAmount taxblBaseAmt;
@XmlElement(name = "TtlAmt")
protected ActiveOrHistoricCurrencyAndAmount ttlAmt;
@XmlElement(name = "Dtls")
protected List dtls;
/**
* Gets the value of the rate property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getRate() {
return rate;
}
/**
* Sets the value of the rate property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public TaxAmount1 setRate(BigDecimal value) {
this.rate = value;
return this;
}
/**
* Gets the value of the taxblBaseAmt property.
*
* @return
* possible object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public ActiveOrHistoricCurrencyAndAmount getTaxblBaseAmt() {
return taxblBaseAmt;
}
/**
* Sets the value of the taxblBaseAmt property.
*
* @param value
* allowed object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public TaxAmount1 setTaxblBaseAmt(ActiveOrHistoricCurrencyAndAmount value) {
this.taxblBaseAmt = value;
return this;
}
/**
* Gets the value of the ttlAmt property.
*
* @return
* possible object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public ActiveOrHistoricCurrencyAndAmount getTtlAmt() {
return ttlAmt;
}
/**
* Sets the value of the ttlAmt property.
*
* @param value
* allowed object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public TaxAmount1 setTtlAmt(ActiveOrHistoricCurrencyAndAmount value) {
this.ttlAmt = value;
return this;
}
/**
* Gets the value of the dtls 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 dtls property.
*
*
* For example, to add a new item, do as follows:
*
* getDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TaxRecordDetails1 }
*
*
* @return
* The value of the dtls property.
*/
public List getDtls() {
if (dtls == null) {
dtls = new ArrayList<>();
}
return this.dtls;
}
@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 dtls list.
* @see #getDtls()
*
*/
public TaxAmount1 addDtls(TaxRecordDetails1 dtls) {
getDtls().add(dtls);
return this;
}
}