com.prowidesoftware.swift.model.mx.dic.OriginalGroupHeader4 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.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import com.prowidesoftware.swift.model.mx.adapters.IsoDateTimeAdapter;
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;
/**
* Provides details on the original group, to which the message refers.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OriginalGroupHeader4", propOrder = {
"grpCxlId",
"_case",
"orgnlMsgId",
"orgnlMsgNmId",
"orgnlCreDtTm",
"nbOfTxs",
"ctrlSum",
"grpCxl",
"cxlRsnInf"
})
public class OriginalGroupHeader4 {
@XmlElement(name = "GrpCxlId")
protected String grpCxlId;
@XmlElement(name = "Case")
protected Case3 _case;
@XmlElement(name = "OrgnlMsgId", required = true)
protected String orgnlMsgId;
@XmlElement(name = "OrgnlMsgNmId", required = true)
protected String orgnlMsgNmId;
@XmlElement(name = "OrgnlCreDtTm", type = String.class)
@XmlJavaTypeAdapter(IsoDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected OffsetDateTime orgnlCreDtTm;
@XmlElement(name = "NbOfTxs")
protected String nbOfTxs;
@XmlElement(name = "CtrlSum")
protected BigDecimal ctrlSum;
@XmlElement(name = "GrpCxl")
protected Boolean grpCxl;
@XmlElement(name = "CxlRsnInf")
protected List cxlRsnInf;
/**
* Gets the value of the grpCxlId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getGrpCxlId() {
return grpCxlId;
}
/**
* Sets the value of the grpCxlId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalGroupHeader4 setGrpCxlId(String value) {
this.grpCxlId = value;
return this;
}
/**
* Gets the value of the case property.
*
* @return
* possible object is
* {@link Case3 }
*
*/
public Case3 getCase() {
return _case;
}
/**
* Sets the value of the case property.
*
* @param value
* allowed object is
* {@link Case3 }
*
*/
public OriginalGroupHeader4 setCase(Case3 value) {
this._case = value;
return this;
}
/**
* Gets the value of the orgnlMsgId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrgnlMsgId() {
return orgnlMsgId;
}
/**
* Sets the value of the orgnlMsgId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalGroupHeader4 setOrgnlMsgId(String value) {
this.orgnlMsgId = value;
return this;
}
/**
* Gets the value of the orgnlMsgNmId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrgnlMsgNmId() {
return orgnlMsgNmId;
}
/**
* Sets the value of the orgnlMsgNmId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalGroupHeader4 setOrgnlMsgNmId(String value) {
this.orgnlMsgNmId = value;
return this;
}
/**
* Gets the value of the orgnlCreDtTm property.
*
* @return
* possible object is
* {@link String }
*
*/
public OffsetDateTime getOrgnlCreDtTm() {
return orgnlCreDtTm;
}
/**
* Sets the value of the orgnlCreDtTm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalGroupHeader4 setOrgnlCreDtTm(OffsetDateTime value) {
this.orgnlCreDtTm = 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 OriginalGroupHeader4 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 OriginalGroupHeader4 setCtrlSum(BigDecimal value) {
this.ctrlSum = value;
return this;
}
/**
* Gets the value of the grpCxl property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isGrpCxl() {
return grpCxl;
}
/**
* Sets the value of the grpCxl property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public OriginalGroupHeader4 setGrpCxl(Boolean value) {
this.grpCxl = 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 Jakarta XML Binding object.
* This is why there is not a {@code 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 PaymentCancellationReason2 }
*
*
* @return
* The value of the cxlRsnInf property.
*/
public List getCxlRsnInf() {
if (cxlRsnInf == null) {
cxlRsnInf = new ArrayList<>();
}
return this.cxlRsnInf;
}
@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 OriginalGroupHeader4 addCxlRsnInf(PaymentCancellationReason2 cxlRsnInf) {
getCxlRsnInf().add(cxlRsnInf);
return this;
}
}