feat(core): [NETWORK TOKENIZATION] Check Network Token Status API (#9443)

This commit is contained in:
Sagnik Mitra
2025-10-10 17:27:47 +05:30
committed by GitHub
parent 115ef10aef
commit d9d4b2e5e4
13 changed files with 525 additions and 20 deletions

View File

@@ -492,3 +492,29 @@ impl From<PermissionScope> for ReconPermissionScope {
}
}
}
#[cfg(feature = "v2")]
#[derive(
Clone,
Copy,
Debug,
Eq,
Hash,
PartialEq,
ToSchema,
serde::Deserialize,
serde::Serialize,
strum::Display,
strum::EnumIter,
strum::EnumString,
)]
#[serde(rename_all = "UPPERCASE")]
#[strum(serialize_all = "UPPERCASE")]
pub enum TokenStatus {
/// Indicates that the token is active and can be used for payments
Active,
/// Indicates that the token is suspended from network's end for some reason and can't be used for payments until it is re-activated
Suspended,
/// Indicates that the token is deactivated and further can't be used for payments
Deactivated,
}