Enum Class SubscriptionStatuses
java.lang.Object
java.lang.Enum<SubscriptionStatuses>
com.broadleafcommerce.orderoperation.domain.subscription.enums.SubscriptionStatuses
- All Implemented Interfaces:
Serializable,Comparable<SubscriptionStatuses>,Constable
Enumerates the statuses for a subscription.
- 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 ConstantsEnum ConstantDescriptionIndicates an active subscriptionIndicates a subscription that has been cancelledIndicates a subscription with an error stateIndicates that the subscription sign-up or modification is being fulfilled.Indicates a subscription whose activity is temporarily haltedIndicates a subscription that should be cancelled soonIndicates that the subscription is pending fulfillment. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanisCancelled(String subscriptionStatus) static booleanstatic booleanisFulfillmentInProcess(String subscriptionStatus) static booleanstatic booleanisPendingCancellation(String subscriptionStatus) static booleanisPendingFulfillment(String subscriptionStatus) static SubscriptionStatusesReturns the enum constant of this class with the specified name.static SubscriptionStatuses[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PENDING_FULFILLMENT
Indicates that the subscription is pending fulfillment. -
FULFILLMENT_IN_PROCESS
Indicates that the subscription sign-up or modification is being fulfilled. This is relevant for both the initial creation of the subscription & processing any subsequent edit, upgrade/downgrade, cancellation, etc. requests. -
ACTIVE
Indicates an active subscription -
CANCELLED
Indicates a subscription that has been cancelled -
PENDING_CANCELLATION
Indicates a subscription that should be cancelled soon -
PAUSED
Indicates a subscription whose activity is temporarily halted -
ERROR
Indicates a subscription with an error state
-
-
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
-
isPendingFulfillment
-
isFulfillmentInProcess
-
isActive
-
isCancelled
-
isPendingCancellation
-
isPaused
-
isError
-