com.prowidesoftware.swift.model.mx.dic.Transfer31 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;
/**
* Parameters applied to the settlement of a security transfer.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Transfer31", propOrder = {
"trfConfRef",
"trfRef",
"clntRef",
"ctrPtyRef",
"bizFlowTp",
"fctvTrfDt",
"reqdSttlmDt",
"fctvSttlmDt",
"tradDt",
"trfOrdrDtForm",
"trfRsn",
"hldgsPlanTp",
"finInstrmDtls",
"ttlUnitsNb",
"unitsDtls",
"prtflTrfOutRate",
"rndg",
"avrgPric",
"newAvrgPric",
"avrgDt",
"newAvrgDt",
"trfCcy",
"ownAcctTrfInd",
"nonStdSttlmInf",
"rcvgAgtDtls",
"dlvrgAgtDtls",
"trfExpnssPmtTp"
})
public class Transfer31 {
@XmlElement(name = "TrfConfRef", required = true)
protected String trfConfRef;
@XmlElement(name = "TrfRef", required = true)
protected String trfRef;
@XmlElement(name = "ClntRef")
protected AdditionalReference7 clntRef;
@XmlElement(name = "CtrPtyRef")
protected AdditionalReference7 ctrPtyRef;
@XmlElement(name = "BizFlowTp")
@XmlSchemaType(name = "string")
protected BusinessFlowType1Code bizFlowTp;
@XmlElement(name = "FctvTrfDt", required = true)
protected DateAndDateTimeChoice fctvTrfDt;
@XmlElement(name = "ReqdSttlmDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate reqdSttlmDt;
@XmlElement(name = "FctvSttlmDt")
protected DateAndDateTimeChoice fctvSttlmDt;
@XmlElement(name = "TradDt")
protected DateAndDateTimeChoice tradDt;
@XmlElement(name = "TrfOrdrDtForm", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate trfOrdrDtForm;
@XmlElement(name = "TrfRsn")
protected TransferReason1 trfRsn;
@XmlElement(name = "HldgsPlanTp")
@XmlSchemaType(name = "string")
protected List hldgsPlanTp;
@XmlElement(name = "FinInstrmDtls", required = true)
protected FinancialInstrument49 finInstrmDtls;
@XmlElement(name = "TtlUnitsNb", required = true)
protected FinancialInstrumentQuantity1 ttlUnitsNb;
@XmlElement(name = "UnitsDtls")
protected List unitsDtls;
@XmlElement(name = "PrtflTrfOutRate")
protected BigDecimal prtflTrfOutRate;
@XmlElement(name = "Rndg")
@XmlSchemaType(name = "string")
protected RoundingDirection2Code rndg;
@XmlElement(name = "AvrgPric")
protected ActiveOrHistoricCurrencyAnd13DecimalAmount avrgPric;
@XmlElement(name = "NewAvrgPric")
protected ActiveOrHistoricCurrencyAnd13DecimalAmount newAvrgPric;
@XmlElement(name = "AvrgDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate avrgDt;
@XmlElement(name = "NewAvrgDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate newAvrgDt;
@XmlElement(name = "TrfCcy")
protected String trfCcy;
@XmlElement(name = "OwnAcctTrfInd")
protected Boolean ownAcctTrfInd;
@XmlElement(name = "NonStdSttlmInf")
protected String nonStdSttlmInf;
@XmlElement(name = "RcvgAgtDtls")
protected PartyIdentificationAndAccount125 rcvgAgtDtls;
@XmlElement(name = "DlvrgAgtDtls")
protected PartyIdentificationAndAccount125 dlvrgAgtDtls;
@XmlElement(name = "TrfExpnssPmtTp")
protected ChargePaymentMethod1Choice trfExpnssPmtTp;
/**
* 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 Transfer31 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 Transfer31 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 Transfer31 setClntRef(AdditionalReference7 value) {
this.clntRef = value;
return this;
}
/**
* Gets the value of the ctrPtyRef property.
*
* @return
* possible object is
* {@link AdditionalReference7 }
*
*/
public AdditionalReference7 getCtrPtyRef() {
return ctrPtyRef;
}
/**
* Sets the value of the ctrPtyRef property.
*
* @param value
* allowed object is
* {@link AdditionalReference7 }
*
*/
public Transfer31 setCtrPtyRef(AdditionalReference7 value) {
this.ctrPtyRef = value;
return this;
}
/**
* Gets the value of the bizFlowTp property.
*
* @return
* possible object is
* {@link BusinessFlowType1Code }
*
*/
public BusinessFlowType1Code getBizFlowTp() {
return bizFlowTp;
}
/**
* Sets the value of the bizFlowTp property.
*
* @param value
* allowed object is
* {@link BusinessFlowType1Code }
*
*/
public Transfer31 setBizFlowTp(BusinessFlowType1Code value) {
this.bizFlowTp = 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 Transfer31 setFctvTrfDt(DateAndDateTimeChoice value) {
this.fctvTrfDt = value;
return this;
}
/**
* Gets the value of the reqdSttlmDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getReqdSttlmDt() {
return reqdSttlmDt;
}
/**
* Sets the value of the reqdSttlmDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Transfer31 setReqdSttlmDt(LocalDate value) {
this.reqdSttlmDt = value;
return this;
}
/**
* Gets the value of the fctvSttlmDt property.
*
* @return
* possible object is
* {@link DateAndDateTimeChoice }
*
*/
public DateAndDateTimeChoice getFctvSttlmDt() {
return fctvSttlmDt;
}
/**
* Sets the value of the fctvSttlmDt property.
*
* @param value
* allowed object is
* {@link DateAndDateTimeChoice }
*
*/
public Transfer31 setFctvSttlmDt(DateAndDateTimeChoice value) {
this.fctvSttlmDt = value;
return this;
}
/**
* Gets the value of the tradDt property.
*
* @return
* possible object is
* {@link DateAndDateTimeChoice }
*
*/
public DateAndDateTimeChoice getTradDt() {
return tradDt;
}
/**
* Sets the value of the tradDt property.
*
* @param value
* allowed object is
* {@link DateAndDateTimeChoice }
*
*/
public Transfer31 setTradDt(DateAndDateTimeChoice value) {
this.tradDt = value;
return this;
}
/**
* Gets the value of the trfOrdrDtForm property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getTrfOrdrDtForm() {
return trfOrdrDtForm;
}
/**
* Sets the value of the trfOrdrDtForm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Transfer31 setTrfOrdrDtForm(LocalDate value) {
this.trfOrdrDtForm = value;
return this;
}
/**
* Gets the value of the trfRsn property.
*
* @return
* possible object is
* {@link TransferReason1 }
*
*/
public TransferReason1 getTrfRsn() {
return trfRsn;
}
/**
* Sets the value of the trfRsn property.
*
* @param value
* allowed object is
* {@link TransferReason1 }
*
*/
public Transfer31 setTrfRsn(TransferReason1 value) {
this.trfRsn = value;
return this;
}
/**
* Gets the value of the hldgsPlanTp 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 hldgsPlanTp property.
*
*
* For example, to add a new item, do as follows:
*
* getHldgsPlanTp().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link HoldingsPlanType1Code }
*
*
* @return
* The value of the hldgsPlanTp property.
*/
public List getHldgsPlanTp() {
if (hldgsPlanTp == null) {
hldgsPlanTp = new ArrayList<>();
}
return this.hldgsPlanTp;
}
/**
* Gets the value of the finInstrmDtls property.
*
* @return
* possible object is
* {@link FinancialInstrument49 }
*
*/
public FinancialInstrument49 getFinInstrmDtls() {
return finInstrmDtls;
}
/**
* Sets the value of the finInstrmDtls property.
*
* @param value
* allowed object is
* {@link FinancialInstrument49 }
*
*/
public Transfer31 setFinInstrmDtls(FinancialInstrument49 value) {
this.finInstrmDtls = 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 Transfer31 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 Unit6 }
*
*
* @return
* The value of the unitsDtls property.
*/
public List getUnitsDtls() {
if (unitsDtls == null) {
unitsDtls = new ArrayList<>();
}
return this.unitsDtls;
}
/**
* Gets the value of the prtflTrfOutRate property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getPrtflTrfOutRate() {
return prtflTrfOutRate;
}
/**
* Sets the value of the prtflTrfOutRate property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public Transfer31 setPrtflTrfOutRate(BigDecimal value) {
this.prtflTrfOutRate = value;
return this;
}
/**
* Gets the value of the rndg property.
*
* @return
* possible object is
* {@link RoundingDirection2Code }
*
*/
public RoundingDirection2Code getRndg() {
return rndg;
}
/**
* Sets the value of the rndg property.
*
* @param value
* allowed object is
* {@link RoundingDirection2Code }
*
*/
public Transfer31 setRndg(RoundingDirection2Code value) {
this.rndg = 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 Transfer31 setAvrgPric(ActiveOrHistoricCurrencyAnd13DecimalAmount value) {
this.avrgPric = value;
return this;
}
/**
* Gets the value of the newAvrgPric property.
*
* @return
* possible object is
* {@link ActiveOrHistoricCurrencyAnd13DecimalAmount }
*
*/
public ActiveOrHistoricCurrencyAnd13DecimalAmount getNewAvrgPric() {
return newAvrgPric;
}
/**
* Sets the value of the newAvrgPric property.
*
* @param value
* allowed object is
* {@link ActiveOrHistoricCurrencyAnd13DecimalAmount }
*
*/
public Transfer31 setNewAvrgPric(ActiveOrHistoricCurrencyAnd13DecimalAmount value) {
this.newAvrgPric = value;
return this;
}
/**
* Gets the value of the avrgDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getAvrgDt() {
return avrgDt;
}
/**
* Sets the value of the avrgDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Transfer31 setAvrgDt(LocalDate value) {
this.avrgDt = value;
return this;
}
/**
* Gets the value of the newAvrgDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getNewAvrgDt() {
return newAvrgDt;
}
/**
* Sets the value of the newAvrgDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Transfer31 setNewAvrgDt(LocalDate value) {
this.newAvrgDt = value;
return this;
}
/**
* Gets the value of the trfCcy property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrfCcy() {
return trfCcy;
}
/**
* Sets the value of the trfCcy property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Transfer31 setTrfCcy(String value) {
this.trfCcy = value;
return this;
}
/**
* Gets the value of the ownAcctTrfInd property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isOwnAcctTrfInd() {
return ownAcctTrfInd;
}
/**
* Sets the value of the ownAcctTrfInd property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public Transfer31 setOwnAcctTrfInd(Boolean value) {
this.ownAcctTrfInd = value;
return this;
}
/**
* Gets the value of the nonStdSttlmInf property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNonStdSttlmInf() {
return nonStdSttlmInf;
}
/**
* Sets the value of the nonStdSttlmInf property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Transfer31 setNonStdSttlmInf(String value) {
this.nonStdSttlmInf = value;
return this;
}
/**
* Gets the value of the rcvgAgtDtls property.
*
* @return
* possible object is
* {@link PartyIdentificationAndAccount125 }
*
*/
public PartyIdentificationAndAccount125 getRcvgAgtDtls() {
return rcvgAgtDtls;
}
/**
* Sets the value of the rcvgAgtDtls property.
*
* @param value
* allowed object is
* {@link PartyIdentificationAndAccount125 }
*
*/
public Transfer31 setRcvgAgtDtls(PartyIdentificationAndAccount125 value) {
this.rcvgAgtDtls = value;
return this;
}
/**
* Gets the value of the dlvrgAgtDtls property.
*
* @return
* possible object is
* {@link PartyIdentificationAndAccount125 }
*
*/
public PartyIdentificationAndAccount125 getDlvrgAgtDtls() {
return dlvrgAgtDtls;
}
/**
* Sets the value of the dlvrgAgtDtls property.
*
* @param value
* allowed object is
* {@link PartyIdentificationAndAccount125 }
*
*/
public Transfer31 setDlvrgAgtDtls(PartyIdentificationAndAccount125 value) {
this.dlvrgAgtDtls = value;
return this;
}
/**
* Gets the value of the trfExpnssPmtTp property.
*
* @return
* possible object is
* {@link ChargePaymentMethod1Choice }
*
*/
public ChargePaymentMethod1Choice getTrfExpnssPmtTp() {
return trfExpnssPmtTp;
}
/**
* Sets the value of the trfExpnssPmtTp property.
*
* @param value
* allowed object is
* {@link ChargePaymentMethod1Choice }
*
*/
public Transfer31 setTrfExpnssPmtTp(ChargePaymentMethod1Choice value) {
this.trfExpnssPmtTp = 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 hldgsPlanTp list.
* @see #getHldgsPlanTp()
*
*/
public Transfer31 addHldgsPlanTp(HoldingsPlanType1Code hldgsPlanTp) {
getHldgsPlanTp().add(hldgsPlanTp);
return this;
}
/**
* Adds a new item to the unitsDtls list.
* @see #getUnitsDtls()
*
*/
public Transfer31 addUnitsDtls(Unit6 unitsDtls) {
getUnitsDtls().add(unitsDtls);
return this;
}
}