Skip to content

Commit

Permalink
🏷️ Legger til virksomhetsnummer i dokumentet til IM
Browse files Browse the repository at this point in the history
Co-authored-by: Trine Linderud <[email protected]>
  • Loading branch information
jonashas and trinelinderud committed Aug 13, 2024
1 parent c39bb02 commit b88d4d2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ class DokumentQuery(
arbeidsforholdId =
this.path("arbeidsforholdId")
.takeUnless { it.isMissingOrNull() }?.asText(),
virksomhetsnummer =
this.path("virksomhetsnummer")
.takeUnless { it.isMissingOrNull() }?.asText(),
begrunnelseForReduksjonEllerIkkeUtbetalt =
this.path("begrunnelseForReduksjonEllerIkkeUtbetalt")
.takeUnless { it.isMissingOrNull() }?.asText(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ data class Svar(

data class DokumentInntektsmelding(
val arbeidsforholdId: String?,
val virksomhetsnummer: String?,
val begrunnelseForReduksjonEllerIkkeUtbetalt: String?,
val bruttoUtbetalt: Double?,
val beregnetInntekt: Double?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ internal class DokumentQueryTest : AbstractGraphQLApiTest() {
fnr: "$FØDSELSNUMMER"
) {
arbeidsforholdId,
virksomhetsnummer,
begrunnelseForReduksjonEllerIkkeUtbetalt,
bruttoUtbetalt,
beregnetInntekt,
Expand Down Expand Up @@ -312,7 +313,7 @@ internal class DokumentQueryTest : AbstractGraphQLApiTest() {
)
}

assertEquals(16, dokument.size())
assertEquals(17, dokument.size())
assertTrue(dokument["bruttoUtbetalt"].isNull)
assertEquals(35000.0, dokument["beregnetInntekt"].asDouble())
assertEquals("2023-08-01", dokument["foersteFravaersdag"].asText())
Expand Down
1 change: 1 addition & 0 deletions spesialist-api/src/test/schema_til_bruk_fra_tester.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ type DokumentInntektsmelding {
naerRelasjon: Boolean
opphoerAvNaturalytelser: [OpphoerAvNaturalytelse!]
refusjon: Refusjon
virksomhetsnummer: String
}

type EndringIRefusjon {
Expand Down

0 comments on commit b88d4d2

Please sign in to comment.