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