public enum BonusOperationStatus extends java.lang.Enum<BonusOperationStatus>
Enum Constant and Description |
---|
ERROR
Возникла ошибка при выполнении операции.
|
OK
Запрос обработан корректно: запрошенная операция выполнена
|
TRY_AGAIN
Возникла ошибка при выполнении операции, но повторная попытка может оказаться успешной.
|
Modifier and Type | Method and Description |
---|---|
static BonusOperationStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BonusOperationStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BonusOperationStatus OK
public static final BonusOperationStatus TRY_AGAIN
Например, запрос не удалось выполнить из-за того, что сервер/процессинг в момент запроса был offline
public static final BonusOperationStatus ERROR
Например, если данная операция вообще не поддерживается процессингом или выполняется попытка списания бонусов с невалидной карты.
public static BonusOperationStatus[] values()
for (BonusOperationStatus c : BonusOperationStatus.values()) System.out.println(c);
public static BonusOperationStatus 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 null