-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kontrakt for tilkjent ytelse til bruk mellom formidling og fpsak
- Loading branch information
Showing
5 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...in/java/no/nav/foreldrepenger/kontrakter/fpsak/tilkjentytelse/TilkjentYtelseAndelDto.java
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,20 @@ | ||
package no.nav.foreldrepenger.kontrakter.fpsak.tilkjentytelse; | ||
|
||
import jakarta.validation.Valid; | ||
import jakarta.validation.constraints.DecimalMax; | ||
import jakarta.validation.constraints.DecimalMin; | ||
import jakarta.validation.constraints.Digits; | ||
import jakarta.validation.constraints.Max; | ||
import jakarta.validation.constraints.Min; | ||
import jakarta.validation.constraints.NotNull; | ||
import no.nav.foreldrepenger.kontrakter.fpsak.tilkjentytelse.kodeverk.Aktivitetstatus; | ||
|
||
import java.math.BigDecimal; | ||
|
||
public record TilkjentYtelseAndelDto(String arbeidsgiverReferanse, | ||
@Min(0) @Max(Integer.MAX_VALUE) Integer refusjon, | ||
@Min(0) @Max(Integer.MAX_VALUE) Integer tilSoker, | ||
@NotNull @Valid Aktivitetstatus aktivitetstatus, | ||
String arbeidsforholdId, | ||
@Valid @Digits(integer = 8, fraction = 2) @DecimalMin("0.00") @DecimalMax("10000000.00") BigDecimal stillingsprosent) { | ||
} |
6 changes: 6 additions & 0 deletions
6
...ava/no/nav/foreldrepenger/kontrakter/fpsak/tilkjentytelse/TilkjentYtelseDagytelseDto.java
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,6 @@ | ||
package no.nav.foreldrepenger.kontrakter.fpsak.tilkjentytelse; | ||
|
||
import jakarta.validation.Valid; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record TilkjentYtelseDagytelseDto(@Valid @NotNull TilkjentYtelsePeriodeDto[] perioder) {} |
3 changes: 3 additions & 0 deletions
3
...no/nav/foreldrepenger/kontrakter/fpsak/tilkjentytelse/TilkjentYtelseEngangsstønadDto.java
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,3 @@ | ||
package no.nav.foreldrepenger.kontrakter.fpsak.tilkjentytelse; | ||
|
||
public record TilkjentYtelseEngangsstønadDto(Long beregnetTilkjentYtelse) {} |
11 changes: 11 additions & 0 deletions
11
.../java/no/nav/foreldrepenger/kontrakter/fpsak/tilkjentytelse/TilkjentYtelsePeriodeDto.java
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,11 @@ | ||
package no.nav.foreldrepenger.kontrakter.fpsak.tilkjentytelse; | ||
|
||
import jakarta.validation.Valid; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
import java.time.LocalDate; | ||
|
||
public record TilkjentYtelsePeriodeDto(@NotNull LocalDate fom, | ||
@NotNull LocalDate tom, | ||
Integer dagsats, | ||
@Valid @NotNull TilkjentYtelseAndelDto[] andeler) {} |
19 changes: 19 additions & 0 deletions
19
.../java/no/nav/foreldrepenger/kontrakter/fpsak/tilkjentytelse/kodeverk/Aktivitetstatus.java
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,19 @@ | ||
package no.nav.foreldrepenger.kontrakter.fpsak.tilkjentytelse.kodeverk; | ||
|
||
public enum Aktivitetstatus { | ||
ARBEIDSAVKLARINGSPENGER, | ||
ARBEIDSTAKER, | ||
DAGPENGER, | ||
FRILANSER, | ||
MILITÆR_ELLER_SIVIL, | ||
SELVSTENDIG_NÆRINGSDRIVENDE, | ||
KOMBINERT_AT_FL, | ||
KOMBINERT_AT_SN, | ||
KOMBINERT_FL_SN, | ||
KOMBINERT_AT_FL_SN, | ||
BRUKERS_ANDEL, | ||
KUN_YTELSE, | ||
TTLSTØTENDE_YTELSE, | ||
VENTELØNN_VARTPENGER, | ||
UDEFINERT, | ||
} |