Class DefaultPROSRemoveShoppingAncillaryProductStrategy
java.lang.Object
de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSAbstractRemoveProductStrategy
de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSRemoveShoppingAncillaryProductStrategy
- All Implemented Interfaces:
PROSRemoveOrderEntryStrategy
public class DefaultPROSRemoveShoppingAncillaryProductStrategy
extends DefaultPROSAbstractRemoveProductStrategy
implements PROSRemoveOrderEntryStrategy
The Pros implementation of
PROSRemoveOrderEntryStrategy to remove a Shopping Ancillary 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,PROSRefundReissueTypeStrategy> Gets pros refund reissue type strategy map.protected PROSTransportOfferingServiceGets transport offering service.voidremoveOrderEntry(CartModel cartModel, AbstractOrderEntryModel orderEntryModel) This method removes a Shopping Ancillary entry from the cart for a specific solution.voidsetProsRefundReissueTypeStrategyMap(Map<String, PROSRefundReissueTypeStrategy> prosRefundReissueTypeStrategyMap) Sets pros refund reissue type strategy map.voidsetTransportOfferingService(PROSTransportOfferingService transportOfferingService) Sets transport offering service.Methods inherited from class de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSAbstractRemoveProductStrategy
getCommerceAncillaryBaggageRefundType, getModelService, setModelService, setOrderEntryToInactive
-
Constructor Details
-
DefaultPROSRemoveShoppingAncillaryProductStrategy
public DefaultPROSRemoveShoppingAncillaryProductStrategy()
-
-
Method Details
-
removeOrderEntry
public void removeOrderEntry(CartModel cartModel, AbstractOrderEntryModel orderEntryModel) throws CancelFlightException This method removes a Shopping Ancillary entry from the cart for a specific solution. 1) Retrieves the optional service in the repricer response having the same flights and passenger id 2) Check if the Shopping Ancillary is fully refundable. If not, create a AncillaryChangeFee and add it to the cart.- Specified by:
removeOrderEntryin interfacePROSRemoveOrderEntryStrategy- Parameters:
cartModel- the cartModelorderEntryModel- the order Entry to remove- Throws:
CancelFlightException
-
getTransportOfferingService
Gets transport offering service.- Returns:
- the transport offering service
-
setTransportOfferingService
Sets transport offering service.- Parameters:
transportOfferingService- the transport offering service
-
getProsRefundReissueTypeStrategyMap
Gets pros refund reissue type strategy map.- Returns:
- the pros refund reissue type strategy map
-
setProsRefundReissueTypeStrategyMap
public void setProsRefundReissueTypeStrategyMap(Map<String, PROSRefundReissueTypeStrategy> prosRefundReissueTypeStrategyMap) Sets pros refund reissue type strategy map.- Parameters:
prosRefundReissueTypeStrategyMap- the pros refund reissue type strategy map
-