public enum PaymentMethodType extends java.lang.Enum<PaymentMethodType>
| Enum Constant and Description |
|---|
AMEX |
DINERS |
DISCOVER |
GOOGLE_PAYMENT |
HIPER |
HIPERCARD |
JCB |
MAESTRO |
MASTERCARD |
PAY_WITH_VENMO |
PAYPAL |
UNIONPAY |
UNKNOWN |
VISA |
| Modifier and Type | Method and Description |
|---|---|
static PaymentMethodType |
forType(PaymentMethodNonce paymentMethodNonce) |
static PaymentMethodType |
forType(java.lang.String paymentMethodType) |
java.lang.String |
getCanonicalName() |
static CardType[] |
getCardsTypes(java.util.Set<java.lang.String> supportedCardTypes) |
int |
getDrawable() |
int |
getLocalizedName() |
int |
getVaultedDrawable() |
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 GOOGLE_PAYMENT
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 UNIONPAY
public static final PaymentMethodType HIPER
public static final PaymentMethodType HIPERCARD
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 static PaymentMethodType forType(PaymentMethodNonce paymentMethodNonce)
paymentMethodNonce - A PaymentMethodNonce to get the PaymentMethodType of.PaymentMethodType for the given PaymentMethodNonce, or UNKNOWN
if no match could be made.public static CardType[] getCardsTypes(java.util.Set<java.lang.String> supportedCardTypes)
supportedCardTypes - a Set of supported card types to parse into
CardTypes.CardType[] containing the mapped CardTypes from the supplied
supportedCardTypes.public int getDrawable()
Drawable icon for the current
PaymentMethodType.public int getVaultedDrawable()
Drawable vaulted 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.