Enum TerminalResult.Status

java.lang.Object
java.lang.Enum<TerminalResult.Status>
com.codename1.payment.terminal.TerminalResult.Status
All Implemented Interfaces:
Comparable<TerminalResult.Status>
Enclosing class:
TerminalResult

public static enum TerminalResult.Status extends Enum<TerminalResult.Status>
How an operation ended.
  • Enum Constant Details

    • APPROVED

      public static final TerminalResult.Status APPROVED
      The card was charged (or authorized, for a pre-authorization), or the refund, capture or reversal went through.
    • DECLINED

      public static final TerminalResult.Status DECLINED
      The card or its issuer refused the payment.
    • CANCELED

      public static final TerminalResult.Status CANCELED
      The customer or the app abandoned the operation.
    • FAILED

      public static final TerminalResult.Status FAILED
      The terminal reported an error that is neither a decline nor a cancel, such as a timeout reading the card. No money moved.
  • Method Details

    • values

      public static TerminalResult.Status[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TerminalResult.Status valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null