|
|||||||||||
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.AEF.automation.IdentifierImpl | +--com.ibm.retail.AEF.automation.TenderIdentifierImpl | +--com.ibm.retail.AEF.automation.MSRCreditIdentifierImpl
MSRCreditIdentifierImpl is a class for holding arguments required for a credit tender. This interface is used instead of CreditIdentifierImpl whenever actual MSR track data for the credit card is available.
Field Summary |
---|
Fields inherited from class java.util.HashMap |
---|
|
Fields inherited from class java.util.AbstractMap |
---|
|
Fields inherited from interface com.ibm.retail.AEF.automation.MSRCreditIdentifier |
---|
AMEX, CARD_TYPE, CARTE_BLANCHE, CLASS_KEY, DINERS_CLUB, DISCOVER, ENROUTE, JCB, MASTERCARD, TENDER_KEY, TRACK_1_DATA, TRACK_2_DATA, TRACK_3_DATA, UNKNOWN, VISA |
Fields inherited from interface com.ibm.retail.AEF.automation.TenderIdentifier |
---|
AMOUNT, BALANCE_DUE |
Fields inherited from interface com.ibm.retail.AEF.automation.Identifier |
---|
ACCOUNT_NUMBER, PRICE |
Constructor Summary | |
---|---|
MSRCreditIdentifierImpl()
Constructor. |
|
MSRCreditIdentifierImpl(java.lang.String amount,
java.lang.String cardType,
byte[] track1Data,
byte[] track2Data,
byte[] track3Data)
Constructor. |
|
MSRCreditIdentifierImpl(java.lang.String amount,
java.lang.String cardType,
java.lang.String track1Data,
java.lang.String track2Data,
java.lang.String track3Data)
Constructor. |
Method Summary | |
---|---|
(package private) static java.lang.String |
copyright()
|
java.lang.String |
getCardType()
Gets the card type. |
java.lang.String |
getKey()
Gets the tender key. |
byte[] |
getTrack1Data()
Gets the track 1 data. |
byte[] |
getTrack2Data()
Gets the track 2 data. |
byte[] |
getTrack3Data()
Gets the track 3 data. |
void |
setAccountNumber(java.lang.String accountNumber)
Sets the account number. |
void |
setCardType(java.lang.String cardType)
Sets the card type. |
void |
setTrack1Data(byte[] track1Data)
Sets the track 1 data. |
void |
setTrack2Data(byte[] track2Data)
Sets the track 2 data. |
void |
setTrack3Data(byte[] track3Data)
Sets the track 3 data. |
Methods inherited from class com.ibm.retail.AEF.automation.TenderIdentifierImpl |
---|
getAmount, setAmount |
Methods inherited from class com.ibm.retail.AEF.automation.IdentifierImpl |
---|
toString |
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 |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.retail.AEF.automation.TenderIdentifier |
---|
getAmount, setAmount |
Methods inherited from interface com.ibm.retail.AEF.automation.Identifier |
---|
toString |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Constructor Detail |
public MSRCreditIdentifierImpl()
public MSRCreditIdentifierImpl(java.lang.String amount, java.lang.String cardType, byte[] track1Data, byte[] track2Data, byte[] track3Data)
amount
- The amount of the tender.cardType
- (pass MSRCreditIdentifier.UNKNOWN for applications which do not require the card
type to be identified ahead of time)track1Data
- A byte array with the track 1 data from the card. Use null or a zero
length array to indicate no track 1 data. Note that the data should
not include the sentinels.track2Data
- A byte array with the track 2 data from the card. Use null or a zero
length array to indicate no track 2 data. Note that the data should
not include the sentinels.track3Data
- A byte array with the track 3 data from the card. Use null or a zero
length array to indicate no track 3 data. Note that the data should
not include the sentinels.public MSRCreditIdentifierImpl(java.lang.String amount, java.lang.String cardType, java.lang.String track1Data, java.lang.String track2Data, java.lang.String track3Data)
amount
- The amount of the tender.cardType
- (pass MSRCreditIdentifier.UNKNOWN for applications which do not require the card
type to be identified ahead of time)track1Data
- A String with the track 1 data from the card. Use null or a zero
length String to indicate no track 1 data. Note that the data should
not include the sentinels.track2Data
- A String with the track 2 data from the card. Use null or a zero
length String to indicate no track 2 data. Note that the data should
not include the sentinels.track3Data
- A String with the track 3 data from the card. Use null or a zero
length String to indicate no track 3 data. Note that the data should
not include the sentinels.Method Detail |
static java.lang.String copyright()
public void setAccountNumber(java.lang.String accountNumber)
accountNumber
- public void setCardType(java.lang.String cardType)
setCardType
in interface MSRCreditIdentifier
cardType
- public void setTrack1Data(byte[] track1Data)
setTrack1Data
in interface MSRCreditIdentifier
track1Data
- A byte array containing the track 1 data (without sentinels).
Set to null or a zero length byte array to indicate no track 1 data.public void setTrack2Data(byte[] track2Data)
setTrack2Data
in interface MSRCreditIdentifier
track2Data
- A byte array containing the track 2 data (without sentinels).
Set to null or a zero length byte array to indicate no track 2 data.public void setTrack3Data(byte[] track3Data)
setTrack3Data
in interface MSRCreditIdentifier
track3Data
- A byte array containing the track 3 data (without sentinels).
Set to null or a zero length byte array to indicate no track 3 data.public java.lang.String getCardType()
getCardType
in interface MSRCreditIdentifier
public byte[] getTrack1Data()
getTrack1Data
in interface MSRCreditIdentifier
public byte[] getTrack2Data()
getTrack2Data
in interface MSRCreditIdentifier
public byte[] getTrack3Data()
getTrack3Data
in interface MSRCreditIdentifier
public java.lang.String getKey()
getKey
in interface TenderIdentifier
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |