Search in sources :

Example 1 with RegisterTSDiabetesResponseType

use of se.inera.intygstjanster.ts.services.RegisterTSDiabetesResponder.v1.RegisterTSDiabetesResponseType in project webcert by sklintyg.

the class RegisterTSDiabetesResponderStub method registerTSDiabetes.

@Override
@StubModeAware
public RegisterTSDiabetesResponseType registerTSDiabetes(String logicalAddress, RegisterTSDiabetesType parameters) {
    intygStore.addIntyg(buildStubInternalCertificate(parameters));
    RegisterTSDiabetesResponseType resp = new RegisterTSDiabetesResponseType();
    ResultatTyp resultatTyp = new ResultatTyp();
    resultatTyp.setResultCode(ResultCodeType.OK);
    resp.setResultat(resultatTyp);
    return resp;
}
Also used : RegisterTSDiabetesResponseType(se.inera.intygstjanster.ts.services.RegisterTSDiabetesResponder.v1.RegisterTSDiabetesResponseType) ResultatTyp(se.inera.intygstjanster.ts.services.v1.ResultatTyp) StubModeAware(se.inera.intyg.webcert.intygstjanststub.mode.StubModeAware)

Aggregations

StubModeAware (se.inera.intyg.webcert.intygstjanststub.mode.StubModeAware)1 RegisterTSDiabetesResponseType (se.inera.intygstjanster.ts.services.RegisterTSDiabetesResponder.v1.RegisterTSDiabetesResponseType)1 ResultatTyp (se.inera.intygstjanster.ts.services.v1.ResultatTyp)1