public class FindBundlePricingWithCurrentPriceFactoryStrategy extends FindSubscriptionPricingWithCurrentPriceFactoryStrategy
AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
FindBundlePricingWithCurrentPriceFactoryStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected DiscountValue |
createDiscountValue(double discountPrice,
double basePrice,
java.lang.String id,
CurrencyModel currency)
Creates a DiscountValue with an absolute reduction based on the given
basePrice and the given
discountPrice |
java.util.List<DiscountValue> |
findDiscountValues(AbstractOrderEntryModel entry)
For non Bundle products (no bundleNo set or bundleNo=0) it should work as is, so the DiscountValues should result
from the DiscountRows defined at the product.
|
protected BundleRuleService |
getBundleRuleService() |
protected java.util.List<DiscountValue> |
getDiscountValues(AbstractOrderEntryModel entry,
AbstractOrderEntryModel masterEntry) |
protected SubscriptionCommercePriceService |
getSubscriptionCommercePriceService() |
protected void |
reduceOneTimePrice(SubscriptionPricePlanModel pricePlan,
ChangeProductPriceBundleRuleModel priceRule,
java.util.List<DiscountValue> discountValues,
CurrencyModel currency,
AbstractOrderEntryModel entry)
The price logic for subscription product: discount are applied to one time charge.
|
protected void |
reduceRecurringPrice(ProductModel subscriptionProduct,
ChangeProductPriceBundleRuleModel priceRule,
java.util.List<DiscountValue> discountValues,
AbstractOrderEntryModel entry,
SubscriptionPricePlanModel pricePlan)
hard coded price logic for subscription products: discounts are only applied to recurring prices
|
void |
setBundleRuleService(BundleRuleService bundleRuleService) |
void |
setSubscriptionCommercePriceService(SubscriptionCommercePriceService subscriptionCommercePriceService) |
createPriceValueForLastRecurringPrice, findBasePrice, getCommercePriceService, getDiscountValuesWhenBillingFrequency, getSubscriptionProductService, setCommercePriceService, setSubscriptionProductServiceafterPropertiesSet, findDiscountValues, findTaxValues, getCurrentPriceFactory, getDiscountInformation, getPriceInformation, getTaxInformation, isNetUser, setApplicationContextgetModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagergetCurrentTenant, setBeanName, setCurrentTenant, writeReplaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSLOnlypublic FindBundlePricingWithCurrentPriceFactoryStrategy()
public java.util.List<DiscountValue> findDiscountValues(AbstractOrderEntryModel entry) throws CalculationException
findDiscountValues in interface FindDiscountValuesStrategyfindDiscountValues in class FindSubscriptionPricingWithCurrentPriceFactoryStrategyDiscountValuesCalculationExceptionprotected java.util.List<DiscountValue> getDiscountValues(AbstractOrderEntryModel entry, AbstractOrderEntryModel masterEntry)
protected void reduceOneTimePrice(SubscriptionPricePlanModel pricePlan, ChangeProductPriceBundleRuleModel priceRule, java.util.List<DiscountValue> discountValues, CurrencyModel currency, AbstractOrderEntryModel entry)
pricePlan - the subscription price planpriceRule - the change product price bundle rulediscountValues - the discount values listcurrency - the currencyentry - the order entryprotected void reduceRecurringPrice(ProductModel subscriptionProduct, ChangeProductPriceBundleRuleModel priceRule, java.util.List<DiscountValue> discountValues, AbstractOrderEntryModel entry, SubscriptionPricePlanModel pricePlan)
subscriptionProduct - the subscription productpriceRule - the change product price bundle rulediscountValues - the discount values listentry - the order entrypricePlan - the subscription price planprotected DiscountValue createDiscountValue(double discountPrice, double basePrice, java.lang.String id, CurrencyModel currency)
basePrice and the given
discountPriceDiscountValueprotected BundleRuleService getBundleRuleService()
public void setBundleRuleService(BundleRuleService bundleRuleService)
protected SubscriptionCommercePriceService getSubscriptionCommercePriceService()
public void setSubscriptionCommercePriceService(SubscriptionCommercePriceService subscriptionCommercePriceService)
Copyright © 2018 SAP SE. All Rights Reserved.