Package com.thalesgroup.gemalto.d1.d1pay
Interface TransactionData
-
public interface TransactionDataInterface to provide detailed information of a transaction.- Since:
- 2.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTransactionData.TypeType of a transaction.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetAmount()Retrieves the amount of the transaction.StringgetCurrencyAlphaCode()Retrieves the transaction currency alpha code according to the numeric one specified in the ISO-4217 standard.intgetCurrencyCode()Retrieves the transaction currency code as specified in the ISO-4217 standard.StringgetDate()Retrieves the transaction date (in format yymmdd).IntegergetNumberOfPaymentLeft()Retrieves the number of payments left before a replenishment is required.SchemegetScheme()Retrieves the card scheme used for this transaction.TransactionData.TypegetType()Retrieves the transaction type.BooleanisReplenishmentRequired()Retrieves the status if a replenishment is required before executing next transaction.voidwipe()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
nullif 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
nullif it is not available.
-
wipe
void wipe()
Wipes the sensitive data of the object.
-
-