Updated on 2026-08-14

This commit is contained in:
Tangem 2026-07-10 08:10:29 -07:00
parent 4f1710d77c
commit 5440a3067d
16 changed files with 80 additions and 0 deletions

View file

@ -68,6 +68,7 @@ internal class PaymentAccountStatusValueDMConverter @Inject constructor(
)
// Transient statuses are not persisted
is PaymentAccountStatusValue.Loading,
is PaymentAccountStatusValue.AwaitingPlanSelection,
is PaymentAccountStatusValue.Error.ExposedDevice,
is PaymentAccountStatusValue.Error.Unavailable,
is PaymentAccountStatusValue.Error.NotSynced,

View file

@ -103,6 +103,21 @@ internal class PaymentAccountStatusValueDMConverterTest {
assertThat(result).isNull()
}
@Test
fun `GIVEN domain AwaitingPlanSelection WHEN convert THEN returns null (transient, not persisted)`() {
// GIVEN
val domain = PaymentAccountStatusValue.AwaitingPlanSelection(
source = StatusSource.ACTUAL,
tariffPlan = null,
)
// WHEN
val result = converter.convert(domain)
// THEN
assertThat(result).isNull()
}
@Test
fun `GIVEN domain Error Unavailable WHEN convert THEN returns null (transient, not persisted)`() {
// GIVEN