paypalnvp.fields
Enum CreditCard.CreditCardType

java.lang.Object
  extended by java.lang.Enum<CreditCard.CreditCardType>
      extended by 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.


Enum Constant Summary
AMEX
           
DISCOVER
           
MAESTRO
           
MASTER_CARD
           
SOLO
           
VISA
           
 
Method Summary
static CreditCard.CreditCardType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CreditCard.CreditCardType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

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
Method Detail

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