java.lang.Object | +--com.ibm.commerce.me.datatype.PaymentInfo
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.
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
public static final int PCARD
public static final int CUSTOM_OFFLINE
public static final int OFFLINE
public static final int SET_MIA
public static final int SET_WALLET
public static final int CYBER_CASH
public static final java.lang.String CARD_EXPIRY
public static final java.lang.String CARD_NAME
public static final java.lang.String CARD_NUMBER
public static final java.lang.String CARD_TYPE
Constructor Detail |
---|
public PaymentInfo()
Method Detail |
---|
public Address getAddress()
public java.lang.String getCardName()
public java.lang.String getCardNumber()
public int getCardType()
public java.util.Date getExpiration()
public void setAddress(Address newAddress)
newAddress
- the billing addresspublic void setCardName(java.lang.String newCardName)
newCardName
- the name of the cardpublic void setCardNumber(java.lang.String newCardNumber)
newCardNumber
- the card numberpublic void setCardType(int newCardType)
newCardType
- an integer specifying the type of the
cardpublic void setExpiration(java.util.Date newExpiration)
newExpiration
- the expiration date of the
cardpublic java.lang.String toString()
toString
in class java.lang.Object