com.prowidesoftware.swift.model.mx.dic.StoredValueResponse2 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;
/**
* Response data to a Stored Value request.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StoredValueResponse2", propOrder = {
"poiTxId",
"rslt",
"rct"
})
public class StoredValueResponse2 {
@XmlElement(name = "POITxId", required = true)
protected TransactionIdentifier1 poiTxId;
@XmlElement(name = "Rslt")
protected List rslt;
@XmlElement(name = "Rct")
protected List rct;
/**
* Gets the value of the poiTxId property.
*
* @return
* possible object is
* {@link TransactionIdentifier1 }
*
*/
public TransactionIdentifier1 getPOITxId() {
return poiTxId;
}
/**
* Sets the value of the poiTxId property.
*
* @param value
* allowed object is
* {@link TransactionIdentifier1 }
*
*/
public StoredValueResponse2 setPOITxId(TransactionIdentifier1 value) {
this.poiTxId = value;
return this;
}
/**
* Gets the value of the rslt 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 rslt property.
*
*
* For example, to add a new item, do as follows:
*
* getRslt().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link StoredValueData2 }
*
*
* @return
* The value of the rslt property.
*/
public List getRslt() {
if (rslt == null) {
rslt = new ArrayList<>();
}
return this.rslt;
}
/**
* Gets the value of the rct 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 rct property.
*
*
* For example, to add a new item, do as follows:
*
* getRct().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link PaymentReceipt1 }
*
*
* @return
* The value of the rct property.
*/
public List getRct() {
if (rct == null) {
rct = new ArrayList<>();
}
return this.rct;
}
@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 rslt list.
* @see #getRslt()
*
*/
public StoredValueResponse2 addRslt(StoredValueData2 rslt) {
getRslt().add(rslt);
return this;
}
/**
* Adds a new item to the rct list.
* @see #getRct()
*
*/
public StoredValueResponse2 addRct(PaymentReceipt1 rct) {
getRct().add(rct);
return this;
}
}