Package com.thalesgroup.gemalto.d1.d1pay
Interface TransactionData
-
public interface TransactionData
Interface to provide detailed information of a transaction.- Since:
- 2.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TransactionData.Type
Type of a transaction.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getAmount()
Retrieves the amount of the transaction.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 code as specified in the ISO-4217 standard.String
getDate()
Retrieves the transaction date (in format yymmdd).Integer
getNumberOfPaymentLeft()
Retrieves the number of payments left before a replenishment is required.Scheme
getScheme()
Retrieves the card scheme used for this transaction.TransactionData.Type
getType()
Retrieves the transaction type.Boolean
isReplenishmentRequired()
Retrieves the status if a replenishment is required before executing next transaction.void
wipe()
Wipes the sensitive data of the object.
-
-
-
Method Detail
-
getAmount
double getAmount()
Retrieves the amount of the transaction.- Returns:
- The transaction amount.
-
getCurrencyCode
int getCurrencyCode()
Retrieves the transaction currency code as specified in the ISO-4217 standard.- Returns:
- Transaction currency 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.
-
getDate
@NonNull String getDate()
Retrieves the transaction date (in format yymmdd).- Returns:
- The transaction date.
-
getScheme
@NonNull Scheme getScheme()
Retrieves the card scheme used for this transaction.- Returns:
- The card scheme.
-
getType
@NonNull TransactionData.Type getType()
Retrieves the transaction type.- Returns:
- The transaction type.
-
getNumberOfPaymentLeft
@Nullable Integer getNumberOfPaymentLeft()
Retrieves the number of payments left before a replenishment is required.- Returns:
- The number of payments left before the next replenishment, or
null
if it is not available.
-
isReplenishmentRequired
@Nullable Boolean isReplenishmentRequired()
Retrieves the status if a replenishment is required before executing next transaction.- Returns:
- The replenishment status or
null
if it is not available.
-
wipe
void wipe()
Wipes the sensitive data of the object.
-
-