public interface ConsignmentAmountCalculationStrategy
ConsignmentModel to perform payment and tax related operations.| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
calculateAlreadyCapturedAmount(ConsignmentModel consignment)
Calculates the amount which has been already captured on the
OrderModel
of the given ConsignmentModel |
java.math.BigDecimal |
calculateCaptureAmount(ConsignmentModel consignment)
Calculates the amount to be captured for the given
ConsignmentModel |
java.math.BigDecimal |
calculateConsignmentEntryAmount(ConsignmentEntryModel consignmentEntry,
boolean includeTaxes)
Calculates amount for
ConsignmentEntryModel |
java.math.BigDecimal |
calculateDiscountAmount(ConsignmentModel consignment)
Calculates the discount amount for the
ConsignmentModel taking a part of AbstractOrderModel.TOTALDISCOUNTS |
java.math.BigDecimal |
calculateTotalOrderAmount(ConsignmentModel consignment)
Calculates the order total of the given
ConsignmentModel |
java.math.BigDecimal calculateCaptureAmount(ConsignmentModel consignment)
ConsignmentModelconsignment - given ConsignmentModelConsignmentModeljava.math.BigDecimal calculateAlreadyCapturedAmount(ConsignmentModel consignment)
OrderModel
of the given ConsignmentModelconsignment - given ConsignmentModelBigDecimal the sum of all previously captured amountjava.math.BigDecimal calculateTotalOrderAmount(ConsignmentModel consignment)
ConsignmentModelconsignment - given ConsignmentModelBigDecimal the order totaljava.math.BigDecimal calculateDiscountAmount(ConsignmentModel consignment)
ConsignmentModel taking a part of AbstractOrderModel.TOTALDISCOUNTSconsignment - given ConsignmentModelBigDecimal the discount for the give consignmentjava.math.BigDecimal calculateConsignmentEntryAmount(ConsignmentEntryModel consignmentEntry, boolean includeTaxes)
ConsignmentEntryModelconsignmentEntry - given ConsignmentEntryModelincludeTaxes - if true returns the amount with taxes otherwise - without taxesBigDecimal amount of the consignment entryCopyright © 2018 SAP SE. All Rights Reserved.