Skip to content

Commit

Permalink
TFP-5422: Opprett sak v2 fra fordel (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsladek authored Nov 20, 2023
1 parent ff6ad4c commit 9d4bd2e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package no.nav.foreldrepenger.kontrakter.fordel;

import jakarta.validation.Valid;
import jakarta.validation.constraints.Digits;
import jakarta.validation.constraints.NotNull;

public record OpprettSakV2Dto(@Digits(integer = 18, fraction = 0) String journalpostId,
@NotNull @Valid YtelseTypeDto ytelseType,
@NotNull @Digits(integer = 19, fraction = 0) String aktørId) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package no.nav.foreldrepenger.kontrakter.fordel;

import com.fasterxml.jackson.annotation.JsonProperty;

public enum YtelseTypeDto {
@JsonProperty("ES")
ENGANGSTØNAD,
@JsonProperty("FP")
FORELDREPENGER,
@JsonProperty("SVP")
SVANGERSKAPSPENGER
}

0 comments on commit 9d4bd2e

Please sign in to comment.