Updated on 2026-08-14

This commit is contained in:
Tangem 2026-04-22 19:30:22 +05:00
parent 7b46bfda11
commit 6d686a0820
11 changed files with 103 additions and 26 deletions

View file

@ -48,6 +48,7 @@ class MoshiModule {
)
.add(
NamePolymorphicAdapterFactory.of(PaymentAccountStatusValueDM::class.java)
.withSubtype(PaymentAccountStatusValueDM.Empty::class.java, "empty")
.withSubtype(PaymentAccountStatusValueDM.NotCreated::class.java, "not_created")
.withSubtype(PaymentAccountStatusValueDM.UnderReview::class.java, "kyc_status")
.withSubtype(PaymentAccountStatusValueDM.IssuingCard::class.java, "issuing_card")

View file

@ -16,6 +16,11 @@ import java.math.BigDecimal
@JsonClass(generateAdapter = true, generator = PolymorphicAdapterType.NAME_POLYMORPHIC_ADAPTER)
sealed interface PaymentAccountStatusValueDM {
@NameLabel("empty")
data class Empty(
@Json(name = "empty") val marker: Boolean = true,
) : PaymentAccountStatusValueDM
@NameLabel("not_created")
data class NotCreated(
@Json(name = "not_created") val marker: Boolean = true,