Updated on 2026-08-14
This commit is contained in:
parent
7b46bfda11
commit
6d686a0820
11 changed files with 103 additions and 26 deletions
|
|
@ -20,6 +20,7 @@ sealed class PaymentAccountStatusValue {
|
|||
get() = when (this) {
|
||||
is Error,
|
||||
is IssuingCard,
|
||||
is Empty,
|
||||
is NotCreated,
|
||||
is UnderReview,
|
||||
-> TotalFiatBalance.Loaded(amount = SerializedBigDecimal.ZERO, source = source)
|
||||
|
|
@ -40,12 +41,19 @@ sealed class PaymentAccountStatusValue {
|
|||
is Locked -> copy(source = source)
|
||||
is UnderReview -> copy(source = source)
|
||||
is Loading,
|
||||
is Empty,
|
||||
is NotCreated,
|
||||
is Error,
|
||||
-> this
|
||||
}
|
||||
}
|
||||
|
||||
/** Represents an empty payment account status when no specific state is available. */
|
||||
@Serializable
|
||||
data object Empty : PaymentAccountStatusValue() {
|
||||
override val source: StatusSource = StatusSource.ACTUAL
|
||||
}
|
||||
|
||||
/** Represents the Loading state of a payment account, typically while fetching its details. */
|
||||
@Serializable
|
||||
data object Loading : PaymentAccountStatusValue() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue