com.ibm.retail.AEF.automation
Class CreditIdentifierImpl

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

public class CreditIdentifierImpl
extends TenderIdentifierImpl
implements CreditIdentifier

CreditIdentifierImpl is a class which contains information required to perform a credit tender.

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.CreditIdentifier
ACCOUNT_NUMBER, AMEX, AUTHORIZATION_CODE, CARD_ID, CARD_TYPE, CARTE_BLANCHE, CLASS_KEY, DINERS_CLUB, DISCOVER, ENROUTE, EXPIRATION_DATE, JCB, MASTERCARD, TENDER_KEY, UNKNOWN, VISA, VOUCHER_NUMBER
 
Fields inherited from interface com.ibm.retail.AEF.automation.TenderIdentifier
AMOUNT, BALANCE_DUE
 
Fields inherited from interface com.ibm.retail.AEF.automation.Identifier
PRICE
 
Constructor Summary
CreditIdentifierImpl()
          Constructor.
CreditIdentifierImpl(java.lang.String amount, java.lang.String cardType, java.lang.String accountNumber)
          Constructor.
CreditIdentifierImpl(java.lang.String amount, java.lang.String cardType, java.lang.String accountNumber, java.lang.String expirationDate)
          Constructor.
CreditIdentifierImpl(java.lang.String amount, java.lang.String cardType, java.lang.String accountNumber, java.lang.String expirationDate, java.lang.String cardID)
          Constructor.
 
Method Summary
(package private) static java.lang.String copyright()
           
 java.lang.String getAccountNumber()
          Gets the account number.
 java.lang.String getAuthorizationCode()
          Gets the authorization code
 java.lang.String getCardID()
          Gets the card id.
 java.lang.String getCardType()
          Gets the card type.
 java.lang.String getExpirationDate()
          Gets the expiration date.
 java.lang.String getKey()
          Gets the tender key.
 java.lang.String getVoucherNumber()
          Gets the voucher number
 void setAccountNumber(java.lang.String accountNumber)
          Sets the account number.
 void setAuthorizationCode(java.lang.String authCode)
          Sets the authorization code
 void setCardID(java.lang.String cardID)
          Sets the card id.
 void setCardType(java.lang.String cardType)
          Sets the card type.
 void setExpirationDate(java.lang.String expDate)
          Sets the expiration date.
 void setVoucherNumber(java.lang.String voucherNum)
          Sets the voucher number
 
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

CreditIdentifierImpl

public CreditIdentifierImpl()
Constructor.


CreditIdentifierImpl

public CreditIdentifierImpl(java.lang.String amount,
                            java.lang.String cardType,
                            java.lang.String accountNumber)
Constructor.

Parameters:
amount - The amount of the tender.
cardType - (pass CreditIdentifier.UNKNOWN for applications which do not require the card type to be identified ahead of time)
accountNumber -

CreditIdentifierImpl

public CreditIdentifierImpl(java.lang.String amount,
                            java.lang.String cardType,
                            java.lang.String accountNumber,
                            java.lang.String expirationDate)
Constructor.

Parameters:
amount - The amount of the tender.
cardType - (pass CreditIdentifier.UNKNOWN for applications which do not require the card type to be identified ahead of time)
accountNumber -
expirationDate - MMYY format

CreditIdentifierImpl

public CreditIdentifierImpl(java.lang.String amount,
                            java.lang.String cardType,
                            java.lang.String accountNumber,
                            java.lang.String expirationDate,
                            java.lang.String cardID)
Constructor.

Parameters:
amount - The amount of the tender.
accountNumber -
cardType - (pass CreditIdentifer.UNKNOWN for applications which do not require the card type to be identified ahead of time)
expirationDate - MMYY format
cardID - The card security ID - usually an account number extension printed on the back of the card.
Method Detail

copyright

static java.lang.String copyright()

setAccountNumber

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

Specified by:
setAccountNumber in interface CreditIdentifier
Parameters:
accountNumber -

setCardType

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

Specified by:
setCardType in interface CreditIdentifier
Parameters:
cardType -

setExpirationDate

public void setExpirationDate(java.lang.String expDate)
Sets the expiration date.

Specified by:
setExpirationDate in interface CreditIdentifier
Parameters:
expDate -

setCardID

public void setCardID(java.lang.String cardID)
Sets the card id.

Specified by:
setCardID in interface CreditIdentifier
Parameters:
cardID -

setVoucherNumber

public void setVoucherNumber(java.lang.String voucherNum)
Sets the voucher number

Specified by:
setVoucherNumber in interface CreditIdentifier
Parameters:
voucherNum -

setAuthorizationCode

public void setAuthorizationCode(java.lang.String authCode)
Sets the authorization code

Specified by:
setAuthorizationCode in interface CreditIdentifier
Parameters:
authCode -

getAccountNumber

public java.lang.String getAccountNumber()
Gets the account number.

Specified by:
getAccountNumber in interface CreditIdentifier
Returns:
String

getCardType

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

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

getExpirationDate

public java.lang.String getExpirationDate()
Gets the expiration date.

Specified by:
getExpirationDate in interface CreditIdentifier
Returns:
String

getCardID

public java.lang.String getCardID()
Gets the card id.

Specified by:
getCardID in interface CreditIdentifier
Returns:
String

getVoucherNumber

public java.lang.String getVoucherNumber()
Gets the voucher number

Specified by:
getVoucherNumber in interface CreditIdentifier
Returns:
String

getAuthorizationCode

public java.lang.String getAuthorizationCode()
Gets the authorization code

Specified by:
getAuthorizationCode in interface CreditIdentifier
Returns:
String

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