mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat: add resources and granular permission groups for reconciliation (#6591)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -446,3 +446,20 @@ pub enum StripeChargeType {
|
||||
pub fn convert_frm_connector(connector_name: &str) -> Option<FrmConnectors> {
|
||||
FrmConnectors::from_str(connector_name).ok()
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, Eq, PartialEq, Ord, PartialOrd, serde::Serialize, Hash)]
|
||||
pub enum ReconPermissionScope {
|
||||
#[serde(rename = "R")]
|
||||
Read = 0,
|
||||
#[serde(rename = "RW")]
|
||||
Write = 1,
|
||||
}
|
||||
|
||||
impl From<PermissionScope> for ReconPermissionScope {
|
||||
fn from(scope: PermissionScope) -> Self {
|
||||
match scope {
|
||||
PermissionScope::Read => Self::Read,
|
||||
PermissionScope::Write => Self::Write,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user