NTP-933 | X-target and endpoint changes for objective API (#11813)
This commit is contained in:
@@ -39,3 +39,7 @@ enum class ModuleName {
|
||||
KRUZ_PROXY,
|
||||
CDS // for device data
|
||||
}
|
||||
|
||||
enum class XTarget {
|
||||
MERLIN
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ interface RetrofitService {
|
||||
@Query("userEntered") userEntered: Boolean?
|
||||
): Response<GenericResponse<LeaderboardListResponse>>
|
||||
|
||||
@GET("reward-service/reward/info/objective")
|
||||
@GET("merlin/reward/info/objective")
|
||||
suspend fun getNudgeRewardObjective(
|
||||
@Header("X-Target") target: String?,
|
||||
@Query("objective") objective: String?,
|
||||
|
||||
@@ -10,6 +10,7 @@ package com.navi.rr.scratchcard.repo
|
||||
import com.navi.common.forge.model.ScreenDefinition
|
||||
import com.navi.common.model.ModuleName
|
||||
import com.navi.common.model.ModuleNameV2
|
||||
import com.navi.common.model.XTarget
|
||||
import com.navi.common.network.models.RepoResult
|
||||
import com.navi.common.utils.Constants.GZIP
|
||||
import com.navi.rr.common.network.retrofit.ResponseHandler
|
||||
@@ -34,7 +35,7 @@ constructor(
|
||||
retrofitService.getNudgeRewardObjective(
|
||||
product = product,
|
||||
objective = objective,
|
||||
target = ModuleName.REWARDS.name
|
||||
target = XTarget.MERLIN.name
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user