TP-51453 | PSEC-1143 | Sohan Reddy | Rewards kong migration (#9122)

This commit is contained in:
Sohan Reddy Atukula
2023-12-29 17:30:49 +05:30
committed by GitHub
parent 7a38df1b47
commit 5f7ca8cecb
2 changed files with 8 additions and 5 deletions

View File

@@ -101,9 +101,10 @@ interface RetrofitService {
): Response<GenericResponse<CSATResponse>>
@POST("/rewards/kyc/verify-kyc")
suspend fun getKuberKycVerifyPollingDetails(
@Body kycVerifyRequest: TdsKycVerifyRequest?
@POST("/reward-service/kyc/verify-kyc")
suspend fun getKycVerifyPollingDetails(
@Body kycVerifyRequest: TdsKycVerifyRequest?,
@Header("X-Target") header: String
): Response<GenericResponse<KycCheckPollingConfigResponse>>
@GET("/rewards/verify/poll-details")

View File

@@ -7,6 +7,7 @@
package com.navi.rr.tds.repo
import com.navi.common.model.ModuleNameV2
import com.navi.common.network.models.RepoResult
import com.navi.common.network.retrofit.ResponseCallback
import com.navi.rr.network.di.SuperAppRetrofitForRR
@@ -24,8 +25,9 @@ class TdsRepository @Inject constructor(@SuperAppRetrofitForRR private val super
suspend fun fetchTDSKycVerifyPollingConfig(kycVerifyRequest: TdsKycVerifyRequest?): RepoResult<KycCheckPollingConfigResponse> {
return apiResponseCallback(
superAppRetrofitService.getKuberKycVerifyPollingDetails(
kycVerifyRequest
superAppRetrofitService.getKycVerifyPollingDetails(
kycVerifyRequest,
ModuleNameV2.REWARDS.name
)
)
}