mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-11 18:59:20 +08:00
feat(core): [NETWORK TOKENIZATION] Check Network Token Status API (#9443)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user