com.global.api.terminals.diamond.enums.AuthorizationMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of globalpayments-sdk Show documentation
Show all versions of globalpayments-sdk Show documentation
API for processing payments through Global Payments
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;
}
}