com.prowidesoftware.swift.model.mx.dic.PaymentContext9 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;
/**
* Payment context in which the transaction is performed.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PaymentContext9", propOrder = {
"cardPres",
"crdhldrPres",
"onLineCntxt",
"attndncCntxt",
"txEnvt",
"txChanl",
"cardDataNtryMd",
"fllbckInd",
"spprtdOptn"
})
public class PaymentContext9 {
@XmlElement(name = "CardPres")
protected Boolean cardPres;
@XmlElement(name = "CrdhldrPres")
protected Boolean crdhldrPres;
@XmlElement(name = "OnLineCntxt")
protected Boolean onLineCntxt;
@XmlElement(name = "AttndncCntxt")
@XmlSchemaType(name = "string")
protected AttendanceContext1Code attndncCntxt;
@XmlElement(name = "TxEnvt")
@XmlSchemaType(name = "string")
protected TransactionEnvironment1Code txEnvt;
@XmlElement(name = "TxChanl")
@XmlSchemaType(name = "string")
protected TransactionChannel3Code txChanl;
@XmlElement(name = "CardDataNtryMd", required = true)
@XmlSchemaType(name = "string")
protected CardDataReading1Code cardDataNtryMd;
@XmlElement(name = "FllbckInd")
@XmlSchemaType(name = "string")
protected CardFallback1Code fllbckInd;
@XmlElement(name = "SpprtdOptn")
@XmlSchemaType(name = "string")
protected List spprtdOptn;
/**
* Gets the value of the cardPres property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isCardPres() {
return cardPres;
}
/**
* Sets the value of the cardPres property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public PaymentContext9 setCardPres(Boolean value) {
this.cardPres = value;
return this;
}
/**
* Gets the value of the crdhldrPres property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isCrdhldrPres() {
return crdhldrPres;
}
/**
* Sets the value of the crdhldrPres property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public PaymentContext9 setCrdhldrPres(Boolean value) {
this.crdhldrPres = value;
return this;
}
/**
* Gets the value of the onLineCntxt property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isOnLineCntxt() {
return onLineCntxt;
}
/**
* Sets the value of the onLineCntxt property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public PaymentContext9 setOnLineCntxt(Boolean value) {
this.onLineCntxt = value;
return this;
}
/**
* Gets the value of the attndncCntxt property.
*
* @return
* possible object is
* {@link AttendanceContext1Code }
*
*/
public AttendanceContext1Code getAttndncCntxt() {
return attndncCntxt;
}
/**
* Sets the value of the attndncCntxt property.
*
* @param value
* allowed object is
* {@link AttendanceContext1Code }
*
*/
public PaymentContext9 setAttndncCntxt(AttendanceContext1Code value) {
this.attndncCntxt = value;
return this;
}
/**
* Gets the value of the txEnvt property.
*
* @return
* possible object is
* {@link TransactionEnvironment1Code }
*
*/
public TransactionEnvironment1Code getTxEnvt() {
return txEnvt;
}
/**
* Sets the value of the txEnvt property.
*
* @param value
* allowed object is
* {@link TransactionEnvironment1Code }
*
*/
public PaymentContext9 setTxEnvt(TransactionEnvironment1Code value) {
this.txEnvt = value;
return this;
}
/**
* Gets the value of the txChanl property.
*
* @return
* possible object is
* {@link TransactionChannel3Code }
*
*/
public TransactionChannel3Code getTxChanl() {
return txChanl;
}
/**
* Sets the value of the txChanl property.
*
* @param value
* allowed object is
* {@link TransactionChannel3Code }
*
*/
public PaymentContext9 setTxChanl(TransactionChannel3Code value) {
this.txChanl = value;
return this;
}
/**
* Gets the value of the cardDataNtryMd property.
*
* @return
* possible object is
* {@link CardDataReading1Code }
*
*/
public CardDataReading1Code getCardDataNtryMd() {
return cardDataNtryMd;
}
/**
* Sets the value of the cardDataNtryMd property.
*
* @param value
* allowed object is
* {@link CardDataReading1Code }
*
*/
public PaymentContext9 setCardDataNtryMd(CardDataReading1Code value) {
this.cardDataNtryMd = value;
return this;
}
/**
* Gets the value of the fllbckInd property.
*
* @return
* possible object is
* {@link CardFallback1Code }
*
*/
public CardFallback1Code getFllbckInd() {
return fllbckInd;
}
/**
* Sets the value of the fllbckInd property.
*
* @param value
* allowed object is
* {@link CardFallback1Code }
*
*/
public PaymentContext9 setFllbckInd(CardFallback1Code value) {
this.fllbckInd = value;
return this;
}
/**
* Gets the value of the spprtdOptn 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 spprtdOptn property.
*
*
* For example, to add a new item, do as follows:
*
* getSpprtdOptn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SupportedPaymentOption1Code }
*
*
* @return
* The value of the spprtdOptn property.
*/
public List getSpprtdOptn() {
if (spprtdOptn == null) {
spprtdOptn = new ArrayList<>();
}
return this.spprtdOptn;
}
@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 spprtdOptn list.
* @see #getSpprtdOptn()
*
*/
public PaymentContext9 addSpprtdOptn(SupportedPaymentOption1Code spprtdOptn) {
getSpprtdOptn().add(spprtdOptn);
return this;
}
}