public class BulkOrderDiscountCalculator extends OrderDiscountCalculator implements CalculatorInfoProvider
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BULK_CALCULATOR_TYPE
PMDL calculator type
|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected BandedDiscountCalculatorHelper |
mBandedDiscountCalculatorHelper
Banding discount calculator helper
|
protected java.lang.String |
mDefaultBandingProperty
Default banding property
defaults to the order price info.
|
protected java.lang.String |
mDefaultBandingPropertyScope
Default banding property scope
default null scope, i.e.
|
AMOUNT_INCREASE_TYPE, AMOUNT_OFF_TYPE, FIXED_PRICE_TYPE, ILLEGAL_TYPE, mPromotionTools, PERCENT_OFF_TYPE
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
BulkOrderDiscountCalculator() |
Modifier and Type | Method and Description |
---|---|
void |
doStartService()
Checks to see if property
qualifierService is set |
double |
getAdjuster(RepositoryItem pPricingModel,
java.util.Map pExtraParameters)
Uses the banded discount helper to determine the adjuster to use.
|
BandedDiscountCalculatorHelper |
getBandedDiscountCalculatorHelper() |
CalculatorInfo |
getCalculatorInfo()
Provide a CalculatorInfo for the calculator
|
java.lang.String |
getCalculatorType()
Gets the String calculator type of this calculator
|
java.lang.String |
getDefaultBandingProperty() |
java.lang.String |
getDefaultBandingPropertyScope() |
void |
setBandedDiscountCalculatorHelper(BandedDiscountCalculatorHelper pBandedDiscountCalculatorHelper) |
void |
setDefaultBandingProperty(java.lang.String pDefaultBandingProperty) |
void |
setDefaultBandingPropertyScope(java.lang.String pDefaultBandingPropertyScope) |
adjustOrderSubTotal, adjustShippingGroupSubtotalPriceInfos, applyAdjustmentToNonTaxablePriceInfo, applyAdjustmentToSubtotalPriceInfo, applyAdjustmentToTaxablePriceInfo, computeGroupSubtotal, computeGroupSubtotal, computeGroupSubtotal, createCurrentShareMap, findMatchingObject, getAmountToDiscount, getAmountToDiscount, getDetailsToReceiveDiscountShare, getItemsToReceiveDiscountShare, getNonDiscountableTotal, getNonTaxableShippingGroupTotal, getPricingTools, getTaxableShippingGroupTotal, getTotalForShippingGroups, getTotalShareValueForShippingGroup, isSaveDetailsOrderDiscountShare, isSaveItemsOrderDiscountShare, priceOrder, setPricingTools, setSaveDetailsOrderDiscountShare, setSaveItemsOrderDiscountShare, updateItemsDiscountShare, updateItemsDiscountShare, updateShippingItemsSubtotalMaps
adjust, adjustAmount, adjustAmount, getDiscountType, getDiscountType, getPricingModelProperties, getPromotionTools, getQualifierService, getQualifierService, isNegativeAmountException, setNegativeAmountException, setPricingModelProperties, setPromotionTools, setQualifierService
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
public static final java.lang.String BULK_CALCULATOR_TYPE
protected java.lang.String mDefaultBandingProperty
protected java.lang.String mDefaultBandingPropertyScope
protected BandedDiscountCalculatorHelper mBandedDiscountCalculatorHelper
public void setDefaultBandingProperty(java.lang.String pDefaultBandingProperty)
public java.lang.String getDefaultBandingProperty()
public void setDefaultBandingPropertyScope(java.lang.String pDefaultBandingPropertyScope)
public java.lang.String getDefaultBandingPropertyScope()
public BandedDiscountCalculatorHelper getBandedDiscountCalculatorHelper()
public void setBandedDiscountCalculatorHelper(BandedDiscountCalculatorHelper pBandedDiscountCalculatorHelper)
public double getAdjuster(RepositoryItem pPricingModel, java.util.Map pExtraParameters) throws PricingException
getAdjuster
in class DiscountCalculatorService
pPricingModel
- RepositoryItem pricing modelpExtraParameters
- Map of optional extra parameters, may be nullPricingException
- if the method fails to get a valid double adjusterBandedDiscountCalculatorHelper.getAdjuster(RepositoryItem, Collection, Map, String, String)
public java.lang.String getCalculatorType()
public CalculatorInfo getCalculatorInfo()
getCalculatorInfo
in interface CalculatorInfoProvider
public void doStartService() throws ServiceException
qualifierService
is setdoStartService
in class OrderDiscountCalculator
ServiceException
- if there was a problem initializing this service