Interface OMSASourcingService

All Known Implementing Classes:
DefaultOMSACronJobSourcingService, DefaultOMSASourcingService

public interface OMSASourcingService
Javadoc comment for OMSASourcingService This is the interface containing sourcing functionalities.
  • Method Details

    • doSourcing

      SAPOMSASourcingResponse doSourcing(AbstractOrderModel orderModel, boolean sourcingFlag) throws OMSAException
      Calls the OMSA Sourcing API.
      Parameters:
      orderModel - The abastractOrderModel object
      sourcingFlag - 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 object
      sourcingFlag - to differentiate between sourcing calls with and without Reservations
      Returns:
      SAPOMSASourcingResponse