-
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.
Bruk type wrappers fra utils-pakken (#491)
* Bruk type wrappers fra utils-pakken * Fiks integrasjonstest * Fiks nok en integrasjonstest
- Loading branch information
Showing
19 changed files
with
68 additions
and
418 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
10 changes: 0 additions & 10 deletions
10
...lin/no/nav/helsearbeidsgiver/inntektsmelding/api/validation/BehandlingsdagerConstraint.kt
This file was deleted.
Oops, something went wrong.
6 changes: 5 additions & 1 deletion
6
...lin/no/nav/helsearbeidsgiver/inntektsmelding/api/validation/IdentitetsnummerConstraint.kt
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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
package no.nav.helsearbeidsgiver.inntektsmelding.api.validation | ||
|
||
import no.nav.helsearbeidsgiver.utils.wrapper.Fnr | ||
import org.valiktor.Validator | ||
|
||
object IdentitetsnummerConstraint : CustomConstraint | ||
fun <E> Validator<E>.Property<String?>.isIdentitetsnummer() = | ||
this.validate(IdentitetsnummerConstraint) { FoedselsNrValidator.isValid(it) } | ||
this.validate(IdentitetsnummerConstraint) { | ||
require(it != null) | ||
Fnr.erGyldig(it) | ||
} |
36 changes: 0 additions & 36 deletions
36
...kotlin/no/nav/helsearbeidsgiver/inntektsmelding/api/validation/IsValidBehandlingsdager.kt
This file was deleted.
Oops, something went wrong.
6 changes: 5 additions & 1 deletion
6
.../no/nav/helsearbeidsgiver/inntektsmelding/api/validation/OrganisasjonsnummerConstraint.kt
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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
package no.nav.helsearbeidsgiver.inntektsmelding.api.validation | ||
|
||
import no.nav.helsearbeidsgiver.utils.wrapper.Orgnr | ||
import org.valiktor.Validator | ||
|
||
object OrganisasjonsnummerConstraint : CustomConstraint | ||
fun <E> Validator<E>.Property<String?>.isOrganisasjonsnummer() = | ||
this.validate(OrganisasjonsnummerConstraint) { OrganisasjonsnummerValidator.isValid(it) } | ||
this.validate(OrganisasjonsnummerConstraint) { | ||
require(it != null) | ||
Orgnr.erGyldig(it) | ||
} |
105 changes: 0 additions & 105 deletions
105
api/src/main/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/api/validation/Validators.kt
This file was deleted.
Oops, something went wrong.
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
62 changes: 0 additions & 62 deletions
62
.../no/nav/helsearbeidsgiver/inntektsmelding/api/validation/IsValidBehandlingsdagerKtTest.kt
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
felles/src/main/kotlin/no/nav/helsearbeidsgiver/felles/TypeWrappers.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.