com.prowidesoftware.swift.model.mx.dic.OriginalPaymentInstruction29 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.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;
/**
* Provides details on the reference and status of the original transactions, included in the original instruction, to which the cancellation request message applies.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OriginalPaymentInstruction29", propOrder = {
"pmtCxlId",
"_case",
"orgnlPmtInfId",
"orgnlGrpInf",
"nbOfTxs",
"ctrlSum",
"pmtInfCxl",
"cxlRsnInf",
"txInf"
})
public class OriginalPaymentInstruction29 {
@XmlElement(name = "PmtCxlId")
protected String pmtCxlId;
@XmlElement(name = "Case")
protected Case4 _case;
@XmlElement(name = "OrgnlPmtInfId", required = true)
protected String orgnlPmtInfId;
@XmlElement(name = "OrgnlGrpInf")
protected OriginalGroupInformation29 orgnlGrpInf;
@XmlElement(name = "NbOfTxs")
protected String nbOfTxs;
@XmlElement(name = "CtrlSum")
protected BigDecimal ctrlSum;
@XmlElement(name = "PmtInfCxl")
protected Boolean pmtInfCxl;
@XmlElement(name = "CxlRsnInf")
protected List cxlRsnInf;
@XmlElement(name = "TxInf")
protected List txInf;
/**
* Gets the value of the pmtCxlId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPmtCxlId() {
return pmtCxlId;
}
/**
* Sets the value of the pmtCxlId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalPaymentInstruction29 setPmtCxlId(String value) {
this.pmtCxlId = value;
return this;
}
/**
* Gets the value of the case property.
*
* @return
* possible object is
* {@link Case4 }
*
*/
public Case4 getCase() {
return _case;
}
/**
* Sets the value of the case property.
*
* @param value
* allowed object is
* {@link Case4 }
*
*/
public OriginalPaymentInstruction29 setCase(Case4 value) {
this._case = value;
return this;
}
/**
* Gets the value of the orgnlPmtInfId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrgnlPmtInfId() {
return orgnlPmtInfId;
}
/**
* Sets the value of the orgnlPmtInfId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalPaymentInstruction29 setOrgnlPmtInfId(String value) {
this.orgnlPmtInfId = value;
return this;
}
/**
* Gets the value of the orgnlGrpInf property.
*
* @return
* possible object is
* {@link OriginalGroupInformation29 }
*
*/
public OriginalGroupInformation29 getOrgnlGrpInf() {
return orgnlGrpInf;
}
/**
* Sets the value of the orgnlGrpInf property.
*
* @param value
* allowed object is
* {@link OriginalGroupInformation29 }
*
*/
public OriginalPaymentInstruction29 setOrgnlGrpInf(OriginalGroupInformation29 value) {
this.orgnlGrpInf = value;
return this;
}
/**
* Gets the value of the nbOfTxs property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNbOfTxs() {
return nbOfTxs;
}
/**
* Sets the value of the nbOfTxs property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalPaymentInstruction29 setNbOfTxs(String value) {
this.nbOfTxs = value;
return this;
}
/**
* Gets the value of the ctrlSum property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCtrlSum() {
return ctrlSum;
}
/**
* Sets the value of the ctrlSum property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public OriginalPaymentInstruction29 setCtrlSum(BigDecimal value) {
this.ctrlSum = value;
return this;
}
/**
* Gets the value of the pmtInfCxl property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isPmtInfCxl() {
return pmtInfCxl;
}
/**
* Sets the value of the pmtInfCxl property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public OriginalPaymentInstruction29 setPmtInfCxl(Boolean value) {
this.pmtInfCxl = value;
return this;
}
/**
* Gets the value of the cxlRsnInf 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 JAXB object.
* This is why there is not a set
method for the cxlRsnInf property.
*
*
* For example, to add a new item, do as follows:
*
* getCxlRsnInf().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PaymentCancellationReason4 }
*
*
*/
public List getCxlRsnInf() {
if (cxlRsnInf == null) {
cxlRsnInf = new ArrayList();
}
return this.cxlRsnInf;
}
/**
* Gets the value of the txInf 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 JAXB object.
* This is why there is not a set
method for the txInf property.
*
*
* For example, to add a new item, do as follows:
*
* getTxInf().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PaymentTransaction95 }
*
*
*/
public List getTxInf() {
if (txInf == null) {
txInf = new ArrayList();
}
return this.txInf;
}
@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 cxlRsnInf list.
* @see #getCxlRsnInf()
*
*/
public OriginalPaymentInstruction29 addCxlRsnInf(PaymentCancellationReason4 cxlRsnInf) {
getCxlRsnInf().add(cxlRsnInf);
return this;
}
/**
* Adds a new item to the txInf list.
* @see #getTxInf()
*
*/
public OriginalPaymentInstruction29 addTxInf(PaymentTransaction95 txInf) {
getTxInf().add(txInf);
return this;
}
}