Skip to content

Commit

Permalink
TFP-5719: Kontrakt med status på manglende / mottatte inntektsmelding… (
Browse files Browse the repository at this point in the history
#525)

TFP-5719: Kontrakt med status på manglende / mottatte inntektsmeldinger for formidling til å bruke i brev
  • Loading branch information
pekern authored Mar 5, 2024
1 parent f39aaf7 commit 983816d
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package no.nav.foreldrepenger.kontrakter.fpsak.inntektsmeldinger;

import jakarta.validation.Valid;
import jakarta.validation.constraints.DecimalMax;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.Digits;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;

import java.math.BigDecimal;
import java.util.List;

public record ArbeidsforholdInntektsmeldinger(@NotNull List<@Valid @NotNull ArbeidsforholdInntektsmelding> arbeidsforholdInntektsmelding) {

public record ArbeidsforholdInntektsmelding(@NotNull @Pattern(regexp = "\\d{9}|\\d{13}") String arbeidsgiverIdent,
@NotNull @Digits(integer = 5, fraction = 2) @DecimalMin("0.00") @DecimalMax("100.00") BigDecimal stillingsprosent,
@NotNull Boolean erInntektsmeldingMottatt) {}
}

0 comments on commit 983816d

Please sign in to comment.