Enum Class OrderStatus

java.lang.Object
java.lang.Enum<OrderStatus>
com.akraml.satim.util.OrderStatus
All Implemented Interfaces:
Serializable, Comparable<OrderStatus>, Constable

public enum OrderStatus extends Enum<OrderStatus>
Enumeration of possible order statuses returned by the SATIM API.

These statuses indicate the current state of a payment order.

  • Enum Constant Details

    • REGISTERED

      public static final OrderStatus REGISTERED
      Order has been registered but payment has not been made.
    • APPROVED

      public static final OrderStatus APPROVED
      Hold amount approved but not yet deposited. Used for pre-authorization flows.
    • DEPOSITED

      public static final OrderStatus DEPOSITED
      Payment has been successfully deposited. This is the successful completion state.
    • REVERSED

      public static final OrderStatus REVERSED
      Authorization has been reversed.
    • REFUNDED

      public static final OrderStatus REFUNDED
      Transaction has been refunded.
    • ACS_AUTH

      public static final OrderStatus ACS_AUTH
      Authorization initiated via ACS (3D Secure).
    • DECLINED

      public static final OrderStatus DECLINED
      Authorization was declined.
    • UNKNOWN

      public static final OrderStatus UNKNOWN
      Unknown or unrecognized status.
  • Method Details

    • values

      public static OrderStatus[] 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 OrderStatus 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
    • getCode

      public int getCode()
      Returns the numeric code for this status.
      Returns:
      the status code
    • getDescription

      @NotNull public @NotNull String getDescription()
      Returns a human-readable description of this status.
      Returns:
      the status description
    • fromCode

      @NotNull public static @NotNull OrderStatus fromCode(int code)
      Converts a numeric status code to an OrderStatus enum value.
      Parameters:
      code - the numeric status code
      Returns:
      the corresponding OrderStatus, or UNKNOWN if not recognized
    • isSuccess

      public boolean isSuccess()
      Checks if this status represents a successful payment.
      Returns:
      true if the payment was successful
    • isPending

      public boolean isPending()
      Checks if this status represents a pending payment.
      Returns:
      true if the payment is pending
    • isFailed

      public boolean isFailed()
      Checks if this status represents a failed or reversed payment.
      Returns:
      true if the payment failed or was reversed