com.prowidesoftware.swift.model.mx.dic.SettlementSubTotalCalculatedTax2 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;
/**
* Specifies the subtotal calculated tax applicable for this settlement.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SettlementSubTotalCalculatedTax2", propOrder = {
"tpCd",
"clctdRate",
"bsisAmt",
"clctdAmt",
"xmptnRsnCd",
"xmptnRsnTxt",
"taxCcyXchg"
})
public class SettlementSubTotalCalculatedTax2 {
@XmlElement(name = "TpCd")
protected String tpCd;
@XmlElement(name = "ClctdRate")
protected BigDecimal clctdRate;
@XmlElement(name = "BsisAmt")
protected List bsisAmt;
@XmlElement(name = "ClctdAmt")
protected List clctdAmt;
@XmlElement(name = "XmptnRsnCd")
protected String xmptnRsnCd;
@XmlElement(name = "XmptnRsnTxt")
protected String xmptnRsnTxt;
@XmlElement(name = "TaxCcyXchg")
protected CurrencyReference3 taxCcyXchg;
/**
* Gets the value of the tpCd property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTpCd() {
return tpCd;
}
/**
* Sets the value of the tpCd property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SettlementSubTotalCalculatedTax2 setTpCd(String value) {
this.tpCd = value;
return this;
}
/**
* Gets the value of the clctdRate property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getClctdRate() {
return clctdRate;
}
/**
* Sets the value of the clctdRate property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public SettlementSubTotalCalculatedTax2 setClctdRate(BigDecimal value) {
this.clctdRate = value;
return this;
}
/**
* Gets the value of the bsisAmt 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 bsisAmt property.
*
*
* For example, to add a new item, do as follows:
*
* getBsisAmt().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CurrencyAndAmount }
*
*
* @return
* The value of the bsisAmt property.
*/
public List getBsisAmt() {
if (bsisAmt == null) {
bsisAmt = new ArrayList<>();
}
return this.bsisAmt;
}
/**
* Gets the value of the clctdAmt 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 clctdAmt property.
*
*
* For example, to add a new item, do as follows:
*
* getClctdAmt().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CurrencyAndAmount }
*
*
* @return
* The value of the clctdAmt property.
*/
public List getClctdAmt() {
if (clctdAmt == null) {
clctdAmt = new ArrayList<>();
}
return this.clctdAmt;
}
/**
* Gets the value of the xmptnRsnCd property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getXmptnRsnCd() {
return xmptnRsnCd;
}
/**
* Sets the value of the xmptnRsnCd property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SettlementSubTotalCalculatedTax2 setXmptnRsnCd(String value) {
this.xmptnRsnCd = value;
return this;
}
/**
* Gets the value of the xmptnRsnTxt property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getXmptnRsnTxt() {
return xmptnRsnTxt;
}
/**
* Sets the value of the xmptnRsnTxt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SettlementSubTotalCalculatedTax2 setXmptnRsnTxt(String value) {
this.xmptnRsnTxt = value;
return this;
}
/**
* Gets the value of the taxCcyXchg property.
*
* @return
* possible object is
* {@link CurrencyReference3 }
*
*/
public CurrencyReference3 getTaxCcyXchg() {
return taxCcyXchg;
}
/**
* Sets the value of the taxCcyXchg property.
*
* @param value
* allowed object is
* {@link CurrencyReference3 }
*
*/
public SettlementSubTotalCalculatedTax2 setTaxCcyXchg(CurrencyReference3 value) {
this.taxCcyXchg = 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 bsisAmt list.
* @see #getBsisAmt()
*
*/
public SettlementSubTotalCalculatedTax2 addBsisAmt(CurrencyAndAmount bsisAmt) {
getBsisAmt().add(bsisAmt);
return this;
}
/**
* Adds a new item to the clctdAmt list.
* @see #getClctdAmt()
*
*/
public SettlementSubTotalCalculatedTax2 addClctdAmt(CurrencyAndAmount clctdAmt) {
getClctdAmt().add(clctdAmt);
return this;
}
}