Class DefaultPROSTransportCartFacade

All Implemented Interfaces:
de.hybris.platform.commercefacades.order.CartFacade, ShoppingTransportCartFacade, TransportCartFacade, TravelCartFacade

public class DefaultPROSTransportCartFacade extends DefaultShoppingTransportCartFacade
The Pros extension of DefaultShoppingTransportCartFacade class.
  • Constructor Details

    • DefaultPROSTransportCartFacade

      public DefaultPROSTransportCartFacade()
  • Method Details

    • addShoppingAncillaryToCart

      public CartModificationData addShoppingAncillaryToCart(AncillaryEntryRequestData ancillaryEntryRQData) throws InvalidSessionCartException
      Description copied from interface: ShoppingTransportCartFacade
      Add Shopping/Commerce ancillary product to the current cart.
      Specified by:
      addShoppingAncillaryToCart in interface ShoppingTransportCartFacade
      Specified by:
      addShoppingAncillaryToCart in class DefaultShoppingTransportCartFacade
      Parameters:
      ancillaryEntryRQData - the ancillary entry request data
      Returns:
      the cart modification data
      Throws:
      InvalidSessionCartException - The session cart is not found
    • addProductToCart

      protected CartModificationData addProductToCart(String productCode, List<String> transportOfferingCodes, TravellerModel travellerModel, long quantity, int originDestinationRefNumber)
      Add product to cart.
      Parameters:
      productCode - the product code
      transportOfferingCodes - the transport offering codes
      travellerModel - the traveller
      quantity - the quantity
      originDestinationRefNumber - the origin destination ref number
      Returns:
      the cart modification data
    • addPropertiesToCartEntry

      protected void addPropertiesToCartEntry(TravellerModel travellerModel, int originDestinationRefNo, List<String> transportOfferingCodes, Boolean active, AmendStatus amendStatus, CartModificationData cartModification)
      Add properties to cart entry.
      Parameters:
      travellerModel - ther
      originDestinationRefNo - the origin destination ref no
      transportOfferingCodes - the transport offering codes
      active - the active
      amendStatus - the amend status
      cartModification - the cart modification
    • addPropertiesToCartEntry

      protected void addPropertiesToCartEntry(String productCode, int entryNo, List<String> transportOfferingCodes, int originDestinationRefNumber, TravellerModel travellerModel, Boolean active, AmendStatus amendStatus, String addToCartCriteriaType)
      Add properties to cart entry.
      Parameters:
      productCode - the product code
      entryNo - the entry no
      transportOfferingCodes - the transport offering codes
      originDestinationRefNumber - the origin destination ref number
      travellerModel - the traveller model
      active - the active
      amendStatus - the amend status
      addToCartCriteriaType - the add to cart criteria type