|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.commerce.pricing.DiscountCalculatorService
atg.commerce.pricing.OrderDiscountCalculator
atg.commerce.csr.pricing.calculators.ExchangeOrderDiscountCalculator
public class ExchangeOrderDiscountCalculator
This calculator is used to apply order promotions to an exchange order.
The order promotions that are applied are those that have been applied to the promotion evaluation order. The value of each order promotion is a pre-calcuated and stored in the ReturnRequest.
This calculator overrides getAdjuster
to return the pre-calcuated value of the promotion. It also
overrides getDicountType
to always return the Constants.AMOUNT_OFF
type.
getAdjuster(RepositoryItem, Map)
,
getDiscountType(RepositoryItem, Map)
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
protected ReturnManager |
mReturnManager
|
Fields inherited from class atg.commerce.pricing.DiscountCalculatorService |
---|
AMOUNT_INCREASE_TYPE, AMOUNT_OFF_TYPE, FIXED_PRICE_TYPE, ILLEGAL_TYPE, mPromotionTools, PERCENT_OFF_TYPE |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
ExchangeOrderDiscountCalculator()
|
Method Summary | |
---|---|
protected atg.commerce.pricing.definition.MatchingObject |
findMatchingObject(atg.commerce.pricing.OrderPriceInfo pPriceQuote,
java.util.List pPriceQuotes,
java.util.List pItems,
atg.repository.RepositoryItem pPricingModel,
atg.repository.RepositoryItem pProfile,
java.util.Locale pLocale,
atg.commerce.order.Order pOrder,
java.util.Map pExtraParameters)
Overrides the base behavior to unconditionally return a MatchingObject. |
protected double |
getAdjuster(atg.repository.RepositoryItem pPricingModel,
java.util.Map pExtraParameters)
Overrides the base behavior to return the pre-calculated value for the promotion that's stored in the ReturnRequest |
protected java.lang.String |
getDiscountType(atg.repository.RepositoryItem pPricingModel,
java.util.Map pExtraParameters)
Overrides the base behavior to always return the amount off type |
ReturnManager |
getReturnManager()
|
void |
priceOrder(atg.commerce.pricing.OrderPriceInfo pPriceQuote,
atg.commerce.order.Order pOrder,
atg.repository.RepositoryItem pPricingModel,
java.util.Locale pLocale,
atg.repository.RepositoryItem pProfile,
java.util.Map pExtraParameters)
Overrides the based behavior to look for a return request passed through the extra parameters map. |
void |
setReturnManager(ReturnManager pReturnManager)
Sets the ReturnManager |
Methods inherited from class atg.commerce.pricing.OrderDiscountCalculator |
---|
adjustOrderSubTotal, adjustShippingGroupSubtotalPriceInfos, applyAdjustmentToNonTaxablePriceInfo, applyAdjustmentToSubtotalPriceInfo, applyAdjustmentToTaxablePriceInfo, computeGroupSubtotal, computeGroupSubtotal, computeGroupSubtotal, createCurrentShareMap, doStartService, getAmountToDiscount, getDetailsToReceiveDiscountShare, getItemsToReceiveDiscountShare, getNonTaxableShippingGroupTotal, getPricingTools, getTaxableShippingGroupTotal, getTotalForShippingGroups, getTotalShareValueForShippingGroup, isSaveDetailsOrderDiscountShare, isSaveItemsOrderDiscountShare, setPricingTools, setSaveDetailsOrderDiscountShare, setSaveItemsOrderDiscountShare, updateItemsDiscountShare, updateShippingItemsSubtotalMaps |
Methods inherited from class atg.commerce.pricing.DiscountCalculatorService |
---|
adjust, adjustAmount, getDiscountType, getPricingModelProperties, getPromotionTools, getQualifierService, getQualifierService, isNegativeAmountException, setNegativeAmountException, setPricingModelProperties, setPromotionTools, setQualifierService |
Methods inherited from class atg.nucleus.GenericService |
---|
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 |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLASS_VERSION
protected ReturnManager mReturnManager
Constructor Detail |
---|
public ExchangeOrderDiscountCalculator()
Method Detail |
---|
public void setReturnManager(ReturnManager pReturnManager)
pReturnTools
- the ReturnManagerspublic ReturnManager getReturnManager()
public void priceOrder(atg.commerce.pricing.OrderPriceInfo pPriceQuote, atg.commerce.order.Order pOrder, atg.repository.RepositoryItem pPricingModel, java.util.Locale pLocale, atg.repository.RepositoryItem pProfile, java.util.Map pExtraParameters) throws atg.commerce.pricing.PricingException
priceOrder
in interface atg.commerce.pricing.OrderPricingCalculator
priceOrder
in class atg.commerce.pricing.OrderDiscountCalculator
atg.commerce.pricing.PricingException
protected double getAdjuster(atg.repository.RepositoryItem pPricingModel, java.util.Map pExtraParameters) throws atg.commerce.pricing.PricingException
getAdjuster
in class atg.commerce.pricing.DiscountCalculatorService
atg.commerce.pricing.PricingException
ReturnRequest.getExchangeOrderPromotionValue()
protected java.lang.String getDiscountType(atg.repository.RepositoryItem pPricingModel, java.util.Map pExtraParameters) throws atg.commerce.pricing.PricingException
getDiscountType
in class atg.commerce.pricing.DiscountCalculatorService
atg.commerce.pricing.PricingException
Constants.AMOUNT_OFF
protected atg.commerce.pricing.definition.MatchingObject findMatchingObject(atg.commerce.pricing.OrderPriceInfo pPriceQuote, java.util.List pPriceQuotes, java.util.List pItems, atg.repository.RepositoryItem pPricingModel, atg.repository.RepositoryItem pProfile, java.util.Locale pLocale, atg.commerce.order.Order pOrder, java.util.Map pExtraParameters) throws atg.commerce.pricing.PricingException
findMatchingObject
in class atg.commerce.pricing.OrderDiscountCalculator
atg.commerce.pricing.PricingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |