-
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.
Merge pull request #4530 from navikt/betalingsinformasjon-refusjonkrav
Betalingsinformasjon refusjonkrav
- Loading branch information
Showing
19 changed files
with
217 additions
and
5 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
common/domain/src/main/kotlin/no/nav/mulighetsrommet/domain/dto/Kid.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package no.nav.mulighetsrommet.domain.dto | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
private val KID_REGEX = "^\\d{0,25}$".toRegex() | ||
|
||
@Serializable | ||
@JvmInline | ||
value class Kid(val value: String) { | ||
init { | ||
require(KID_REGEX.matches(value)) { | ||
"'Kid' må være på formatet '$KID_REGEX'" | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
common/domain/src/main/kotlin/no/nav/mulighetsrommet/domain/dto/Kontonummer.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package no.nav.mulighetsrommet.domain.dto | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
private val KONTONUMMER_REGEX = "^\\d{11}$".toRegex() | ||
|
||
@Serializable | ||
@JvmInline | ||
value class Kontonummer(val value: String) { | ||
init { | ||
require(KONTONUMMER_REGEX.matches(value)) { | ||
"'Kontonummer' må være på formatet '${KONTONUMMER_REGEX}'" | ||
} | ||
} | ||
} |
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,19 @@ | ||
import React from "react"; | ||
|
||
export function Definisjon({ | ||
label, | ||
children, | ||
className, | ||
}: { | ||
label: string; | ||
className?: string; | ||
children: React.ReactNode; | ||
}) { | ||
const styles = "flex justify-between"; | ||
return ( | ||
<div className={className ? `${styles} ${className}` : styles} key={label}> | ||
<dt>{label}:</dt> | ||
<dd className="font-bold text-right">{children}</dd> | ||
</div> | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ import { Separator } from "~/components/Separator"; | |
import { Refusjonskrav } from "~/domene/domene"; | ||
import { checkValidToken } from "~/auth/auth.server"; | ||
import { loadRefusjonskrav } from "~/loaders/loadRefusjonskrav"; | ||
import { formaterKontoNummer } from "@mr/frontend-common/utils/utils"; | ||
import { ArrangorflateService, ArrangorflateTilsagn } from "@mr/api-client"; | ||
import { RefusjonskravDetaljer } from "~/components/refusjonskrav/RefusjonskravDetaljer"; | ||
|
||
|
@@ -64,8 +65,14 @@ export default function RefusjonskravKvittering() { | |
<Definisjonsliste | ||
title="Betalingsinformasjon" | ||
definitions={[ | ||
{ key: "Kontonummer", value: "1234.56.78901" }, | ||
{ key: "KID-nummer", value: "123456701123453" }, | ||
{ | ||
key: "Kontonummer", | ||
value: formaterKontoNummer(krav.betalingsinformasjon.kontonummer), | ||
}, | ||
{ | ||
key: "KID-nummer", | ||
value: krav.betalingsinformasjon.kid!, | ||
}, | ||
{ key: "Refusjonskravansvarlig", value: "Ingvild Pettersen" }, | ||
{ key: "E-postadresse", value: "[email protected]" }, | ||
]} | ||
|
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
Binary file not shown.
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
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.