Package com.inteliqua.rest.common
Class CashBackCurrencyGroup
- java.lang.Object
-
- com.inteliqua.rest.common.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 Summary
Constructors Constructor Description CashBackCurrencyGroup()Default constructor.CashBackCurrencyGroup(String currencyCode, String currencySymbol, BigDecimal balance)Constructor with parameters to initialize the cashback currency group.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalgetBalance()Gets the current balance in the specified currency.StringgetCurrencyCode()Gets the currency code.StringgetCurrencySymbol()Gets the currency symbol.voidsetBalance(BigDecimal balance)Sets the balance for the specified currency.voidsetCurrencyCode(String currencyCode)Sets the currency code.voidsetCurrencySymbol(String currencySymbol)Sets the currency symbol.
-
-
-
Constructor Detail
-
CashBackCurrencyGroup
public CashBackCurrencyGroup()
Default constructor. Initializes an empty instance ofCashBackCurrencyGroup.
-
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.
-
-