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
-
-
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
All Methods Instance Methods Concrete Methods 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 Detail
-
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 Detail
-
getAmount
public BigDecimal getAmount()
Get amount.- Returns:
- Amount.
-
setAmount
public void setAmount(BigDecimal amount)
Set amount.- Parameters:
amount- Amount.
-
getCurrency
public String getCurrency()
Get currency.- Returns:
- Currency.
-
setCurrency
public void setCurrency(String currency)
Set currency.- Parameters:
currency- Currency.
-
getAmountFormatted
public String getAmountFormatted()
Get formatted amount.- Returns:
- Formatted amount.
-
setAmountFormatted
public void setAmountFormatted(String amountFormatted)
Set formatted amount.- Parameters:
amountFormatted- Formatted amount.
-
getCurrencyFormatted
public String getCurrencyFormatted()
Get formatted currency.- Returns:
- Formatted currency.
-
setCurrencyFormatted
public void setCurrencyFormatted(String currencyFormatted)
Set formatted currency.- Parameters:
currencyFormatted- Formatted currency.
-
-