Enum PaymentMethodEnum
- java.lang.Object
-
- java.lang.Enum<PaymentMethodEnum>
-
- com.labs64.netlicensing.domain.vo.PaymentMethodEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<PaymentMethodEnum>
public enum PaymentMethodEnum extends Enum<PaymentMethodEnum>
This enum defines payment methods supported by NetLicensing.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NULL
"null" payment method is a placeholder for undefined/unset value.PAYPAL
PAYPAL_SANDBOX
STRIPE
STRIPE_TESTING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PaymentMethodEnum
parseString(String paymentMethod)
static PaymentMethodEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static PaymentMethodEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final PaymentMethodEnum NULL
"null" payment method is a placeholder for undefined/unset value.
-
PAYPAL
public static final PaymentMethodEnum PAYPAL
-
PAYPAL_SANDBOX
public static final PaymentMethodEnum PAYPAL_SANDBOX
-
STRIPE
public static final PaymentMethodEnum STRIPE
-
STRIPE_TESTING
public static final PaymentMethodEnum STRIPE_TESTING
-
-
Method Detail
-
values
public static PaymentMethodEnum[] 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 (PaymentMethodEnum c : PaymentMethodEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PaymentMethodEnum 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
-
parseString
public static PaymentMethodEnum parseString(String paymentMethod)
-
-