Package com.scriptel.proscript.cardswipe
Class FinancialCardTrackTwo
- java.lang.Object
-
- com.scriptel.proscript.cardswipe.FinancialCardTrackTwo
-
public class FinancialCardTrackTwo extends java.lang.ObjectThis class represents the second track of a financial card.
-
-
Constructor Summary
Constructors Constructor Description FinancialCardTrackTwo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAccountNumber()Gets the account number of the card in track two.java.lang.StringgetDiscretionaryData()Gets the discretionary data on the second track of the card.java.util.DategetExpiration()Gets the expiration date of the card.java.lang.StringgetServiceCode()Gets the service code on the card.static FinancialCardTrackTwoparse(java.lang.String trackData)This method attempts to parse track two out the raw track string.java.lang.StringtoString()Returns this object as a human readable string.
-
-
-
Method Detail
-
parse
public static FinancialCardTrackTwo parse(java.lang.String trackData)
This method attempts to parse track two out the raw track string.- Parameters:
trackData- Track data to parse.- Returns:
- FinancialCardTrackTwo data if data found, null otherwise.
-
toString
public java.lang.String toString()
Returns this object as a human readable string.- Overrides:
toStringin classjava.lang.Object- Returns:
- String containing human readable string.
-
getAccountNumber
public java.lang.String getAccountNumber()
Gets the account number of the card in track two.- Returns:
- Account number
-
getExpiration
public java.util.Date getExpiration()
Gets the expiration date of the card.- Returns:
- the expiration
-
getServiceCode
public java.lang.String getServiceCode()
Gets the service code on the card.- Returns:
- the serviceCode
-
getDiscretionaryData
public java.lang.String getDiscretionaryData()
Gets the discretionary data on the second track of the card.- Returns:
- the discretionary data
-
-