Enum Class DefaultCancellationStrategy
java.lang.Object
java.lang.Enum<DefaultCancellationStrategy>
com.broadleafcommerce.subscription.domain.enums.DefaultCancellationStrategy
- All Implemented Interfaces:
Serializable,Comparable<DefaultCancellationStrategy>,Constable
The strategy using which a subscription can be cancelled.
- Author:
- karanjariwala
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf the subscription is auto-renewing, then this will turn off auto-renewal.Cancel the subscription immediately -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCancelAutoRenewal(String cancellationStrategy) static booleanisImmediate(String cancellationStrategy) static DefaultCancellationStrategyReturns the enum constant of this class with the specified name.static DefaultCancellationStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IMMEDIATE
Cancel the subscription immediately -
CANCEL_AUTO_RENEWAL
If the subscription is auto-renewing, then this will turn off auto-renewal.This means that if the subscription has terms, then the subscription will be canceled at the end of the term. Otherwise, it means the subscription will be canceled at the end of the billing period.
-
-
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
-
isImmediate
-
isCancelAutoRenewal
-