Class UpdatePriceAmountForEachMatchingQuantity
java.lang.Object
cdm.product.common.settlement.functions.UpdatePriceAmountForEachMatchingQuantity
- All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
- Direct Known Subclasses:
UpdatePriceAmountForEachMatchingQuantity.UpdatePriceAmountForEachMatchingQuantityDefault
public abstract class UpdatePriceAmountForEachMatchingQuantity
extends Object
implements com.rosetta.model.lib.functions.RosettaFunction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.rosetta.model.lib.functions.ModelObjectValidatorprotected PriceUnitEqualsprotected UpdateAmount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.rosetta.model.lib.mapper.MapperS<BigDecimal> changedAmount(FieldWithMetaPriceSchedule price, List<? extends PriceSchedule> change, QuantityChangeDirectionEnum direction) protected abstract FieldWithMetaPriceSchedule.FieldWithMetaPriceScheduleBuilderdoEvaluate(FieldWithMetaPriceSchedule price, List<? extends PriceSchedule> change, QuantityChangeDirectionEnum direction) evaluate(FieldWithMetaPriceSchedule price, List<? extends PriceSchedule> change, QuantityChangeDirectionEnum direction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.rosetta.model.lib.functions.RosettaFunction
toBuilder, toBuilder, toBuilder
-
Field Details
-
objectValidator
@Inject protected com.rosetta.model.lib.functions.ModelObjectValidator objectValidator -
priceUnitEquals
-
updateAmount
-
-
Constructor Details
-
UpdatePriceAmountForEachMatchingQuantity
public UpdatePriceAmountForEachMatchingQuantity()
-
-
Method Details
-
evaluate
public FieldWithMetaPriceSchedule evaluate(FieldWithMetaPriceSchedule price, List<? extends PriceSchedule> change, QuantityChangeDirectionEnum direction) - Parameters:
price- List of PriceSchedule to update.change- List of new PriceSchedule to use where the units match.direction- Enum specifying how the updated amounts should be applied, e.g., add, subtract or replace.- Returns:
- updatedPrice
-
doEvaluate
protected abstract FieldWithMetaPriceSchedule.FieldWithMetaPriceScheduleBuilder doEvaluate(FieldWithMetaPriceSchedule price, List<? extends PriceSchedule> change, QuantityChangeDirectionEnum direction) -
changedAmount
protected abstract com.rosetta.model.lib.mapper.MapperS<BigDecimal> changedAmount(FieldWithMetaPriceSchedule price, List<? extends PriceSchedule> change, QuantityChangeDirectionEnum direction)
-