Class DefaultPROSNonRefundableShoppingAncillaryBaggageProductsStrategy

java.lang.Object
de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSAbstractRemoveProductStrategy
de.hybris.platform.prosservices.order.strategies.impl.DefaultPROSNonRefundableShoppingAncillaryBaggageProductsStrategy
All Implemented Interfaces:
PROSRefundReissueTypeStrategy

public class DefaultPROSNonRefundableShoppingAncillaryBaggageProductsStrategy extends DefaultPROSAbstractRemoveProductStrategy implements PROSRefundReissueTypeStrategy
The Pros implementation of PROSRefundReissueTypeStrategy interface to create an ancillary change fee.
  • Constructor Details

    • DefaultPROSNonRefundableShoppingAncillaryBaggageProductsStrategy

      public DefaultPROSNonRefundableShoppingAncillaryBaggageProductsStrategy()
  • Method Details

    • createAncillaryChangeFee

      public void createAncillaryChangeFee(AbstractOrderEntryModel abstractOrderEntry, CartModel cartModel) throws CancelFlightException
      This method creates an ancillary change fee to add to the cart. Once the fee product is added to the cart, the association between the fee and the related order entry is saved in the orderEntries field. This association is needed since the price calculation strategy for the ancillaryChangeFee calculates basePrice and taxes from the linked order entries.
      Specified by:
      createAncillaryChangeFee in interface PROSRefundReissueTypeStrategy
      Parameters:
      abstractOrderEntry - the abstract order Entry
      cartModel - the cartModel
      Throws:
      CancelFlightException
    • getProductService

      protected de.hybris.platform.product.ProductService getProductService()
      Gets product service.
      Returns:
      the product service
    • setProductService

      public void setProductService(de.hybris.platform.product.ProductService productService)
      Sets product service.
      Parameters:
      productService - the product service
    • getTravelCommerceCartService

      protected de.hybris.platform.commerceservices.order.CommerceCartService getTravelCommerceCartService()
      Gets travel commerce cart service.
      Returns:
      the travel commerce cart service
    • setTravelCommerceCartService

      public void setTravelCommerceCartService(de.hybris.platform.commerceservices.order.CommerceCartService travelCommerceCartService)
      Sets travel commerce cart service.
      Parameters:
      travelCommerceCartService - the travel commerce cart service
    • getModelService

      protected de.hybris.platform.servicelayer.model.ModelService getModelService()
      Gets model service.
      Overrides:
      getModelService in class DefaultPROSAbstractRemoveProductStrategy
      Returns:
      the model service
    • setModelService

      public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
      Sets model service.
      Overrides:
      setModelService in class DefaultPROSAbstractRemoveProductStrategy
      Parameters:
      modelService - the model service