Enum StorePaymentDetailsType
- java.lang.Object
-
- java.lang.Enum<StorePaymentDetailsType>
-
- com.checkout.handlepaymentsandpayouts.flow.paymentsessions.enums.StorePaymentDetailsType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<StorePaymentDetailsType>
public enum StorePaymentDetailsType extends java.lang.Enum<StorePaymentDetailsType>
Default: "disabled" Specifies whether you intend to store the cardholder's payment details. If you set this field to enabled, you must: have obtained consent from the cardholder to store their payment details provide a customer ID or email address in the request If the request's payment_type is set to one of the following values, you do not need to provide this field: Installment Recurring Unscheduled
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COLLECT_CONSENTDISABLEDENABLED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StorePaymentDetailsTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static StorePaymentDetailsType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISABLED
@SerializedName("disabled") public static final StorePaymentDetailsType DISABLED
-
ENABLED
@SerializedName("enabled") public static final StorePaymentDetailsType ENABLED
-
COLLECT_CONSENT
@SerializedName("collect_consent") public static final StorePaymentDetailsType COLLECT_CONSENT
-
-
Method Detail
-
values
public static StorePaymentDetailsType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StorePaymentDetailsType c : StorePaymentDetailsType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StorePaymentDetailsType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-