| Modifier and Type | Method and Description |
|---|---|
protected DiscountValue |
FindBundlePricingWithCurrentPriceFactoryStrategy.createDiscountValue(double discountPrice,
double basePrice,
String id,
CurrencyModel currency)
Creates a DiscountValue with an absolute reduction based on the given
basePrice and the given
discountPrice |
| Modifier and Type | Method and Description |
|---|---|
List<DiscountValue> |
FindBundlePricingWithCurrentPriceFactoryStrategy.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.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
FindBundlePricingWithCurrentPriceFactoryStrategy.reduceOneTimePrice(SubscriptionPricePlanModel pricePlan,
ChangeProductPriceBundleRuleModel priceRule,
List<DiscountValue> discountValues,
CurrencyModel currency,
AbstractOrderEntryModel entry)
The price logic for subscription product: discount are applied to one time charge.
|
protected void |
FindBundlePricingWithCurrentPriceFactoryStrategy.reduceRecurringPrice(ProductModel subscriptionProduct,
ChangeProductPriceBundleRuleModel priceRule,
List<DiscountValue> discountValues,
AbstractOrderEntryModel entry,
SubscriptionPricePlanModel pricePlan)
hard coded price logic for subscription products: discounts are only applied to recurring prices
|
| Modifier and Type | Method and Description |
|---|---|
List<DiscountValue> |
AbstractOrderEntryModel.getDiscountValues()
Generated method - Getter of the
AbstractOrderEntry.discountValues dynamic attribute defined at extension core. |
List<DiscountValue> |
AbstractOrderModel.getGlobalDiscountValues()
Generated method - Getter of the
AbstractOrder.globalDiscountValues dynamic attribute defined at extension core. |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractOrderEntryModel.setDiscountValues(List<DiscountValue> value)
Generated method - Setter of
AbstractOrderEntry.discountValues dynamic attribute defined at extension core. |
void |
AbstractOrderModel.setGlobalDiscountValues(List<DiscountValue> value)
Generated method - Setter of
AbstractOrder.globalDiscountValues dynamic attribute defined at extension core. |
| Modifier and Type | Method and Description |
|---|---|
static DiscountValue |
Europe1Tools.createDiscountValue(AbstractDiscountRow discountRow)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static List<DiscountValue> |
Europe1Tools.createDiscountValueList(List<AbstractDiscountRow> discountRows)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
DiscountValue |
DiscountValueEditorChip.getDiscountValue() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
DiscountValueDisplayChip.getDiscountTypeLabel(DiscountValue discountValue) |
void |
DiscountValueEditorChip.setDiscountValue(DiscountValue discountValue) |
| Modifier and Type | Method and Description |
|---|---|
DiscountValue |
OrderManager.createDiscountValue(String code,
String description,
double value,
int priority,
boolean absolute,
Discount discount)
Deprecated.
just instantiate
DiscountValue |
| Modifier and Type | Method and Description |
|---|---|
List<DiscountValue> |
AbstractOrderEntryDiscountValuesAttributeHandler.get(AbstractOrderEntryModel model) |
List<DiscountValue> |
GlobalDiscountValuesAttributeHandler.get(AbstractOrderModel model) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractOrderEntry.addDiscountValue(DiscountValue discountValue)
Deprecated.
Use OrderEntryService.addDiscountValue(de.hybris.platform.core.model.order.AbstractOrderEntryModel,
DiscountValue) instead.
|
void |
AbstractOrderEntry.addDiscountValue(SessionContext ctx,
DiscountValue discountValue)
Deprecated.
Use OrderEntryService.addDiscountValue(de.hybris.platform.core.model.order.AbstractOrderEntryModel,
DiscountValue) instead.
|
void |
AbstractOrder.addGlobalDiscountValue(DiscountValue discountValue)
Deprecated.
Use OrderService.addGlobalDiscountValue(de.hybris.platform.core.model.order.AbstractOrderModel,
DiscountValue) instead.
|
void |
AbstractOrder.addGlobalDiscountValue(SessionContext ctx,
DiscountValue discountValue)
Deprecated.
Use OrderService.addGlobalDiscountValue(de.hybris.platform.core.model.order.AbstractOrderModel,
DiscountValue) instead.
|
void |
AbstractOrderEntry.removeDiscountValue(DiscountValue discountValue)
Deprecated.
Use OrderEntryService.removeDiscountValue(de.hybris.platform.core.model.order.AbstractOrderEntryModel,
DiscountValue) instead.
|
void |
AbstractOrderEntry.removeDiscountValue(SessionContext ctx,
DiscountValue discountValue)
Deprecated.
Use OrderEntryService.removeDiscountValue(de.hybris.platform.core.model.order.AbstractOrderEntryModel,
DiscountValue) instead.
|
void |
AbstractOrder.removeGlobalDiscountValue(DiscountValue discountValue)
Deprecated.
Use OrderService.removeGlobalDiscountValue(de.hybris.platform.core.model.order.AbstractOrderModel,
DiscountValue) instead.
|
void |
AbstractOrder.removeGlobalDiscountValue(SessionContext ctx,
DiscountValue discountValue)
Deprecated.
Use OrderService.removeGlobalDiscountValue(de.hybris.platform.core.model.order.AbstractOrderModel,
DiscountValue) instead.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractOrderEntryDiscountValuesAttributeHandler.set(AbstractOrderEntryModel model,
List<DiscountValue> discountValues) |
void |
GlobalDiscountValuesAttributeHandler.set(AbstractOrderModel model,
List<DiscountValue> discountValues) |
| Modifier and Type | Method and Description |
|---|---|
DiscountValue |
DiscountInformation.getDiscountValue() |
DiscountValue |
Discount.getDiscountValue(AbstractOrder order)
Calculates a
value which should be applied to the given order during (re)calculation. |
| Constructor and Description |
|---|
DiscountInformation(DiscountValue value) |
DiscountInformation(Map qualifiers,
DiscountValue value) |
| Modifier and Type | Method and Description |
|---|---|
String |
DiscountValueLabelProvider.getDescription(DiscountValue discountValue) |
String |
DiscountValueLabelProvider.getIconPath(DiscountValue discountValue) |
String |
DiscountValueLabelProvider.getLabel(DiscountValue discountValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
DiscountValueLabelProvider.setDiscountValueRenderer(ValueParser<DiscountValue> discountValueRenderer) |
| Modifier and Type | Method and Description |
|---|---|
DiscountValue |
DiscountValueParser.parse(String stringValue) |
DiscountValue |
TaxOrDiscount.toDiscountValue() |
| Modifier and Type | Method and Description |
|---|---|
String |
DiscountValueParser.render(DiscountValue discountValue) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
DefaultPromotionActionService.removeDiscount(String code,
List<DiscountValue> discountValuesList,
Consumer<List<DiscountValue>> setNewDiscountValues)
Removes the
DiscountValue with the given code from the given list of DiscountValue. |
protected boolean |
DefaultPromotionActionService.removeDiscount(String code,
List<DiscountValue> discountValuesList,
Consumer<List<DiscountValue>> setNewDiscountValues)
Removes the
DiscountValue with the given code from the given list of DiscountValue. |
| Modifier and Type | Method and Description |
|---|---|
protected static DiscountValue |
PromotionOrderEntryAdjustAction.findOrderEntryDiscountValue(SessionContext ctx,
AbstractOrderEntry orderEntry,
String discountValueCode) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
AbstractPromotionAction.insertFirstGlobalDiscountValue(SessionContext ctx,
AbstractOrder order,
DiscountValue discountValue)
Add a global DiscountValue to the Order at the first position in the list of discounts
|
protected static void |
AbstractPromotionAction.insertFirstOrderEntryDiscountValue(SessionContext ctx,
AbstractOrderEntry orderEntry,
DiscountValue discountValue)
Add a DiscountValue to the OrderEntry at the first position in the list of discounts
|
| Constructor and Description |
|---|
OrderEntryAndDiscountValue(AbstractOrderEntry key,
DiscountValue value) |
| Modifier and Type | Method and Description |
|---|---|
static DiscountValue |
Helper.findGlobalDiscountValue(SessionContext ctx,
AbstractOrder order,
String discountValueCode)
Find a global discount value with specified Code
|
| Modifier and Type | Method and Description |
|---|---|
DiscountValue |
DiscountValueConverter.discountToValue(AbstractDiscountRowModel discountRow) |
| Modifier and Type | Method and Description |
|---|---|
List<DiscountValue> |
DiscountValueConverter.discountsToValues(List<AbstractDiscountRowModel> discountRows) |
| Modifier and Type | Method and Description |
|---|---|
List<DiscountValue> |
FindSubscriptionPricingWithCurrentPriceFactoryStrategy.findDiscountValues(AbstractOrderEntryModel entry)
Find applicable DiscountValues for the target order entry.
|
| Modifier and Type | Method and Description |
|---|---|
DiscountValue |
DiscountValue.apply(double quantity,
double price,
int digits,
String currencyIsoCode)
Creates a copy of this discount value holding the applied value for a given price rounded to given digits.
|
static DiscountValue |
DiscountValue.createAbsolute(String code,
Double doubleValue,
String currencyIsoCode) |
protected DiscountValue |
DiscountValue.createAbsoluteAppliedValue(double quantity,
int digits,
String currencyIsoCode) |
static DiscountValue |
DiscountValue.createRelative(String code,
Double doubleValue) |
protected DiscountValue |
DiscountValue.createRelativeAppliedValue(double price,
int digits,
String currencyIsoCode) |
static DiscountValue |
DiscountValue.createTargetPrice(String code,
Double doubleValue,
String currencyIsoCode) |
protected DiscountValue |
DiscountValue.createTargetPriceAppliedValue(double quantity,
double totalPriceWithoutDiscounts,
int digits,
String currencyIsoCode) |
static DiscountValue |
DiscountValue.parseDiscountValue(String str)
creates a discount value object from its string representation created via @see #toString().
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
DiscountValue.equalsIgnoreAppliedValue(DiscountValue discountValue) |
| Modifier and Type | Method and Description |
|---|---|
DiscountValue |
VoucherModelService.getDiscountValue(VoucherModel voucher,
AbstractOrderModel order) |
| Modifier and Type | Method and Description |
|---|---|
DiscountValue |
DefaultVoucherModelService.getDiscountValue(VoucherModel voucher,
AbstractOrderModel order) |
| Modifier and Type | Method and Description |
|---|---|
DiscountValue |
Voucher.getDiscountValue(AbstractOrder anOrder) |
Copyright © 2017 SAP SE. All Rights Reserved.