NTP-47331 | Added retry mechanism in web redirection api (#15371)

This commit is contained in:
Kamalesh Garnayak
2025-03-12 14:35:36 +05:30
committed by GitHub
parent b78b157ff8
commit 05d65a5e1a

View File

@@ -36,6 +36,7 @@ import com.navi.common.network.models.LitmusExperimentsRequest
import com.navi.common.network.models.RedirectionAuthTokenRequest
import com.navi.common.network.models.RedirectionAuthTokenResponse
import com.navi.common.network.models.SuccessResponse
import com.navi.common.network.retry.annotations.RetryPolicy
import com.navi.common.payments.arc.model.network.ArcExactOfferRequest
import com.navi.common.payments.arc.model.network.ArcExactOfferResponse
import com.navi.common.payments.arc.model.network.ArcNudgeResponse
@@ -189,6 +190,7 @@ interface RetrofitService {
@Body experiments: LitmusExperimentsRequest,
): Response<List<LitmusExperimentResponse>>
@RetryPolicy(retryCount = 3)
@POST("/guardzilla/token-exchange/authorization-code")
suspend fun fetchTemporarySessionToken(
@Body request: RedirectionAuthTokenRequest