java.lang.Object
com.broadleafcommerce.promotion.offer.client.web.context.discounts.ConvertedCurrencyDetail
All Implemented Interfaces:
Serializable

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

    • ConvertedCurrencyDetail

      public ConvertedCurrencyDetail()
  • 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