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

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

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

public enum AuthorizationMethod {
    PIN("A"),
    SIGNATURE("@"),
    PIN_AND_SIGNATURE("B"),
    NO_AUTH_METHOD("?");

    private String value;

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

    public String getValue() {
        return value;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy