All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.kpavlov.jreactive8583.iso.MessageClass.kt Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
@file:JvmName("MessageClass")

package com.github.kpavlov.jreactive8583.iso

/**
 * Position two of the MTI specifies the overall purpose of the message.
 *
 * @see [](https://en.wikipedia.org/wiki/ISO_8583.Message_type_indicator_)
) */
@Suppress("unused", "MagicNumber")
public enum class MessageClass(
    internal val value: Int,
) {
    /**
     * `x1xx` - Authorization message
     *
     *
     * Determine if funds are available, get an approval but do not post
     * to account for reconciliation. Dual message system (DMS), awaits file exchange
     * for posting to the account.
     */
    AUTHORIZATION(0x0100),

    /**
     * `x2xx` - Financial messages
     *
     *
     * Determine if funds are available, get an approval and post directly
     * to the account. Single message system (SMS), no file exchange after this.
     */
    FINANCIAL(0x0200),

    /**
     * `x3xx` - File actions message
     *
     *
     * Used for hot-card, TMS and other exchanges
     */
    FILE_ACTIONS(0x0300),

    /**
     * `x4xx` 	Reversal and chargeback messages
     *
     *
     * - Reversal (x4x0 or x4x1): Reverses the action of a previous authorization.
     * - Chargeback (x4x2 or x4x3): Charges back a previously cleared financial message.
     */
    REVERSAL_CHARGEBACK(0x0400),

    /**
     * `x5xx` - Reconciliation message
     *
     * Transmits settlement information message.
     */
    RECONCILIATION(0x0500),

    /**
     * `x6xx` - Administrative message
     *
     * Transmits administrative advice. Often used for failure messages
     * (e.g., message reject or failure to apply).
     */
    ADMINISTRATIVE(0x0600),

    /**
     * `x7xx` - Fee collection messages
     */
    FEE_COLLECTION(0x0700),

    /**
     * x8xx	Network management message
     * Used for secure key exchange, logon, echo test and other network functions.
     */
    NETWORK_MANAGEMENT(0x0800),
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy