Enum Class Scheme

java.lang.Object
java.lang.Enum<Scheme>
com.thalesgroup.gemalto.d1.card.Scheme
All Implemented Interfaces:
Serializable, Comparable<Scheme>, java.lang.constant.Constable

public enum Scheme extends Enum<Scheme>
Enumeration type for the scheme supported.
Since:
1.0.0
  • Enum Constant Details

    • VISA

      public static final Scheme VISA
      Visa scheme.
    • MASTERCARD

      public static final Scheme MASTERCARD
      Mastercard scheme.
    • PAGOBANCOMAT

      public static final Scheme PAGOBANCOMAT
      PagoBANCOMAT scheme, only Samsung Pay supports this scheme.
    • AMEX

      public static final Scheme AMEX
      Amex scheme.
      Since:
      4.1.0
    • UNKNOWN

      public static final Scheme UNKNOWN
      Unknown scheme. This is used in D1 Pay use cases.

      Category - D1 Pay API

  • Method Details

    • values

      public static Scheme[] 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 Scheme 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
    • fromString

      @Nullable public static Scheme fromString(String val)
      Converts from String to Scheme.
    • toString

      @NonNull public String toString()
      Returns the value as String.
      Overrides:
      toString in class Enum<Scheme>