Skip to content

Commit

Permalink
TFP-3573 Utvider med utbetalingsgrad på TilkjentYtelseDagytelseDto fo… (
Browse files Browse the repository at this point in the history
#480)

TFP-3573 Utvider med utbetalingsgrad på TilkjentYtelseDagytelseDto for muligheten til å kun bruke tilkjent ytelse for svp innvilgelse brev
  • Loading branch information
AnjaAalerud authored Nov 1, 2023
1 parent c6106ab commit 6023c1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public record TilkjentYtelseAndelDto(@Pattern(regexp = "\\d{9}|\\d{13}") String
@Min(0) @Max(Integer.MAX_VALUE) Integer tilSoker,
@NotNull @Valid Aktivitetstatus aktivitetstatus,
@Pattern(regexp = "^[\\p{Graph}\\p{Space}\\p{Sc}\\p{L}\\p{M}\\p{N}]+$") String arbeidsforholdId,
@Valid @Digits(integer = 8, fraction = 2) @DecimalMin("0.00") @DecimalMax("10000000.00") BigDecimal stillingsprosent) {}
@Valid @Digits(integer = 8, fraction = 2) @DecimalMin("0.00") @DecimalMax("10000000.00") BigDecimal stillingsprosent,
@Valid @Digits(integer = 8, fraction = 2) @DecimalMin("0.00") @DecimalMax("10000000.00") BigDecimal utbetalingsgrad) {}

public enum Aktivitetstatus {
ARBEIDSAVKLARINGSPENGER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class TilkjentYtelseDagytelseDtoTest {
void testRoundtrip() throws JsonProcessingException {
var andelRequest = new TilkjentYtelseDagytelseDto.TilkjentYtelseAndelDto("999999999",
200000, 100000, TilkjentYtelseDagytelseDto.Aktivitetstatus.ARBEIDSTAKER,
"arb001", BigDecimal.valueOf(100));
"arb001", BigDecimal.valueOf(100), BigDecimal.valueOf(100));
var periodeRequest = new TilkjentYtelseDagytelseDto.TilkjentYtelsePeriodeDto(LocalDate.now(), LocalDate.now().plusDays(10), 0,
Collections.singletonList(
andelRequest));
Expand All @@ -47,5 +47,6 @@ void testRoundtrip() throws JsonProcessingException {
assertThat(andelResponse.refusjon()).isEqualTo(andelRequest.refusjon());
assertThat(andelResponse.tilSoker()).isEqualTo(andelRequest.tilSoker());
assertThat(andelResponse.stillingsprosent()).isEqualByComparingTo(andelRequest.stillingsprosent());
assertThat(andelResponse.utbetalingsgrad()).isEqualByComparingTo(andelRequest.utbetalingsgrad());
}
}

0 comments on commit 6023c1f

Please sign in to comment.