|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractMap | +--java.util.HashMap | +--com.ibm.retail.saf.provider.POSInfoImpl | +--com.ibm.retail.saf.provider.CreditCard
Contains information required to process a credit card payment.
Field Summary | |
---|---|
(package private) byte |
paymentType
|
Fields inherited from class java.util.HashMap |
---|
|
Fields inherited from class java.util.AbstractMap |
---|
|
Fields inherited from interface com.ibm.retail.saf.provider.CreditPaymentInfo |
---|
AMEX, CARTE_BLANCHE, DINERS_CLUB, DISCOVER, MASTERCARD, UNKNOWN, VISA |
Fields inherited from interface com.ibm.retail.saf.provider.PaymentInfo |
---|
CREDIT, DEBIT |
Constructor Summary | |
---|---|
CreditCard()
|
Method Summary | |
---|---|
java.lang.String |
getAccountNumber()
Gets the account number. |
java.lang.String |
getCardType()
Gets the card type. |
java.lang.String |
getExpirationDate()
Gets the expiration date. |
byte |
getPaymentType()
|
byte[] |
getTrackData(int trackNumber)
Gets the credit card track data. |
void |
setAccountNumber(java.lang.String acct)
Sets the account number. |
void |
setCardType(java.lang.String cardType)
Sets the card type. |
void |
setExpirationDate(java.lang.String expDate)
Sets the expiration date. |
void |
setTrackData(int trackNumber,
byte[] track)
Sets the credit card track data. |
Methods inherited from class com.ibm.retail.saf.provider.POSInfoImpl |
---|
getExtendedAttribute, getExtendedAttributeNames, removeExtendedAttribute, setExtendedAttribute |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.retail.saf.provider.POSInfo |
---|
getExtendedAttribute, getExtendedAttributeNames, removeExtendedAttribute, setExtendedAttribute |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
byte paymentType
Constructor Detail |
public CreditCard()
Method Detail |
public void setCardType(java.lang.String cardType)
CreditPaymentInfo
setCardType
in interface CreditPaymentInfo
cardType
- the type of credit cardpublic void setAccountNumber(java.lang.String acct)
CreditPaymentInfo
setAccountNumber
in interface CreditPaymentInfo
acct
- the account number of the cardpublic void setExpirationDate(java.lang.String expDate)
CreditPaymentInfo
setExpirationDate
in interface CreditPaymentInfo
expDate
- the expiration date of the cardpublic java.lang.String getCardType()
CreditPaymentInfo
getCardType
in interface CreditPaymentInfo
public java.lang.String getAccountNumber()
CreditPaymentInfo
getAccountNumber
in interface CreditPaymentInfo
public java.lang.String getExpirationDate()
CreditPaymentInfo
getExpirationDate
in interface CreditPaymentInfo
public void setTrackData(int trackNumber, byte[] track)
CreditPaymentInfo
Data is in "raw" non-decoded format as returned from JavaPOS or OPOS drivers.
setTrackData
in interface CreditPaymentInfo
trackNumber
- identifies the track (1-4) to retrievetrack
- card track data in raw non-decoded formatpublic byte[] getTrackData(int trackNumber)
CreditPaymentInfo
Data is in "raw" non-decoded format as returned from JavaPOS or OPOS drivers.
Returns a zero length array if no track data is found.
getTrackData
in interface CreditPaymentInfo
trackNumber
- identifies the track (1-4) to retrieve
public byte getPaymentType()
getPaymentType
in interface PaymentInfo
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |