@@ -50,8 +50,6 @@ import no.nav.dagpenger.inntekt.oppslag.OppslagClient
5050import no.nav.dagpenger.inntekt.rpc.InntektGrpcServer
5151import no.nav.dagpenger.inntekt.subsumsjonbrukt.KafkaSubsumsjonBruktDataConsumer
5252import no.nav.dagpenger.inntekt.subsumsjonbrukt.Vaktmester
53- import no.nav.dagpenger.inntekt.v1.InntektNotAuthorizedException
54- import no.nav.dagpenger.inntekt.v1.klassifisertInntekt
5553import no.nav.dagpenger.inntekt.v1.opptjeningsperiodeApi
5654import no.nav.dagpenger.inntekt.v1.spesifisertInntekt
5755import no.nav.dagpenger.inntekt.v1.uklassifisertInntekt
@@ -194,16 +192,6 @@ fun Application.inntektApi(
194192 )
195193 call.respond(HttpStatusCode .NotFound , problem)
196194 }
197- exception<InntektNotAuthorizedException > { cause ->
198- LOGGER .warn(" Request failed!" , cause)
199- val problem = Problem (
200- type = URI (" urn:dp:error:inntekt" ),
201- title = " AktørId i request stemmer ikke med aktørId på inntekten du spør etter." ,
202- detail = cause.message,
203- status = HttpStatusCode .Unauthorized .value
204- )
205- call.respond(HttpStatusCode .Unauthorized , problem)
206- }
207195 exception<IllegalInntektIdException > { cause ->
208196 LOGGER .warn(" Request failed!" , cause)
209197 val problem = Problem (
@@ -285,7 +273,6 @@ fun Application.inntektApi(
285273 route(" /v1" ) {
286274 route(" /inntekt" ) {
287275 spesifisertInntekt(behandlingsInntektsGetter)
288- klassifisertInntekt(inntektskomponentHttpClient, inntektStore)
289276 uklassifisertInntekt(inntektskomponentHttpClient, inntektStore, oppslagClient)
290277 }
291278 opptjeningsperiodeApi(inntektStore)
0 commit comments