Enum SubscriptionFrequencyEnum
- java.lang.Object
-
- java.lang.Enum<SubscriptionFrequencyEnum>
-
- de.hybris.platform.acceleratorservices.payment.cybersource.enums.SubscriptionFrequencyEnum
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SubscriptionFrequencyEnum>
public enum SubscriptionFrequencyEnum extends java.lang.Enum<SubscriptionFrequencyEnum>
This Enum represents the different types of subscriptions that are allowed to be created by the CyberSource Hosted Order Page Service.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANNUALLYBI_WEEKLYMONTHLYON_DEMANDQUAD_WEEKLYQUARTERLYSEMI_ANNUALLYSEMI_MONTHLYWEEKLY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubscriptionFrequencyEnumget(java.lang.String stringValue)Gets a SubscriptionFrequencyEnum for the given String representation.java.lang.StringgetStringValue()gets a String value of the current enum.static SubscriptionFrequencyEnumvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SubscriptionFrequencyEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ON_DEMAND
public static final SubscriptionFrequencyEnum ON_DEMAND
-
WEEKLY
public static final SubscriptionFrequencyEnum WEEKLY
-
BI_WEEKLY
public static final SubscriptionFrequencyEnum BI_WEEKLY
-
SEMI_MONTHLY
public static final SubscriptionFrequencyEnum SEMI_MONTHLY
-
MONTHLY
public static final SubscriptionFrequencyEnum MONTHLY
-
QUARTERLY
public static final SubscriptionFrequencyEnum QUARTERLY
-
QUAD_WEEKLY
public static final SubscriptionFrequencyEnum QUAD_WEEKLY
-
SEMI_ANNUALLY
public static final SubscriptionFrequencyEnum SEMI_ANNUALLY
-
ANNUALLY
public static final SubscriptionFrequencyEnum ANNUALLY
-
-
Method Detail
-
values
public static SubscriptionFrequencyEnum[] 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 (SubscriptionFrequencyEnum c : SubscriptionFrequencyEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubscriptionFrequencyEnum valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getStringValue
public java.lang.String getStringValue()
gets a String value of the current enum.- Returns:
- - a Sting object.
-
get
public static SubscriptionFrequencyEnum get(java.lang.String stringValue)
Gets a SubscriptionFrequencyEnum for the given String representation.- Parameters:
stringValue- - a String representing one of the SubscriptionFrequencyEnum.- Returns:
- - the SubscriptionFrequencyEnum that is represented by the String value given.
-
-