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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and 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 Detail

    - #### 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`

Connector Packaging generic 4.3.0-beta-3 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.