public class CardSwipe
extends java.lang.Object
Constructor and Description |
---|
CardSwipe() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCardData()
Gets the raw card swipe data.
|
FinancialCard |
getFinancialCard()
Gets parsed financial card data, null if not set.
|
IdentificationCard |
getIdentificationCard()
Gets parsed identification card data.
|
java.lang.String |
getProtocolVersion()
Gets the protocol version of this swipe.
|
protected void |
setCardData(java.lang.String cardData)
Sets the raw card swipe data.
|
protected void |
setFinancialCard(FinancialCard financialCard)
Sets parsed financial card data.
|
protected void |
setIdentificationCard(IdentificationCard identificationCard)
Sets parsed identification card data.
|
protected void |
setProtocolVersion(java.lang.String protocolVersion)
Sets the protocol version of this swipe.
|
java.lang.String |
toString()
This method returns a human-readable representation of this class.
|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getProtocolVersion()
protected void setProtocolVersion(java.lang.String protocolVersion)
protocolVersion
- the protocolVersion to setpublic java.lang.String getCardData()
protected void setCardData(java.lang.String cardData)
cardData
- Raw card swipe data.public FinancialCard getFinancialCard()
protected void setFinancialCard(FinancialCard financialCard)
financialCard
- Parsed financial card data.public IdentificationCard getIdentificationCard()
protected void setIdentificationCard(IdentificationCard identificationCard)
identificationCard
- Parsed identification card data.