Enum Class DefaultTransactionSubType

java.lang.Object
java.lang.Enum<DefaultTransactionSubType>
com.broadleafcommerce.creditaccount.domain.enums.DefaultTransactionSubType
All Implemented Interfaces:
TransactionSubType, Serializable, Comparable<DefaultTransactionSubType>, Constable

public enum DefaultTransactionSubType extends Enum<DefaultTransactionSubType> implements TransactionSubType
The default credit account transaction sub-types.
Author:
Dima Myroniuk (dmyroniuk)
  • Enum Constant Details

    • EXPIRATION

      public static final DefaultTransactionSubType EXPIRATION
      Used to identify a debit transaction that is expiring a credit transaction's remaining amount
    • PURCHASE

      public static final DefaultTransactionSubType PURCHASE
      Used to identify a debit transaction that was created due to a purchase
  • Method Details

    • values

      public static DefaultTransactionSubType[] 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 DefaultTransactionSubType 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
    • isExpiration

      public static boolean isExpiration(String transactionType)
    • isPurchase

      public static boolean isPurchase(String transactionType)