com.prowidesoftware.swift.model.mx.dic.CardData10 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;
/**
* Non-protected sensitive data associated with the card or payment token performing the transaction.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CardData10", propOrder = {
"pan",
"prtctdPANInd",
"cardSeqNb",
"pmtAcctRef",
"panAcctRg",
"cardPrtflIdr",
"addtlCardData"
})
public class CardData10 {
@XmlElement(name = "PAN")
protected String pan;
@XmlElement(name = "PrtctdPANInd")
protected Boolean prtctdPANInd;
@XmlElement(name = "CardSeqNb")
protected String cardSeqNb;
@XmlElement(name = "PmtAcctRef")
protected String pmtAcctRef;
@XmlElement(name = "PANAcctRg")
protected String panAcctRg;
@XmlElement(name = "CardPrtflIdr")
protected String cardPrtflIdr;
@XmlElement(name = "AddtlCardData")
protected List addtlCardData;
/**
* Gets the value of the pan property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPAN() {
return pan;
}
/**
* Sets the value of the pan property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CardData10 setPAN(String value) {
this.pan = value;
return this;
}
/**
* Gets the value of the prtctdPANInd property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isPrtctdPANInd() {
return prtctdPANInd;
}
/**
* Sets the value of the prtctdPANInd property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public CardData10 setPrtctdPANInd(Boolean value) {
this.prtctdPANInd = value;
return this;
}
/**
* Gets the value of the cardSeqNb property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCardSeqNb() {
return cardSeqNb;
}
/**
* Sets the value of the cardSeqNb property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CardData10 setCardSeqNb(String value) {
this.cardSeqNb = value;
return this;
}
/**
* Gets the value of the pmtAcctRef property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPmtAcctRef() {
return pmtAcctRef;
}
/**
* Sets the value of the pmtAcctRef property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CardData10 setPmtAcctRef(String value) {
this.pmtAcctRef = value;
return this;
}
/**
* Gets the value of the panAcctRg property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPANAcctRg() {
return panAcctRg;
}
/**
* Sets the value of the panAcctRg property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CardData10 setPANAcctRg(String value) {
this.panAcctRg = value;
return this;
}
/**
* Gets the value of the cardPrtflIdr property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCardPrtflIdr() {
return cardPrtflIdr;
}
/**
* Sets the value of the cardPrtflIdr property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CardData10 setCardPrtflIdr(String value) {
this.cardPrtflIdr = value;
return this;
}
/**
* Gets the value of the addtlCardData 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 addtlCardData property.
*
*
* For example, to add a new item, do as follows:
*
* getAddtlCardData().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AdditionalData1 }
*
*
* @return
* The value of the addtlCardData property.
*/
public List getAddtlCardData() {
if (addtlCardData == null) {
addtlCardData = new ArrayList<>();
}
return this.addtlCardData;
}
@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 addtlCardData list.
* @see #getAddtlCardData()
*
*/
public CardData10 addAddtlCardData(AdditionalData1 addtlCardData) {
getAddtlCardData().add(addtlCardData);
return this;
}
}