Class ChangeDatesRefundAction
java.lang.Object
de.hybris.platform.travelservices.strategies.payment.changedates.impl.ChangeDatesRefundAction
- All Implemented Interfaces:
ChangeDatesPaymentActionStrategy
Implementation for {@link= ChangeDatesPaymentActionStrategy} in case the payment type is REFUND
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BookingServiceprotected de.hybris.platform.order.CartServiceprotected DoublegetChangeDatesEntryPriceWithoutGuarantees(List<AbstractOrderEntryModel> entries, AccommodationOrderEntryGroupModel accommodationOrderEntryGroup) de.hybris.platform.servicelayer.model.ModelServiceprotected Doubleprotected TravelCartServicevoidsetBookingService(BookingService bookingService) voidsetCartService(de.hybris.platform.order.CartService cartService) voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) voidsetOrderTotalPaidForAccommodationGroupCalculationStrategy(OrderTotalPaidForEntryGroupCalculationStrategy orderTotalPaidForAccommodationGroupCalculationStrategy) voidsetTravelCartService(TravelCartService travelCartService) booleantakeAction(AccommodationOrderEntryGroupModel accommodationOrderEntryGroup, List<Integer> entryNumbers) Link accommodationOrderEntryGroup to new Entries of the amended Order based on the paymentType and the paymentMethod used during original method
-
Constructor Details
-
ChangeDatesRefundAction
public ChangeDatesRefundAction()
-
-
Method Details
-
takeAction
public boolean takeAction(AccommodationOrderEntryGroupModel accommodationOrderEntryGroup, List<Integer> entryNumbers) Description copied from interface:ChangeDatesPaymentActionStrategyLink accommodationOrderEntryGroup to new Entries of the amended Order based on the paymentType and the paymentMethod used during original method- Specified by:
takeActionin interfaceChangeDatesPaymentActionStrategy- Parameters:
accommodationOrderEntryGroup- the accommodation order entry groupentryNumbers- the entry numbers- Returns:
- true/false
-
getChangeDatesEntryPriceWithoutGuarantees
protected Double getChangeDatesEntryPriceWithoutGuarantees(List<AbstractOrderEntryModel> entries, AccommodationOrderEntryGroupModel accommodationOrderEntryGroup) -
getTotalEntryPrice
-
getCartService
protected de.hybris.platform.order.CartService getCartService()- Returns:
- the cartService
-
setCartService
public void setCartService(de.hybris.platform.order.CartService cartService) - Parameters:
cartService- the cartService to set
-
getBookingService
- Returns:
- the bookingService
-
setBookingService
- Parameters:
bookingService- the bookingService to set
-
getModelService
public de.hybris.platform.servicelayer.model.ModelService getModelService()- Returns:
- the modelService
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) - Parameters:
modelService- the modelService to set
-
getOrderTotalPaidForAccommodationGroupCalculationStrategy
protected OrderTotalPaidForEntryGroupCalculationStrategy getOrderTotalPaidForAccommodationGroupCalculationStrategy()- Returns:
- the orderTotalPaidForAccommodationGroupCalculationStrategy
-
setOrderTotalPaidForAccommodationGroupCalculationStrategy
public void setOrderTotalPaidForAccommodationGroupCalculationStrategy(OrderTotalPaidForEntryGroupCalculationStrategy orderTotalPaidForAccommodationGroupCalculationStrategy) - Parameters:
orderTotalPaidForAccommodationGroupCalculationStrategy- the orderTotalPaidForAccommodationGroupCalculationStrategy to set
-
getTravelCartService
- Returns:
- travelCartService
-
setTravelCartService
- Parameters:
travelCartService- the travelCartService to set
-