com.prowidesoftware.swift.model.mx.dic.TransferOutCancellationRequestV07 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 instructing party, for example, an investment manager or its authorised representative, sends the TransferOutCancellationRequest message to the executing party, for example, a transfer agent, to request the cancellation of a previously sent TransferOutInstruction.
* Usage
* The TransferOutCancellationRequest message is used to request cancellation of a previously sent TransferOutInstruction. There are two ways to specify the transfer cancellation request. Either:
* - the transfer reference of the original transfer is quoted, or,
* - all the details of the original transfer (this includes TransferReference) are quoted but this is not recommended.
* The message identification of the TransferOutInstruction message in which the original transfer was conveyed may also be quoted in PreviousReference. It is also possible to request the cancellation of a TransferOutInstruction message by quoting its message identification in PreviousReference.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TransferOutCancellationRequestV07", propOrder = {
"msgId",
"refs",
"cxl",
"mktPrctcVrsn",
"cpyDtls"
})
public class TransferOutCancellationRequestV07 {
@XmlElement(name = "MsgId", required = true)
protected MessageIdentification1 msgId;
@XmlElement(name = "Refs")
protected List refs;
@XmlElement(name = "Cxl", required = true)
protected List cxl;
@XmlElement(name = "MktPrctcVrsn")
protected MarketPracticeVersion1 mktPrctcVrsn;
@XmlElement(name = "CpyDtls")
protected CopyInformation4 cpyDtls;
/**
* Gets the value of the msgId property.
*
* @return
* possible object is
* {@link MessageIdentification1 }
*
*/
public MessageIdentification1 getMsgId() {
return msgId;
}
/**
* Sets the value of the msgId property.
*
* @param value
* allowed object is
* {@link MessageIdentification1 }
*
*/
public TransferOutCancellationRequestV07 setMsgId(MessageIdentification1 value) {
this.msgId = value;
return this;
}
/**
* Gets the value of the refs 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 refs property.
*
*
* For example, to add a new item, do as follows:
*
* getRefs().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link References20 }
*
*
* @return
* The value of the refs property.
*/
public List getRefs() {
if (refs == null) {
refs = new ArrayList<>();
}
return this.refs;
}
/**
* Gets the value of the cxl 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 cxl property.
*
*
* For example, to add a new item, do as follows:
*
* getCxl().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Cancellation12Choice }
*
*
* @return
* The value of the cxl property.
*/
public List getCxl() {
if (cxl == null) {
cxl = new ArrayList<>();
}
return this.cxl;
}
/**
* Gets the value of the mktPrctcVrsn property.
*
* @return
* possible object is
* {@link MarketPracticeVersion1 }
*
*/
public MarketPracticeVersion1 getMktPrctcVrsn() {
return mktPrctcVrsn;
}
/**
* Sets the value of the mktPrctcVrsn property.
*
* @param value
* allowed object is
* {@link MarketPracticeVersion1 }
*
*/
public TransferOutCancellationRequestV07 setMktPrctcVrsn(MarketPracticeVersion1 value) {
this.mktPrctcVrsn = value;
return this;
}
/**
* Gets the value of the cpyDtls property.
*
* @return
* possible object is
* {@link CopyInformation4 }
*
*/
public CopyInformation4 getCpyDtls() {
return cpyDtls;
}
/**
* Sets the value of the cpyDtls property.
*
* @param value
* allowed object is
* {@link CopyInformation4 }
*
*/
public TransferOutCancellationRequestV07 setCpyDtls(CopyInformation4 value) {
this.cpyDtls = 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 refs list.
* @see #getRefs()
*
*/
public TransferOutCancellationRequestV07 addRefs(References20 refs) {
getRefs().add(refs);
return this;
}
/**
* Adds a new item to the cxl list.
* @see #getCxl()
*
*/
public TransferOutCancellationRequestV07 addCxl(Cancellation12Choice cxl) {
getCxl().add(cxl);
return this;
}
}