public interface AbstractOrderEntryService<E extends AbstractOrderEntryModel>
AbstractOrderEntryModel. I.e :
OrderEntryService should implement the AbstractOrderEntryService for OrderEntryModel,CartEntryModel,| Modifier and Type | Method and Description |
|---|---|
void |
addAllDiscountValues(E entry,
java.util.List<DiscountValue> discountValues)
Adds a collection of discount values into given entry.
|
void |
addAllTaxValues(E entry,
java.util.List<TaxValue> taxValues)
Adds a collection of tax values into given entry.
|
void |
addDiscountValue(E entry,
DiscountValue discountValue)
Adds a new discount value to the given entry.
|
void |
addTaxValue(E entry,
TaxValue taxValue)
Adds a new tax value into given entry.
|
E |
createEntry(AbstractOrderModel abstractOrder)
Creates a new instance of order entry for a given abstract order instance.
|
AbstractOrderEntryModel |
createEntry(ComposedTypeModel entryType,
AbstractOrderModel abstractOrder)
Creates a new instance of abstract order entry of the specific composed type for a given order instance.
|
DiscountValue |
getGlobalDiscountValue(E entry,
DiscountValue discountValue)
Searches for complete discount value (with calculated applied value) object created using given discountValue.
|
void |
removeDiscountValue(E entry,
DiscountValue discountValue)
Removes given discount value from the given entry.
|
void |
removeTaxValue(E entry,
TaxValue taxValue)
Removes given tax value from the given entry.
|
E createEntry(AbstractOrderModel abstractOrder)
abstractOrder - target orderAbstractOrderEntryTypeService.getAbstractOrderEntryType(AbstractOrderModel)AbstractOrderEntryModel createEntry(ComposedTypeModel entryType, AbstractOrderModel abstractOrder)
abstractOrder - target orderentryType - create entry of this specific typevoid addDiscountValue(E entry, DiscountValue discountValue)
discountValue - discount value to addentry - target AbstractOrderEntryModeljava.lang.IllegalArgumentException - if either order or discountValue is null.CalculationService.calculate(AbstractOrderModel)void addAllDiscountValues(E entry, java.util.List<DiscountValue> discountValues)
discountValues - discount values to addentry - target AbstractOrderEntryModeljava.lang.IllegalArgumentException - if either order or discountValues is null.CalculationService.calculate(AbstractOrderModel)void removeDiscountValue(E entry, DiscountValue discountValue)
discountValue - discount value to removeentry - target AbstractOrderEntryModeljava.lang.IllegalArgumentException - if either order or discountValue is null.CalculationService.calculate(AbstractOrderModel)DiscountValue getGlobalDiscountValue(E entry, DiscountValue discountValue)
void addTaxValue(E entry, TaxValue taxValue)
TaxValue should be present in orders tax values
AbstractOrderModel.TOTALTAXVALUES.taxValue - tax value to addentry - target AbstractOrderEntryModeljava.lang.IllegalArgumentException - if either order or taxValue is null.CalculationService.calculate(AbstractOrderModel)void addAllTaxValues(E entry, java.util.List<TaxValue> taxValues)
TaxValues should be present in orders tax values AbstractOrderModel.TOTALTAXVALUES.taxValues - tax values to addentry - target AbstractOrderEntryModeljava.lang.IllegalArgumentException - if either order or taxValues is null.CalculationService.calculate(AbstractOrderModel)void removeTaxValue(E entry, TaxValue taxValue)
TaxValue should be removed from orders tax values AbstractOrderModel.TOTALTAXVALUES.taxValue - tax value to removeentry - target AbstractOrderEntryModeljava.lang.IllegalArgumentException - if either order or taxValue is null.CalculationService.calculate(AbstractOrderModel)Copyright © 2018 SAP SE. All Rights Reserved.