com.prowidesoftware.swift.model.mx.dic.TransferStatusAndReason5 Maven / Gradle / Ivy
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 the status of a transfer instruction and its reason.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TransferStatusAndReason5", propOrder = {
"mstrRef",
"trfRef",
"clntRef",
"cxlRef",
"trfSts",
"tradDt",
"sndOutDt",
"ttlUnitsNb",
"avrgPric",
"unitsDtls",
"stsInitr"
})
public class TransferStatusAndReason5 {
@XmlElement(name = "MstrRef")
protected String mstrRef;
@XmlElement(name = "TrfRef", required = true)
protected String trfRef;
@XmlElement(name = "ClntRef")
protected AdditionalReference7 clntRef;
@XmlElement(name = "CxlRef")
protected String cxlRef;
@XmlElement(name = "TrfSts", required = true)
protected TransferStatus2Choice trfSts;
@XmlElement(name = "TradDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate tradDt;
@XmlElement(name = "SndOutDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate sndOutDt;
@XmlElement(name = "TtlUnitsNb")
protected BigDecimal ttlUnitsNb;
@XmlElement(name = "AvrgPric")
protected ActiveOrHistoricCurrencyAnd13DecimalAmount avrgPric;
@XmlElement(name = "UnitsDtls")
protected List unitsDtls;
@XmlElement(name = "StsInitr")
protected PartyIdentification113 stsInitr;
/**
* Gets the value of the mstrRef property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMstrRef() {
return mstrRef;
}
/**
* Sets the value of the mstrRef property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TransferStatusAndReason5 setMstrRef(String value) {
this.mstrRef = value;
return this;
}
/**
* Gets the value of the trfRef property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrfRef() {
return trfRef;
}
/**
* Sets the value of the trfRef property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TransferStatusAndReason5 setTrfRef(String value) {
this.trfRef = value;
return this;
}
/**
* Gets the value of the clntRef property.
*
* @return
* possible object is
* {@link AdditionalReference7 }
*
*/
public AdditionalReference7 getClntRef() {
return clntRef;
}
/**
* Sets the value of the clntRef property.
*
* @param value
* allowed object is
* {@link AdditionalReference7 }
*
*/
public TransferStatusAndReason5 setClntRef(AdditionalReference7 value) {
this.clntRef = value;
return this;
}
/**
* Gets the value of the cxlRef property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCxlRef() {
return cxlRef;
}
/**
* Sets the value of the cxlRef property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TransferStatusAndReason5 setCxlRef(String value) {
this.cxlRef = value;
return this;
}
/**
* Gets the value of the trfSts property.
*
* @return
* possible object is
* {@link TransferStatus2Choice }
*
*/
public TransferStatus2Choice getTrfSts() {
return trfSts;
}
/**
* Sets the value of the trfSts property.
*
* @param value
* allowed object is
* {@link TransferStatus2Choice }
*
*/
public TransferStatusAndReason5 setTrfSts(TransferStatus2Choice value) {
this.trfSts = value;
return this;
}
/**
* Gets the value of the tradDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getTradDt() {
return tradDt;
}
/**
* Sets the value of the tradDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TransferStatusAndReason5 setTradDt(LocalDate value) {
this.tradDt = value;
return this;
}
/**
* Gets the value of the sndOutDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getSndOutDt() {
return sndOutDt;
}
/**
* Sets the value of the sndOutDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TransferStatusAndReason5 setSndOutDt(LocalDate value) {
this.sndOutDt = value;
return this;
}
/**
* Gets the value of the ttlUnitsNb property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getTtlUnitsNb() {
return ttlUnitsNb;
}
/**
* Sets the value of the ttlUnitsNb property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public TransferStatusAndReason5 setTtlUnitsNb(BigDecimal value) {
this.ttlUnitsNb = value;
return this;
}
/**
* Gets the value of the avrgPric property.
*
* @return
* possible object is
* {@link ActiveOrHistoricCurrencyAnd13DecimalAmount }
*
*/
public ActiveOrHistoricCurrencyAnd13DecimalAmount getAvrgPric() {
return avrgPric;
}
/**
* Sets the value of the avrgPric property.
*
* @param value
* allowed object is
* {@link ActiveOrHistoricCurrencyAnd13DecimalAmount }
*
*/
public TransferStatusAndReason5 setAvrgPric(ActiveOrHistoricCurrencyAnd13DecimalAmount value) {
this.avrgPric = value;
return this;
}
/**
* Gets the value of the unitsDtls 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 unitsDtls property.
*
*
* For example, to add a new item, do as follows:
*
* getUnitsDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Unit8 }
*
*
* @return
* The value of the unitsDtls property.
*/
public List getUnitsDtls() {
if (unitsDtls == null) {
unitsDtls = new ArrayList<>();
}
return this.unitsDtls;
}
/**
* Gets the value of the stsInitr property.
*
* @return
* possible object is
* {@link PartyIdentification113 }
*
*/
public PartyIdentification113 getStsInitr() {
return stsInitr;
}
/**
* Sets the value of the stsInitr property.
*
* @param value
* allowed object is
* {@link PartyIdentification113 }
*
*/
public TransferStatusAndReason5 setStsInitr(PartyIdentification113 value) {
this.stsInitr = 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 unitsDtls list.
* @see #getUnitsDtls()
*
*/
public TransferStatusAndReason5 addUnitsDtls(Unit8 unitsDtls) {
getUnitsDtls().add(unitsDtls);
return this;
}
}