public enum TransactMode
{
Authorize(1) ,
/// <summary>
/// Authorize and capture transaction mode
/// </summary>
AuthorizeAndCapture(2);
private final int value;
public int getValue() {
return value;
}
TransactMode(int value) {
this.value = value;
}
}
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(TransactMode.AuthorizeAndCapture.getValue());
}