Enum Class C2bResponseType

java.lang.Object
java.lang.Enum<C2bResponseType>
io.github.openpaydev.mpesa.core.models.C2bResponseType
All Implemented Interfaces:
Serializable, Comparable<C2bResponseType>, Constable

public enum C2bResponseType extends Enum<C2bResponseType>
Enum representing the response type for C2B URL registration. This determines the default behavior if the validation URL is unreachable.
  • Enum Constant Details

    • Cancelled

      public static final C2bResponseType Cancelled
      If the validation URL is unreachable, the transaction will be automatically cancelled.
    • Completed

      public static final C2bResponseType Completed
      If the validation URL is unreachable, the transaction will be automatically completed.
  • Method Details

    • values

      public static C2bResponseType[] 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 C2bResponseType 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