Updated on 2026-08-14
This commit is contained in:
parent
26419a5754
commit
f455f202b2
3 changed files with 44 additions and 18 deletions
|
|
@ -33,19 +33,36 @@ data class OnrampStatus(
|
|||
Finished(order = 10),
|
||||
;
|
||||
|
||||
fun isTerminal(): Boolean = when (this) {
|
||||
Expired,
|
||||
Failed,
|
||||
Paused,
|
||||
Finished,
|
||||
-> true
|
||||
Created,
|
||||
WaitingForPayment,
|
||||
PaymentProcessing,
|
||||
Verifying,
|
||||
Paid,
|
||||
Sending,
|
||||
-> false
|
||||
}
|
||||
val isTerminal: Boolean
|
||||
get() = when (this) {
|
||||
Expired,
|
||||
Failed,
|
||||
Paused,
|
||||
Finished,
|
||||
-> true
|
||||
Created,
|
||||
WaitingForPayment,
|
||||
PaymentProcessing,
|
||||
Verifying,
|
||||
Paid,
|
||||
Sending,
|
||||
-> false
|
||||
}
|
||||
|
||||
val isHidden: Boolean
|
||||
get() = when (this) {
|
||||
Created,
|
||||
Expired,
|
||||
Paused,
|
||||
-> true
|
||||
WaitingForPayment,
|
||||
PaymentProcessing,
|
||||
Verifying,
|
||||
Failed,
|
||||
Paid,
|
||||
Sending,
|
||||
Finished,
|
||||
-> false
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue