Interface SourcingService
- All Superinterfaces:
OaaRestService
- All Known Subinterfaces:
CosSourcingService
- All Known Implementing Classes:
DefaultCosSourcingService,DummySourcingService
Service for Sourcing
-
Method Summary
Modifier and TypeMethodDescriptioncallRestService(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.voidCall the REST Service in Customer Activity Repository (CAR) and persist the result (Schedule Lines) in the given cart.Methods inherited from interface com.sap.retail.oaa.commerce.services.rest.OaaRestService
setBackendDown, setRestServiceConfiguration
-
Method Details
-
callRestServiceAndPersistResult
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 cartexecAllStrategies- 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:
SourcingResponseThe response from the sourcing call
-