Class DefaultPROSRemoveShoppingBaggageProductStrategy

java.lang.Object
de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSRemoveShoppingBaggageProductStrategy
All Implemented Interfaces:
PROSRemoveOrderEntryStrategy

public class DefaultPROSRemoveShoppingBaggageProductStrategy extends Object implements PROSRemoveOrderEntryStrategy
The Pros default implementation of PROSRemoveOrderEntryStrategy interface.
  • Constructor Details

    • DefaultPROSRemoveShoppingBaggageProductStrategy

      public DefaultPROSRemoveShoppingBaggageProductStrategy()
  • Method Details

    • removeOrderEntry

      public void removeOrderEntry(CartModel cartModel, AbstractOrderEntryModel orderEntryModel) throws CancelFlightException
      This method removes a Shopping Baggage Product from the cart for a specific solution. Basing on the sub type of the baggage: 1) Retrieves the charge/allowance/carryOn baggage in the repricer response having the same flights and passenger id 2) Check if the product is fully refundable. If not, create a AncillaryChangeFee and add it to the cart.
      Specified by:
      removeOrderEntry in interface PROSRemoveOrderEntryStrategy
      Parameters:
      cartModel - the cartModel
      orderEntryModel - the order Entry to remove
      Throws:
      CancelFlightException
    • getProsRemoveShoppingBaggageProductStrategyMap

      protected Map<String,PROSRemoveShoppingBaggageProductStrategy> getProsRemoveShoppingBaggageProductStrategyMap()
      Gets pros remove shopping baggage product strategy map.
      Returns:
      the pros remove shopping baggage product strategy map
    • setProsRemoveShoppingBaggageProductStrategyMap

      public void setProsRemoveShoppingBaggageProductStrategyMap(Map<String,PROSRemoveShoppingBaggageProductStrategy> prosRemoveShoppingBaggageProductStrategyMap)
      Sets pros remove shopping baggage product strategy map.
      Parameters:
      prosRemoveShoppingBaggageProductStrategyMap - the pros remove shopping baggage product strategy map