Updated on 2026-08-14

This commit is contained in:
Tangem 2025-10-29 19:59:47 +05:00
parent 86b040e421
commit 690f6689dc
10 changed files with 28 additions and 26 deletions

View file

@ -28,8 +28,7 @@ internal class TangemPayTxHistoryItemConverter(moshi: Moshi) :
return TangemPayTxHistoryItem.Spend(
id = id,
jsonRepresentation = spendAdapter.toJson(spend),
// If postedAt is null, it means transaction wasn't posted and was likely declined. Use authorizedAt
date = spend.postedAt ?: spend.authorizedAt,
date = spend.authorizedAt,
amount = spend.amount,
currency = Currency.getInstance(spend.currency),
enrichedMerchantName = spend.enrichedMerchantName,