com.prowidesoftware.swift.model.mx.dic.Transaction157 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.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;
/**
* Details of transaction for a file action.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Transaction157", propOrder = {
"msgRsn",
"altrnMsgRsn",
"txId",
"fileActnScp",
"fileActnTp",
"othrFileActnTp",
"fileActnDtls",
"addtlFee",
"addtlData",
"crrctn",
"conttnInd"
})
public class Transaction157 {
@XmlElement(name = "MsgRsn")
protected List msgRsn;
@XmlElement(name = "AltrnMsgRsn")
protected List altrnMsgRsn;
@XmlElement(name = "TxId")
protected TransactionIdentification12 txId;
@XmlElement(name = "FileActnScp")
@XmlSchemaType(name = "string")
protected FileActionScope1Code fileActnScp;
@XmlElement(name = "FileActnTp")
@XmlSchemaType(name = "string")
protected FileActionType2Code fileActnTp;
@XmlElement(name = "OthrFileActnTp")
protected String othrFileActnTp;
@XmlElement(name = "FileActnDtls", required = true)
protected FileActionDetails2 fileActnDtls;
@XmlElement(name = "AddtlFee")
protected List addtlFee;
@XmlElement(name = "AddtlData")
protected List addtlData;
@XmlElement(name = "Crrctn")
protected CorrectionIdentification1 crrctn;
@XmlElement(name = "ConttnInd")
protected Boolean conttnInd;
/**
* Gets the value of the msgRsn 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 msgRsn property.
*
*
* For example, to add a new item, do as follows:
*
* getMsgRsn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
* @return
* The value of the msgRsn property.
*/
public List getMsgRsn() {
if (msgRsn == null) {
msgRsn = new ArrayList<>();
}
return this.msgRsn;
}
/**
* Gets the value of the altrnMsgRsn 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 altrnMsgRsn property.
*
*
* For example, to add a new item, do as follows:
*
* getAltrnMsgRsn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
* @return
* The value of the altrnMsgRsn property.
*/
public List getAltrnMsgRsn() {
if (altrnMsgRsn == null) {
altrnMsgRsn = new ArrayList<>();
}
return this.altrnMsgRsn;
}
/**
* Gets the value of the txId property.
*
* @return
* possible object is
* {@link TransactionIdentification12 }
*
*/
public TransactionIdentification12 getTxId() {
return txId;
}
/**
* Sets the value of the txId property.
*
* @param value
* allowed object is
* {@link TransactionIdentification12 }
*
*/
public Transaction157 setTxId(TransactionIdentification12 value) {
this.txId = value;
return this;
}
/**
* Gets the value of the fileActnScp property.
*
* @return
* possible object is
* {@link FileActionScope1Code }
*
*/
public FileActionScope1Code getFileActnScp() {
return fileActnScp;
}
/**
* Sets the value of the fileActnScp property.
*
* @param value
* allowed object is
* {@link FileActionScope1Code }
*
*/
public Transaction157 setFileActnScp(FileActionScope1Code value) {
this.fileActnScp = value;
return this;
}
/**
* Gets the value of the fileActnTp property.
*
* @return
* possible object is
* {@link FileActionType2Code }
*
*/
public FileActionType2Code getFileActnTp() {
return fileActnTp;
}
/**
* Sets the value of the fileActnTp property.
*
* @param value
* allowed object is
* {@link FileActionType2Code }
*
*/
public Transaction157 setFileActnTp(FileActionType2Code value) {
this.fileActnTp = value;
return this;
}
/**
* Gets the value of the othrFileActnTp property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOthrFileActnTp() {
return othrFileActnTp;
}
/**
* Sets the value of the othrFileActnTp property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Transaction157 setOthrFileActnTp(String value) {
this.othrFileActnTp = value;
return this;
}
/**
* Gets the value of the fileActnDtls property.
*
* @return
* possible object is
* {@link FileActionDetails2 }
*
*/
public FileActionDetails2 getFileActnDtls() {
return fileActnDtls;
}
/**
* Sets the value of the fileActnDtls property.
*
* @param value
* allowed object is
* {@link FileActionDetails2 }
*
*/
public Transaction157 setFileActnDtls(FileActionDetails2 value) {
this.fileActnDtls = value;
return this;
}
/**
* Gets the value of the addtlFee 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 addtlFee property.
*
*
* For example, to add a new item, do as follows:
*
* getAddtlFee().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AdditionalFee2 }
*
*
* @return
* The value of the addtlFee property.
*/
public List getAddtlFee() {
if (addtlFee == null) {
addtlFee = new ArrayList<>();
}
return this.addtlFee;
}
/**
* Gets the value of the addtlData 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 addtlData property.
*
*
* For example, to add a new item, do as follows:
*
* getAddtlData().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AdditionalData1 }
*
*
* @return
* The value of the addtlData property.
*/
public List getAddtlData() {
if (addtlData == null) {
addtlData = new ArrayList<>();
}
return this.addtlData;
}
/**
* Gets the value of the crrctn property.
*
* @return
* possible object is
* {@link CorrectionIdentification1 }
*
*/
public CorrectionIdentification1 getCrrctn() {
return crrctn;
}
/**
* Sets the value of the crrctn property.
*
* @param value
* allowed object is
* {@link CorrectionIdentification1 }
*
*/
public Transaction157 setCrrctn(CorrectionIdentification1 value) {
this.crrctn = value;
return this;
}
/**
* Gets the value of the conttnInd property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isConttnInd() {
return conttnInd;
}
/**
* Sets the value of the conttnInd property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public Transaction157 setConttnInd(Boolean value) {
this.conttnInd = 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 msgRsn list.
* @see #getMsgRsn()
*
*/
public Transaction157 addMsgRsn(String msgRsn) {
getMsgRsn().add(msgRsn);
return this;
}
/**
* Adds a new item to the altrnMsgRsn list.
* @see #getAltrnMsgRsn()
*
*/
public Transaction157 addAltrnMsgRsn(String altrnMsgRsn) {
getAltrnMsgRsn().add(altrnMsgRsn);
return this;
}
/**
* Adds a new item to the addtlFee list.
* @see #getAddtlFee()
*
*/
public Transaction157 addAddtlFee(AdditionalFee2 addtlFee) {
getAddtlFee().add(addtlFee);
return this;
}
/**
* Adds a new item to the addtlData list.
* @see #getAddtlData()
*
*/
public Transaction157 addAddtlData(AdditionalData1 addtlData) {
getAddtlData().add(addtlData);
return this;
}
}