From 4f5d27b8662703a721d686ced92360b32e436a57 Mon Sep 17 00:00:00 2001 From: "Kristen.Herum" Date: Thu, 28 Nov 2024 07:48:21 +0100 Subject: [PATCH] Refactor sykemelding classes and fix DTO typo #deploy-test-dolly-backend #deploy-test-sykemelding-api #deploy-test-synt-sykemelding-api Refactored the Sykemelding classes to use a new response DTO and improved logging for better traceability. Also corrected the typo in SykemeldingResponseDTO across the codebase, ensuring consistent naming conventions. Updated application URLs in the configuration files. --- .../bestilling/sykemelding/SykemeldingClient.java | 1 + .../sykemelding/SykemeldingConsumer.java | 3 ++- .../command/SykemeldingPostCommand.java | 10 ++++++---- .../command/SyntSykemeldingPostCommand.java | 8 ++++---- .../sykemelding/dto/SykemeldingResponse.java | 2 ++ .../kodeverk/command/KodeverkGetCommand.java | 5 +++++ .../src/main/resources/application-local.yaml | 3 ++- .../sykemelding/consumer/SyfoConsumer.java | 6 +++--- .../provider/SykemeldingController.java | 15 ++++++--------- .../sykemelding/service/SykemeldingService.java | 4 ++-- .../consumer/SykemeldingConsumer.java | 4 ++-- .../consumer/command/PostSykemeldingCommand.java | 8 ++++---- .../provider/SyntSykemeldingController.java | 11 ++--------- .../service/SykemeldingService.java | 6 ++---- ...sponseDTO.java => SykemeldingResponseDTO.java} | 2 +- 15 files changed, 44 insertions(+), 44 deletions(-) rename libs/data-transfer-objects/src/main/java/no/nav/testnav/libs/dto/sykemelding/v1/{SykemeldningResponseDTO.java => SykemeldingResponseDTO.java} (89%) diff --git a/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/SykemeldingClient.java b/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/SykemeldingClient.java index c7714481e7c..07980a32425 100644 --- a/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/SykemeldingClient.java +++ b/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/SykemeldingClient.java @@ -188,6 +188,7 @@ private void saveTransaksjonId(SykemeldingResponse sykemelding, Long bestillingI log.info("Lagrer transaksjon for {} i q1 ", sykemelding.getIdent()); + sykemelding.getSykemeldingRequest().setSykemeldingId(sykemelding.getMsgId()); transaksjonMappingService.save(TransaksjonMapping.builder() .ident(sykemelding.getIdent()) .bestillingId(bestillingId) diff --git a/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/SykemeldingConsumer.java b/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/SykemeldingConsumer.java index 40911984e1e..9fea0892f21 100644 --- a/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/SykemeldingConsumer.java +++ b/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/SykemeldingConsumer.java @@ -45,7 +45,8 @@ public Mono postDetaljertSykemelding(DetaljertSykemeldingRe return tokenService.exchange(serverProperties) .flatMap(token -> new SykemeldingPostCommand(webClient, detaljertSykemeldingRequest, - token.getTokenValue()).call()); + token.getTokenValue()).call()) + .doOnNext(response -> log.info("Status fra sykemelding innsending: {}", response.getStatus())); } @Override diff --git a/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/command/SykemeldingPostCommand.java b/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/command/SykemeldingPostCommand.java index 06549e69549..14877f9a865 100644 --- a/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/command/SykemeldingPostCommand.java +++ b/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/command/SykemeldingPostCommand.java @@ -1,12 +1,13 @@ package no.nav.dolly.bestilling.sykemelding.command; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; import no.nav.dolly.bestilling.sykemelding.domain.DetaljertSykemeldingRequest; import no.nav.dolly.bestilling.sykemelding.dto.SykemeldingResponse; +import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldingResponseDTO; import no.nav.testnav.libs.reactivecore.utils.WebClientFilter; import no.nav.testnav.libs.securitycore.config.UserConstant; import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; import org.springframework.web.reactive.function.client.WebClient; import reactor.core.publisher.Mono; import reactor.util.retry.Retry; @@ -16,6 +17,7 @@ import static no.nav.dolly.util.TokenXUtil.getUserJwt; +@Slf4j @RequiredArgsConstructor public class SykemeldingPostCommand implements Callable> { @@ -35,10 +37,10 @@ public Mono call() { .header(UserConstant.USER_HEADER_JWT, getUserJwt()) .bodyValue(request) .retrieve() - .toBodilessEntity() - .timeout(Duration.ofMinutes(4)) + .bodyToMono(SykemeldingResponseDTO.class) .map(response -> SykemeldingResponse.builder() - .status(HttpStatus.valueOf(response.getStatusCode().value())) + .status(response.getStatus()) + .msgId(response.getSykemeldingId()) .ident(request.getPasient().getIdent()) .sykemeldingRequest(SykemeldingResponse.SykemeldingRequest.builder() .detaljertSykemeldingRequest(request) diff --git a/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/command/SyntSykemeldingPostCommand.java b/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/command/SyntSykemeldingPostCommand.java index 2b781fa2dc8..fcbfd4b5dac 100644 --- a/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/command/SyntSykemeldingPostCommand.java +++ b/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/command/SyntSykemeldingPostCommand.java @@ -3,10 +3,10 @@ import lombok.RequiredArgsConstructor; import no.nav.dolly.bestilling.sykemelding.domain.SyntSykemeldingRequest; import no.nav.dolly.bestilling.sykemelding.dto.SykemeldingResponse; +import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldingResponseDTO; import no.nav.testnav.libs.reactivecore.utils.WebClientFilter; import no.nav.testnav.libs.securitycore.config.UserConstant; import org.springframework.http.HttpHeaders; -import org.springframework.http.HttpStatus; import org.springframework.web.reactive.function.client.WebClient; import reactor.core.publisher.Mono; import reactor.util.retry.Retry; @@ -34,10 +34,10 @@ public Mono call() { .header(UserConstant.USER_HEADER_JWT, getUserJwt()) .bodyValue(sykemeldingRequest) .retrieve() - .toBodilessEntity() - .timeout(Duration.ofMinutes(4)) + .bodyToMono(SykemeldingResponseDTO.class) .map(response -> SykemeldingResponse.builder() - .status(HttpStatus.valueOf(response.getStatusCode().value())) + .status(response.getStatus()) + .msgId(response.getSykemeldingId()) .ident(sykemeldingRequest.getIdent()) .sykemeldingRequest(SykemeldingResponse.SykemeldingRequest.builder() .syntSykemeldingRequest(sykemeldingRequest) diff --git a/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/dto/SykemeldingResponse.java b/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/dto/SykemeldingResponse.java index 9126e4bff3c..2575ecc536c 100644 --- a/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/dto/SykemeldingResponse.java +++ b/apps/dolly-backend/src/main/java/no/nav/dolly/bestilling/sykemelding/dto/SykemeldingResponse.java @@ -18,6 +18,7 @@ public class SykemeldingResponse { private HttpStatus status; private String avvik; private SykemeldingRequest sykemeldingRequest; + private String msgId; private String ident; @Data @@ -27,6 +28,7 @@ public class SykemeldingResponse { @JsonInclude(JsonInclude.Include.NON_EMPTY) public static class SykemeldingRequest { + private String sykemeldingId; private SyntSykemeldingRequest syntSykemeldingRequest; private DetaljertSykemeldingRequest detaljertSykemeldingRequest; } diff --git a/apps/dolly-backend/src/main/java/no/nav/dolly/consumer/kodeverk/command/KodeverkGetCommand.java b/apps/dolly-backend/src/main/java/no/nav/dolly/consumer/kodeverk/command/KodeverkGetCommand.java index 91b2382e5cb..5c8dce5209b 100644 --- a/apps/dolly-backend/src/main/java/no/nav/dolly/consumer/kodeverk/command/KodeverkGetCommand.java +++ b/apps/dolly-backend/src/main/java/no/nav/dolly/consumer/kodeverk/command/KodeverkGetCommand.java @@ -4,6 +4,7 @@ import no.nav.testnav.libs.dto.kodeverkservice.v1.KodeverkDTO; import no.nav.testnav.libs.reactivecore.utils.WebClientFilter; import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpStatus; import org.springframework.web.reactive.function.client.WebClient; import reactor.core.publisher.Mono; import reactor.util.retry.Retry; @@ -31,6 +32,10 @@ public Mono call() { .header(HttpHeaders.AUTHORIZATION, "Bearer " + token) .retrieve() .bodyToMono(KodeverkDTO.class) + .map(kodeverk -> { + kodeverk.setStatus(HttpStatus.OK); + return kodeverk; + }) .doOnError(WebClientFilter::logErrorMessage) .onErrorResume(error -> Mono.just(KodeverkDTO.builder() .kodeverknavn(kodeverk) diff --git a/apps/dolly-backend/src/main/resources/application-local.yaml b/apps/dolly-backend/src/main/resources/application-local.yaml index 60c7decda9e..aa966091021 100644 --- a/apps/dolly-backend/src/main/resources/application-local.yaml +++ b/apps/dolly-backend/src/main/resources/application-local.yaml @@ -57,7 +57,8 @@ consumers: name: testnav-pdl-forvalter-dev url: https://testnav-synt-sykemelding-api.intern.dev.nav.no testnav-sykemelding-api: - url: http://testnav-sykemelding-api.intern.dev.nav.no + name: testnav-sykemelding-api-dev + url: https://testnav-sykemelding-api-dev.intern.dev.nav.no testnav-miljoer-service: url: https://testnav-miljoer-service.intern.dev.nav.no testnav-arbeidsplassencv-proxy: diff --git a/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/consumer/SyfoConsumer.java b/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/consumer/SyfoConsumer.java index 9168d3e6d3f..d121155f9df 100644 --- a/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/consumer/SyfoConsumer.java +++ b/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/consumer/SyfoConsumer.java @@ -2,7 +2,7 @@ import lombok.extern.slf4j.Slf4j; import no.nav.registre.testnorge.sykemelding.domain.Sykemelding; -import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldningResponseDTO; +import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldingResponseDTO; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.HttpStatus; import org.springframework.jms.core.JmsTemplate; @@ -19,14 +19,14 @@ public SyfoConsumer(JmsTemplate jmsTemplate, @Value("${syfo.queue.name}") String this.queueName = queueName; } - public SykemeldningResponseDTO send(Sykemelding sykemelding) { + public SykemeldingResponseDTO send(Sykemelding sykemelding) { var xml = sykemelding.toXml(); log.info("Legger sykemelding på kø med MsgId {}\n{}", sykemelding.getMsgId(), sykemelding); jmsTemplate.send(queueName, session -> session.createTextMessage(xml)); log.trace(xml); - return SykemeldningResponseDTO.builder() + return SykemeldingResponseDTO.builder() .sykemeldingId(sykemelding.getMsgId()) .status(HttpStatus.OK) .build(); diff --git a/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/provider/SykemeldingController.java b/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/provider/SykemeldingController.java index 3ef75a56032..54a10649acc 100644 --- a/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/provider/SykemeldingController.java +++ b/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/provider/SykemeldingController.java @@ -1,19 +1,16 @@ package no.nav.registre.testnorge.sykemelding.provider; import lombok.RequiredArgsConstructor; -import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldningResponseDTO; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; +import no.nav.registre.testnorge.sykemelding.domain.ApplicationInfo; +import no.nav.registre.testnorge.sykemelding.domain.Sykemelding; +import no.nav.registre.testnorge.sykemelding.service.SykemeldingService; +import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldingDTO; +import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldingResponseDTO; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; -import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldingDTO; -import no.nav.registre.testnorge.sykemelding.domain.ApplicationInfo; -import no.nav.registre.testnorge.sykemelding.domain.Sykemelding; -import no.nav.registre.testnorge.sykemelding.service.SykemeldingService; - @RestController @RequestMapping("/api/v1/sykemeldinger") @RequiredArgsConstructor @@ -23,7 +20,7 @@ public class SykemeldingController { private final ApplicationInfo applicationInfo; @PostMapping - public SykemeldningResponseDTO create(@RequestBody SykemeldingDTO dto) { + public SykemeldingResponseDTO create(@RequestBody SykemeldingDTO dto) { return service.send(new Sykemelding(dto, applicationInfo)); } diff --git a/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/service/SykemeldingService.java b/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/service/SykemeldingService.java index 5d9cbd7cb4e..e8a9e4f2302 100644 --- a/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/service/SykemeldingService.java +++ b/apps/sykemelding-api/src/main/java/no/nav/registre/testnorge/sykemelding/service/SykemeldingService.java @@ -3,7 +3,7 @@ import lombok.RequiredArgsConstructor; import no.nav.registre.testnorge.sykemelding.consumer.SyfoConsumer; import no.nav.registre.testnorge.sykemelding.domain.Sykemelding; -import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldningResponseDTO; +import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldingResponseDTO; import org.springframework.stereotype.Service; @Service @@ -11,7 +11,7 @@ public class SykemeldingService { private final SyfoConsumer syfoConsumer; - public SykemeldningResponseDTO send(Sykemelding sykemelding) { + public SykemeldingResponseDTO send(Sykemelding sykemelding) { return syfoConsumer.send(sykemelding); } diff --git a/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/consumer/SykemeldingConsumer.java b/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/consumer/SykemeldingConsumer.java index 951b8b4dac6..87b327b5899 100644 --- a/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/consumer/SykemeldingConsumer.java +++ b/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/consumer/SykemeldingConsumer.java @@ -4,7 +4,7 @@ import no.nav.testnav.apps.syntsykemeldingapi.config.Consumers; import no.nav.testnav.apps.syntsykemeldingapi.consumer.command.PostSykemeldingCommand; import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldingDTO; -import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldningResponseDTO; +import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldingResponseDTO; import no.nav.testnav.libs.securitycore.domain.ServerProperties; import no.nav.testnav.libs.servletsecurity.exchange.TokenExchange; import org.springframework.stereotype.Component; @@ -30,7 +30,7 @@ public SykemeldingConsumer( .build(); } - public SykemeldningResponseDTO opprettSykemelding(SykemeldingDTO sykemelding) { + public SykemeldingResponseDTO opprettSykemelding(SykemeldingDTO sykemelding) { return tokenExchange.exchange(serverProperties) .flatMap(accessToken -> diff --git a/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/consumer/command/PostSykemeldingCommand.java b/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/consumer/command/PostSykemeldingCommand.java index 115cd106f88..3570ec16745 100644 --- a/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/consumer/command/PostSykemeldingCommand.java +++ b/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/consumer/command/PostSykemeldingCommand.java @@ -4,7 +4,7 @@ import lombok.SneakyThrows; import lombok.extern.slf4j.Slf4j; import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldingDTO; -import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldningResponseDTO; +import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldingResponseDTO; import no.nav.testnav.libs.reactivecore.utils.WebClientFilter; import org.springframework.http.HttpStatus; import org.springframework.web.reactive.function.client.WebClient; @@ -17,7 +17,7 @@ @Slf4j @RequiredArgsConstructor -public class PostSykemeldingCommand implements Callable> { +public class PostSykemeldingCommand implements Callable> { private final WebClient webClient; private final String token; @@ -25,7 +25,7 @@ public class PostSykemeldingCommand implements Callable call() { + public Mono call() { return webClient.post() .uri(builder -> builder.path("/api/v1/sykemeldinger").build() @@ -33,7 +33,7 @@ public Mono call() { .header(AUTHORIZATION, "Bearer " + token) .bodyValue(sykemelding) .retrieve() - .bodyToMono(SykemeldningResponseDTO.class) + .bodyToMono(SykemeldingResponseDTO.class) .doOnError(WebClientFilter::logErrorMessage) .onErrorResume(throwable -> Mono.error(new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, "Feil oppsto i innsending av sykemelding"))); diff --git a/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/provider/SyntSykemeldingController.java b/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/provider/SyntSykemeldingController.java index f23b4b5bb20..7659c7d3723 100644 --- a/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/provider/SyntSykemeldingController.java +++ b/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/provider/SyntSykemeldingController.java @@ -2,20 +2,13 @@ import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; - import no.nav.testnav.apps.syntsykemeldingapi.service.SykemeldingService; -import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldningResponseDTO; +import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldingResponseDTO; import no.nav.testnav.libs.dto.synt.sykemelding.v1.SyntSykemeldingDTO; - -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.web.bind.annotation.ControllerAdvice; -import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; -import org.springframework.web.client.HttpClientErrorException; @RestController @Slf4j @@ -25,7 +18,7 @@ public class SyntSykemeldingController { private final SykemeldingService sykemeldingService; @PostMapping - public SykemeldningResponseDTO opprett(@RequestBody SyntSykemeldingDTO sykemelding) { + public SykemeldingResponseDTO opprett(@RequestBody SyntSykemeldingDTO sykemelding) { return sykemeldingService.opprettSykemelding(sykemelding); } diff --git a/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/service/SykemeldingService.java b/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/service/SykemeldingService.java index 079fb5cb705..dea8c92f9a8 100644 --- a/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/service/SykemeldingService.java +++ b/apps/synt-sykemelding-api/src/main/java/no/nav/testnav/apps/syntsykemeldingapi/service/SykemeldingService.java @@ -9,12 +9,10 @@ import no.nav.testnav.apps.syntsykemeldingapi.consumer.SyntElsamConsumer; import no.nav.testnav.apps.syntsykemeldingapi.domain.Person; import no.nav.testnav.apps.syntsykemeldingapi.domain.Sykemelding; -import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldningResponseDTO; +import no.nav.testnav.libs.dto.sykemelding.v1.SykemeldingResponseDTO; import no.nav.testnav.libs.dto.synt.sykemelding.v1.SyntSykemeldingDTO; import org.springframework.stereotype.Service; -import java.util.Objects; - import static java.util.Objects.nonNull; @Slf4j @@ -27,7 +25,7 @@ public class SykemeldingService { private final ArbeidsforholdAdapter arbeidsforholdAdapter; private final PdlProxyConsumer pdlProxyConsumer; - public SykemeldningResponseDTO opprettSykemelding(SyntSykemeldingDTO syntSykemelding) { + public SykemeldingResponseDTO opprettSykemelding(SyntSykemeldingDTO syntSykemelding) { var pdlData = pdlProxyConsumer.getPdlPerson(syntSykemelding.getIdent()); var pasient = new Person(pdlData); diff --git a/libs/data-transfer-objects/src/main/java/no/nav/testnav/libs/dto/sykemelding/v1/SykemeldningResponseDTO.java b/libs/data-transfer-objects/src/main/java/no/nav/testnav/libs/dto/sykemelding/v1/SykemeldingResponseDTO.java similarity index 89% rename from libs/data-transfer-objects/src/main/java/no/nav/testnav/libs/dto/sykemelding/v1/SykemeldningResponseDTO.java rename to libs/data-transfer-objects/src/main/java/no/nav/testnav/libs/dto/sykemelding/v1/SykemeldingResponseDTO.java index dcc79a9a240..e299b10962a 100644 --- a/libs/data-transfer-objects/src/main/java/no/nav/testnav/libs/dto/sykemelding/v1/SykemeldningResponseDTO.java +++ b/libs/data-transfer-objects/src/main/java/no/nav/testnav/libs/dto/sykemelding/v1/SykemeldingResponseDTO.java @@ -10,7 +10,7 @@ @Builder @NoArgsConstructor @AllArgsConstructor -public class SykemeldningResponseDTO { +public class SykemeldingResponseDTO { private HttpStatus status; private String sykemeldingId;