com.prowidesoftware.swift.model.mx.dic.Tax17 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.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;
/**
* Tax related to an investment fund order.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Tax17", propOrder = {
"tp",
"xtndedTp",
"amt",
"rate",
"ctry",
"taxClctnDtls"
})
public class Tax17 {
@XmlElement(name = "Tp")
@XmlSchemaType(name = "string")
protected TaxType12Code tp;
@XmlElement(name = "XtndedTp")
protected String xtndedTp;
@XmlElement(name = "Amt")
protected List amt;
@XmlElement(name = "Rate")
protected BigDecimal rate;
@XmlElement(name = "Ctry", required = true)
protected String ctry;
@XmlElement(name = "TaxClctnDtls")
protected TaxCalculationInformation4 taxClctnDtls;
/**
* Gets the value of the tp property.
*
* @return
* possible object is
* {@link TaxType12Code }
*
*/
public TaxType12Code getTp() {
return tp;
}
/**
* Sets the value of the tp property.
*
* @param value
* allowed object is
* {@link TaxType12Code }
*
*/
public Tax17 setTp(TaxType12Code value) {
this.tp = value;
return this;
}
/**
* Gets the value of the xtndedTp property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getXtndedTp() {
return xtndedTp;
}
/**
* Sets the value of the xtndedTp property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Tax17 setXtndedTp(String value) {
this.xtndedTp = value;
return this;
}
/**
* Gets the value of the amt 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 JAXB object.
* This is why there is not a set
method for the amt property.
*
*
* For example, to add a new item, do as follows:
*
* getAmt().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ActiveOrHistoricCurrencyAnd13DecimalAmount }
*
*
*/
public List getAmt() {
if (amt == null) {
amt = new ArrayList();
}
return this.amt;
}
/**
* 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 Tax17 setRate(BigDecimal value) {
this.rate = value;
return this;
}
/**
* Gets the value of the ctry property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCtry() {
return ctry;
}
/**
* Sets the value of the ctry property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Tax17 setCtry(String value) {
this.ctry = value;
return this;
}
/**
* Gets the value of the taxClctnDtls property.
*
* @return
* possible object is
* {@link TaxCalculationInformation4 }
*
*/
public TaxCalculationInformation4 getTaxClctnDtls() {
return taxClctnDtls;
}
/**
* Sets the value of the taxClctnDtls property.
*
* @param value
* allowed object is
* {@link TaxCalculationInformation4 }
*
*/
public Tax17 setTaxClctnDtls(TaxCalculationInformation4 value) {
this.taxClctnDtls = 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 amt list.
* @see #getAmt()
*
*/
public Tax17 addAmt(ActiveOrHistoricCurrencyAnd13DecimalAmount amt) {
getAmt().add(amt);
return this;
}
}