Class AmountAttribute
java.lang.Object
io.getlime.security.powerauth.lib.mtoken.model.entity.attributes.Attribute
io.getlime.security.powerauth.lib.mtoken.model.entity.attributes.AmountAttribute
public class AmountAttribute extends Attribute
Attribute representing a financial amount item, with attributes for amount
and currency, that can be rendered on a mobile application.
- Author:
- Petr Dvorak, petr@wultra.com
-
Nested Class Summary
Nested classes/interfaces inherited from class io.getlime.security.powerauth.lib.mtoken.model.entity.attributes.Attribute
Attribute.Type -
Field Summary
-
Constructor Summary
Constructors Constructor Description AmountAttribute()Default constructor.AmountAttribute(String id, String label, BigDecimal amount, String currency, String amountFormatted, String currencyFormatted)Constructor with all details. -
Method Summary
Modifier and Type Method Description BigDecimalgetAmount()Get amount.StringgetAmountFormatted()Get formatted amount.StringgetCurrency()Get currency.StringgetCurrencyFormatted()Get formatted currency.voidsetAmount(BigDecimal amount)Set amount.voidsetAmountFormatted(String amountFormatted)Set formatted amount.voidsetCurrency(String currency)Set currency.voidsetCurrencyFormatted(String currencyFormatted)Set formatted currency.
-
Constructor Details
-
AmountAttribute
public AmountAttribute()Default constructor. -
AmountAttribute
public AmountAttribute(String id, String label, BigDecimal amount, String currency, String amountFormatted, String currencyFormatted)Constructor with all details.- Parameters:
id- Attribute ID.label- Attribute label.amount- Amount.currency- Currency.amountFormatted- Formatted amount.currencyFormatted- Formatted currency.
-
-
Method Details
-
getAmount
Get amount.- Returns:
- Amount.
-
setAmount
Set amount.- Parameters:
amount- Amount.
-
getCurrency
Get currency.- Returns:
- Currency.
-
setCurrency
Set currency.- Parameters:
currency- Currency.
-
getAmountFormatted
Get formatted amount.- Returns:
- Formatted amount.
-
setAmountFormatted
Set formatted amount.- Parameters:
amountFormatted- Formatted amount.
-
getCurrencyFormatted
Get formatted currency.- Returns:
- Formatted currency.
-
setCurrencyFormatted
Set formatted currency.- Parameters:
currencyFormatted- Formatted currency.
-