Class ExchangeRateDetail

java.lang.Object
com.broadleafcommerce.pricing.client.domain.ExchangeRateDetail
All Implemented Interfaces:
Serializable

public class ExchangeRateDetail extends Object implements Serializable
Represents the details of the exchange rate used to convert a MonetaryAmount from one currency to another.
Since:
2.0.4
Author:
karanjariwala
See Also:
  • Constructor Details

    • ExchangeRateDetail

      public ExchangeRateDetail()
  • Method Details

    • getBaseCurrencyCode

      public String getBaseCurrencyCode()
      The CurrencyUnit.getCurrencyCode() of the base (source) from which to convert.
    • getConvertedCurrencyCode

      public String getConvertedCurrencyCode()
      The CurrencyUnit.getCurrencyCode() of the converted (target) to which to convert.
    • getRate

      public BigDecimal getRate()
      The conversion factor to convert getBaseCurrencyCode() to the getConvertedCurrencyCode()
    • getAttributes

      public Map<String,Object> getAttributes()
      Miscellaneous attributes that can be set to this ExchangeRateDetail.
    • setBaseCurrencyCode

      public void setBaseCurrencyCode(String baseCurrencyCode)
      The CurrencyUnit.getCurrencyCode() of the base (source) from which to convert.
    • setConvertedCurrencyCode

      public void setConvertedCurrencyCode(String convertedCurrencyCode)
      The CurrencyUnit.getCurrencyCode() of the converted (target) to which to convert.
    • setRate

      public void setRate(BigDecimal rate)
      The conversion factor to convert getBaseCurrencyCode() to the getConvertedCurrencyCode()
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      Miscellaneous attributes that can be set to this ExchangeRateDetail.
    • 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