Package com.meawallet.mtp
Class MeaTransactionMessage
- java.lang.Object
-
- com.meawallet.mtp.MeaTransactionMessage
-
- Direct Known Subclasses:
MeaTransactionDetails
public class MeaTransactionMessage extends java.lang.Object
Transaction outcome result message object. Transaction message is sent as PUSH notification after transaction is processed in TMS and content of it can be parsed into this object usingMeaTokenPlatform.Rns.parseTransactionMessage(Map)
method.
-
-
Constructor Summary
Constructors Constructor Description MeaTransactionMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
getAmount()
Get the transaction amount.MeaTransactionAuthorizationStatus
getAuthorizationStatus()
Get the authorization status of the transaction.java.lang.String
getCardId()
Get unique card ID for this card.java.util.Currency
getCurrency()
Get the transaction currency.java.lang.String
getCurrencyCode()
Returns transaction local currency code as 3-digit ISO 4217 currency code at the source location of the transaction.java.lang.String
getMerchantName()
Get the merchant ("doing business as") name.java.lang.String
getMerchantType()
Get the merchant’s type of business or service.java.lang.String
getRecordId()
Get a unique identifier for this transaction record.java.util.Date
getTransactionDate()
Get the date/time when the transaction occurred.java.lang.String
getTransactionIdentifier()
Get a unique identifier for the transaction that is used to match a transaction event on the device.java.lang.String
getTransactionTimestamp()
The date/time when the transaction occurred.MeaTransactionType
getTransactionType()
Get the transaction type.java.lang.String
toString()
-
-
-
Method Detail
-
getCardId
public java.lang.String getCardId()
Get unique card ID for this card. In the case of an MDES solution the Unique card ID to be used is the Token Unique Reference for the card.- Returns:
- The unique card ID.
-
getAmount
public java.lang.Double getAmount()
Get the transaction amount. Negative amounts indicate a refund. REFUND transaction types will always have a negative amount.- Returns:
- transaction amount
-
getAuthorizationStatus
public MeaTransactionAuthorizationStatus getAuthorizationStatus()
Get the authorization status of the transaction.- Returns:
- authorization status of the transaction as
MeaTransactionAuthorizationStatus
enum value.
-
getCurrencyCode
public java.lang.String getCurrencyCode()
Returns transaction local currency code as 3-digit ISO 4217 currency code at the source location of the transaction.- Returns:
- transaction currency
-
getCurrency
@Nullable public java.util.Currency getCurrency()
Get the transaction currency. This is the local currency at the source location of the transaction.- Returns:
- Instance of
Currency
object. - Since:
- 0.16.0
-
getMerchantName
public java.lang.String getMerchantName()
Get the merchant ("doing business as") name.- Returns:
- merchant name
-
getMerchantType
public java.lang.String getMerchantType()
Get the merchant’s type of business or service. Must be a valid Merchant Category Code (MCC).- Returns:
- merchant’s type of business or service
-
getRecordId
public java.lang.String getRecordId()
Get a unique identifier for this transaction record. Opaque value.- Returns:
- transaction record Id
-
getTransactionIdentifier
public java.lang.String getTransactionIdentifier()
Get a unique identifier for the transaction that is used to match a transaction event on the device.- Returns:
- transaction identifier
-
getTransactionTimestamp
public java.lang.String getTransactionTimestamp()
The date/time when the transaction occurred. In ISO 8601 extended format as one of the following: YYYY-MM-DDThh:mm:ss[.sss]Z YYYY-MM-DDThh:mm:ss[.sss]±hh:mm Where [.sss] is optional and can be 1 to 3 digits- Returns:
- transaction timestamp
-
getTransactionDate
@Nullable public java.util.Date getTransactionDate()
Get the date/time when the transaction occurred.- Returns:
- Instance of
Date
object.
-
getTransactionType
public MeaTransactionType getTransactionType()
Get the transaction type.- Returns:
- transaction type
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-