Class 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
    • 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.