Class PayNowPaymentOptionStrategy
java.lang.Object
de.hybris.platform.travelservices.strategies.payment.impl.PayNowPaymentOptionStrategy
- All Implemented Interfaces:
PaymentOptionCreationStrategy
Partially delayed payment option strategy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(AbstractOrderModel abstractOrder) Creates aPaymentOptionInfofrom a cart/order for a specific scenarioprotected BookingServiceGets booking service.protected List<EntryTypePaymentInfoCreationStrategy>Gets entry type payment info creation strategies.protected BigDecimalgetOrderTotalToPay(AbstractOrderModel abstractOrder) Calculates total to pay.protected booleanisApplicableForOrder(AbstractOrderModel abstractOrder) Checks if payment option is applicable for given ordervoidsetBookingService(BookingService bookingService) Sets booking service.voidsetEntryTypePaymentInfoCreationStrategies(List<EntryTypePaymentInfoCreationStrategy> entryTypePaymentInfoCreationStrategies) Sets the entry type payment info creation strategies.
-
Constructor Details
-
PayNowPaymentOptionStrategy
public PayNowPaymentOptionStrategy()
-
-
Method Details
-
create
Description copied from interface:PaymentOptionCreationStrategyCreates aPaymentOptionInfofrom a cart/order for a specific scenario- Specified by:
createin interfacePaymentOptionCreationStrategy- Parameters:
abstractOrder- the abstract order- Returns:
- payment option info
-
isApplicableForOrder
Checks if payment option is applicable for given order- Parameters:
abstractOrder- the order- Returns:
- true if current payment option applicable for given order
-
getOrderTotalToPay
Calculates total to pay.- Parameters:
abstractOrder- the order- Returns:
- the total to pay
-
getEntryTypePaymentInfoCreationStrategies
Gets entry type payment info creation strategies.- Returns:
- the entry type payment info creation strategies
-
setEntryTypePaymentInfoCreationStrategies
public void setEntryTypePaymentInfoCreationStrategies(List<EntryTypePaymentInfoCreationStrategy> entryTypePaymentInfoCreationStrategies) Sets the entry type payment info creation strategies.- Parameters:
entryTypePaymentInfoCreationStrategies- the entry type payment info creation strategies
-
getBookingService
Gets booking service.- Returns:
- the booking service
-
setBookingService
Sets booking service.- Parameters:
bookingService- the booking service
-