com.prowidesoftware.swift.model.mx.dic.ReceiptV03 Maven / Gradle / Ivy
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
* The Receipt message is sent by the transaction administrator to a member of the system. It is sent to acknowledge the receipt of one or multiple messages sent previously.
* The Receipt message is an application receipt acknowledgement and conveys information about the processing of the original message(s).
* Usage
* The Receipt message is used when the exchange of messages takes place in an asynchronous manner.
* This may happen, for instance, when an action is requested from the transaction administrator (a deletion, modification or cancellation). The transaction administrator will first acknowledge the request (with a Receipt message) and then execute it.
* The message can contain information based on the following elements: reference of the message(s) it acknowledges, the status code (optional) and further explanation:
* - reference of the message it acknowledges
* - potentially, a status code and an explanation.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ReceiptV03", propOrder = {
"msgHdr",
"rctDtls"
})
public class ReceiptV03 {
@XmlElement(name = "MsgHdr", required = true)
protected MessageHeader2 msgHdr;
@XmlElement(name = "RctDtls", required = true)
protected List rctDtls;
/**
* Gets the value of the msgHdr property.
*
* @return
* possible object is
* {@link MessageHeader2 }
*
*/
public MessageHeader2 getMsgHdr() {
return msgHdr;
}
/**
* Sets the value of the msgHdr property.
*
* @param value
* allowed object is
* {@link MessageHeader2 }
*
*/
public ReceiptV03 setMsgHdr(MessageHeader2 value) {
this.msgHdr = value;
return this;
}
/**
* Gets the value of the rctDtls 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 rctDtls property.
*
*
* For example, to add a new item, do as follows:
*
* getRctDtls().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Receipt1 }
*
*
* @return
* The value of the rctDtls property.
*/
public List getRctDtls() {
if (rctDtls == null) {
rctDtls = new ArrayList<>();
}
return this.rctDtls;
}
@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 rctDtls list.
* @see #getRctDtls()
*
*/
public ReceiptV03 addRctDtls(Receipt1 rctDtls) {
getRctDtls().add(rctDtls);
return this;
}
}