Class ExchangeRateInfo

java.lang.Object
com.broadleafcommerce.pricing.domain.ExchangeRateInfo

public class ExchangeRateInfo extends Object
A representation of exchange rate data. Mirrors the format of api.exchangeratesapi.io if converted to JSON as of August, 2020.
  • Constructor Details

    • ExchangeRateInfo

      public ExchangeRateInfo()
  • Method Details

    • getBaseCurrency

      public String getBaseCurrency()
      Alias for getBase().
      Returns:
    • getBase

      public String getBase()
      Base currency code, for example, USD Named "base" to mirror format in api.exchangeratesapi.io.
    • getRates

      public Map<String,BigDecimal> getRates()
    • setBase

      public void setBase(String base)
      Base currency code, for example, USD Named "base" to mirror format in api.exchangeratesapi.io.
    • setRates

      public void setRates(Map<String,BigDecimal> rates)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object