Enum Class DefaultTransactionManagementStates

java.lang.Object
java.lang.Enum<DefaultTransactionManagementStates>
com.broadleafcommerce.paymenttransaction.domain.enums.DefaultTransactionManagementStates
All Implemented Interfaces:
TransactionManagementState, Serializable, Comparable<DefaultTransactionManagementStates>, Constable

public enum DefaultTransactionManagementStates extends Enum<DefaultTransactionManagementStates> implements TransactionManagementState
Describes how a transaction is being used, esp. if it needs to be reversed or if it has been reversed.
Author:
Chris Kittrell (ckittrell)
  • Enum Constant Details

  • Method Details

    • values

      public static DefaultTransactionManagementStates[] 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 DefaultTransactionManagementStates 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
    • isAutomaticReversalNotAllowed

      public static boolean isAutomaticReversalNotAllowed(String transactionManagementState)
    • isRequiresReversal

      public static boolean isRequiresReversal(String transactionManagementState)
    • isReversalCandidate

      public static boolean isReversalCandidate(String transactionManagementState)
    • isReversalInProgress

      public static boolean isReversalInProgress(String transactionManagementState)
    • isReversed

      public static boolean isReversed(String transactionManagementState)
    • isFailedReversal

      public static boolean isFailedReversal(String transactionManagementState)
    • isReversalTransaction

      public static boolean isReversalTransaction(String transactionManagementState)
    • isReversedOrReversalTransaction

      public static boolean isReversedOrReversalTransaction(String managementState)