Updated on 2026-08-14

This commit is contained in:
Tangem 2026-07-23 06:38:34 -07:00
parent eda701fed9
commit 06cb9620e9
13 changed files with 64 additions and 41 deletions

View file

@ -87,6 +87,9 @@ data class TangemPayTariffPlan(
@SerialName("BANNER")
BANNER,
@SerialName("BACKGROUND")
BACKGROUND,
@SerialName("UNKNOWN")
UNKNOWN,
;
@ -96,6 +99,7 @@ data class TangemPayTariffPlan(
"THUMBNAIL" -> THUMBNAIL
"MAIN" -> MAIN
"BANNER" -> BANNER
"BACKGROUND" -> BACKGROUND
else -> UNKNOWN
}
}

View file

@ -72,4 +72,7 @@ val TangemPayCard.thumbnailUrl: String?
get() = images.firstOrNull { it.type == TangemPayTariffPlan.Image.Type.THUMBNAIL }?.url
val TangemPayCard.mainImageUrl: String?
get() = images.firstOrNull { it.type == TangemPayTariffPlan.Image.Type.MAIN }?.url
get() = images.firstOrNull { it.type == TangemPayTariffPlan.Image.Type.MAIN }?.url
val TangemPayCard.backgroundImageUrl: String?
get() = images.firstOrNull { it.type == TangemPayTariffPlan.Image.Type.BACKGROUND }?.url