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)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresents a transaction that cannot be reversed automatically by scheduled jobs.Represents a transaction that was not able to be reversed.Represents a transaction that is needs to be reversed.Represents a transaction that is eligible to be reversed, but before the reversal is processed, the transaction can be used.Represents a transaction that is being actively reversed.Represents a transaction that reversed another transaction.Represents a transaction that has been successfully reversed. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAutomaticReversalNotAllowed
(String transactionManagementState) static boolean
isFailedReversal
(String transactionManagementState) static boolean
isRequiresReversal
(String transactionManagementState) static boolean
isReversalCandidate
(String transactionManagementState) static boolean
isReversalInProgress
(String transactionManagementState) static boolean
isReversalTransaction
(String transactionManagementState) static boolean
isReversed
(String transactionManagementState) static boolean
isReversedOrReversalTransaction
(String managementState) Returns the enum constant of this class with the specified name.static DefaultTransactionManagementStates[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.broadleafcommerce.paymenttransaction.domain.enums.TransactionManagementState
name
-
Enum Constant Details
-
AUTOMATIC_REVERSAL_NOT_ALLOWED
Represents a transaction that cannot be reversed automatically by scheduled jobs. For example, anAUTHORIZE
transaction can be reversed by executing aREVERSE_AUTHORIZE
transaction by an external system. However, it will not be picked up by theCheckoutRollbackEventListener
listener andPaymentTransactionReversalJobListener
job. -
REQUIRES_REVERSAL
Represents a transaction that is needs to be reversed. -
REVERSAL_CANDIDATE
Represents a transaction that is eligible to be reversed, but before the reversal is processed, the transaction can be used. If this is done, then thePaymentTransaction.getManagementState()
must be cleared, so that the transaction is not reversed. -
REVERSAL_IN_PROGRESS
Represents a transaction that is being actively reversed. -
REVERSED
Represents a transaction that has been successfully reversed. -
FAILED_REVERSAL
Represents a transaction that was not able to be reversed. This state likely requires manual review & reconciliation. -
REVERSAL_TRANSACTION
Represents a transaction that reversed another transaction.
-
-
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
-
isAutomaticReversalNotAllowed
-
isRequiresReversal
-
isReversalCandidate
-
isReversalInProgress
-
isReversed
-
isFailedReversal
-
isReversalTransaction
-
isReversedOrReversalTransaction
-