public interface TransactionRecord extends TransactionStatus
TransactionRecord
interface extends the TransactionStatus
interface.
It is used by the Yello EMV transaction library to pass transaction records
to transaction gateway classes
(implementing the TransactionGateway
interface)
TransactionGateway
interface.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCategoryCode()
Gets the category code associated to the transaction
|
java.lang.Integer |
getCurrencyNumericCode()
Gets the Currency Numeric Code as defined by ISO 4217
|
java.lang.String |
getGatewayAuthorizationCode()
Gets the gateway authorization code saved by the transaction gateway
|
EMVTagReader |
getGatewayConfigTagStore()
Gets the configTagStore to use by the gateway during the transaction
|
java.util.Map<java.lang.String,java.lang.String> |
getGatewayData()
Gets the gateway custom data
|
java.lang.String |
getGatewayTransactionID()
Gets the gateway Transaction ID saved by the transaction gateway
|
int |
getKernelId()
Get the EMV kernel ID used for the transaction
Useful to retrieve config EMV relative to EMV kernel ID
|
EMVTagReader |
getTagStore()
Gets the EMV tags associated to the transaction
|
int |
getTransactionCounter()
Gets the transaction counter associated to the transaction
|
void |
lock()
Locks the
TransactionRecord object
Transaction gateway classes should lock the TransactionRecord object before use
to avoid race-conditions. |
void |
setEMVConfigAvailable(boolean isAvailable)
Set a flag "GW has a new EMV config"
|
void |
setGatewayAuthorizationCode(java.lang.String authorizationCode)
Sets the Gateway specific authorization code
Normally used by Transaction gateway class to update gateway specific authorization code
following an authorization request
|
void |
setGatewayTransactionID(java.lang.String transactionID)
Sets the Gateway specific Transaction ID
Normally used by transaction gateway classes to update Gateway specific Transaction ID
following an authorization request.
|
void |
unlock()
Unlocks the
TransactionRecord object
Transaction gateway classes should unlock the TransactionRecord object once done
handling the transaction. |
getAmount, getCashBackAmount, getCurrencyAlphabeticCode, getReceipt, getTransactionDateTime, getTransactionID, getTransactionResult, getTransactionState, getTransactionType, isEMVConfigAvailable, isOnlineAuthorized, isReceiptAvailable
void lock()
TransactionRecord
object
Transaction gateway classes should lock the TransactionRecord
object before use
to avoid race-conditions.
lock()
will block if the TransactionRecord
is already locked.void unlock()
TransactionRecord
object
Transaction gateway classes should unlock the TransactionRecord
object once done
handling the transaction.
unlock()
will unlock the TransactionRecord
object and
wakeup any process/thread waiting to take the lock via the lock()
method.EMVTagReader getTagStore()
EMVTagReader
interface for retrieving the EMV tagsjava.lang.String getCategoryCode()
String
representing the category codejava.lang.Integer getCurrencyNumericCode()
Integer
representing the Currency Numeric Codevoid setGatewayTransactionID(java.lang.String transactionID)
transactionID
- The gateway transaction IDjava.lang.String getGatewayTransactionID()
String
represent the gateway's transaction IDvoid setGatewayAuthorizationCode(java.lang.String authorizationCode)
authorizationCode
- The gateway authorization codejava.lang.String getGatewayAuthorizationCode()
String
represent the gateway's authorization codeint getTransactionCounter()
int getKernelId()
void setEMVConfigAvailable(boolean isAvailable)
isAvailable
- - new config presence flagjava.util.Map<java.lang.String,java.lang.String> getGatewayData()
getGatewayData
in interface TransactionStatus
String
represent the gateway's custom dataEMVTagReader getGatewayConfigTagStore()
EMVTagReader
containing the config tags to use by the gatewayCopyright © 2019 Yello. All rights reserved.