Class CurrencyConversionDetail

java.lang.Object
com.broadleafcommerce.order.common.domain.CurrencyConversionDetail
All Implemented Interfaces:
Serializable

public class CurrencyConversionDetail extends Object implements Serializable
Represents the details of the exchange rate used to convert a MonetaryAmount from one currency to another.
Since:
Order Common 2.0.4
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • CurrencyConversionDetail

      public CurrencyConversionDetail()
  • Method Details

    • getSourceCurrencyCode

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

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

      public BigDecimal getRate()
      The conversion factor to convert sourceCurrencyCode to the targetCurrencyCode.
    • setSourceCurrencyCode

      public void setSourceCurrencyCode(String sourceCurrencyCode)
      The CurrencyUnit.getCurrencyCode() of the base (source) from which to convert.
    • setTargetCurrencyCode

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

      public void setRate(BigDecimal rate)
      The conversion factor to convert sourceCurrencyCode to the targetCurrencyCode.
    • 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