-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DIGDIR: Legger til nytt POST endepunkt for å hente ut språk (#1603)
- Loading branch information
1 parent
da2eb77
commit 7da823a
Showing
4 changed files
with
84 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
@Deprecated | ||
public class Kontaktinformasjon { | ||
@JsonProperty("epostadresse") | ||
private String epostadresse = "[email protected]"; | ||
|
31 changes: 31 additions & 0 deletions
31
mocks/digdir-mock/src/main/java/no/nav/digdir/Kontaktinformasjoner.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,31 @@ | ||
package no.nav.digdir; | ||
|
||
import java.util.Map; | ||
|
||
public record Kontaktinformasjoner(Map<String, Kontaktinformasjon> personer, Map<String, FeilKode> feil) { | ||
|
||
public record Kontaktinformasjon(String epostadresse, | ||
boolean kanVarsles, | ||
String mobiltelefonnummer, | ||
String personident, | ||
boolean reservert, | ||
String spraak) { | ||
public Kontaktinformasjon(String spraak) { | ||
this("[email protected]", | ||
true, | ||
"99999999", | ||
null, | ||
false, | ||
spraak); | ||
} | ||
} | ||
|
||
public enum FeilKode { | ||
person_ikke_funnet, | ||
skjermet, | ||
fortrolig_adresse, | ||
strengt_fortrolig_adresse, | ||
strengt_fortrolig_utenlandsk_adresse, | ||
noen_andre | ||
} | ||
} |
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