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