public enum PaymentMethodType extends java.lang.Enum<PaymentMethodType>
| Enum Constant and Description |
|---|
AMEX |
ANDROID_PAY |
DINERS |
DISCOVER |
JCB |
MAESTRO |
MASTERCARD |
PAY_WITH_VENMO |
PAYPAL |
UNKNOWN |
VISA |
| Modifier and Type | Method and Description |
|---|---|
static PaymentMethodType |
forType(java.lang.String paymentMethodType) |
java.lang.String |
getCanonicalName() |
int |
getDrawable() |
int |
getLocalizedName() |
static PaymentMethodType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PaymentMethodType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaymentMethodType AMEX
public static final PaymentMethodType ANDROID_PAY
public static final PaymentMethodType DINERS
public static final PaymentMethodType DISCOVER
public static final PaymentMethodType JCB
public static final PaymentMethodType MAESTRO
public static final PaymentMethodType MASTERCARD
public static final PaymentMethodType PAYPAL
public static final PaymentMethodType VISA
public static final PaymentMethodType PAY_WITH_VENMO
public static final PaymentMethodType UNKNOWN
public static PaymentMethodType[] values()
for (PaymentMethodType c : PaymentMethodType.values()) System.out.println(c);
public static PaymentMethodType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static PaymentMethodType forType(java.lang.String paymentMethodType)
paymentMethodType - A String representing a canonical name for a payment
method.PaymentMethodType for for the given String, or UNKNOWN if no match could be made.public int getDrawable()
Drawable icon for the current
PaymentMethodType.public int getLocalizedName()
String for the current PaymentMethodType.public java.lang.String getCanonicalName()
String name of the PaymentMethodType as it is categorized by
Braintree.