Enum Class DefaultSavedPaymentMethodStatus
java.lang.Object
java.lang.Enum<DefaultSavedPaymentMethodStatus>
com.broadleafcommerce.paymenttransaction.domain.enums.DefaultSavedPaymentMethodStatus
- All Implemented Interfaces:
SavedPaymentMethodStatus
,Serializable
,Comparable<DefaultSavedPaymentMethodStatus>
,Constable
public enum DefaultSavedPaymentMethodStatus
extends Enum<DefaultSavedPaymentMethodStatus>
implements SavedPaymentMethodStatus
The default statuses for the saved payment method.
- Author:
- Dima Myroniuk (dmyroniuk)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe action has failed or expired.The saved payment method is available to use for checkout.The saved payment method is created, but we're expecting an asynchronous notification from the gateway declaring if the payment method is valid or invalid.It's been determined that the provided payment method is invalid & cannot be used.The saved payment method requires an additional action to be executed. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isActionFailed
(String status) static boolean
isAvailableToUse
(String status) static boolean
isAwaitingAsyncResults
(String status) static boolean
isInvalidPaymentMethod
(String status) static boolean
isRequiresAction
(String status) Returns the enum constant of this class with the specified name.static DefaultSavedPaymentMethodStatus[]
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.SavedPaymentMethodStatus
name
-
Enum Constant Details
-
AVAILABLE_TO_USE
The saved payment method is available to use for checkout. This status cannot be changed. -
AWAITING_ASYNC_RESULTS
The saved payment method is created, but we're expecting an asynchronous notification from the gateway declaring if the payment method is valid or invalid. Until this is known, the saved payment method should not be used. -
REQUIRES_ACTION
The saved payment method requires an additional action to be executed.- See Also:
-
ACTION_FAILED
The action has failed or expired. This status cannot be changed. -
INVALID_PAYMENT_METHOD
It's been determined that the provided payment method is invalid & cannot be used.
-
-
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
-
isAvailableToUse
-
isAwaitingAsyncResults
-
isRequiresAction
-
isActionFailed
-
isInvalidPaymentMethod
-