Class CashBackCurrencyGroup


  • public class CashBackCurrencyGroup
    extends Object
    Represents a group of cashback currencies associated with a specific currency.

    This class holds information about a specific currency's code, symbol, and balance in a cashback system.

    Author:
    nikritikos
    • Constructor Detail

      • CashBackCurrencyGroup

        public CashBackCurrencyGroup()
        Default constructor. Initializes an empty instance of CashBackCurrencyGroup.
      • CashBackCurrencyGroup

        public CashBackCurrencyGroup​(String currencyCode,
                                     String currencySymbol,
                                     BigDecimal balance)
        Constructor with parameters to initialize the cashback currency group.
        Parameters:
        currencyCode - The code of the currency (e.g., "USD").
        currencySymbol - The symbol of the currency (e.g., "$").
        balance - The balance of cashback for the currency.
    • Method Detail

      • getCurrencyCode

        public String getCurrencyCode()
        Gets the currency code.
        Returns:
        The currency code (e.g., "USD").
      • setCurrencyCode

        public void setCurrencyCode​(String currencyCode)
        Sets the currency code.
        Parameters:
        currencyCode - The currency code to set (e.g., "USD").
      • getCurrencySymbol

        public String getCurrencySymbol()
        Gets the currency symbol.
        Returns:
        The currency symbol (e.g., "$").
      • setCurrencySymbol

        public void setCurrencySymbol​(String currencySymbol)
        Sets the currency symbol.
        Parameters:
        currencySymbol - The currency symbol to set (e.g., "$").
      • getBalance

        public BigDecimal getBalance()
        Gets the current balance in the specified currency.
        Returns:
        The balance in the given currency.
      • setBalance

        public void setBalance​(BigDecimal balance)
        Sets the balance for the specified currency.
        Parameters:
        balance - The balance to set in the given currency.