Enum Class DefaultSubscriptionPaymentStrategy

java.lang.Object
java.lang.Enum<DefaultSubscriptionPaymentStrategy>
com.broadleafcommerce.orderoperation.domain.enums.DefaultSubscriptionPaymentStrategy
All Implemented Interfaces:
Serializable, Comparable<DefaultSubscriptionPaymentStrategy>, Constable

public enum DefaultSubscriptionPaymentStrategy extends Enum<DefaultSubscriptionPaymentStrategy>
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
  • Enum Constant Details

    • PREPAID

      public static final DefaultSubscriptionPaymentStrategy PREPAID
      Declares that payments made against a subscription are going towards the goods or services rendered in the next period.
    • POSTPAID

      public static final DefaultSubscriptionPaymentStrategy POSTPAID
      Declares that payments made against a subscription are going towards the goods or services rendered in the previous period.
  • Method Details

    • values

      public static DefaultSubscriptionPaymentStrategy[] 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

      public static DefaultSubscriptionPaymentStrategy valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isPostpaid

      public static boolean isPostpaid(String paymentStrategy)
    • isPrepaid

      public static boolean isPrepaid(String paymentStrategy)