Package com.adyen.model.checkout
Enum PaymentLinkResponse.StorePaymentMethodModeEnum
- java.lang.Object
-
- java.lang.Enum<PaymentLinkResponse.StorePaymentMethodModeEnum>
-
- com.adyen.model.checkout.PaymentLinkResponse.StorePaymentMethodModeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<PaymentLinkResponse.StorePaymentMethodModeEnum>
- Enclosing class:
- PaymentLinkResponse
public static enum PaymentLinkResponse.StorePaymentMethodModeEnum extends Enum<PaymentLinkResponse.StorePaymentMethodModeEnum>
Indicates if the details of the payment method will be stored for the shopper. Possible values: * **disabled** – No details will be stored (default). * **askForConsent** – If the `shopperReference` is provided, the UI lets the shopper choose if they want their payment details to be stored. * **enabled** – If the `shopperReference` is provided, the details will be stored without asking the shopper for consent. When set to **askForConsent** or **enabled**, you must also include the `recurringProcessingModel` parameter.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASKFORCONSENTDISABLEDENABLED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PaymentLinkResponse.StorePaymentMethodModeEnumfromValue(String value)StringgetValue()StringtoString()static PaymentLinkResponse.StorePaymentMethodModeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static PaymentLinkResponse.StorePaymentMethodModeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASKFORCONSENT
public static final PaymentLinkResponse.StorePaymentMethodModeEnum ASKFORCONSENT
-
DISABLED
public static final PaymentLinkResponse.StorePaymentMethodModeEnum DISABLED
-
ENABLED
public static final PaymentLinkResponse.StorePaymentMethodModeEnum ENABLED
-
-
Method Detail
-
values
public static PaymentLinkResponse.StorePaymentMethodModeEnum[] 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 (PaymentLinkResponse.StorePaymentMethodModeEnum c : PaymentLinkResponse.StorePaymentMethodModeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PaymentLinkResponse.StorePaymentMethodModeEnum valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<PaymentLinkResponse.StorePaymentMethodModeEnum>
-
fromValue
public static PaymentLinkResponse.StorePaymentMethodModeEnum fromValue(String value)
-
-