Enum Class DefaultPaymentFinalizationStatus
java.lang.Object
java.lang.Enum<DefaultPaymentFinalizationStatus>
com.broadleafcommerce.cartoperation.domain.enums.DefaultPaymentFinalizationStatus
- All Implemented Interfaces:
PaymentFinalizationStatus
,Serializable
,Comparable<DefaultPaymentFinalizationStatus>
,Constable
public enum DefaultPaymentFinalizationStatus
extends Enum<DefaultPaymentFinalizationStatus>
implements PaymentFinalizationStatus
Describes the state of a cart's payments that required additional customer action (e.g. 3DS
verification or HPP interaction) to be considered finalized.
- 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 ConstantDescriptionAll of the cart's payments have been finalized (i.e.One or more of the cart's payments requires action from the customer.One or more of the cart's payments cannot contribute to a successful checkout, & the customer must be prompted to provide one or more alternative payment methods.The payment finalization status could not be determined. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isFinalized
(String paymentFinalizationStatus) static boolean
isRequiresAddlExternalInteraction
(String paymentFinalizationStatus) static boolean
isRequiresPaymentModification
(String paymentFinalizationStatus) static boolean
Returns the enum constant of this class with the specified name.static DefaultPaymentFinalizationStatus[]
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.cartoperation.domain.enums.PaymentFinalizationStatus
name
-
Enum Constant Details
-
FINALIZED
All of the cart's payments have been finalized (i.e. all 3DS or HPP interactions have been successfully completed) -
REQUIRES_PAYMENT_MODIFICATION
One or more of the cart's payments cannot contribute to a successful checkout, & the customer must be prompted to provide one or more alternative payment methods. For example, if a payment transaction fails after successful 3DS, then that payment cannot contribute to paying for the cart. Therefore, the customer should be prompted for another form of payment. -
REQUIRES_ADDL_EXTERNAL_INTERACTION
One or more of the cart's payments requires action from the customer. This can happen if the cart has multiple payments that require 3DS verification or a HPP interaction. The first 3DS/HPP interaction may have been successfully completed, but the customer must complete the 3DS/HPP interaction for the next payment. -
UNKNOWN
The payment finalization status could not be determined. This is typically the case if an unexpected exception was encountered.
-
-
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
-
isFinalized
-
isRequiresPaymentModification
-
isRequiresAddlExternalInteraction
-
isUnknown
-