Updated on 2026-08-14
This commit is contained in:
parent
5579cc1372
commit
a04992591a
24 changed files with 707 additions and 29 deletions
|
|
@ -0,0 +1,5 @@
|
|||
package com.tangem.domain.pay.model
|
||||
|
||||
enum class SetPinResult {
|
||||
SUCCESS, PIN_TOO_WEAK, DECRYPTION_ERROR, UNKNOWN_ERROR
|
||||
}
|
||||
|
|
@ -2,6 +2,7 @@ package com.tangem.domain.pay.repository
|
|||
|
||||
import arrow.core.Either
|
||||
import com.tangem.core.error.UniversalError
|
||||
import com.tangem.domain.pay.model.SetPinResult
|
||||
import com.tangem.domain.pay.model.TangemPayCardBalance
|
||||
import com.tangem.domain.pay.model.TangemPayCardDetails
|
||||
|
||||
|
|
@ -10,4 +11,6 @@ interface CardDetailsRepository {
|
|||
suspend fun getCardBalance(): Either<UniversalError, TangemPayCardBalance>
|
||||
|
||||
suspend fun revealCardDetails(): Either<UniversalError, TangemPayCardDetails>
|
||||
|
||||
suspend fun setPin(pin: String): Either<UniversalError, SetPinResult>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue