Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ import no.nav.dagpenger.inntekt.oppslag.OppslagClient
import no.nav.dagpenger.inntekt.rpc.InntektGrpcServer
import no.nav.dagpenger.inntekt.subsumsjonbrukt.KafkaSubsumsjonBruktDataConsumer
import no.nav.dagpenger.inntekt.subsumsjonbrukt.Vaktmester
import no.nav.dagpenger.inntekt.v1.InntektNotAuthorizedException
import no.nav.dagpenger.inntekt.v1.klassifisertInntekt
import no.nav.dagpenger.inntekt.v1.opptjeningsperiodeApi
import no.nav.dagpenger.inntekt.v1.spesifisertInntekt
import no.nav.dagpenger.inntekt.v1.uklassifisertInntekt
Expand Down Expand Up @@ -195,16 +193,6 @@ fun Application.inntektApi(
)
call.respond(HttpStatusCode.NotFound, problem)
}
exception<InntektNotAuthorizedException> { cause ->
LOGGER.warn("Request failed!", cause)
val problem = Problem(
type = URI("urn:dp:error:inntekt"),
title = "AktørId i request stemmer ikke med aktørId på inntekten du spør etter.",
detail = cause.message,
status = HttpStatusCode.Unauthorized.value
)
call.respond(HttpStatusCode.Unauthorized, problem)
}
exception<IllegalInntektIdException> { cause ->
LOGGER.warn("Request failed!", cause)
val problem = Problem(
Expand Down Expand Up @@ -286,7 +274,6 @@ fun Application.inntektApi(
route("/v1") {
route("/inntekt") {
spesifisertInntekt(behandlingsInntektsGetter)
klassifisertInntekt(inntektskomponentHttpClient, inntektStore)
uklassifisertInntekt(inntektskomponentHttpClient, inntektStore, oppslagClient)
}
opptjeningsperiodeApi(inntektStore)
Expand Down

This file was deleted.

This file was deleted.

Loading