Enum Class DefaultSubscriptionBillingFrequencyEnum
java.lang.Object
java.lang.Enum<DefaultSubscriptionBillingFrequencyEnum>
com.broadleafcommerce.subscription.domain.enums.DefaultSubscriptionBillingFrequencyEnum
- All Implemented Interfaces:
Serializable,Comparable<DefaultSubscriptionBillingFrequencyEnum>,Constable
public enum DefaultSubscriptionBillingFrequencyEnum
extends Enum<DefaultSubscriptionBillingFrequencyEnum>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBill a subscription once a year.Bill a subscription twice a year.Bill the subscription every 30 days.Only bill the subscription manually.Bill a subscription monthly.Do not bill the subscription again.Bill a subscription every quarter (i.e.Bill the subscription weekly. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAnnually(String billingFrequency) static booleanisBiannual(String billingFrequency) static booleanisEvery30Days(String billingFrequency) static booleanstatic booleanstatic booleanisNonRenewing(String billingFrequency) static booleanisQuarterly(String billingFrequency) static booleanReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANNUALLY
Bill a subscription once a year.- See Also:
-
BIANNUAL
Bill a subscription twice a year. -
QUARTERLY
Bill a subscription every quarter (i.e. every 3 months). -
MONTHLY
Bill a subscription monthly.- See Also:
-
EVERY30DAYS
Bill the subscription every 30 days. Note the distinction fromMONTHLY. -
WEEKLY
Bill the subscription weekly.- See Also:
-
MANUAL
Only bill the subscription manually.- See Also:
-
NON_RENEWING
Do not bill the subscription again.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isAnnually
-
isBiannual
-
isQuarterly
-
isMonthly
-
isEvery30Days
-
isWeekly
-
isManual
-
isNonRenewing
-