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.