LoyaleTransactionType

The rounding parameter is an enum which corresponds to:
0 = Purchase, 1 = Positive_Adjustment, 2 = Negative_Adjustment, 3 = Redeem, 4 = Refund, 5 = Top_Up.

enum class LoyaleTransactionType(val textValue: String, val indexValue: Int) {
    // possible transactions types
    PURCHASE("Purchase", 0),
    POSITIVE_ADJUSTMENT("Reward", 1),
    NEGATIVE_ADJUSTMENT("Adjustment", 2),
    REDEEM("Redeem", 3),
    REFUND("Refund", 4),
    TOP_UP("Top Up", 5),

    // value which can help to handle any other random values
    UNDEFINED("Undefined", -1)
}