public enum TransactionState extends java.lang.Enum<TransactionState>
TransactionStatus
class.Enum Constant and Description |
---|
SETTLED
The transaction has been approved and settled by the transaction gateway.
|
TO_CANCEL
The transaction has to be cancelled by the transaction gateway upon settlement.
|
TO_REVERSE
The transaction has been online approved, but was finally declined during the transaction
process, with a reversal request to be sent to the transaction gateway.
|
TO_SETTLE
The transaction has been approved but has to be settled/finalized by the transaction gateway
|
UNKNOWN
Unknown state
|
Modifier and Type | Method and Description |
---|---|
static TransactionState |
fromByte(byte value)
Gets a
TransactionState from a byte value |
byte |
getByte()
Gets the byte value of the
TransactionState |
static java.lang.String |
toString(TransactionState state)
Gets a string representation of the
TransactionState |
static TransactionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionState TO_SETTLE
public static final TransactionState TO_CANCEL
public static final TransactionState TO_REVERSE
public static final TransactionState SETTLED
TransactionStatus
class will contain this state on return to a call to the method
Transaction.startTransaction(com.yello.api.payment.emv.TransactionType, java.math.BigDecimal, java.math.BigDecimal)
or
the method Transaction.startTransaction(com.yello.api.payment.emv.TransactionConfiguration, com.yello.api.payment.emv.TransactionType, java.math.BigDecimal, java.math.BigDecimal)
either if auto-settlement option was specified within the TransactionConfiguration
passed to the
payment framework or if the transaction gateway auto-settles authorized transactions.public static final TransactionState UNKNOWN
public static TransactionState[] values()
for (TransactionState c : TransactionState.values()) System.out.println(c);
public static TransactionState 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 byte getByte()
TransactionState
public static TransactionState fromByte(byte value)
TransactionState
from a byte valuevalue
- byte value of the TransactionState
TransactionState
if byte value is valid otherwise return nullpublic static java.lang.String toString(TransactionState state)
TransactionState
state
- TransactionState
TransactionState
Copyright © 2019 Yello. All rights reserved.