Updated on 2026-08-14

This commit is contained in:
Tangem 2026-07-06 01:17:12 -07:00
parent 3b6eeb7535
commit 8b677a8e6b
25 changed files with 1149 additions and 17 deletions

View file

@ -0,0 +1,11 @@
package com.tangem.domain.pay.repository
import arrow.core.Either
import com.tangem.domain.models.account.TangemPayTariffPlanTransition
import com.tangem.domain.models.wallet.UserWalletId
import com.tangem.domain.visa.error.VisaApiError
interface TangemPayTariffPlanTransitionsRepository {
suspend fun getTransitions(userWalletId: UserWalletId): Either<VisaApiError, List<TangemPayTariffPlanTransition>>
}

View file

@ -0,0 +1,15 @@
package com.tangem.domain.pay.usecase
import arrow.core.Either
import com.tangem.domain.models.account.TangemPayTariffPlanTransition
import com.tangem.domain.models.wallet.UserWalletId
import com.tangem.domain.pay.repository.TangemPayTariffPlanTransitionsRepository
import com.tangem.domain.visa.error.VisaApiError
class GetTangemPayTariffPlanTransitionsUseCase(
private val repository: TangemPayTariffPlanTransitionsRepository,
) {
suspend operator fun invoke(
userWalletId: UserWalletId,
): Either<VisaApiError, List<TangemPayTariffPlanTransition>> = repository.getTransitions(userWalletId)
}