-
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.
Lagt til feilrapportering i tjeneste hentGrunnlag i bidrag-grunnlag (#45
- Loading branch information
1 parent
c0f0676
commit 865bd74
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
bidrag-domene/src/main/kotlin/no/nav/bidrag/domene/enums/grunnlag/HentGrunnlagFeiltype.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,9 @@ | ||
package no.nav.bidrag.domene.enums.grunnlag | ||
|
||
enum class HentGrunnlagFeiltype { | ||
TJENESTE_UTILGJENGELIG, // 503 | ||
FEIL_I_TJENESTE, // 5xx | ||
FEIL_I_REQUEST, // 4xx | ||
PERSON_ID_UGYLDIG, | ||
UKJENT_FEIL, | ||
} |
21 changes: 21 additions & 0 deletions
21
...c/main/kotlin/no/nav/bidrag/transport/behandling/grunnlag/response/FeilrapporteringDto.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,21 @@ | ||
package no.nav.bidrag.transport.behandling.grunnlag.response | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import no.nav.bidrag.domene.enums.grunnlag.GrunnlagRequestType | ||
import no.nav.bidrag.domene.enums.grunnlag.HentGrunnlagFeiltype | ||
import java.time.LocalDate | ||
|
||
data class FeilrapporteringDto( | ||
@Schema(description = "Type grunnlag") | ||
val grunnlagstype: GrunnlagRequestType, | ||
@Schema(description = "Id til personen grunnlaget er forsøkt hentet for") | ||
val personId: String?, | ||
@Schema(description = "Periode fra-dato") | ||
val periodeFra: LocalDate?, | ||
@Schema(description = "Periode til-dato") | ||
val periodeTil: LocalDate?, | ||
@Schema(description = "Type feil") | ||
val feiltype: HentGrunnlagFeiltype, | ||
@Schema(description = "Feilmelding") | ||
val feilmelding: String, | ||
) |
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