public final class FinancialCard
extends java.lang.Object
The data from first track of financial card contains all account information, while the data from second track contains only the card number and expiration date.
Constructor and Description |
---|
FinancialCard(java.lang.String data)
Constructs a new instance of this class from a given financial card track
data.
|
Modifier and Type | Method and Description |
---|---|
int |
getExpiryMonth()
Returns an expiration month of this financial card.
|
int |
getExpiryYear()
Returns an expiration year of this financial card.
|
java.lang.String |
getName()
Returns a card holder's name of this financial card.
|
java.lang.String |
getNumber()
Returns a unique identifier of this financial card.
|
java.lang.String |
getServiceCode()
Returns a service code.
|
java.lang.String |
toString()
Returns the string representation of object.
|
public FinancialCard(java.lang.String data)
If data
is null
, a NullPointerException
is thrown.
data
- the data from the first or second track.public java.lang.String getNumber()
public java.lang.String getName()
public int getExpiryMonth()
public int getExpiryYear()
public java.lang.String getServiceCode()
public java.lang.String toString()
toString
in class java.lang.Object