Updated on 2026-08-14

This commit is contained in:
Tangem 2026-06-17 14:44:06 +05:00
parent 5618f44c8b
commit 084bad17ab
18 changed files with 452 additions and 192 deletions

View file

@ -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
}
}