/
MessageClass.kt
73 lines (64 loc) · 1.84 KB
/
MessageClass.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
@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")
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);
}