Enum InstantPaymentStatus

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<InstantPaymentStatus>

    public enum InstantPaymentStatus
    extends java.lang.Enum<InstantPaymentStatus>
    Enum mit den Status-Codes von Instant-Payments.
    • Method Detail

      • values

        public static InstantPaymentStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (InstantPaymentStatus c : InstantPaymentStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static InstantPaymentStatus valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getStatus

        public int getStatus()
        Liefert den Statuscode.
        Returns:
        status der Status-Code.
      • getDescription

        public java.lang.String getDescription()
        Liefert einen sprechenden Beschreibungstext.
        Returns:
        description
      • isSuccess

        public boolean isSuccess()
        Liefert true, wenn es sich um einen Erfolgsstatus handelt.
        Returns:
        success true, wenn es sich um einen Erfolgsstatus handelt.
      • determine

        public static InstantPaymentStatus determine​(java.lang.String status)
        Versucht, den Status anhand des uebergebenen Codes zu ermitteln.
        Parameters:
        status - der Status.
        Returns:
        der Status oder NULL, wenn er nicht ermittelbar war.