Skip to content

Commit

Permalink
Legger til uthenting av landskoder fra kodeverk (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
simhos authored Jan 16, 2024
1 parent 18e89a2 commit cf459ba
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import java.util.concurrent.atomic.AtomicReference

private val kodeverkUrl = AtomicReference("")
const val POSTNUMMER = "Postnummer"
const val LANDKODER = "Landkoder"
const val SUMMERT_SKATTEGRUNNLAG = "Summert skattegrunnlag"
const val LOENNSBESKRIVELSE = "Loennsbeskrivelse"
const val YTELSEFRAOFFENTLIGE = "YtelseFraOffentligeBeskrivelse"
Expand All @@ -31,6 +32,8 @@ fun finnVisningsnavnSkattegrunnlag(fulltNavnInntektspost: String): String =

fun finnPoststedForPostnummer(postnummer: String): String? = finnVisningsnavn(postnummer, POSTNUMMER)

fun finnLandkodeForLandkoder(landkode: String): String? = finnVisningsnavn(landkode, LANDKODER)

fun finnVisningsnavnLønnsbeskrivelse(fulltNavnInntektspost: String): String =
finnVisningsnavn(fulltNavnInntektspost, LOENNSBESKRIVELSE) ?: ""

Expand Down

0 comments on commit cf459ba

Please sign in to comment.