Enum Class DefaultTransactionManagementStateReasons
java.lang.Object
java.lang.Enum<DefaultTransactionManagementStateReasons>
com.broadleafcommerce.paymenttransaction.domain.enums.DefaultTransactionManagementStateReasons
- All Implemented Interfaces:
TransactionManagementStateReason
,Serializable
,Comparable<DefaultTransactionManagementStateReasons>
,Constable
public enum DefaultTransactionManagementStateReasons
extends Enum<DefaultTransactionManagementStateReasons>
implements TransactionManagementStateReason
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMeant to signify that the transaction involving 3DS verification was executed by an interaction external to this system, usually by the gateway immediately after verification.Meant to signify that the transaction was executed by an interaction external to this system, usually by the gateway immediately after verification.Meant to signify that the transaction is in a reversal state because it was successful, but does not correlate to a successful checkout.Meant to signify that the transaction's results were initially not known (likely due to a network failure).Meant to signify that the transaction is in a reversal state because it was successful, but thePayment.getAmount()
has since changed.Meant to signify that the transaction is in a reversal state because it was successful & is tied to an archivedPayment
. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isExternal3dsTransaction
(String transactionManagementState) static boolean
isExternalTransaction
(String transactionManagementState) static boolean
isFailedCheckoutTransactionCleanup
(String transactionManagementState) static boolean
isIndeterminantResultCleanup
(String transactionManagementState) static boolean
isPaymentAmountUpdate
(String transactionManagementState) static boolean
isPaymentArchival
(String transactionManagementState) Returns the enum constant of this class with the specified name.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.TransactionManagementStateReason
name
-
Enum Constant Details
-
FAILED_CHECKOUT_TX_CLEANUP
Meant to signify that the transaction is in a reversal state because it was successful, but does not correlate to a successful checkout. -
INDETERMINANT_RESULT_CLEANUP
Meant to signify that the transaction's results were initially not known (likely due to a network failure). We now understand that the transaction was successful, but needs to be reversed. -
PAYMENT_ARCHIVAL
Meant to signify that the transaction is in a reversal state because it was successful & is tied to an archivedPayment
. Therefore, the transaction will no longer contribute to a checkout, subscription, etc., and it should be reversed. -
PAYMENT_AMOUNT_UPDATE
Meant to signify that the transaction is in a reversal state because it was successful, but thePayment.getAmount()
has since changed. Therefore, the transaction should be reversed, & a new transaction reflecting the newPayment.getAmount()
should be executed in its place. Note: this is typically used for checkout interactions. -
EXTERNAL_3DS_TRANSACTION
Meant to signify that the transaction involving 3DS verification was executed by an interaction external to this system, usually by the gateway immediately after verification. In this case,DefaultTransactionManagementStates.REVERSAL_CANDIDATE
is used to ensure that the transaction is reversed, if it is not claimed by the relevant process (e.g. checkout submission). -
EXTERNAL_TRANSACTION
Meant to signify that the transaction was executed by an interaction external to this system, usually by the gateway immediately after verification. In this case,DefaultTransactionManagementStates.REVERSAL_CANDIDATE
is used to ensure that the transaction is reversed, if it is not claimed by the relevant process (e.g. checkout submission).
-
-
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
-
isFailedCheckoutTransactionCleanup
-
isIndeterminantResultCleanup
-
isPaymentArchival
-
isPaymentAmountUpdate
-
isExternal3dsTransaction
-
isExternalTransaction
-