refactor(role): determine level of role entity (#5488)

This commit is contained in:
Apoorv Dixit
2024-08-01 15:26:47 +05:30
committed by GitHub
parent c0f45771b0
commit c036fd7f41
12 changed files with 55 additions and 5 deletions

View File

@ -3027,6 +3027,27 @@ pub enum Owner {
Internal,
}
#[derive(
Clone,
Copy,
Debug,
Eq,
PartialEq,
serde::Deserialize,
serde::Serialize,
strum::Display,
strum::EnumString,
)]
#[router_derive::diesel_enum(storage_type = "text")]
#[strum(serialize_all = "snake_case")]
#[serde(rename_all = "snake_case")]
pub enum EntityType {
Internal,
Organization,
Merchant,
Profile,
}
#[derive(Clone, Debug, serde::Serialize)]
#[serde(rename_all = "snake_case")]
pub enum PayoutRetryType {