Class DefaultPROSRemovePerSolutionCommerceAncillaryBaggageProductsStrategy
java.lang.Object
de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSAbstractRemoveProductStrategy
de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSRemovePerSolutionCommerceAncillaryBaggageProductsStrategy
- All Implemented Interfaces:
PROSAddToCartCriteriaRemoveCommerceAncillaryBaggageStrategy
public class DefaultPROSRemovePerSolutionCommerceAncillaryBaggageProductsStrategy
extends DefaultPROSAbstractRemoveProductStrategy
implements PROSAddToCartCriteriaRemoveCommerceAncillaryBaggageStrategy
The Pros implementation of
PROSAddToCartCriteriaRemoveCommerceAncillaryBaggageStrategy interface.-
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 product refund type strategy map.voidremoveCommerceAncillaryBaggageOrderEntry(CartModel cartModel, AbstractOrderEntryModel orderEntryModel) This method removes an order entry with add to cart criteria equal to PER_BOOKING, PER_PAX.voidsetProsCommerceAncillaryBaggageProductsRefundTypeStrategyMap(Map<String, PROSCommerceProductRefundTypeStrategy> prosCommerceAncillaryBaggageProductsRefundTypeStrategyMap) Sets pros commerce product refund type strategy map.Methods inherited from class de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSAbstractRemoveProductStrategy
getCommerceAncillaryBaggageRefundType, getModelService, setModelService, setOrderEntryToInactive
-
Constructor Details
-
DefaultPROSRemovePerSolutionCommerceAncillaryBaggageProductsStrategy
public DefaultPROSRemovePerSolutionCommerceAncillaryBaggageProductsStrategy()
-
-
Method Details
-
removeCommerceAncillaryBaggageOrderEntry
public void removeCommerceAncillaryBaggageOrderEntry(CartModel cartModel, AbstractOrderEntryModel orderEntryModel) This method removes an order entry with add to cart criteria equal to PER_BOOKING, PER_PAX. In these cases, the entry can be removed only if there are no other solutions in the cart. It will eventually add to the cart an ancillaryChangeFee if the product is not fully refundable.- Specified by:
removeCommerceAncillaryBaggageOrderEntryin interfacePROSAddToCartCriteriaRemoveCommerceAncillaryBaggageStrategy- Parameters:
cartModel- the cartorderEntryModel- the order entry
-
getProsCommerceAncillaryBaggageProductsRefundTypeStrategyMap
protected Map<String,PROSCommerceProductRefundTypeStrategy> getProsCommerceAncillaryBaggageProductsRefundTypeStrategyMap()Gets pros commerce product refund type strategy map.- Returns:
- the pros commerce product refund type strategy map
-
setProsCommerceAncillaryBaggageProductsRefundTypeStrategyMap
public void setProsCommerceAncillaryBaggageProductsRefundTypeStrategyMap(Map<String, PROSCommerceProductRefundTypeStrategy> prosCommerceAncillaryBaggageProductsRefundTypeStrategyMap) Sets pros commerce product refund type strategy map.- Parameters:
prosCommerceAncillaryBaggageProductsRefundTypeStrategyMap- the pros commerce product refund type strategy map
-