com.prowidesoftware.swift.model.mx.dic.Transfer4 Maven / Gradle / Ivy
package com.prowidesoftware.swift.model.mx.dic;
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;
/**
* Completion of a securities settlement instruction, wherein securities are delivered/debited from a securities account and received/credited to the designated securities account.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Transfer4", propOrder = {
"trfConfRef",
"trfRef",
"fctvTrfDt",
"tradDt",
"ttlUnitsNb",
"unitsDtls",
"ownAcctTrfInd",
"avrgPric"
})
public class Transfer4 {
@XmlElement(name = "TrfConfRef", required = true)
protected String trfConfRef;
@XmlElement(name = "TrfRef", required = true)
protected String trfRef;
@XmlElement(name = "FctvTrfDt", required = true)
protected DateAndDateTimeChoice fctvTrfDt;
@XmlElement(name = "TradDt", required = true, type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate tradDt;
@XmlElement(name = "TtlUnitsNb", required = true)
protected FinancialInstrumentQuantity1 ttlUnitsNb;
@XmlElement(name = "UnitsDtls")
protected List unitsDtls;
@XmlElement(name = "OwnAcctTrfInd")
protected boolean ownAcctTrfInd;
@XmlElement(name = "AvrgPric")
protected ActiveOrHistoricCurrencyAnd13DecimalAmount avrgPric;
/**
* Gets the value of the trfConfRef property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrfConfRef() {
return trfConfRef;
}
/**
* Sets the value of the trfConfRef property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Transfer4 setTrfConfRef(String value) {
this.trfConfRef = 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 Transfer4 setTrfRef(String value) {
this.trfRef = value;
return this;
}
/**
* Gets the value of the fctvTrfDt property.
*
* @return
* possible object is
* {@link DateAndDateTimeChoice }
*
*/
public DateAndDateTimeChoice getFctvTrfDt() {
return fctvTrfDt;
}
/**
* Sets the value of the fctvTrfDt property.
*
* @param value
* allowed object is
* {@link DateAndDateTimeChoice }
*
*/
public Transfer4 setFctvTrfDt(DateAndDateTimeChoice value) {
this.fctvTrfDt = 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 Transfer4 setTradDt(LocalDate value) {
this.tradDt = value;
return this;
}
/**
* Gets the value of the ttlUnitsNb property.
*
* @return
* possible object is
* {@link FinancialInstrumentQuantity1 }
*
*/
public FinancialInstrumentQuantity1 getTtlUnitsNb() {
return ttlUnitsNb;
}
/**
* Sets the value of the ttlUnitsNb property.
*
* @param value
* allowed object is
* {@link FinancialInstrumentQuantity1 }
*
*/
public Transfer4 setTtlUnitsNb(FinancialInstrumentQuantity1 value) {
this.ttlUnitsNb = 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 Unit1 }
*
*
* @return
* The value of the unitsDtls property.
*/
public List getUnitsDtls() {
if (unitsDtls == null) {
unitsDtls = new ArrayList<>();
}
return this.unitsDtls;
}
/**
* Gets the value of the ownAcctTrfInd property.
*
*/
public boolean isOwnAcctTrfInd() {
return ownAcctTrfInd;
}
/**
* Sets the value of the ownAcctTrfInd property.
*
*/
public Transfer4 setOwnAcctTrfInd(boolean value) {
this.ownAcctTrfInd = 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 Transfer4 setAvrgPric(ActiveOrHistoricCurrencyAnd13DecimalAmount value) {
this.avrgPric = 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 Transfer4 addUnitsDtls(Unit1 unitsDtls) {
getUnitsDtls().add(unitsDtls);
return this;
}
}