Package be.ehealth.businessconnector.mycarenet.agreementv2.service

# Interface AgreementService

All Known Implementing Classes:
  `AgreementServiceImpl`

public interface AgreementService
Interface for all Agreement services Default impl : `AgreementServiceImpl` Factory : `ServiceFactory`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `AskAgreementResponse`
  `askAgreement(SAMLToken token, AskAgreementRequest request)`
  Sends the request to the WS and retrieves the response.
  `ConsultAgreementResponse`
  `consultAgreement(SAMLToken token, ConsultAgreementRequest request)`

- ## Method Details

  - ### askAgreement

    AskAgreementResponse askAgreement(SAMLToken token, AskAgreementRequest request) throws TechnicalConnectorException
    Sends the request to the WS and retrieves the response. It only needs the SamlToken, no session needs to be active.
    Parameters:
      `token` - the valid SAML token
      `request` - the request to send
    Returns:
      the WS response
    Throws:
      `TechnicalConnectorException` - the technical connector exception

  - ### consultAgreement

    ConsultAgreementResponse consultAgreement(SAMLToken token, ConsultAgreementRequest request) throws TechnicalConnectorException
    Throws:
      `TechnicalConnectorException`