Updated on 2026-08-14
This commit is contained in:
parent
5618f44c8b
commit
084bad17ab
18 changed files with 452 additions and 192 deletions
|
|
@ -20,18 +20,24 @@ enum class TangemPayCardState {
|
|||
/** A close order is in progress; the card is being closed. */
|
||||
@SerialName("Closing")
|
||||
Closing,
|
||||
|
||||
/** An issue order is in progress; the (additional) card is being issued and not yet provisioned. */
|
||||
@SerialName("Issuing")
|
||||
Issuing,
|
||||
;
|
||||
|
||||
override fun toString() = when (this) {
|
||||
Active -> "Active"
|
||||
Reissuing -> "Reissuing"
|
||||
Closing -> "Closing"
|
||||
Issuing -> "Issuing"
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun fromString(value: String) = when (value.lowercase(Locale.US)) {
|
||||
"reissuing" -> Reissuing
|
||||
"closing" -> Closing
|
||||
"issuing" -> Issuing
|
||||
else -> Active
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue