com.ibm.commerce.me.datatype
Class PaymentInfo

java.lang.Object
  |
  +--com.ibm.commerce.me.datatype.PaymentInfo
All Implemented Interfaces:
java.io.Serializable

public class PaymentInfo
extends java.lang.Object
implements java.io.Serializable

This class stores information related for payment and defines constant fields PCARD, CUSTOM_OFFLINE, OFFLINE, SET_MIA, SET_WALLET, CYBER_CASH, CARD_TYPE, CARD_NAME, CARD_NUMBER, CARD_EXPIRY . Information stored includes credit card type, credit card number, credit card name, card expiry date, billing address.

See Also:
Serialized Form

Field Summary
static java.lang.String CARD_EXPIRY
          String constant for card expiry date
static java.lang.String CARD_NAME
          String constant for card name
static java.lang.String CARD_NUMBER
          String constant for card number
static java.lang.String CARD_TYPE
          String constant for card type
static java.lang.String COPYRIGHT
          IBM Copyright field
static int CUSTOM_OFFLINE
          card type constant for Custom offline
static int CYBER_CASH
          card type constant for cyber cash
static int OFFLINE
          card type constant for offline card
static int PCARD
          card type constant for PCard
static int SET_MIA
          card type constant for SET MIA
static int SET_WALLET
          card type constant for SET Wallet
 
Constructor Summary
PaymentInfo()
           
 
Method Summary
  Address getAddress()
          Gets the billing address
 java.lang.String getCardName()
          Gets the name of this card
 java.lang.String getCardNumber()
          Gets the number of this card
 int getCardType()
          Gets the type of of this card
 java.util.Date getExpiration()
          Gets the expiration date of this card
 void setAddress( Address newAddress)
          Sets the address
 void setCardName(java.lang.String newCardName)
          Sets the name of this card
 void setCardNumber(java.lang.String newCardNumber)
          Sets the number of this card
 void setCardType(int newCardType)
          Sets the type of of this card
 void setExpiration(java.util.Date newExpiration)
          Set the expiration date of this card
 java.lang.String toString()
          Returns a String that represents the value of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM Copyright field
See Also:
Constant Field Values

PCARD

public static final int PCARD
card type constant for PCard
See Also:
Constant Field Values

CUSTOM_OFFLINE

public static final int CUSTOM_OFFLINE
card type constant for Custom offline
See Also:
Constant Field Values

OFFLINE

public static final int OFFLINE
card type constant for offline card
See Also:
Constant Field Values

SET_MIA

public static final int SET_MIA
card type constant for SET MIA
See Also:
Constant Field Values

SET_WALLET

public static final int SET_WALLET
card type constant for SET Wallet
See Also:
Constant Field Values

CYBER_CASH

public static final int CYBER_CASH
card type constant for cyber cash
See Also:
Constant Field Values

CARD_EXPIRY

public static final java.lang.String CARD_EXPIRY
String constant for card expiry date
See Also:
Constant Field Values

CARD_NAME

public static final java.lang.String CARD_NAME
String constant for card name
See Also:
Constant Field Values

CARD_NUMBER

public static final java.lang.String CARD_NUMBER
String constant for card number
See Also:
Constant Field Values

CARD_TYPE

public static final java.lang.String CARD_TYPE
String constant for card type
See Also:
Constant Field Values
Constructor Detail

PaymentInfo

public PaymentInfo()
Method Detail

getAddress

public Address getAddress()
Gets the billing address
Returns:
the billing address

getCardName

public java.lang.String getCardName()
Gets the name of this card
Returns:
the credit card name

getCardNumber

public java.lang.String getCardNumber()
Gets the number of this card
Returns:
the card number

getCardType

public int getCardType()
Gets the type of of this card
Returns:
the card type

getExpiration

public java.util.Date getExpiration()
Gets the expiration date of this card
Returns:
the expiration date of the card

setAddress

public void setAddress(Address newAddress)
Sets the address
Parameters:
newAddress - the billing address

setCardName

public void setCardName(java.lang.String newCardName)
Sets the name of this card
Parameters:
newCardName - the name of the card

setCardNumber

public void setCardNumber(java.lang.String newCardNumber)
Sets the number of this card
Parameters:
newCardNumber - the card number

setCardType

public void setCardType(int newCardType)
Sets the type of of this card
Parameters:
newCardType - an integer specifying the type of the card

setExpiration

public void setExpiration(java.util.Date newExpiration)
Set the expiration date of this card
Parameters:
newExpiration - the expiration date of the card

toString

public java.lang.String toString()
Returns a String that represents the value of this object.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the payment including credit card information