Skip to content

Commit

Permalink
Lagt til feilrapportering i tjeneste hentGrunnlag i bidrag-grunnlag (#45
Browse files Browse the repository at this point in the history
)
  • Loading branch information
LarsOttoHaugen authored Jan 19, 2024
1 parent c0f0676 commit 865bd74
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
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,
}
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,
)
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ data class HentGrunnlagDto(
val barnetilsynListe: List<BarnetilsynGrunnlagDto>,
@Schema(description = "Periodisert liste over arbeidsforhold")
val arbeidsforholdListe: List<ArbeidsforholdGrunnlagDto>,
@Schema(description = "Liste over evt. feil rapportert under henting av grunnlag")
val feilrapporteringListe: List<FeilrapporteringDto>,
@Schema(description = "Hentet tidspunkt")
val hentetTidspunkt: LocalDateTime,
)

0 comments on commit 865bd74

Please sign in to comment.