Class AbstractPaymentInfoStrategy
java.lang.Object
de.hybris.platform.travelservices.strategies.payment.impl.AbstractPaymentInfoStrategy
- Direct Known Subclasses:
AccommodationDelayedPaymentInfoStrategy,AccommodationPayInAdvancePaymentInfoStrategy,AccommodationPayNowPaymentInfoStrategy,AccommodationPayNowPaymentOptionStrategy,DefaultPayInAdvancePaymentInfoStrategy,TransportationPayInAdvancePaymentInfoStrategy
Handles common method for pay in advance strategies
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DoublecalculateTaxes(List<AbstractOrderEntryModel> entries) protected List<EntryTypePaymentInfo>createPayInAdvancePaymentInfoForEntryType(AbstractOrderModel abstractOrder, OrderEntryType entryType) protected DoublegetAmendedTotalToPay(List<AbstractOrderEntryModel> amendedEntries, List<AbstractOrderEntryModel> originalEntries, OrderEntryType entryType) protected BookingServiceprotected DoublegetBookingTimeAmount(List<AbstractOrderEntryModel> entries, AbstractOrderModel abstractOrder) protected DoublegetEntriesAmount(List<AbstractOrderEntryModel> entries) protected DoublegetEntriesAmountByEntryType(List<AbstractOrderEntryModel> entries, OrderEntryType type) protected TaxCompensationStrategyprotected DoublegetTotalWithDiscounts(AbstractOrderModel abstractOrder, Double paymentTotal) Deprecated.since version 5.0protected DoublegetTotalWithDiscounts(AbstractOrderModel abstractOrder, Double paymentTotal, List<AbstractOrderEntryModel> entries) protected TravelCartServicevoidsetBookingService(BookingService bookingService) voidsetGlobalDiscountCalculationStrategyMap(Map<OrderEntryType, GlobalDiscountByEntryTypeCalculationStrategy> globalDiscountCalculationStrategyMap) voidsetTaxCompensationStrategy(TaxCompensationStrategy taxCompensationStrategy) voidsetTravelCartService(TravelCartService travelCartService)
-
Field Details
-
SCALE
public static final int SCALE- See Also:
-
-
Constructor Details
-
AbstractPaymentInfoStrategy
public AbstractPaymentInfoStrategy()
-
-
Method Details
-
calculateTaxes
-
getBookingTimeAmount
protected Double getBookingTimeAmount(List<AbstractOrderEntryModel> entries, AbstractOrderModel abstractOrder) -
getEntriesAmount
-
getEntriesAmountByEntryType
protected Double getEntriesAmountByEntryType(List<AbstractOrderEntryModel> entries, OrderEntryType type) -
createPayInAdvancePaymentInfoForEntryType
protected List<EntryTypePaymentInfo> createPayInAdvancePaymentInfoForEntryType(AbstractOrderModel abstractOrder, OrderEntryType entryType) -
getTotalWithDiscounts
@Deprecated protected Double getTotalWithDiscounts(AbstractOrderModel abstractOrder, Double paymentTotal) Deprecated.since version 5.0- Parameters:
abstractOrder-paymentTotal-- Returns:
-
getTotalWithDiscounts
protected Double getTotalWithDiscounts(AbstractOrderModel abstractOrder, Double paymentTotal, List<AbstractOrderEntryModel> entries) -
getAmendedTotalToPay
protected Double getAmendedTotalToPay(List<AbstractOrderEntryModel> amendedEntries, List<AbstractOrderEntryModel> originalEntries, OrderEntryType entryType) -
getTravelCartService
- Returns:
- the travelCartService
-
setTravelCartService
- Parameters:
travelCartService- the travelCartService to set
-
getTaxCompensationStrategy
- Returns:
- the taxCompensationStrategy
-
setTaxCompensationStrategy
- Parameters:
taxCompensationStrategy- the taxCompensationStrategy to set
-
getGlobalDiscountCalculationStrategyMap
protected Map<OrderEntryType,GlobalDiscountByEntryTypeCalculationStrategy> getGlobalDiscountCalculationStrategyMap()- Returns:
- the globalDiscountCalculationStrategyMap
-
setGlobalDiscountCalculationStrategyMap
public void setGlobalDiscountCalculationStrategyMap(Map<OrderEntryType, GlobalDiscountByEntryTypeCalculationStrategy> globalDiscountCalculationStrategyMap) - Parameters:
globalDiscountCalculationStrategyMap- the globalDiscountCalculationStrategyMap to set
-
getBookingService
- Returns:
- the bookingService
-
setBookingService
- Parameters:
bookingService- the bookingService to set
-