Updated on 2026-08-14
This commit is contained in:
parent
1f8386c05e
commit
0bfc7eee60
11 changed files with 112 additions and 9 deletions
|
|
@ -31,6 +31,8 @@ sealed class TangemPayTxHistoryItem {
|
|||
val status: Status,
|
||||
val enrichedMerchantIconUrl: String?,
|
||||
val declinedReason: String?,
|
||||
val cardName: String? = null,
|
||||
val cardNumberLast4: String? = null,
|
||||
) : TangemPayTxHistoryItem()
|
||||
|
||||
@Serializable
|
||||
|
|
|
|||
|
|
@ -1,8 +1,11 @@
|
|||
package com.tangem.domain.tangempay.repository
|
||||
|
||||
import arrow.core.Either
|
||||
import com.tangem.domain.models.wallet.UserWalletId
|
||||
import com.tangem.domain.tangempay.model.TangemPayTxHistoryListBatchFlow
|
||||
import com.tangem.domain.tangempay.model.TangemPayTxHistoryListBatchingContext
|
||||
import com.tangem.domain.visa.error.VisaApiError
|
||||
import com.tangem.domain.visa.model.TangemPayTxHistoryItem
|
||||
|
||||
interface TangemPayTxHistoryRepository {
|
||||
fun getTxHistoryBatchFlow(
|
||||
|
|
@ -10,4 +13,10 @@ interface TangemPayTxHistoryRepository {
|
|||
batchSize: Int,
|
||||
context: TangemPayTxHistoryListBatchingContext,
|
||||
): TangemPayTxHistoryListBatchFlow
|
||||
|
||||
/** Loads a single transaction via `GET v1/customer/transactions/{transactionId}`. */
|
||||
suspend fun getTransaction(
|
||||
userWalletId: UserWalletId,
|
||||
transactionId: String,
|
||||
): Either<VisaApiError, TangemPayTxHistoryItem?>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue