com.prowidesoftware.swift.model.mx.dic.BuyInRegulatoryAdviceResponseV01 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
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.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;
/**
* Scope
*
* An account servicer sends a BuyInRegulatoryAdviceResponse to an account owner to advise the status of a buy-in report previously instructed by the account owner.
*
* The account servicer/owner relationship may be:
*
* - a central securities depository or another settlement market infrastructure acting on behalf of their participants
*
* - an agent (sub-custodian) acting on behalf of their global custodian customer, or
*
* - a custodian acting on behalf of an investment management institution or a broker/dealer.
*
*
*
* Usage
*
* A BuyInRegulatpryReport may contain reports on multiple transactions. However, one BuyInRegulatoryReportStatusAdvice must be sent per transaction reported unless the BuyInRegulatoryReport is rejected as a whole.
*
*
* The message may also be used to:
* - re-send a message previously sent,
*
* - provide a third party with a copy of a message for information,
*
* - re-send to a third party a copy of a message for information using the relevant elements in the Business Application Header.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BuyInRegulatoryAdviceResponseV01", propOrder = {
"advcRef",
"acctOwnr",
"sfkpgAcct",
"buyInAttrbts",
"prcgSts",
"splmtryData"
})
public class BuyInRegulatoryAdviceResponseV01 {
@XmlElement(name = "AdvcRef", required = true)
protected Identification14 advcRef;
@XmlElement(name = "AcctOwnr")
protected PartyIdentification144 acctOwnr;
@XmlElement(name = "SfkpgAcct")
protected SecuritiesAccount19 sfkpgAcct;
@XmlElement(name = "BuyInAttrbts")
protected List buyInAttrbts;
@XmlElement(name = "PrcgSts", required = true)
protected ProcessingStatus79Choice prcgSts;
@XmlElement(name = "SplmtryData")
protected List splmtryData;
/**
* Gets the value of the advcRef property.
*
* @return
* possible object is
* {@link Identification14 }
*
*/
public Identification14 getAdvcRef() {
return advcRef;
}
/**
* Sets the value of the advcRef property.
*
* @param value
* allowed object is
* {@link Identification14 }
*
*/
public BuyInRegulatoryAdviceResponseV01 setAdvcRef(Identification14 value) {
this.advcRef = value;
return this;
}
/**
* Gets the value of the acctOwnr property.
*
* @return
* possible object is
* {@link PartyIdentification144 }
*
*/
public PartyIdentification144 getAcctOwnr() {
return acctOwnr;
}
/**
* Sets the value of the acctOwnr property.
*
* @param value
* allowed object is
* {@link PartyIdentification144 }
*
*/
public BuyInRegulatoryAdviceResponseV01 setAcctOwnr(PartyIdentification144 value) {
this.acctOwnr = value;
return this;
}
/**
* Gets the value of the sfkpgAcct property.
*
* @return
* possible object is
* {@link SecuritiesAccount19 }
*
*/
public SecuritiesAccount19 getSfkpgAcct() {
return sfkpgAcct;
}
/**
* Sets the value of the sfkpgAcct property.
*
* @param value
* allowed object is
* {@link SecuritiesAccount19 }
*
*/
public BuyInRegulatoryAdviceResponseV01 setSfkpgAcct(SecuritiesAccount19 value) {
this.sfkpgAcct = value;
return this;
}
/**
* Gets the value of the buyInAttrbts 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 buyInAttrbts property.
*
*
* For example, to add a new item, do as follows:
*
* getBuyInAttrbts().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link BuyInAdviceDetails1 }
*
*
* @return
* The value of the buyInAttrbts property.
*/
public List getBuyInAttrbts() {
if (buyInAttrbts == null) {
buyInAttrbts = new ArrayList<>();
}
return this.buyInAttrbts;
}
/**
* Gets the value of the prcgSts property.
*
* @return
* possible object is
* {@link ProcessingStatus79Choice }
*
*/
public ProcessingStatus79Choice getPrcgSts() {
return prcgSts;
}
/**
* Sets the value of the prcgSts property.
*
* @param value
* allowed object is
* {@link ProcessingStatus79Choice }
*
*/
public BuyInRegulatoryAdviceResponseV01 setPrcgSts(ProcessingStatus79Choice value) {
this.prcgSts = value;
return this;
}
/**
* Gets the value of the splmtryData 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 splmtryData property.
*
*
* For example, to add a new item, do as follows:
*
* getSplmtryData().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SupplementaryData1 }
*
*
* @return
* The value of the splmtryData property.
*/
public List getSplmtryData() {
if (splmtryData == null) {
splmtryData = new ArrayList<>();
}
return this.splmtryData;
}
@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 buyInAttrbts list.
* @see #getBuyInAttrbts()
*
*/
public BuyInRegulatoryAdviceResponseV01 addBuyInAttrbts(BuyInAdviceDetails1 buyInAttrbts) {
getBuyInAttrbts().add(buyInAttrbts);
return this;
}
/**
* Adds a new item to the splmtryData list.
* @see #getSplmtryData()
*
*/
public BuyInRegulatoryAdviceResponseV01 addSplmtryData(SupplementaryData1 splmtryData) {
getSplmtryData().add(splmtryData);
return this;
}
}