Updated on 2026-08-14

This commit is contained in:
Tangem 2025-12-17 14:54:30 +04:00
parent ff024393f9
commit 32c24cc0bb
2 changed files with 8 additions and 3 deletions

View file

@ -5,5 +5,10 @@ import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class CheckCustomerWalletResponse(
@Json(name = "id") val id: String?,
)
@Json(name = "result") val result: Result?,
@Json(name = "error") val error: String?,
) {
data class Result(
@Json(name = "id") val id: String?,
)
}

View file

@ -181,7 +181,7 @@ internal class DefaultOnboardingRepository @Inject constructor(
customerWalletId = userWalletId.stringValue,
)
}.map { response ->
val id = response.id
val id = response.result?.id
val isPaeraCustomer = !id.isNullOrEmpty()
tangemPayStorage.storeCheckCustomerWalletResult(userWalletId = userWalletId, isPaeraCustomer)
isPaeraCustomer