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

com.global.api.terminals.diamond.enums.TransactionResult Maven / Gradle / Ivy

There is a newer version: 14.2.3
Show newest version
package com.global.api.terminals.diamond.enums;

public enum TransactionResult {
    ACCEPTED("0"),
    REFUSED("1"),
    NO_CONNECTION("2"),
    CANCELED("7");

    private String value;

    TransactionResult(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public static TransactionResult fromValue(String value) {
        for (TransactionResult transactionResult : TransactionResult.values()) {
            if (transactionResult.getValue().equals(value)) {
                return transactionResult;
            }
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy