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)
  • Enum Constant Details

    • AVAILABLE_TO_USE

      public static final DefaultSavedPaymentMethodStatus AVAILABLE_TO_USE
      The saved payment method is available to use for checkout. This status cannot be changed.
    • AWAITING_ASYNC_RESULTS

      public static final DefaultSavedPaymentMethodStatus 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

      public static final DefaultSavedPaymentMethodStatus REQUIRES_ACTION
      The saved payment method requires an additional action to be executed.
      See Also:
    • ACTION_FAILED

      public static final DefaultSavedPaymentMethodStatus ACTION_FAILED
      The action has failed or expired. This status cannot be changed.
    • INVALID_PAYMENT_METHOD

      public static final DefaultSavedPaymentMethodStatus INVALID_PAYMENT_METHOD
      It's been determined that the provided payment method is invalid & cannot be used.
  • Method Details

    • values

      public static DefaultSavedPaymentMethodStatus[] 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 DefaultSavedPaymentMethodStatus 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
    • isAvailableToUse

      public static boolean isAvailableToUse(String status)
    • isAwaitingAsyncResults

      public static boolean isAwaitingAsyncResults(String status)
    • isRequiresAction

      public static boolean isRequiresAction(String status)
    • isActionFailed

      public static boolean isActionFailed(String status)
    • isInvalidPaymentMethod

      public static boolean isInvalidPaymentMethod(String status)