Updated on 2026-08-14
This commit is contained in:
parent
ff024393f9
commit
32c24cc0bb
2 changed files with 8 additions and 3 deletions
|
|
@ -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?,
|
||||
)
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue