paypalnvp.fields
Enum CreditCard.CreditCardType
java.lang.Object
java.lang.Enum<CreditCard.CreditCardType>
paypalnvp.fields.CreditCard.CreditCardType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CreditCard.CreditCardType>
- Enclosing class:
- CreditCard
public static enum CreditCard.CreditCardType
- extends java.lang.Enum<CreditCard.CreditCardType>
Type of credit card
For UK, only Maestro, Solo, MasterCard, Discover, and Visa are
allowable. For Canada, only MasterCard and Visa are allowable; Interac
debit cards are not supported.
Note:
If the credit card type is Maestro or Solo, the CURRENCYCODE must be
GBP. In addition, either STARTDATE or ISSUENUMBER must be specified.
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
VISA
public static final CreditCard.CreditCardType VISA
MASTER_CARD
public static final CreditCard.CreditCardType MASTER_CARD
DISCOVER
public static final CreditCard.CreditCardType DISCOVER
AMEX
public static final CreditCard.CreditCardType AMEX
MAESTRO
public static final CreditCard.CreditCardType MAESTRO
SOLO
public static final CreditCard.CreditCardType SOLO
values
public static CreditCard.CreditCardType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (CreditCard.CreditCardType c : CreditCard.CreditCardType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CreditCard.CreditCardType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null