Class CardTransactionRecord.Amount
java.lang.Object
com.thalesgroup.gemalto.d1.card.cardservice.CardTransactionRecord.Amount
- Enclosing class:
- CardTransactionRecord
The amount and currency code for the transaction.
- Since:
- 4.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongRetrieves the transaction amount.The currency code of the transaction in ISO 4217 alpha code format.
-
Constructor Details
-
Amount
Internal constructor for the Amount object. It calls theCardTransactionRecord.getAmount()API to initialize the Amount object.
-
-
Method Details
-
getAmount
public long getAmount()Retrieves the transaction amount. The transaction amount is obtained by multiplying the nominal amount value by 10 to the power of n, where n is the currency exponent of the currency code received in thecurrencyCode. The last n digits are used for decimals. For example, an amount displayed as US$ 99,999.99 will be received as 9999999. -
getCurrencyCode
The currency code of the transaction in ISO 4217 alpha code format.
-