com.prowidesoftware.swift.model.mx.dic.Context3 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.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;
/**
* Context in which the card payment transaction is performed.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Context3", propOrder = {
"ptOfSvcCntxt",
"txCntxt",
"vrfctn",
"rskCntxt",
"saleCntxt"
})
public class Context3 {
@XmlElement(name = "PtOfSvcCntxt")
protected PointOfServiceContext1 ptOfSvcCntxt;
@XmlElement(name = "TxCntxt", required = true)
protected TransactionContext1 txCntxt;
@XmlElement(name = "Vrfctn")
protected List vrfctn;
@XmlElement(name = "RskCntxt")
protected RiskContext1 rskCntxt;
@XmlElement(name = "SaleCntxt")
protected SaleContext7 saleCntxt;
/**
* Gets the value of the ptOfSvcCntxt property.
*
* @return
* possible object is
* {@link PointOfServiceContext1 }
*
*/
public PointOfServiceContext1 getPtOfSvcCntxt() {
return ptOfSvcCntxt;
}
/**
* Sets the value of the ptOfSvcCntxt property.
*
* @param value
* allowed object is
* {@link PointOfServiceContext1 }
*
*/
public Context3 setPtOfSvcCntxt(PointOfServiceContext1 value) {
this.ptOfSvcCntxt = value;
return this;
}
/**
* Gets the value of the txCntxt property.
*
* @return
* possible object is
* {@link TransactionContext1 }
*
*/
public TransactionContext1 getTxCntxt() {
return txCntxt;
}
/**
* Sets the value of the txCntxt property.
*
* @param value
* allowed object is
* {@link TransactionContext1 }
*
*/
public Context3 setTxCntxt(TransactionContext1 value) {
this.txCntxt = value;
return this;
}
/**
* Gets the value of the vrfctn 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 vrfctn property.
*
*
* For example, to add a new item, do as follows:
*
* getVrfctn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Verification2 }
*
*
* @return
* The value of the vrfctn property.
*/
public List getVrfctn() {
if (vrfctn == null) {
vrfctn = new ArrayList<>();
}
return this.vrfctn;
}
/**
* Gets the value of the rskCntxt property.
*
* @return
* possible object is
* {@link RiskContext1 }
*
*/
public RiskContext1 getRskCntxt() {
return rskCntxt;
}
/**
* Sets the value of the rskCntxt property.
*
* @param value
* allowed object is
* {@link RiskContext1 }
*
*/
public Context3 setRskCntxt(RiskContext1 value) {
this.rskCntxt = value;
return this;
}
/**
* Gets the value of the saleCntxt property.
*
* @return
* possible object is
* {@link SaleContext7 }
*
*/
public SaleContext7 getSaleCntxt() {
return saleCntxt;
}
/**
* Sets the value of the saleCntxt property.
*
* @param value
* allowed object is
* {@link SaleContext7 }
*
*/
public Context3 setSaleCntxt(SaleContext7 value) {
this.saleCntxt = 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 vrfctn list.
* @see #getVrfctn()
*
*/
public Context3 addVrfctn(Verification2 vrfctn) {
getVrfctn().add(vrfctn);
return this;
}
}