Package be.ehealth.businessconnector.mycarenet.agreement.session

# Interface AgreementService

All Known Implementing Classes:
  `AgreementServiceImpl`

public interface AgreementService
The Business Connector provides a simplified interface to access the Agreement service by providing the following functionality: it retrieves the token from the session Default impl : `AgreementServiceImpl` Factory : `AgreementSessionServiceFactory`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AskAgreementResponse`
  `askAgreement(AskAgreementRequest request)`
  Sends the request to the WS (needs a Session to be active, token is retrieved from the session)
  `ConsultAgreementResponse`
  `consultAgreement(ConsultAgreementRequest request)`

- ## Method Details

  - ### askAgreement

    AskAgreementResponse askAgreement(AskAgreementRequest request) throws TechnicalConnectorException
    Sends the request to the WS (needs a Session to be active, token is retrieved from the session)
    Parameters:
      `request` - the request
    Returns:
      the WS response
    Throws:
      `TechnicalConnectorException` - the technical connector exception

  - ### consultAgreement

    ConsultAgreementResponse consultAgreement(ConsultAgreementRequest request) throws TechnicalConnectorException
    Throws:
      `TechnicalConnectorException`