Class DefaultPROSRemoveAccommodationProductStrategy
java.lang.Object
de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSAbstractRemoveProductStrategy
de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSRemoveAccommodationProductStrategy
- All Implemented Interfaces:
PROSRemoveOrderEntryStrategy
public class DefaultPROSRemoveAccommodationProductStrategy
extends DefaultPROSAbstractRemoveProductStrategy
implements PROSRemoveOrderEntryStrategy
The Pros implementation of
PROSRemoveOrderEntryStrategy interface to remove an accommodation(seat) product from
the cart for a specific solution-
Field Summary
Fields inherited from class de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSAbstractRemoveProductStrategy
DEFAULT_COMMERCE_ANCILLARY_REFUND_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,PROSCommerceProductRefundTypeStrategy> Gets pros commerce ancillary baggage products refund type strategy map.protected TravelCommerceCartServiceGets travel commerce cart service.voidremoveOrderEntry(CartModel cartModel, AbstractOrderEntryModel orderEntryModel) This method remove an order entry from the cart by setting the quantity to 0, the AmendStatus to CHANGED and active to FALSE.protected voidremoveSelectedAccommodation(CartModel cartModel, AbstractOrderEntryModel orderEntryModel) This method removes a selected accommodation from the cart.voidsetProsCommerceAncillaryBaggageProductsRefundTypeStrategyMap(Map<String, PROSCommerceProductRefundTypeStrategy> prosCommerceAncillaryBaggageProductsRefundTypeStrategyMap) Sets pros commerce ancillary baggage products refund type strategy map.voidsetTravelCommerceCartService(TravelCommerceCartService travelCommerceCartService) Sets travel commerce cart service.Methods inherited from class de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSAbstractRemoveProductStrategy
getCommerceAncillaryBaggageRefundType, getModelService, setModelService, setOrderEntryToInactive
-
Constructor Details
-
DefaultPROSRemoveAccommodationProductStrategy
public DefaultPROSRemoveAccommodationProductStrategy()
-
-
Method Details
-
removeOrderEntry
Description copied from interface:PROSRemoveOrderEntryStrategyThis method remove an order entry from the cart by setting the quantity to 0, the AmendStatus to CHANGED and active to FALSE.- Specified by:
removeOrderEntryin interfacePROSRemoveOrderEntryStrategy- Parameters:
cartModel- the cartModelorderEntryModel- the order Entry to remove
-
removeSelectedAccommodation
protected void removeSelectedAccommodation(CartModel cartModel, AbstractOrderEntryModel orderEntryModel) This method removes a selected accommodation from the cart.- Parameters:
cartModel- the cart modelorderEntryModel- the order entry model
-
getProsCommerceAncillaryBaggageProductsRefundTypeStrategyMap
protected Map<String,PROSCommerceProductRefundTypeStrategy> getProsCommerceAncillaryBaggageProductsRefundTypeStrategyMap()Gets pros commerce ancillary baggage products refund type strategy map.- Returns:
- the pros commerce ancillary baggage products refund type strategy map
-
setProsCommerceAncillaryBaggageProductsRefundTypeStrategyMap
public void setProsCommerceAncillaryBaggageProductsRefundTypeStrategyMap(Map<String, PROSCommerceProductRefundTypeStrategy> prosCommerceAncillaryBaggageProductsRefundTypeStrategyMap) Sets pros commerce ancillary baggage products refund type strategy map.- Parameters:
prosCommerceAncillaryBaggageProductsRefundTypeStrategyMap- the pros commerce ancillary baggage products refund type strategy map
-
getTravelCommerceCartService
Gets travel commerce cart service.- Returns:
- the travel commerce cart service
-
setTravelCommerceCartService
Sets travel commerce cart service.- Parameters:
travelCommerceCartService- the travel commerce cart service
-