Enum Class DefaultSubscriptionPaymentStrategy
java.lang.Object
java.lang.Enum<DefaultSubscriptionPaymentStrategy>
com.broadleafcommerce.orderoperation.domain.enums.DefaultSubscriptionPaymentStrategy
- All Implemented Interfaces:
Serializable,Comparable<DefaultSubscriptionPaymentStrategy>,Constable
Declares that payments made against a subscription are going towards the goods/services rendered
in the previous vs current period.
- Since:
- Order Operation Service 2.2.0, Release Train 2.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisPostpaid(String paymentStrategy) static booleanReturns the enum constant of this class with the specified name.static DefaultSubscriptionPaymentStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PREPAID
Declares that payments made against a subscription are going towards the goods or services rendered in the next period. -
POSTPAID
Declares that payments made against a subscription are going towards the goods or services rendered in the previous 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
-
isPostpaid
-
isPrepaid
-