Package com.thalesgroup.gemalto.d1.d1pay
Interface TransactionRecord
-
public interface TransactionRecord
Contains the digital card's transaction record information.- Since:
- 2.3.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TransactionRecord.Status
Status of a transaction record.static class
TransactionRecord.Type
Type of a transaction record.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getAmount()
Retrieves the amount of the transaction record.String
getCurrencyAlphaCode()
Retrieves the transaction currency alpha code according to the numeric one specified in the ISO-4217 standard.int
getCurrencyCode()
Retrieves the transaction currency numeric code as specified in the ISO-4217 standard.String
getDate()
Retrieves the transaction record date (format: ISO 8601 YYYY-MM-DDThh:mm:ssTZD).String
getDisplayAmount()
Retrieves the transaction record amount in ISO 4217 format.String
getID()
Retrieves the transaction record ID which is scheme dependent (Optional).String
getMerchantName()
Retrieves the merchant name of the transaction record (Optional).String
getMerchantPostalCode()
Retrieves the merchant postal code of the transaction record (Optional).String
getMerchantType()
Retrieves the merchant type of the transaction record which is Category Code (MCC) (Optional).TransactionRecord.Status
getStatus()
Retrieves the transaction record status.TransactionRecord.Type
getType()
Retrieves the transaction record type.
-
-
-
Method Detail
-
getDate
@NonNull String getDate()
Retrieves the transaction record date (format: ISO 8601 YYYY-MM-DDThh:mm:ssTZD).- Returns:
- The transaction record date.
-
getType
@NonNull TransactionRecord.Type getType()
Retrieves the transaction record type.- Returns:
- The transaction record type.
-
getStatus
@NonNull TransactionRecord.Status getStatus()
Retrieves the transaction record status.- Returns:
- The transaction record status.
-
getID
@Nullable String getID()
Retrieves the transaction record ID which is scheme dependent (Optional).- Returns:
- The transaction record ID.
-
getCurrencyCode
int getCurrencyCode()
Retrieves the transaction currency numeric code as specified in the ISO-4217 standard.- Returns:
- Transaction currency numeric code as specified in the ISO-4217 standard.
-
getCurrencyAlphaCode
String getCurrencyAlphaCode()
Retrieves the transaction currency alpha code according to the numeric one specified in the ISO-4217 standard.- Returns:
- Transaction currency alpha code.
-
getAmount
double getAmount()
Retrieves the amount of the transaction record. Number negative is possible (in case of refund) (Optional)- Returns:
- The Amount of transaction record.
-
getDisplayAmount
@Nullable String getDisplayAmount()
Retrieves the transaction record amount in ISO 4217 format. ie with the correct number of digits after the decimal separator.(Optional)- Returns:
- The representation of Amount in ISO 4217 format.
-
getMerchantName
@Nullable String getMerchantName()
Retrieves the merchant name of the transaction record (Optional).- Returns:
- The merchant name of transaction record.
-
getMerchantType
@Nullable String getMerchantType()
Retrieves the merchant type of the transaction record which is Category Code (MCC) (Optional).- Returns:
- The merchant type of transaction record.
-
-