-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Godkjenningsbehov benytter ny flyt
- Loading branch information
Showing
9 changed files
with
77 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...lve/src/main/kotlin/no/nav/helse/modell/kommando/ForberedBehandlingAvGodkjenningsbehov.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package no.nav.helse.modell.kommando | ||
|
||
import no.nav.helse.modell.person.Person | ||
import no.nav.helse.modell.vedtaksperiode.SpleisVedtaksperiode | ||
import java.time.LocalDate | ||
import java.util.UUID | ||
|
||
internal class ForberedBehandlingAvGodkjenningsbehov( | ||
private val person: Person, | ||
private val spleisVedtaksperioder: List<SpleisVedtaksperiode>, | ||
private val vedtaksperiodeId: UUID, | ||
private val utbetalingId: UUID, | ||
private val spleisBehandlingId: UUID, | ||
private val tags: List<String>, | ||
private val skjæringstidspunkt: LocalDate, | ||
): Command { | ||
override fun execute(context: CommandContext): Boolean { | ||
person.mottaSpleisVedtaksperioder(spleisVedtaksperioder) | ||
person.flyttEventuelleAvviksvarsler(vedtaksperiodeId, skjæringstidspunkt) | ||
person.oppdaterPeriodeTilGodkjenning(vedtaksperiodeId, tags, spleisBehandlingId, utbetalingId) | ||
return true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters