Interface OMSASourcingService
- All Known Implementing Classes:
DefaultOMSACronJobSourcingService,DefaultOMSASourcingService
public interface OMSASourcingService
Javadoc comment for
OMSASourcingService
This is the interface containing sourcing functionalities.-
Method Summary
Modifier and TypeMethodDescriptionbuildSourcingRequestPayload(AbstractOrderModel cartModel, boolean sourcingFlag) Builds Request payload for OMSA Sourcing API.doSourcing(AbstractOrderModel orderModel, boolean sourcingFlag) Calls the OMSA Sourcing API.
-
Method Details
-
doSourcing
SAPOMSASourcingResponse doSourcing(AbstractOrderModel orderModel, boolean sourcingFlag) throws OMSAException Calls the OMSA Sourcing API.- Parameters:
orderModel- The abastractOrderModel objectsourcingFlag- to differentiate between sourcing calls with and without Reservations- Returns:
- SAPOMSASourcingResponse
- Throws:
OMSAException- throws OMSA Exception when some error occurs from OMSA server
-
buildSourcingRequestPayload
SAPOMSASourcingRequest buildSourcingRequestPayload(AbstractOrderModel cartModel, boolean sourcingFlag) Builds Request payload for OMSA Sourcing API.- Parameters:
cartModel- cartModel objectsourcingFlag- to differentiate between sourcing calls with and without Reservations- Returns:
- SAPOMSASourcingResponse
-