public static enum PaymentIntentCancelParams.CancellationReason extends java.lang.Enum<PaymentIntentCancelParams.CancellationReason> implements ApiRequestParams.EnumParam
Enum Constant and Description |
---|
ABANDONED |
DUPLICATE |
FRAUDULENT |
REQUESTED_BY_CUSTOMER |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static PaymentIntentCancelParams.CancellationReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PaymentIntentCancelParams.CancellationReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName(value="abandoned") public static final PaymentIntentCancelParams.CancellationReason ABANDONED
@SerializedName(value="duplicate") public static final PaymentIntentCancelParams.CancellationReason DUPLICATE
@SerializedName(value="fraudulent") public static final PaymentIntentCancelParams.CancellationReason FRAUDULENT
@SerializedName(value="requested_by_customer") public static final PaymentIntentCancelParams.CancellationReason REQUESTED_BY_CUSTOMER
public static PaymentIntentCancelParams.CancellationReason[] values()
for (PaymentIntentCancelParams.CancellationReason c : PaymentIntentCancelParams.CancellationReason.values()) System.out.println(c);
public static PaymentIntentCancelParams.CancellationReason 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 java.lang.String getValue()
getValue
in interface ApiRequestParams.EnumParam