com.prowidesoftware.swift.model.mx.dic.ReversalResponse1 Maven / Gradle / Ivy
package com.prowidesoftware.swift.model.mx.dic;
import java.math.BigDecimal;
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 Reversal request.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ReversalResponse1", propOrder = {
"saleTxId",
"saleRefId",
"poiTxId",
"poiRcncltnId",
"issrRefData",
"rvslTxRslt",
"rvsdAmt",
"rct"
})
public class ReversalResponse1 {
@XmlElement(name = "SaleTxId", required = true)
protected TransactionIdentifier1 saleTxId;
@XmlElement(name = "SaleRefId")
protected String saleRefId;
@XmlElement(name = "POITxId", required = true)
protected TransactionIdentifier1 poiTxId;
@XmlElement(name = "POIRcncltnId")
protected String poiRcncltnId;
@XmlElement(name = "IssrRefData")
protected String issrRefData;
@XmlElement(name = "RvslTxRslt", required = true)
protected RetailerReversalResult1 rvslTxRslt;
@XmlElement(name = "RvsdAmt")
protected BigDecimal rvsdAmt;
@XmlElement(name = "Rct")
protected List rct;
/**
* Gets the value of the saleTxId property.
*
* @return
* possible object is
* {@link TransactionIdentifier1 }
*
*/
public TransactionIdentifier1 getSaleTxId() {
return saleTxId;
}
/**
* Sets the value of the saleTxId property.
*
* @param value
* allowed object is
* {@link TransactionIdentifier1 }
*
*/
public ReversalResponse1 setSaleTxId(TransactionIdentifier1 value) {
this.saleTxId = value;
return this;
}
/**
* Gets the value of the saleRefId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSaleRefId() {
return saleRefId;
}
/**
* Sets the value of the saleRefId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public ReversalResponse1 setSaleRefId(String value) {
this.saleRefId = value;
return this;
}
/**
* 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 ReversalResponse1 setPOITxId(TransactionIdentifier1 value) {
this.poiTxId = value;
return this;
}
/**
* Gets the value of the poiRcncltnId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPOIRcncltnId() {
return poiRcncltnId;
}
/**
* Sets the value of the poiRcncltnId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public ReversalResponse1 setPOIRcncltnId(String value) {
this.poiRcncltnId = value;
return this;
}
/**
* Gets the value of the issrRefData property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getIssrRefData() {
return issrRefData;
}
/**
* Sets the value of the issrRefData property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public ReversalResponse1 setIssrRefData(String value) {
this.issrRefData = value;
return this;
}
/**
* Gets the value of the rvslTxRslt property.
*
* @return
* possible object is
* {@link RetailerReversalResult1 }
*
*/
public RetailerReversalResult1 getRvslTxRslt() {
return rvslTxRslt;
}
/**
* Sets the value of the rvslTxRslt property.
*
* @param value
* allowed object is
* {@link RetailerReversalResult1 }
*
*/
public ReversalResponse1 setRvslTxRslt(RetailerReversalResult1 value) {
this.rvslTxRslt = value;
return this;
}
/**
* Gets the value of the rvsdAmt property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getRvsdAmt() {
return rvsdAmt;
}
/**
* Sets the value of the rvsdAmt property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public ReversalResponse1 setRvsdAmt(BigDecimal value) {
this.rvsdAmt = value;
return this;
}
/**
* 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 rct list.
* @see #getRct()
*
*/
public ReversalResponse1 addRct(PaymentReceipt1 rct) {
getRct().add(rct);
return this;
}
}