public enum TransactionResult extends java.lang.Enum<TransactionResult>
TransactionStatus
class,
representing the outcome of an EMV transaction. The TransactionStatus
is returned
following 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)
of the Transaction
singleton class.
Transaction
singleton class.Enum Constant and Description |
---|
APPROVED
The EMV transaction has been approved.
|
COMM_TIMEOUT
Communication timeout while waiting for the EMV transaction to complete.
|
DECLINED
The EMV transaction has been declined.
|
IO_ERROR
An IO error has occurred while performing the EMV transaction.
|
PROCESSING_ERROR
EMV processing error (see below for more information).
|
UNKNOWN
Unknown error
|
Modifier and Type | Method and Description |
---|---|
static TransactionResult |
fromByte(byte value)
Get a
TransactionResult from a byte value |
byte |
getByte()
Gets the byte value of the Transaction result
|
static java.lang.String |
toString(TransactionResult result) |
static TransactionResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionResult APPROVED
public static final TransactionResult DECLINED
public static final TransactionResult COMM_TIMEOUT
public static final TransactionResult IO_ERROR
public static final TransactionResult PROCESSING_ERROR
public static final TransactionResult UNKNOWN
public static TransactionResult[] values()
for (TransactionResult c : TransactionResult.values()) System.out.println(c);
public static TransactionResult 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()
public static java.lang.String toString(TransactionResult result)
public static TransactionResult fromByte(byte value)
TransactionResult
from a byte valuevalue
- byte value of the TransactionResult
TransactionResult
if byte value is valid otherwise return nullCopyright © 2019 Yello. All rights reserved.