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 to 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, and billing address.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      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 CyberCash
      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

      Constructors 
      Constructor and Description
      PaymentInfo() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Address getAddress()
      This method gets the billing address.
      java.lang.String getCardName()
      This method gets the name of this card.
      java.lang.String getCardNumber()
      This method gets the card number.
      int getCardType()
      This method gets the card type.
      java.util.Date getExpiration()
      This method gets the card expiration date.
      void setAddress(Address newAddress)
      This method sets the billing address.
      void setCardName(java.lang.String newCardName)
      This method sets the name of this card.
      void setCardNumber(java.lang.String newCardNumber)
      This method sets the card number.
      void setCardType(int newCardType)
      This method sets the type of this card.
      void setExpiration(java.util.Date newExpiration)
      This method sets the card expiration date.
      java.lang.String toString()
      This method returns a String that represents the value of this object.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright field
        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 CyberCash
        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()
        This method gets the billing address.
        Returns:
        the billing address
      • getCardName

        public java.lang.String getCardName()
        This method gets the name of this card.
        Returns:
        the credit card name
      • getCardNumber

        public java.lang.String getCardNumber()
        This method gets the card number.
        Returns:
        the card number
      • getCardType

        public int getCardType()
        This method gets the card type.
        Returns:
        the card type
      • getExpiration

        public java.util.Date getExpiration()
        This method gets the card expiration date.
        Returns:
        the expiration date of the card
      • setAddress

        public void setAddress(Address newAddress)
        This method sets the billing address.
        Parameters:
        newAddress - the billing address
      • setCardName

        public void setCardName(java.lang.String newCardName)
        This method sets the name of this card.
        Parameters:
        newCardName - the name of the card
      • setCardNumber

        public void setCardNumber(java.lang.String newCardNumber)
        This method sets the card number.
        Parameters:
        newCardNumber - the card number
      • setCardType

        public void setCardType(int newCardType)
        This method sets the type of this card.
        Parameters:
        newCardType - an integer specifying the type of the card
      • setExpiration

        public void setExpiration(java.util.Date newExpiration)
        This method sets the card expiration date.
        Parameters:
        newExpiration - the expiration date of the card
      • toString

        public java.lang.String toString()
        This method 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