com.prowidesoftware.swift.model.mx.dic.RedemptionOrder3 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
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 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;
/**
* Instruction from an investor to sell investment fund units back to the fund.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RedemptionOrder3", propOrder = {
"ordrRef",
"ordrTp",
"invstmtAcctDtls",
"bnfcryDtls",
"unitsNb",
"netAmt",
"hldgsRedRate",
"rndg",
"grssAmt",
"fxDtls",
"incmPref",
"grp1Or2Units",
"chrgDtls",
"comssnDtls",
"taxDtls",
"sttlmAndCtdyDtls",
"physDlvryInd",
"physDlvryDtls",
"cshSttlmDtls"
})
public class RedemptionOrder3 {
@XmlElement(name = "OrdrRef", required = true)
protected String ordrRef;
@XmlElement(name = "OrdrTp")
protected List ordrTp;
@XmlElement(name = "InvstmtAcctDtls", required = true)
protected InvestmentAccount13 invstmtAcctDtls;
@XmlElement(name = "BnfcryDtls")
protected IndividualPerson2 bnfcryDtls;
@XmlElement(name = "UnitsNb")
protected FinancialInstrumentQuantity1 unitsNb;
@XmlElement(name = "NetAmt")
protected ActiveOrHistoricCurrencyAndAmount netAmt;
@XmlElement(name = "HldgsRedRate")
protected BigDecimal hldgsRedRate;
@XmlElement(name = "Rndg")
@XmlSchemaType(name = "string")
protected RoundingDirection2Code rndg;
@XmlElement(name = "GrssAmt")
protected ActiveOrHistoricCurrencyAndAmount grssAmt;
@XmlElement(name = "FXDtls")
protected ForeignExchangeTerms5 fxDtls;
@XmlElement(name = "IncmPref")
@XmlSchemaType(name = "string")
protected IncomePreference1Code incmPref;
@XmlElement(name = "Grp1Or2Units")
@XmlSchemaType(name = "string")
protected UKTaxGroupUnitCode grp1Or2Units;
@XmlElement(name = "ChrgDtls")
protected List chrgDtls;
@XmlElement(name = "ComssnDtls")
protected List comssnDtls;
@XmlElement(name = "TaxDtls")
protected List taxDtls;
@XmlElement(name = "SttlmAndCtdyDtls")
protected FundSettlementParameters3 sttlmAndCtdyDtls;
@XmlElement(name = "PhysDlvryInd")
protected boolean physDlvryInd;
@XmlElement(name = "PhysDlvryDtls")
protected DeliveryParameters3 physDlvryDtls;
@XmlElement(name = "CshSttlmDtls")
protected PaymentTransaction18 cshSttlmDtls;
/**
* Gets the value of the ordrRef property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrdrRef() {
return ordrRef;
}
/**
* Sets the value of the ordrRef property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public RedemptionOrder3 setOrdrRef(String value) {
this.ordrRef = value;
return this;
}
/**
* Gets the value of the ordrTp 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 ordrTp property.
*
*
* For example, to add a new item, do as follows:
*
* getOrdrTp().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link FundOrderType1 }
*
*
* @return
* The value of the ordrTp property.
*/
public List getOrdrTp() {
if (ordrTp == null) {
ordrTp = new ArrayList<>();
}
return this.ordrTp;
}
/**
* Gets the value of the invstmtAcctDtls property.
*
* @return
* possible object is
* {@link InvestmentAccount13 }
*
*/
public InvestmentAccount13 getInvstmtAcctDtls() {
return invstmtAcctDtls;
}
/**
* Sets the value of the invstmtAcctDtls property.
*
* @param value
* allowed object is
* {@link InvestmentAccount13 }
*
*/
public RedemptionOrder3 setInvstmtAcctDtls(InvestmentAccount13 value) {
this.invstmtAcctDtls = value;
return this;
}
/**
* Gets the value of the bnfcryDtls property.
*
* @return
* possible object is
* {@link IndividualPerson2 }
*
*/
public IndividualPerson2 getBnfcryDtls() {
return bnfcryDtls;
}
/**
* Sets the value of the bnfcryDtls property.
*
* @param value
* allowed object is
* {@link IndividualPerson2 }
*
*/
public RedemptionOrder3 setBnfcryDtls(IndividualPerson2 value) {
this.bnfcryDtls = value;
return this;
}
/**
* Gets the value of the unitsNb property.
*
* @return
* possible object is
* {@link FinancialInstrumentQuantity1 }
*
*/
public FinancialInstrumentQuantity1 getUnitsNb() {
return unitsNb;
}
/**
* Sets the value of the unitsNb property.
*
* @param value
* allowed object is
* {@link FinancialInstrumentQuantity1 }
*
*/
public RedemptionOrder3 setUnitsNb(FinancialInstrumentQuantity1 value) {
this.unitsNb = value;
return this;
}
/**
* Gets the value of the netAmt property.
*
* @return
* possible object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public ActiveOrHistoricCurrencyAndAmount getNetAmt() {
return netAmt;
}
/**
* Sets the value of the netAmt property.
*
* @param value
* allowed object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public RedemptionOrder3 setNetAmt(ActiveOrHistoricCurrencyAndAmount value) {
this.netAmt = value;
return this;
}
/**
* Gets the value of the hldgsRedRate property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getHldgsRedRate() {
return hldgsRedRate;
}
/**
* Sets the value of the hldgsRedRate property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public RedemptionOrder3 setHldgsRedRate(BigDecimal value) {
this.hldgsRedRate = 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 RedemptionOrder3 setRndg(RoundingDirection2Code value) {
this.rndg = value;
return this;
}
/**
* Gets the value of the grssAmt property.
*
* @return
* possible object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public ActiveOrHistoricCurrencyAndAmount getGrssAmt() {
return grssAmt;
}
/**
* Sets the value of the grssAmt property.
*
* @param value
* allowed object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public RedemptionOrder3 setGrssAmt(ActiveOrHistoricCurrencyAndAmount value) {
this.grssAmt = value;
return this;
}
/**
* Gets the value of the fxDtls property.
*
* @return
* possible object is
* {@link ForeignExchangeTerms5 }
*
*/
public ForeignExchangeTerms5 getFXDtls() {
return fxDtls;
}
/**
* Sets the value of the fxDtls property.
*
* @param value
* allowed object is
* {@link ForeignExchangeTerms5 }
*
*/
public RedemptionOrder3 setFXDtls(ForeignExchangeTerms5 value) {
this.fxDtls = value;
return this;
}
/**
* Gets the value of the incmPref property.
*
* @return
* possible object is
* {@link IncomePreference1Code }
*
*/
public IncomePreference1Code getIncmPref() {
return incmPref;
}
/**
* Sets the value of the incmPref property.
*
* @param value
* allowed object is
* {@link IncomePreference1Code }
*
*/
public RedemptionOrder3 setIncmPref(IncomePreference1Code value) {
this.incmPref = value;
return this;
}
/**
* Gets the value of the grp1Or2Units property.
*
* @return
* possible object is
* {@link UKTaxGroupUnitCode }
*
*/
public UKTaxGroupUnitCode getGrp1Or2Units() {
return grp1Or2Units;
}
/**
* Sets the value of the grp1Or2Units property.
*
* @param value
* allowed object is
* {@link UKTaxGroupUnitCode }
*
*/
public RedemptionOrder3 setGrp1Or2Units(UKTaxGroupUnitCode value) {
this.grp1Or2Units = value;
return this;
}
/**
* Gets the value of the chrgDtls 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 chrgDtls property.
*
*
* For example, to add a new item, do as follows:
*
* getChrgDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Charge8 }
*
*
* @return
* The value of the chrgDtls property.
*/
public List getChrgDtls() {
if (chrgDtls == null) {
chrgDtls = new ArrayList<>();
}
return this.chrgDtls;
}
/**
* Gets the value of the comssnDtls 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 comssnDtls property.
*
*
* For example, to add a new item, do as follows:
*
* getComssnDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Commission6 }
*
*
* @return
* The value of the comssnDtls property.
*/
public List getComssnDtls() {
if (comssnDtls == null) {
comssnDtls = new ArrayList<>();
}
return this.comssnDtls;
}
/**
* Gets the value of the taxDtls 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 taxDtls property.
*
*
* For example, to add a new item, do as follows:
*
* getTaxDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Tax6 }
*
*
* @return
* The value of the taxDtls property.
*/
public List getTaxDtls() {
if (taxDtls == null) {
taxDtls = new ArrayList<>();
}
return this.taxDtls;
}
/**
* Gets the value of the sttlmAndCtdyDtls property.
*
* @return
* possible object is
* {@link FundSettlementParameters3 }
*
*/
public FundSettlementParameters3 getSttlmAndCtdyDtls() {
return sttlmAndCtdyDtls;
}
/**
* Sets the value of the sttlmAndCtdyDtls property.
*
* @param value
* allowed object is
* {@link FundSettlementParameters3 }
*
*/
public RedemptionOrder3 setSttlmAndCtdyDtls(FundSettlementParameters3 value) {
this.sttlmAndCtdyDtls = value;
return this;
}
/**
* Gets the value of the physDlvryInd property.
*
*/
public boolean isPhysDlvryInd() {
return physDlvryInd;
}
/**
* Sets the value of the physDlvryInd property.
*
*/
public RedemptionOrder3 setPhysDlvryInd(boolean value) {
this.physDlvryInd = value;
return this;
}
/**
* Gets the value of the physDlvryDtls property.
*
* @return
* possible object is
* {@link DeliveryParameters3 }
*
*/
public DeliveryParameters3 getPhysDlvryDtls() {
return physDlvryDtls;
}
/**
* Sets the value of the physDlvryDtls property.
*
* @param value
* allowed object is
* {@link DeliveryParameters3 }
*
*/
public RedemptionOrder3 setPhysDlvryDtls(DeliveryParameters3 value) {
this.physDlvryDtls = value;
return this;
}
/**
* Gets the value of the cshSttlmDtls property.
*
* @return
* possible object is
* {@link PaymentTransaction18 }
*
*/
public PaymentTransaction18 getCshSttlmDtls() {
return cshSttlmDtls;
}
/**
* Sets the value of the cshSttlmDtls property.
*
* @param value
* allowed object is
* {@link PaymentTransaction18 }
*
*/
public RedemptionOrder3 setCshSttlmDtls(PaymentTransaction18 value) {
this.cshSttlmDtls = 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 ordrTp list.
* @see #getOrdrTp()
*
*/
public RedemptionOrder3 addOrdrTp(FundOrderType1 ordrTp) {
getOrdrTp().add(ordrTp);
return this;
}
/**
* Adds a new item to the chrgDtls list.
* @see #getChrgDtls()
*
*/
public RedemptionOrder3 addChrgDtls(Charge8 chrgDtls) {
getChrgDtls().add(chrgDtls);
return this;
}
/**
* Adds a new item to the comssnDtls list.
* @see #getComssnDtls()
*
*/
public RedemptionOrder3 addComssnDtls(Commission6 comssnDtls) {
getComssnDtls().add(comssnDtls);
return this;
}
/**
* Adds a new item to the taxDtls list.
* @see #getTaxDtls()
*
*/
public RedemptionOrder3 addTaxDtls(Tax6 taxDtls) {
getTaxDtls().add(taxDtls);
return this;
}
}