com.prowidesoftware.swift.model.mx.dic.TaxInformation6 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import com.prowidesoftware.swift.model.mx.adapters.IsoDateAdapter;
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 jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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;
/**
* Details about tax paid, or to be paid, to the government in accordance with the law, including pre-defined parameters such as thresholds and type of account.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TaxInformation6", propOrder = {
"cdtr",
"dbtr",
"admstnZn",
"refNb",
"mtd",
"ttlTaxblBaseAmt",
"ttlTaxAmt",
"dt",
"seqNb",
"rcrd"
})
public class TaxInformation6 {
@XmlElement(name = "Cdtr")
protected TaxParty1 cdtr;
@XmlElement(name = "Dbtr")
protected TaxParty2 dbtr;
@XmlElement(name = "AdmstnZn")
protected String admstnZn;
@XmlElement(name = "RefNb")
protected String refNb;
@XmlElement(name = "Mtd")
protected String mtd;
@XmlElement(name = "TtlTaxblBaseAmt")
protected ActiveOrHistoricCurrencyAndAmount ttlTaxblBaseAmt;
@XmlElement(name = "TtlTaxAmt")
protected ActiveOrHistoricCurrencyAndAmount ttlTaxAmt;
@XmlElement(name = "Dt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate dt;
@XmlElement(name = "SeqNb")
protected BigDecimal seqNb;
@XmlElement(name = "Rcrd")
protected List rcrd;
/**
* Gets the value of the cdtr property.
*
* @return
* possible object is
* {@link TaxParty1 }
*
*/
public TaxParty1 getCdtr() {
return cdtr;
}
/**
* Sets the value of the cdtr property.
*
* @param value
* allowed object is
* {@link TaxParty1 }
*
*/
public TaxInformation6 setCdtr(TaxParty1 value) {
this.cdtr = value;
return this;
}
/**
* Gets the value of the dbtr property.
*
* @return
* possible object is
* {@link TaxParty2 }
*
*/
public TaxParty2 getDbtr() {
return dbtr;
}
/**
* Sets the value of the dbtr property.
*
* @param value
* allowed object is
* {@link TaxParty2 }
*
*/
public TaxInformation6 setDbtr(TaxParty2 value) {
this.dbtr = value;
return this;
}
/**
* Gets the value of the admstnZn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAdmstnZn() {
return admstnZn;
}
/**
* Sets the value of the admstnZn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxInformation6 setAdmstnZn(String value) {
this.admstnZn = value;
return this;
}
/**
* Gets the value of the refNb property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRefNb() {
return refNb;
}
/**
* Sets the value of the refNb property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxInformation6 setRefNb(String value) {
this.refNb = value;
return this;
}
/**
* Gets the value of the mtd property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMtd() {
return mtd;
}
/**
* Sets the value of the mtd property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxInformation6 setMtd(String value) {
this.mtd = value;
return this;
}
/**
* Gets the value of the ttlTaxblBaseAmt property.
*
* @return
* possible object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public ActiveOrHistoricCurrencyAndAmount getTtlTaxblBaseAmt() {
return ttlTaxblBaseAmt;
}
/**
* Sets the value of the ttlTaxblBaseAmt property.
*
* @param value
* allowed object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public TaxInformation6 setTtlTaxblBaseAmt(ActiveOrHistoricCurrencyAndAmount value) {
this.ttlTaxblBaseAmt = value;
return this;
}
/**
* Gets the value of the ttlTaxAmt property.
*
* @return
* possible object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public ActiveOrHistoricCurrencyAndAmount getTtlTaxAmt() {
return ttlTaxAmt;
}
/**
* Sets the value of the ttlTaxAmt property.
*
* @param value
* allowed object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public TaxInformation6 setTtlTaxAmt(ActiveOrHistoricCurrencyAndAmount value) {
this.ttlTaxAmt = value;
return this;
}
/**
* Gets the value of the dt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getDt() {
return dt;
}
/**
* Sets the value of the dt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TaxInformation6 setDt(LocalDate value) {
this.dt = value;
return this;
}
/**
* Gets the value of the seqNb property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getSeqNb() {
return seqNb;
}
/**
* Sets the value of the seqNb property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public TaxInformation6 setSeqNb(BigDecimal value) {
this.seqNb = value;
return this;
}
/**
* Gets the value of the rcrd 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 rcrd property.
*
*
* For example, to add a new item, do as follows:
*
* getRcrd().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link TaxRecord2 }
*
*
* @return
* The value of the rcrd property.
*/
public List getRcrd() {
if (rcrd == null) {
rcrd = new ArrayList<>();
}
return this.rcrd;
}
@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 rcrd list.
* @see #getRcrd()
*
*/
public TaxInformation6 addRcrd(TaxRecord2 rcrd) {
getRcrd().add(rcrd);
return this;
}
}