BEA Systems, Inc.

com.beasys.commerce.axiom.contact
Interface CreditCard

All Known Implementing Classes:
CreditCardImpl

public interface CreditCard
extends Belonging

Information needed to submit a transaction to a credit card company on behalf of a customer. Attribute: number The account number for the card.

Attribute: billingAddress Attribute: company The name of the company if this is a corporate card. Attribute: type The issuing authority for the account number (e.g. Visa, MasterCard, American Express ). Attribute: expirationDate The date on which the card expires. The day will be set to the last day of the month on which the card expires. Attribute: name The name printed on the card. Attribute: displayNumber Display number in the form XXXX XXXX XXXX 1234. Obviates the need to decrypt when only display is required.

See Also:
CreditCardHome, CreditCardImpl

Method Summary
 java.lang.String findCreditCardTypeFromNumber(java.lang.String creditCardNumber)
           
 Address getBillingAddress()
          Get the value of billingAddress
 java.lang.String getCompany()
          Get the value of company
 java.lang.String getDisplayNumber()
          Get the value of displayNumber
 java.sql.Date getExpirationDate()
          Get the value of expirationDate
 java.lang.String getName()
          Get the value of name
 java.lang.String getNumber()
          Get the value of number
 java.lang.String getType()
          Get the value of type
 void setBillingAddress(Address billingAddress)
          Set the value of billingAddress
 void setCompany(java.lang.String company)
          Set the value of company
 void setDisplayNumber(java.lang.String displayNumber)
          Set the value of displayNumber
 void setExpirationDate(java.sql.Date expirationDate)
          Set the value of expirationDate
 void setName(java.lang.String name)
          Set the value of name
 void setNumber(java.lang.String number)
          Set the value of number
 void setType(java.lang.String type)
          Set the value of type
 boolean validate()
           
 
Methods inherited from interface com.beasys.commerce.foundation.Belonging
clone, equals, interfaceName, setByValue, value
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getNumber

public java.lang.String getNumber()
Get the value of number
Returns:
number.

setNumber

public void setNumber(java.lang.String number)
Set the value of number
Parameters:
number - number to be added

getBillingAddress

public Address getBillingAddress()
Get the value of billingAddress
Returns:
billingAddress.

setBillingAddress

public void setBillingAddress(Address billingAddress)
Set the value of billingAddress
Parameters:
billingAddress - billingAddress to be added

getCompany

public java.lang.String getCompany()
Get the value of company
Returns:
company.

setCompany

public void setCompany(java.lang.String company)
Set the value of company
Parameters:
company - company to be added

getType

public java.lang.String getType()
Get the value of type
Returns:
type.

setType

public void setType(java.lang.String type)
Set the value of type
Parameters:
type - type to be added

getExpirationDate

public java.sql.Date getExpirationDate()
Get the value of expirationDate
Returns:
expirationDate.

setExpirationDate

public void setExpirationDate(java.sql.Date expirationDate)
Set the value of expirationDate
Parameters:
expirationDate - expirationDate to be added

getName

public java.lang.String getName()
Get the value of name
Returns:
name.

setName

public void setName(java.lang.String name)
Set the value of name
Parameters:
name - name to be added

getDisplayNumber

public java.lang.String getDisplayNumber()
Get the value of displayNumber
Returns:
displayNumber.

setDisplayNumber

public void setDisplayNumber(java.lang.String displayNumber)
Set the value of displayNumber
Parameters:
displayNumber - displayNumber to be added

validate

public boolean validate()

findCreditCardTypeFromNumber

public java.lang.String findCreditCardTypeFromNumber(java.lang.String creditCardNumber)
                                              throws InvalidArgumentException
Throws:
InvalidArgumentException -  

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved