Interface SourcingService

All Superinterfaces:
OaaRestService
All Known Subinterfaces:
CosSourcingService
All Known Implementing Classes:
DefaultCosSourcingService, DummySourcingService

public interface SourcingService extends OaaRestService
Service for Sourcing
  • Method Details

    • callRestServiceAndPersistResult

      void callRestServiceAndPersistResult(AbstractOrderModel model)
      Call the REST Service in Customer Activity Repository (CAR) and persist the result (Schedule Lines) in the given cart.
      Parameters:
      model - Hybris cart or order model
    • callRestService

      SourcingResponse callRestService(AbstractOrderModel orderModel, boolean execAllStrategies, boolean reserve)
      Call the REST service in Customer Activity Repository (CAR) and return the service call response without persisting in hybris to the method invoker.
      Parameters:
      orderModel - Hybris order or cart
      execAllStrategies - Flag which indicates if a all sourcing strategies should be executed.
      reserve - Create or update a temporary reservation in case the sourcing was executed successfully
      Returns:
      SourcingResponse The response from the sourcing call