-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Svp søknad går mot nytt endepunkt med modernisert kontrakt (#2729)
- Loading branch information
1 parent
9f9c482
commit 9f6fcf2
Showing
33 changed files
with
460 additions
and
306 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
.../java/no/nav/foreldrepenger/selvbetjening/kontrakt/innsending/v2/dto/AnnenInntektDto.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,34 @@ | ||
package no.nav.foreldrepenger.selvbetjening.kontrakt.innsending.v2.dto; | ||
|
||
import static com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY; | ||
import static com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME; | ||
import static no.nav.foreldrepenger.common.domain.validation.InputValideringRegex.FRITEKST; | ||
|
||
import java.time.LocalDate; | ||
|
||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import com.neovisionaries.i18n.CountryCode; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Pattern; | ||
import no.nav.foreldrepenger.common.domain.felles.opptjening.AnnenOpptjeningType; | ||
|
||
@JsonTypeInfo(use = NAME, include = PROPERTY, property = "type") | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = AnnenInntektDto.Annet.class, names = { "ETTERLØNN_SLUTTPAKKE", "MILITÆR_ELLER_SIVILTJENESTE" }), | ||
@JsonSubTypes.Type(value = AnnenInntektDto.Utlandet.class, name = "JOBB_I_UTLANDET") | ||
}) | ||
public interface AnnenInntektDto { | ||
LocalDate fom(); | ||
LocalDate tom(); | ||
|
||
record Annet(@NotNull AnnenOpptjeningType type, @NotNull LocalDate fom, LocalDate tom) implements AnnenInntektDto { | ||
} | ||
|
||
record Utlandet(@NotNull CountryCode land, | ||
@NotNull @Pattern(regexp = FRITEKST) String arbeidsgiverNavn, | ||
@NotNull LocalDate fom, | ||
LocalDate tom) implements AnnenInntektDto { | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
.../main/java/no/nav/foreldrepenger/selvbetjening/kontrakt/innsending/v2/dto/FrilansDto.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,8 @@ | ||
package no.nav.foreldrepenger.selvbetjening.kontrakt.innsending.v2.dto; | ||
|
||
import java.time.LocalDate; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record FrilansDto(boolean jobberFremdelesSomFrilans, @NotNull LocalDate oppstart) { | ||
} |
30 changes: 30 additions & 0 deletions
30
...c/main/java/no/nav/foreldrepenger/selvbetjening/kontrakt/innsending/v2/dto/NæringDto.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,30 @@ | ||
package no.nav.foreldrepenger.selvbetjening.kontrakt.innsending.v2.dto; | ||
|
||
import static no.nav.foreldrepenger.common.domain.validation.InputValideringRegex.FRITEKST; | ||
|
||
import java.time.LocalDate; | ||
|
||
import com.neovisionaries.i18n.CountryCode; | ||
|
||
import jakarta.validation.Valid; | ||
import jakarta.validation.constraints.Digits; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Pattern; | ||
import no.nav.foreldrepenger.common.domain.Orgnummer; | ||
import no.nav.foreldrepenger.common.domain.felles.opptjening.Virksomhetstype; | ||
|
||
public record NæringDto(@Valid @NotNull LocalDate fom, | ||
@Valid LocalDate tom, | ||
@Valid Virksomhetstype næringstype, | ||
@Pattern(regexp = FRITEKST) String navnPåNæringen, | ||
@Valid Orgnummer organisasjonsnummer, | ||
@Digits(integer = 9, fraction = 0) Integer næringsinntekt, | ||
boolean registrertINorge, | ||
CountryCode registrertILand, | ||
boolean harBlittYrkesaktivILøpetAvDeTreSisteFerdigliknedeÅrene, | ||
LocalDate oppstartsdato, | ||
boolean hattVarigEndringAvNæringsinntektSiste4Kalenderår, | ||
LocalDate varigEndringDato, | ||
@Digits(integer = 9, fraction = 0) Integer varigEndringInntektEtterEndring, | ||
@Pattern(regexp = FRITEKST) String varigEndringBeskrivelse) { | ||
} |
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
8 changes: 8 additions & 0 deletions
8
...oreldrepenger/selvbetjening/kontrakt/innsending/v2/dto/svangerskapspenger/BarnSvpDto.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,8 @@ | ||
package no.nav.foreldrepenger.selvbetjening.kontrakt.innsending.v2.dto.svangerskapspenger; | ||
|
||
import java.time.LocalDate; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record BarnSvpDto(@NotNull LocalDate termindato, LocalDate fødselsdato) { | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...skapspenger/DelvisTilretteleggingDto.java → ...ettelegging/DelvisTilretteleggingDto.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
2 changes: 1 addition & 1 deletion
2
...gerskapspenger/HelTilretteleggingDto.java → ...ilrettelegging/HelTilretteleggingDto.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
2 changes: 1 addition & 1 deletion
2
...rskapspenger/IngenTilretteleggingDto.java → ...rettelegging/IngenTilretteleggingDto.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
2 changes: 1 addition & 1 deletion
2
...vangerskapspenger/TilretteleggingDto.java → ...r/tilrettelegging/TilretteleggingDto.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
Oops, something went wrong.