com.beasys.commerce.axiom.contact
Interface CreditCard

All Known Implementing Classes:
CreditCardImpl

public interface CreditCard

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
 String findCreditCardTypeFromNumber(String creditCardNumber)
           
 Address getBillingAddress()
          Get the value of billingAddress
 String getCompany()
          Get the value of company
 String getDisplayNumber()
          Get the value of displayNumber
 Date getExpirationDate()
          Get the value of expirationDate
 String getName()
          Get the value of name
 String getNumber()
          Get the value of number
 String getType()
          Get the value of type
 void setBillingAddress(Address billingAddress)
          Set the value of billingAddress
 void setCompany(String company)
          Set the value of company
 void setDisplayNumber(String displayNumber)
          Set the value of displayNumber
 void setExpirationDate(Date expirationDate)
          Set the value of expirationDate
 void setName(String name)
          Set the value of name
 void setNumber(String number)
          Set the value of number
 void setType(String type)
          Set the value of type
 boolean validate()
           
 

Method Detail

getNumber

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

setNumber

public void setNumber(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 String getCompany()
Get the value of company
Returns:
company.

setCompany

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

getType

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

setType

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

getExpirationDate

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

setExpirationDate

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

getName

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

setName

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

getDisplayNumber

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

setDisplayNumber

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

validate

public boolean validate()

findCreditCardTypeFromNumber

public String findCreditCardTypeFromNumber(String creditCardNumber)
                                    throws com.beasys.commerce.foundation.exception.InvalidArgumentException
Throws:
com.beasys.commerce.foundation.exception.InvalidArgumentException -