Skip to content

Commit 83182ce

Browse files
committed
chore: fix conflict
1 parent 037c1ff commit 83182ce

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsyncImpl.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,9 @@ class CardServiceAsyncImpl internal constructor(private val clientOptions: Clien
586586
}
587587
}
588588

589-
private val errorHandler: Handler<JsonValue> = errorHandler(clientOptions.jsonMapper)
590-
private val embedHandler: Handler<String> = stringHandler().withErrorHandler(errorHandler)
589+
private val errorHandler: Handler<HttpResponse> =
590+
errorHandler(errorBodyHandler(clientOptions.jsonMapper))
591+
private val embedHandler: Handler<String> = stringHandler()
591592

592593
override fun getEmbedHtml(
593594
params: CardGetEmbedHtmlParams,
@@ -614,7 +615,7 @@ class CardServiceAsyncImpl internal constructor(private val clientOptions: Clien
614615
.build()
615616
return clientOptions.httpClient.executeAsync(request, requestOptions).thenApply { response
616617
->
617-
response.let { embedHandler.handle(it) }
618+
errorHandler.handle(response).let { embedHandler.handle(it) }
618619
}
619620
}
620621

lithic-java-core/src/main/kotlin/com/lithic/api/services/async/EventServiceAsyncImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
package com.lithic.api.services.async
44

55
import com.lithic.api.core.ClientOptions
6+
import com.lithic.api.core.JsonValue
67
import com.lithic.api.core.RequestOptions
78
import com.lithic.api.core.checkRequired
89
import com.lithic.api.core.handlers.emptyHandler
9-
1010
import com.lithic.api.core.handlers.errorBodyHandler
1111
import com.lithic.api.core.handlers.errorHandler
1212
import com.lithic.api.core.handlers.jsonHandler

lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardServiceImpl.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,9 @@ class CardServiceImpl internal constructor(private val clientOptions: ClientOpti
522522
}
523523
}
524524

525-
private val errorHandler: Handler<JsonValue> = errorHandler(clientOptions.jsonMapper)
526-
private val embedHandler: Handler<String> = stringHandler().withErrorHandler(errorHandler)
525+
private val errorHandler: Handler<HttpResponse> =
526+
errorHandler(errorBodyHandler(clientOptions.jsonMapper))
527+
private val embedHandler: Handler<String> = stringHandler()
527528

528529
override fun getEmbedHtml(
529530
params: CardGetEmbedHtmlParams,
@@ -549,7 +550,7 @@ class CardServiceImpl internal constructor(private val clientOptions: ClientOpti
549550
.putHeader("Accept", "text/html")
550551
.build()
551552
return clientOptions.httpClient.execute(request, requestOptions).let { response ->
552-
response.let { embedHandler.handle(it) }
553+
errorHandler.handle(response).let { embedHandler.handle(it) }
553554
}
554555
}
555556

lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/EventServiceImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
package com.lithic.api.services.blocking
44

55
import com.lithic.api.core.ClientOptions
6+
import com.lithic.api.core.JsonValue
67
import com.lithic.api.core.RequestOptions
78
import com.lithic.api.core.checkRequired
89
import com.lithic.api.core.handlers.emptyHandler
9-
1010
import com.lithic.api.core.handlers.errorBodyHandler
1111
import com.lithic.api.core.handlers.errorHandler
1212
import com.lithic.api.core.handlers.jsonHandler

0 commit comments

Comments
 (0)