Class DefaultOrderTotalPaidForAccommodationGroupCalculationStrategy
java.lang.Object
de.hybris.platform.travelservices.accommodation.strategies.impl.TransactionCalculationStrategy
de.hybris.platform.travelservices.strategies.payment.impl.DefaultOrderTotalPaidForAccommodationGroupCalculationStrategy
- All Implemented Interfaces:
OrderTotalPaidForEntryGroupCalculationStrategy
public class DefaultOrderTotalPaidForAccommodationGroupCalculationStrategy
extends TransactionCalculationStrategy
implements OrderTotalPaidForEntryGroupCalculationStrategy
Concrete strategy calculating the total paid given an Order Entry Group. Since we are dealing with accommodation
order entry groups, the valid payment transactions associated with the order are filtered by OrderEntryType, then the
transactions associated with the given group are identified by Room Stay Reference Number. This operation is safe if
no cancel accommodation functionality is in place, otherwise further logic is needed to normalize room stay ref
numbers and update the entries list against payment transactions when an accommodation booking is cancelled.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculate(AbstractOrderModel abstractOrder, AbstractOrderEntryGroupModel entryGroup) Calculates the total paid according with the transactions against the given orderMethods inherited from class de.hybris.platform.travelservices.accommodation.strategies.impl.TransactionCalculationStrategy
getAvailableFunds, getConfigurationService, getEntriesAmount, getPaymentAuthourizationAmount, getTravelCartService, getValidPaymentTransactions, getValidPaymentTransactionsForType, setConfigurationService, setTravelCartService
-
Constructor Details
-
DefaultOrderTotalPaidForAccommodationGroupCalculationStrategy
public DefaultOrderTotalPaidForAccommodationGroupCalculationStrategy()
-
-
Method Details
-
calculate
public BigDecimal calculate(AbstractOrderModel abstractOrder, AbstractOrderEntryGroupModel entryGroup) Description copied from interface:OrderTotalPaidForEntryGroupCalculationStrategyCalculates the total paid according with the transactions against the given order- Specified by:
calculatein interfaceOrderTotalPaidForEntryGroupCalculationStrategy- Returns:
-