Class AccommodationPayNowPaymentInfoStrategy
java.lang.Object
de.hybris.platform.travelservices.strategies.payment.impl.AbstractPaymentInfoStrategy
de.hybris.platform.travelservices.strategies.payment.impl.AccommodationPayNowPaymentInfoStrategy
- All Implemented Interfaces:
EntryTypePaymentInfoCreationStrategy
public class AccommodationPayNowPaymentInfoStrategy
extends AbstractPaymentInfoStrategy
implements EntryTypePaymentInfoCreationStrategy
Creates
EntryTypePaymentInfo specific for accommodation pay now option.-
Field Summary
Fields inherited from class de.hybris.platform.travelservices.strategies.payment.impl.AbstractPaymentInfoStrategy
SCALE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(AbstractOrderModel abstractOrder) Create list.protected EntryTypePaymentInfocreateEntryTypePaymentInfo(AbstractOrderModel abstractOrder, AccommodationOrderEntryGroupModel entryGroup) Creates entry type payment info.protected DoublegetTotalAmountToPay(AbstractOrderModel abstractOrder, AbstractOrderEntryGroupModel entryGroup) Calculates the total amount to pay.Methods inherited from class de.hybris.platform.travelservices.strategies.payment.impl.AbstractPaymentInfoStrategy
calculateTaxes, createPayInAdvancePaymentInfoForEntryType, getAmendedTotalToPay, getBookingService, getBookingTimeAmount, getEntriesAmount, getEntriesAmountByEntryType, getGlobalDiscountCalculationStrategyMap, getTaxCompensationStrategy, getTotalWithDiscounts, getTotalWithDiscounts, getTravelCartService, setBookingService, setGlobalDiscountCalculationStrategyMap, setTaxCompensationStrategy, setTravelCartService
-
Constructor Details
-
AccommodationPayNowPaymentInfoStrategy
public AccommodationPayNowPaymentInfoStrategy()
-
-
Method Details
-
create
Description copied from interface:EntryTypePaymentInfoCreationStrategyCreate list.- Specified by:
createin interfaceEntryTypePaymentInfoCreationStrategy- Parameters:
abstractOrder- the abstract order- Returns:
- the list
-
createEntryTypePaymentInfo
protected EntryTypePaymentInfo createEntryTypePaymentInfo(AbstractOrderModel abstractOrder, AccommodationOrderEntryGroupModel entryGroup) Creates entry type payment info.- Parameters:
abstractOrder- the orderentryGroup- the entry group- Returns:
- the entry type payment info
-
getTotalAmountToPay
protected Double getTotalAmountToPay(AbstractOrderModel abstractOrder, AbstractOrderEntryGroupModel entryGroup) Calculates the total amount to pay.- Parameters:
abstractOrder- the orderentryGroup- the entry group- Returns:
- the total amount to pay
-