com.ibm.retail.AEF.automation
Class MSRCreditIdentifierImpl

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
All Implemented Interfaces:
java.lang.Cloneable, Identifier, java.util.Map, MSRCreditIdentifier, java.io.Serializable, TenderIdentifier

public class MSRCreditIdentifierImpl
extends TenderIdentifierImpl
implements MSRCreditIdentifier

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.

See Also:
Serialized Form

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

MSRCreditIdentifierImpl

public MSRCreditIdentifierImpl()
Constructor.


MSRCreditIdentifierImpl

public MSRCreditIdentifierImpl(java.lang.String amount,
                               java.lang.String cardType,
                               byte[] track1Data,
                               byte[] track2Data,
                               byte[] track3Data)
Constructor.

Parameters:
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.

MSRCreditIdentifierImpl

public MSRCreditIdentifierImpl(java.lang.String amount,
                               java.lang.String cardType,
                               java.lang.String track1Data,
                               java.lang.String track2Data,
                               java.lang.String track3Data)
Constructor.

Parameters:
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

copyright

static java.lang.String copyright()

setAccountNumber

public void setAccountNumber(java.lang.String accountNumber)
Sets the account number.

Parameters:
accountNumber -

setCardType

public void setCardType(java.lang.String cardType)
Sets the card type.

Specified by:
setCardType in interface MSRCreditIdentifier
Parameters:
cardType -

setTrack1Data

public void setTrack1Data(byte[] track1Data)
Sets the track 1 data.

Specified by:
setTrack1Data in interface MSRCreditIdentifier
Parameters:
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.

setTrack2Data

public void setTrack2Data(byte[] track2Data)
Sets the track 2 data.

Specified by:
setTrack2Data in interface MSRCreditIdentifier
Parameters:
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.

setTrack3Data

public void setTrack3Data(byte[] track3Data)
Sets the track 3 data.

Specified by:
setTrack3Data in interface MSRCreditIdentifier
Parameters:
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.

getCardType

public java.lang.String getCardType()
Gets the card type.

Specified by:
getCardType in interface MSRCreditIdentifier
Returns:
String (or null if unknown)

getTrack1Data

public byte[] getTrack1Data()
Gets the track 1 data.

Specified by:
getTrack1Data in interface MSRCreditIdentifier
Returns:
byte[]

getTrack2Data

public byte[] getTrack2Data()
Gets the track 2 data.

Specified by:
getTrack2Data in interface MSRCreditIdentifier
Returns:
byte[]

getTrack3Data

public byte[] getTrack3Data()
Gets the track 3 data.

Specified by:
getTrack3Data in interface MSRCreditIdentifier
Returns:
byte[]

getKey

public java.lang.String getKey()
Gets the tender key. The tender key is used to determine the keys in classes.properties chain for the classes used to add a tender or void a tender. For example, if the method returns "Cash", then "AddCashTenderAction" is the key used to determine the action class for adding the tender to a transaction.

Specified by:
getKey in interface TenderIdentifier
Returns:
String


Copyright © 2004 IBM. All Rights Reserved.
Generated: July 19 2004