Package cz.gopay.api.v3.model.common
Enum CheckoutGroup
- java.lang.Object
-
- java.lang.Enum<CheckoutGroup>
-
- cz.gopay.api.v3.model.common.CheckoutGroup
-
- All Implemented Interfaces:
Serializable,Comparable<CheckoutGroup>
public enum CheckoutGroup extends Enum<CheckoutGroup>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BANK_TRANSFERCARD_PAYMENTOTHERSWALLET
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CheckoutGroupfindByInstrument(PaymentInstrument instrument)static CheckoutGroupgetByStringName(String stringName)StringgetName()Set<PaymentInstrument>getPaymentInstruments()StringtoString()static CheckoutGroupvalueOf(String name)Returns the enum constant of this type with the specified name.static CheckoutGroup[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CARD_PAYMENT
public static final CheckoutGroup CARD_PAYMENT
-
BANK_TRANSFER
public static final CheckoutGroup BANK_TRANSFER
-
WALLET
public static final CheckoutGroup WALLET
-
OTHERS
public static final CheckoutGroup OTHERS
-
-
Method Detail
-
values
public static CheckoutGroup[] 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 (CheckoutGroup c : CheckoutGroup.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CheckoutGroup 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
-
getName
public String getName()
-
getPaymentInstruments
public Set<PaymentInstrument> getPaymentInstruments()
-
toString
public String toString()
- Overrides:
toStringin classEnum<CheckoutGroup>
-
findByInstrument
public static CheckoutGroup findByInstrument(PaymentInstrument instrument)
-
getByStringName
public static CheckoutGroup getByStringName(String stringName)
-
-