public enum PaymentState extends java.lang.Enum<PaymentState>
RouterOuterClass.PaymentState
Enum Constant and Description |
---|
FAILED_ERROR |
FAILED_INCORRECT_PAYMENT_DETAILS |
FAILED_INSUFFICIENT_BALANCE |
FAILED_NO_ROUTE |
FAILED_TIMEOUT |
IN_FLIGHT |
SUCCEEDED |
Modifier and Type | Method and Description |
---|---|
RouterOuterClass.PaymentState |
getApiObject() |
static PaymentState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PaymentState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static PaymentState |
wrap(RouterOuterClass.PaymentState apiObject) |
public static final PaymentState IN_FLIGHT
public static final PaymentState SUCCEEDED
public static final PaymentState FAILED_TIMEOUT
public static final PaymentState FAILED_NO_ROUTE
public static final PaymentState FAILED_ERROR
public static final PaymentState FAILED_INCORRECT_PAYMENT_DETAILS
public static final PaymentState FAILED_INSUFFICIENT_BALANCE
public static PaymentState[] values()
for (PaymentState c : PaymentState.values()) System.out.println(c);
public static PaymentState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic RouterOuterClass.PaymentState getApiObject()
public static PaymentState wrap(RouterOuterClass.PaymentState apiObject)