Enum Class DefaultTabbyPaymentStatuses

java.lang.Object
java.lang.Enum<DefaultTabbyPaymentStatuses>
com.broadleafcommerce.tabby.domain.enums.DefaultTabbyPaymentStatuses
All Implemented Interfaces:
TabbyPaymentStatus, Serializable, Comparable<DefaultTabbyPaymentStatuses>, Constable

public enum DefaultTabbyPaymentStatuses extends Enum<DefaultTabbyPaymentStatuses> implements TabbyPaymentStatus
The default payment statuses.
Author:
Dima Myroniuk (dmyroniuk)
  • Enum Constant Details

    • CREATED

      public static final DefaultTabbyPaymentStatuses CREATED
      The payment is created successfully, but not finished yet. This payment can be Authorized, Rejected or Expired.

      The next status can be AUTHORIZED, EXPIRED or REJECTED.

    • AUTHORIZED

      public static final DefaultTabbyPaymentStatuses AUTHORIZED
      The payment is successfully approved. The payment can be Captured or Closed. If only a part of payment captured, the payment will remain authorized until the rest of the amount is captured or closed.
    • CLOSED

      public static final DefaultTabbyPaymentStatuses CLOSED
      The payment is successfully approved and fully captured. From this state, the only possible action is to refund the payment. The refund can be Canceled within only 24 hours since a refund was initiated.
    • REJECTED

      public static final DefaultTabbyPaymentStatuses REJECTED
      The request to use Tabby has been rejected. This is the final status of the payment.
    • EXPIRED

      public static final DefaultTabbyPaymentStatuses EXPIRED
      The customer has cancelled their intention to use Tabby or the checkout session has expired. This is the final status of the payment.
  • Method Details

    • values

      public static DefaultTabbyPaymentStatuses[] 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 DefaultTabbyPaymentStatuses 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
    • isCreated

      public static boolean isCreated(String status)
    • isAuthorized

      public static boolean isAuthorized(String status)
    • isClosed

      public static boolean isClosed(String status)
    • isRejected

      public static boolean isRejected(String status)
    • isExpired

      public static boolean isExpired(String status)