Enum Class MessageType

java.lang.Object
java.lang.Enum<MessageType>
com.pain001.sdk.MessageType
All Implemented Interfaces:
Serializable, Comparable<MessageType>, Constable

public enum MessageType extends Enum<MessageType>
The ISO 20022 message types the server's MessageType enum lists at this SDK's version.

The client methods take the message type as a string, so a newer server's types work before this enum knows them: pass MessageType.PAIN_001_001_09.value() or the literal string.

  • Enum Constant Details

    • PAIN_001_001_03

      public static final MessageType PAIN_001_001_03
      pain.001.001.03.
    • PAIN_001_001_04

      public static final MessageType PAIN_001_001_04
      pain.001.001.04.
    • PAIN_001_001_05

      public static final MessageType PAIN_001_001_05
      pain.001.001.05.
    • PAIN_001_001_06

      public static final MessageType PAIN_001_001_06
      pain.001.001.06.
    • PAIN_001_001_07

      public static final MessageType PAIN_001_001_07
      pain.001.001.07.
    • PAIN_001_001_08

      public static final MessageType PAIN_001_001_08
      pain.001.001.08.
    • PAIN_001_001_09

      public static final MessageType PAIN_001_001_09
      pain.001.001.09.
    • PAIN_001_001_10

      public static final MessageType PAIN_001_001_10
      pain.001.001.10.
    • PAIN_001_001_11

      public static final MessageType PAIN_001_001_11
      pain.001.001.11.
    • PAIN_001_001_12

      public static final MessageType PAIN_001_001_12
      pain.001.001.12.
    • PAIN_001_001_13

      public static final MessageType PAIN_001_001_13
      pain.001.001.13.
    • PAIN_008_001_02

      public static final MessageType PAIN_008_001_02
      pain.008.001.02.
    • PAIN_008_001_08

      public static final MessageType PAIN_008_001_08
      pain.008.001.08.
  • Method Details

    • values

      public static MessageType[] 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 MessageType 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
    • value

      public String value()
      The wire value.
      Returns:
      for example pain.001.001.09
    • fromValue

      public static Optional<MessageType> fromValue(String value)
      The constant whose wire value is value, if this SDK knows it.
      Parameters:
      value - a wire value such as pain.001.001.09
      Returns:
      the constant, or empty for a type this SDK does not list
    • toString

      public String toString()
      Overrides:
      toString in class Enum<MessageType>