Package com.adyen.model.checkout
Enum PaymentLinkRequest.StorePaymentMethodModeEnum
- java.lang.Object
-
- java.lang.Enum<PaymentLinkRequest.StorePaymentMethodModeEnum>
-
- com.adyen.model.checkout.PaymentLinkRequest.StorePaymentMethodModeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<PaymentLinkRequest.StorePaymentMethodModeEnum>
- Enclosing class:
- PaymentLinkRequest
public static enum PaymentLinkRequest.StorePaymentMethodModeEnum extends Enum<PaymentLinkRequest.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 PaymentLinkRequest.StorePaymentMethodModeEnumfromValue(String value)StringgetValue()StringtoString()static PaymentLinkRequest.StorePaymentMethodModeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static PaymentLinkRequest.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 PaymentLinkRequest.StorePaymentMethodModeEnum ASKFORCONSENT
-
DISABLED
public static final PaymentLinkRequest.StorePaymentMethodModeEnum DISABLED
-
ENABLED
public static final PaymentLinkRequest.StorePaymentMethodModeEnum ENABLED
-
-
Method Detail
-
values
public static PaymentLinkRequest.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 (PaymentLinkRequest.StorePaymentMethodModeEnum c : PaymentLinkRequest.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 PaymentLinkRequest.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<PaymentLinkRequest.StorePaymentMethodModeEnum>
-
fromValue
public static PaymentLinkRequest.StorePaymentMethodModeEnum fromValue(String value)
-
-