Package com.adyen.model.checkout
Enum PaymentMethodsRequest.ChannelEnum
- java.lang.Object
-
- java.lang.Enum<PaymentMethodsRequest.ChannelEnum>
-
- com.adyen.model.checkout.PaymentMethodsRequest.ChannelEnum
-
- All Implemented Interfaces:
Serializable,Comparable<PaymentMethodsRequest.ChannelEnum>
- Enclosing class:
- PaymentMethodsRequest
public static enum PaymentMethodsRequest.ChannelEnum extends Enum<PaymentMethodsRequest.ChannelEnum>
The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PaymentMethodsRequest.ChannelEnumfromValue(String value)StringgetValue()StringtoString()static PaymentMethodsRequest.ChannelEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static PaymentMethodsRequest.ChannelEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IOS
public static final PaymentMethodsRequest.ChannelEnum IOS
-
ANDROID
public static final PaymentMethodsRequest.ChannelEnum ANDROID
-
WEB
public static final PaymentMethodsRequest.ChannelEnum WEB
-
-
Method Detail
-
values
public static PaymentMethodsRequest.ChannelEnum[] 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 (PaymentMethodsRequest.ChannelEnum c : PaymentMethodsRequest.ChannelEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PaymentMethodsRequest.ChannelEnum 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<PaymentMethodsRequest.ChannelEnum>
-
fromValue
public static PaymentMethodsRequest.ChannelEnum fromValue(String value)
-
-