com.prowidesoftware.swift.model.mx.dic.Unit13 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;
/**
* Information about units to transfer.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Unit13", propOrder = {
"unitsNb",
"ordrDt",
"acqstnDt",
"certNb",
"grp1Or2Units",
"ref"
})
public class Unit13 {
@XmlElement(name = "UnitsNb", required = true)
protected BigDecimal unitsNb;
@XmlElement(name = "OrdrDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate ordrDt;
@XmlElement(name = "AcqstnDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate acqstnDt;
@XmlElement(name = "CertNb")
protected List certNb;
@XmlElement(name = "Grp1Or2Units")
@XmlSchemaType(name = "string")
protected UKTaxGroupUnit1Code grp1Or2Units;
@XmlElement(name = "Ref")
protected String ref;
/**
* Gets the value of the unitsNb property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getUnitsNb() {
return unitsNb;
}
/**
* Sets the value of the unitsNb property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public Unit13 setUnitsNb(BigDecimal value) {
this.unitsNb = value;
return this;
}
/**
* Gets the value of the ordrDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getOrdrDt() {
return ordrDt;
}
/**
* Sets the value of the ordrDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Unit13 setOrdrDt(LocalDate value) {
this.ordrDt = value;
return this;
}
/**
* Gets the value of the acqstnDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getAcqstnDt() {
return acqstnDt;
}
/**
* Sets the value of the acqstnDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Unit13 setAcqstnDt(LocalDate value) {
this.acqstnDt = value;
return this;
}
/**
* Gets the value of the certNb 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 certNb property.
*
*
* For example, to add a new item, do as follows:
*
* getCertNb().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
* @return
* The value of the certNb property.
*/
public List getCertNb() {
if (certNb == null) {
certNb = new ArrayList<>();
}
return this.certNb;
}
/**
* Gets the value of the grp1Or2Units property.
*
* @return
* possible object is
* {@link UKTaxGroupUnit1Code }
*
*/
public UKTaxGroupUnit1Code getGrp1Or2Units() {
return grp1Or2Units;
}
/**
* Sets the value of the grp1Or2Units property.
*
* @param value
* allowed object is
* {@link UKTaxGroupUnit1Code }
*
*/
public Unit13 setGrp1Or2Units(UKTaxGroupUnit1Code value) {
this.grp1Or2Units = value;
return this;
}
/**
* Gets the value of the ref property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRef() {
return ref;
}
/**
* Sets the value of the ref property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Unit13 setRef(String value) {
this.ref = 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 certNb list.
* @see #getCertNb()
*
*/
public Unit13 addCertNb(String certNb) {
getCertNb().add(certNb);
return this;
}
}