Skip to content

Commit

Permalink
Bump the all-dependencies group across 1 directory with 9 updates (#532)
Browse files Browse the repository at this point in the history
* Bump the all-dependencies group across 1 directory with 9 updates

Bumps the all-dependencies group with 9 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [org.springframework.boot:spring-boot-starter-parent](https://github.com/spring-projects/spring-boot) | `3.3.0` | `3.3.1` |
| [no.nav.familie.felles:http-client](https://github.com/navikt/familie-felles) | `3.20240515152313_9dd5659` | `3.20240624143824_64bf8f2` |
| [no.nav.familie.felles:kafka](https://github.com/navikt/familie-felles) | `3.20240515152313_9dd5659` | `3.20240624143824_64bf8f2` |
| [no.nav.familie.felles:leader](https://github.com/navikt/familie-felles) | `3.20240515152313_9dd5659` | `3.20240624143824_64bf8f2` |
| [no.nav.security:token-client-core](https://github.com/navikt/token-support) | `4.1.8` | `5.0.1` |
| [no.nav.security:token-client-spring](https://github.com/navikt/token-support) | `4.1.8` | `5.0.1` |
| [no.nav.security:token-validation-spring-test](https://github.com/navikt/token-support) | `4.1.8` | `5.0.1` |
| org.flywaydb:flyway-database-postgresql | `10.13.0` | `10.15.2` |
| [com.pinterest.ktlint:ktlint-cli](https://github.com/pinterest/ktlint) | `1.2.1` | `1.3.1` |



Updates `org.springframework.boot:spring-boot-starter-parent` from 3.3.0 to 3.3.1
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](spring-projects/spring-boot@v3.3.0...v3.3.1)

Updates `no.nav.familie.felles:http-client` from 3.20240515152313_9dd5659 to 3.20240624143824_64bf8f2
- [Commits](https://github.com/navikt/familie-felles/commits)

Updates `no.nav.familie.felles:kafka` from 3.20240515152313_9dd5659 to 3.20240624143824_64bf8f2
- [Commits](https://github.com/navikt/familie-felles/commits)

Updates `no.nav.familie.felles:leader` from 3.20240515152313_9dd5659 to 3.20240624143824_64bf8f2
- [Commits](https://github.com/navikt/familie-felles/commits)

Updates `no.nav.familie.felles:kafka` from 3.20240515152313_9dd5659 to 3.20240624143824_64bf8f2
- [Commits](https://github.com/navikt/familie-felles/commits)

Updates `no.nav.familie.felles:leader` from 3.20240515152313_9dd5659 to 3.20240624143824_64bf8f2
- [Commits](https://github.com/navikt/familie-felles/commits)

Updates `no.nav.security:token-client-core` from 4.1.8 to 5.0.1
- [Release notes](https://github.com/navikt/token-support/releases)
- [Commits](navikt/token-support@4.1.8...5.0.1)

Updates `no.nav.security:token-client-spring` from 4.1.8 to 5.0.1
- [Release notes](https://github.com/navikt/token-support/releases)
- [Commits](navikt/token-support@4.1.8...5.0.1)

Updates `no.nav.security:token-validation-spring-test` from 4.1.8 to 5.0.1
- [Release notes](https://github.com/navikt/token-support/releases)
- [Commits](navikt/token-support@4.1.8...5.0.1)

Updates `no.nav.security:token-client-spring` from 4.1.8 to 5.0.1
- [Release notes](https://github.com/navikt/token-support/releases)
- [Commits](navikt/token-support@4.1.8...5.0.1)

Updates `org.flywaydb:flyway-database-postgresql` from 10.13.0 to 10.15.2

Updates `no.nav.security:token-validation-spring-test` from 4.1.8 to 5.0.1
- [Release notes](https://github.com/navikt/token-support/releases)
- [Commits](navikt/token-support@4.1.8...5.0.1)

Updates `com.pinterest.ktlint:ktlint-cli` from 1.2.1 to 1.3.1
- [Release notes](https://github.com/pinterest/ktlint/releases)
- [Changelog](https://github.com/pinterest/ktlint/blob/master/CHANGELOG.md)
- [Commits](pinterest/ktlint@1.2.1...1.3.1)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-starter-parent
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-dependencies
- dependency-name: no.nav.familie.felles:http-client
  dependency-type: direct:production
  dependency-group: all-dependencies
- dependency-name: no.nav.familie.felles:kafka
  dependency-type: direct:production
  dependency-group: all-dependencies
- dependency-name: no.nav.familie.felles:leader
  dependency-type: direct:production
  dependency-group: all-dependencies
- dependency-name: no.nav.familie.felles:kafka
  dependency-type: direct:production
  dependency-group: all-dependencies
- dependency-name: no.nav.familie.felles:leader
  dependency-type: direct:production
  dependency-group: all-dependencies
- dependency-name: no.nav.security:token-client-core
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all-dependencies
- dependency-name: no.nav.security:token-client-spring
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all-dependencies
- dependency-name: no.nav.security:token-validation-spring-test
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: all-dependencies
- dependency-name: no.nav.security:token-client-spring
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all-dependencies
- dependency-name: org.flywaydb:flyway-database-postgresql
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
- dependency-name: no.nav.security:token-validation-spring-test
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: all-dependencies
- dependency-name: com.pinterest.ktlint:ktlint-cli
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>

* Linterendringer

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ole Christian Kvernberg <[email protected]>
  • Loading branch information
dependabot[bot] and olekvernberg authored Jul 11, 2024
1 parent 749b9fd commit bb0a7ce
Show file tree
Hide file tree
Showing 45 changed files with 353 additions and 258 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.0</version>
<version>3.3.1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>no.nav.familie.ef</groupId>
Expand Down Expand Up @@ -37,8 +37,8 @@
<exec-maven-plugin.version>3.3.0</exec-maven-plugin.version>
<kontrakter.version>3.0_20240607101709_d35e18c</kontrakter.version>
<eksterne-kontrakter.version>2.0_20240131125409_e3d0f6d</eksterne-kontrakter.version>
<felles.version>3.20240515152313_9dd5659</felles.version>
<nav.security.version>4.1.8</nav.security.version> <!-- Denne burde være samme versjon som i felles -->
<felles.version>3.20240624143824_64bf8f2</felles.version>
<nav.security.version>5.0.1</nav.security.version> <!-- Denne burde være samme versjon som i felles -->
<okhttp3.version>4.9.1</okhttp3.version> <!-- overskrever spring sin versjon, blir brukt av mock-oauth2-server -->
<wiremock.version>2.35.2</wiremock.version>
<mockk-jvm.version>1.13.11</mockk-jvm.version>
Expand Down Expand Up @@ -159,7 +159,7 @@
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-postgresql</artifactId>
<version>10.13.0</version>
<version>10.15.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -374,7 +374,7 @@
<dependency>
<groupId>com.pinterest.ktlint</groupId>
<artifactId>ktlint-cli</artifactId>
<version>1.2.1</version>
<version>1.3.1</version>
</dependency>
<!-- additional 3rd party ruleset(s) can be specified here -->
</dependencies>
Expand Down
7 changes: 6 additions & 1 deletion src/main/kotlin/no/nav/familie/ef/personhendelse/Hendelse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ import no.nav.person.pdl.leesah.Endringstype
import java.time.LocalDateTime
import java.util.UUID

data class Hendelse(val hendelsesId: UUID, val oppgaveId: Long, val endringstype: Endringstype, val opprettetTid: LocalDateTime)
data class Hendelse(
val hendelsesId: UUID,
val oppgaveId: Long,
val endringstype: Endringstype,
val opprettetTid: LocalDateTime,
)
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ class ArbeidsfordelingClient(
}
}

data class Arbeidsfordelingsenhet(val enhetId: String, val enhetNavn: String)
data class Arbeidsfordelingsenhet(
val enhetId: String,
val enhetNavn: String,
)
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ class OppgaveClient(
): FinnMappeResponseDto {
val response =
getForEntity<Ressurs<FinnMappeResponseDto>>(
UriComponentsBuilder.fromUri(URI.create("$oppgaveUrl/mappe/sok"))
UriComponentsBuilder
.fromUri(URI.create("$oppgaveUrl/mappe/sok"))
.queryParam("enhetsnr", enhetsnummer)
.queryParam("limit", limit)
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,39 +21,46 @@ class SakClient(
) : AbstractRestClient(restOperations, "familie.ef-sak") {
fun harLøpendeStønad(personidenter: Set<String>): Boolean {
val uriComponentsBuilder =
UriComponentsBuilder.fromUri(uri)
UriComponentsBuilder
.fromUri(uri)
.pathSegment("api/ekstern/behandling/har-loepende-stoenad")
val response = postForEntity<Ressurs<Boolean>>(uriComponentsBuilder.build().toUri(), personidenter)
return response.data ?: error("Kall mot ef-sak feilet. Status=${response.status} - ${response.melding}")
}

fun harLøpendeBarnetilsyn(personident: String): Boolean {
val uriComponentsBuilder =
UriComponentsBuilder.fromUri(uri)
UriComponentsBuilder
.fromUri(uri)
.pathSegment("api/ekstern/behandling/har-loepende-barnetilsyn")
val response = postForEntity<Ressurs<Boolean>>(uriComponentsBuilder.build().toUri(), PersonIdent(personident))
return response.data ?: error("Kall mot ef-sak feilet. Status=${response.status} - ${response.melding}")
}

fun inntektForEksternId(eksternId: Long): Int? {
val uriComponentsBuilder =
UriComponentsBuilder.fromUri(uri)
.pathSegment("api/vedtak/eksternid/$eksternId/inntekt").queryParam("dato", LocalDate.now())
UriComponentsBuilder
.fromUri(uri)
.pathSegment("api/vedtak/eksternid/$eksternId/inntekt")
.queryParam("dato", LocalDate.now())
val response = getForEntity<Ressurs<Int?>>(uriComponentsBuilder.build().toUri())
return response.data
}

fun harAktivtVedtak(eksternId: Long): Boolean {
val uriComponentsBuilder =
UriComponentsBuilder.fromUri(uri)
.pathSegment("api/vedtak/eksternid/$eksternId/harAktivtVedtak").queryParam("dato", LocalDate.now())
UriComponentsBuilder
.fromUri(uri)
.pathSegment("api/vedtak/eksternid/$eksternId/harAktivtVedtak")
.queryParam("dato", LocalDate.now())
val response = getForEntity<Ressurs<Boolean>>(uriComponentsBuilder.build().toUri())
return response.data ?: throw Exception("Feil ved kall, mottok NULL: harAktivtVedtak skal alltid returnere en verdi")
}

fun hentAlleAktiveIdenterOgForventetInntekt(): Map<String, Int?> {
val uriComponentsBuilder =
UriComponentsBuilder.fromUri(uri)
UriComponentsBuilder
.fromUri(uri)
.pathSegment("api/vedtak/gjeldendeIverksatteBehandlingerMedInntekt")
val response = getForEntity<Ressurs<Map<String, Int?>>>(uriComponentsBuilder.build().toUri())
return response.data
Expand All @@ -62,7 +69,8 @@ class SakClient(

fun hentPersonerMedAktivStønadIkkeManueltRevurdertSisteMåneder(antallMåneder: Int = 3): List<String> {
val uriComponentsBuilder =
UriComponentsBuilder.fromUri(uri)
UriComponentsBuilder
.fromUri(uri)
.pathSegment("api/vedtak/personerMedAktivStonadIkkeManueltRevurdertSisteMaaneder")
.queryParam("antallMaaneder", antallMåneder)
val response = getForEntity<Ressurs<List<String>>>(uriComponentsBuilder.build().toUri())
Expand All @@ -72,7 +80,8 @@ class SakClient(

fun hentForventetInntektForIdenter(personidenter: Collection<String>): List<ForventetInntektForPerson> {
val uriComponentsBuilder =
UriComponentsBuilder.fromUri(uri)
UriComponentsBuilder
.fromUri(uri)
.pathSegment("api/vedtak/gjeldendeIverksatteBehandlingerMedInntekt")
val response = postForEntity<Ressurs<List<ForventetInntektForPerson>>>(uriComponentsBuilder.build().toUri(), personidenter)
return response.data
Expand All @@ -81,7 +90,8 @@ class SakClient(

fun finnNyeBarnForBruker(personIdent: PersonIdent): NyeBarnDto {
val uriComponentsBuilder =
UriComponentsBuilder.fromUri(uri)
UriComponentsBuilder
.fromUri(uri)
.pathSegment("api/behandling/barn/nye-eller-tidligere-fodte-barn")
val response = postForEntity<Ressurs<NyeBarnDto>>(uriComponentsBuilder.build().toUri(), personIdent)
return response.getDataOrThrow()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,10 @@ class PdlClient(
}
}

private fun httpHeadersPdl(): HttpHeaders {
return HttpHeaders().apply {
private fun httpHeadersPdl(): HttpHeaders =
HttpHeaders().apply {
add("Tema", "ENF")
add("behandlingsnummer", Tema.ENF.behandlingsnummer)
}
}

fun String.graphqlCompatible(): String {
return StringUtils.normalizeSpace(this.replace("\n", ""))
}
fun String.graphqlCompatible(): String = StringUtils.normalizeSpace(this.replace("\n", ""))
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ data class PdlError(
val extensions: PdlErrorExtensions?,
)

data class PdlErrorExtensions(val code: String?) {
data class PdlErrorExtensions(
val code: String?,
) {
fun notFound() = code == "not_found"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ data class PdlPersonRequest<T>(
val query: String,
)

data class PdlPersonRequestVariables(val ident: String)
data class PdlPersonRequestVariables(
val ident: String,
)

data class PdlIdentRequestVariables(
val ident: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package no.nav.familie.ef.personhendelse.client.pdl

open class PdlRequestException(melding: String? = null) : Exception(melding)
open class PdlRequestException(
melding: String? = null,
) : Exception(melding)

class PdlNotFoundException : PdlRequestException()
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ data class PdlResponse<T>(
val errors: List<PdlError>?,
val extensions: PdlExtensions?,
) {
fun harFeil(): Boolean {
return errors != null && errors.isNotEmpty()
}
fun harFeil(): Boolean = errors != null && errors.isNotEmpty()

fun harAdvarsel(): Boolean {
return !extensions?.warnings.isNullOrEmpty()
}
fun harAdvarsel(): Boolean = !extensions?.warnings.isNullOrEmpty()

fun errorMessages(): String {
return errors?.joinToString { it -> it.message } ?: ""
}
fun errorMessages(): String = errors?.joinToString { it -> it.message } ?: ""
}

data class PdlExtensions(val warnings: List<PdlWarning>?)
data class PdlExtensions(
val warnings: List<PdlWarning>?,
)

data class PdlWarning(val details: Any?, val id: String?, val message: String?, val query: String?)
data class PdlWarning(
val details: Any?,
val id: String?,
val message: String?,
val query: String?,
)
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ class ApplicationConfig {
*/
@Primary
@Bean
fun oAuth2HttpClient(): OAuth2HttpClient {
return RetryOAuth2HttpClient(
fun oAuth2HttpClient(): OAuth2HttpClient =
RetryOAuth2HttpClient(
RestClient.create(
RestTemplateBuilder()
.setConnectTimeout(Duration.of(2, ChronoUnit.SECONDS))
.setReadTimeout(Duration.of(4, ChronoUnit.SECONDS)).build(),
.setReadTimeout(Duration.of(4, ChronoUnit.SECONDS))
.build(),
),
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ import java.time.format.DateTimeFormatter

private val DATO_FORMAT_NORSK = DateTimeFormatter.ofPattern("dd.MM.yyyy")

fun LocalDate?.tilNorskDatoformat(): String {
return this?.format(DATO_FORMAT_NORSK) ?: "ukjent dato"
}
fun LocalDate?.tilNorskDatoformat(): String = this?.format(DATO_FORMAT_NORSK) ?: "ukjent dato"
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import java.time.LocalDateTime
import java.util.UUID

@Repository
class DødsfallOppgaveRepository(val namedParameterJdbcTemplate: NamedParameterJdbcTemplate) {
class DødsfallOppgaveRepository(
val namedParameterJdbcTemplate: NamedParameterJdbcTemplate,
) {
val logger: Logger = LoggerFactory.getLogger(javaClass)

fun lagreOppgave(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import org.springframework.scheduling.annotation.Scheduled
import org.springframework.stereotype.Service

@Service
class DødsfallOppgaveScheduler(val personhendelseService: PersonhendelseService) {
class DødsfallOppgaveScheduler(
val personhendelseService: PersonhendelseService,
) {
val logger: Logger = LoggerFactory.getLogger(this::class.java)

@Scheduled(cron = "\${OPPGAVERDØDSFALL_CRON_EXPRESSION}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ class DødsfallOppgaveService(
)
}

fun hentIkkeOpprettedeDødsfalloppgaverOverEnUkeTilbakeITid(): List<DødsfallOppgave> {
return dødsfallOppgaveRepository.hentIkkeOpprettedeDødsfalloppgaverOverEnUkeTilbakeITid()
}
fun hentIkkeOpprettedeDødsfalloppgaverOverEnUkeTilbakeITid(): List<DødsfallOppgave> = dødsfallOppgaveRepository.hentIkkeOpprettedeDødsfalloppgaverOverEnUkeTilbakeITid()

fun settDødsfalloppgaverTilUtført(oppgaver: List<DødsfallOppgave>) {
oppgaver.forEach { dødsfallOppgaveRepository.settOppgaveTilUtført(it.hendelsesId) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import org.springframework.stereotype.Component
import java.time.LocalDate

@Component
class DodsfallHandler(val pdlClient: PdlClient) : PersonhendelseHandler {
class DodsfallHandler(
val pdlClient: PdlClient,
) : PersonhendelseHandler {
override val type = PersonhendelseType.DØDSFALL

override fun lagOppgaveInformasjon(personhendelse: Personhendelse): OppgaveInformasjon {
return UtsettDødsfallOppgave(beskrivelse = "Dødsfall med dødsdato: ${personhendelse.doedsfall.doedsdato.tilNorskDatoformat()}")
}
override fun lagOppgaveInformasjon(personhendelse: Personhendelse): OppgaveInformasjon = UtsettDødsfallOppgave(beskrivelse = "Dødsfall med dødsdato: ${personhendelse.doedsfall.doedsdato.tilNorskDatoformat()}")

override fun personidenterPerPersonSomSkalKontrolleres(personhendelse: Personhendelse): List<Set<String>> {
val personIdenter = personhendelse.identerUtenAktørId()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ import org.springframework.stereotype.Component
class DødfødtBarnHandler : PersonhendelseHandler {
override val type = PersonhendelseType.DØDFØDT_BARN

override fun lagOppgaveInformasjon(personhendelse: Personhendelse): OppgaveInformasjon {
return UtsettDødsfallOppgave(beskrivelse = "Dødfødt barn ${personhendelse.doedfoedtBarn.dato.tilNorskDatoformat()}")
}
override fun lagOppgaveInformasjon(personhendelse: Personhendelse): OppgaveInformasjon = UtsettDødsfallOppgave(beskrivelse = "Dødfødt barn ${personhendelse.doedfoedtBarn.dato.tilNorskDatoformat()}")
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import org.slf4j.LoggerFactory
import org.springframework.stereotype.Component

@Component
class ForelderBarnHandler(val sakClient: SakClient) : PersonhendelseHandler {
class ForelderBarnHandler(
val sakClient: SakClient,
) : PersonhendelseHandler {
private val logger: Logger = LoggerFactory.getLogger(javaClass)
private val secureLogger: Logger = LoggerFactory.getLogger("secureLogger")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ import no.nav.person.pdl.leesah.Personhendelse

sealed class OppgaveInformasjon

data class OpprettOppgave(val beskrivelse: String) : OppgaveInformasjon()
data class OpprettOppgave(
val beskrivelse: String,
) : OppgaveInformasjon()

data class UtsettDødsfallOppgave(val beskrivelse: String) : OppgaveInformasjon()
data class UtsettDødsfallOppgave(
val beskrivelse: String,
) : OppgaveInformasjon()

object IkkeOpprettOppgave : OppgaveInformasjon()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ class PersonhendelseService(
}
}

fun harHåndtertHendelse(hendelseId: String): Boolean {
return personhendelseRepository.hentHendelse(UUID.fromString(hendelseId)) != null
}
fun harHåndtertHendelse(hendelseId: String): Boolean = personhendelseRepository.hentHendelse(UUID.fromString(hendelseId)) != null

private fun handle(
handler: PersonhendelseHandler,
Expand Down Expand Up @@ -211,9 +209,7 @@ class PersonhendelseService(
?: personhendelse.identerUtenAktørId().firstOrNull()
?: error("Finner ikke ident for personHendelse=${personhendelse.hendelseId}")

private fun hentTidligereHendelse(personhendelse: Personhendelse): Hendelse? {
return personhendelseRepository.hentHendelse(UUID.fromString(personhendelse.tidligereHendelseId))
}
private fun hentTidligereHendelse(personhendelse: Personhendelse): Hendelse? = personhendelseRepository.hentHendelse(UUID.fromString(personhendelse.tidligereHendelseId))

private fun lagreHendelse(
hendelseId: UUID,
Expand All @@ -227,21 +223,18 @@ class PersonhendelseService(
)
}

private fun hentOppgave(hendelse: Hendelse): Oppgave {
return oppgaveClient.finnOppgaveMedId(hendelse.oppgaveId)
}
private fun hentOppgave(hendelse: Hendelse): Oppgave = oppgaveClient.finnOppgaveMedId(hendelse.oppgaveId)

private fun opprettOppgaveMedBeskrivelse(
personIdent: String,
beskrivelse: String,
): Long {
return oppgaveClient.opprettOppgave(
): Long =
oppgaveClient.opprettOppgave(
opprettVurderLivshendelseoppgave(
personIdent = personIdent,
beskrivelse = beskrivelse,
),
)
}
}

private fun Personhendelse.ferdigstiltBeskrivelse() =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package no.nav.familie.ef.personhendelse.handler

enum class PersonhendelseType(val hendelsetype: String) {
enum class PersonhendelseType(
val hendelsetype: String,
) {
DØDFØDT_BARN("DOEDFOEDT_BARN_V1"),
DØDSFALL("DOEDSFALL_V1"),
SIVILSTAND("SIVILSTAND_V1"),
Expand Down
Loading

0 comments on commit bb0a7ce

Please sign in to comment.