public enum TransactionType extends java.lang.Enum<TransactionType>
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 |
---|
CASHBACK
A Purchase transaction with Cashback option
|
MANUAL_ENTRY
Manual entered transaction
|
PURCHASE
A Purchase transaction
|
REFUND
A Refund transaction
|
Modifier and Type | Method and Description |
---|---|
static TransactionType |
fromByte(byte value)
Get a
TransactionType from a byte value |
static TransactionType |
fromString(java.lang.String value)
Get a
TransactionType from a string value |
byte |
getByte()
Gets the byte value of the Transaction type
|
static java.lang.String |
toString(TransactionType type) |
static TransactionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionType PURCHASE
public static final TransactionType REFUND
public static final TransactionType CASHBACK
public static final TransactionType MANUAL_ENTRY
public static TransactionType[] values()
for (TransactionType c : TransactionType.values()) System.out.println(c);
public static TransactionType 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(TransactionType type)
public static TransactionType fromByte(byte value)
TransactionType
from a byte valuevalue
- byte value of the TransactionType
TransactionType
if byte value is valid otherwise return nullpublic static TransactionType fromString(java.lang.String value)
TransactionType
from a string valuevalue
- string value of the TransactionType
TransactionType
if string value is valid otherwise return nullCopyright © 2019 Yello. All rights reserved.