-
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.
Forberede omlegging kodeverdier (#1858)
* Forberede omlegging * Klienter serialiserer som String ved kall til abakus * Rydde mer + deps * Eksplisitt liste klienter * Mer deps i migrerigner * Mer deps for tester * Siste dep som manglet
- Loading branch information
Showing
51 changed files
with
417 additions
and
395 deletions.
There are no files selected for viewing
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
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
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
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
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
66 changes: 0 additions & 66 deletions
66
...y/src/main/java/no/nav/foreldrepenger/abakus/registerdata/inntekt/sigrun/TekniskNavn.java
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
...main/java/no/nav/foreldrepenger/abakus/registerdata/inntekt/sigrun/TekniskNavnMapper.java
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,38 @@ | ||
package no.nav.foreldrepenger.abakus.registerdata.inntekt.sigrun; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import no.nav.abakus.iaygrunnlag.kodeverk.InntektspostType; | ||
|
||
public final class TekniskNavnMapper { | ||
|
||
static final String PERSONINNTEKT_LØNN = "personinntektLoenn"; | ||
static final String PERSONINNTEKT_BARE_PENSJONSDEL = "personinntektBarePensjonsdel"; | ||
static final String PERSONINNTEKT_NÆRING = "personinntektNaering"; | ||
static final String PERSONINNTEKT_FISKE_FANGST_FAMILIEBARNEHAGE = "personinntektFiskeFangstFamiliebarnehage"; | ||
static final String SVALBARD_LØNN_LØNNSTREKKORDNINGEN = "svalbardLoennLoennstrekkordningen"; | ||
static final String SVALBARD_PERSONINNTEKT_NÆRING = "svalbardPersoninntektNaering"; | ||
static final String LØNNSINNTEKT_MED_TRYGDEAVGIFTSPLIKT_OMFATTET_AV_LØNNSTREKKORDNINGEN = "loennsinntektMedTrygdeavgiftspliktOmfattetAvLoennstrekkordningen"; | ||
static final String SKATTEOPPGJØRSDATO = "skatteoppgjoersdato"; | ||
|
||
private static final Map<String, InntektspostType> SIGRUN_TIL_INNTEKTSPOST = Map.of( | ||
PERSONINNTEKT_LØNN, InntektspostType.LØNN, | ||
PERSONINNTEKT_BARE_PENSJONSDEL, InntektspostType.LØNN, | ||
PERSONINNTEKT_NÆRING, InntektspostType.SELVSTENDIG_NÆRINGSDRIVENDE, | ||
PERSONINNTEKT_FISKE_FANGST_FAMILIEBARNEHAGE, InntektspostType.NÆRING_FISKE_FANGST_FAMBARNEHAGE, | ||
SVALBARD_LØNN_LØNNSTREKKORDNINGEN, InntektspostType.LØNN, | ||
SVALBARD_PERSONINNTEKT_NÆRING, InntektspostType.SELVSTENDIG_NÆRINGSDRIVENDE, | ||
LØNNSINNTEKT_MED_TRYGDEAVGIFTSPLIKT_OMFATTET_AV_LØNNSTREKKORDNINGEN, InntektspostType.LØNN | ||
); | ||
|
||
private static final List<String> SIGRUN_TIL_NULL = List.of(SKATTEOPPGJØRSDATO); | ||
|
||
public static InntektspostType fraSigrunNavn(String tekniskNavn) { | ||
if (tekniskNavn == null || SIGRUN_TIL_NULL.contains(tekniskNavn)) { | ||
return null; | ||
} | ||
return SIGRUN_TIL_INNTEKTSPOST.get(tekniskNavn); | ||
} | ||
|
||
} |
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
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
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
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
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
Oops, something went wrong.