Class ConvertedCurrencyDetail
java.lang.Object
com.broadleafcommerce.promotion.offer.client.web.context.discounts.ConvertedCurrencyDetail
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetRate()The conversion factor to convertsourceCurrencyCodeto thetargetCurrencyCode.TheCurrencyUnit.getCurrencyCode()of the base (source) from which to convert.TheCurrencyUnit.getCurrencyCode()of the converted (target) to which to convert.inthashCode()voidsetRate(BigDecimal rate) The conversion factor to convertsourceCurrencyCodeto thetargetCurrencyCode.voidsetSourceCurrencyCode(String sourceCurrencyCode) TheCurrencyUnit.getCurrencyCode()of the base (source) from which to convert.voidsetTargetCurrencyCode(String targetCurrencyCode) TheCurrencyUnit.getCurrencyCode()of the converted (target) to which to convert.toString()
-
Constructor Details
-
ConvertedCurrencyDetail
public ConvertedCurrencyDetail()
-
-
Method Details
-
getSourceCurrencyCode
TheCurrencyUnit.getCurrencyCode()of the base (source) from which to convert. -
getTargetCurrencyCode
TheCurrencyUnit.getCurrencyCode()of the converted (target) to which to convert. -
getRate
The conversion factor to convertsourceCurrencyCodeto thetargetCurrencyCode. -
setSourceCurrencyCode
TheCurrencyUnit.getCurrencyCode()of the base (source) from which to convert. -
setTargetCurrencyCode
TheCurrencyUnit.getCurrencyCode()of the converted (target) to which to convert. -
setRate
The conversion factor to convertsourceCurrencyCodeto thetargetCurrencyCode. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-