public interface DiscountSmartDataBean
extends com.ibm.commerce.beans.SmartDataBean
SmartDataBean
to provide an interface to get
adjustment values from the DiscountDataBean
.Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getDiscountValue()
Returns the first catalog entry's total adjustment that applies at
the catalog entry level.
|
java.math.BigDecimal[] |
getDiscountValues()
Returns the total adjustment for all catalog entries that apply at
the catalog entry level.
|
java.math.BigDecimal getDiscountValue()
If only one catalog entry ID was set using
DiscountInputDataBean.setCatalogEntryId(Long)
, then the returned
value is for that. Otherwise the returned value corresponds to the first
catalog entry ID that was set using
DiscountInputDataBean.setCatalogEntryId(Long[])
. (Similar for
the String-based set methods.)
java.math.BigDecimal[] getDiscountValues()
The returned values correspond to the catalog entry IDs given by
DiscountInputDataBean.setCatalogEntryId(Long[])
. If
DiscountInputDataBean.setCatalogEntryId(Long)
was used to set
the catalog entry IDs, the returned array will have a length of 1.
(Similar for the String-based set methods.)