feat(events): Add payment cancel events (#4166)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sampras Lopes
2024-04-15 16:05:40 +05:30
committed by GitHub
parent c3c8d09453
commit dea21c65ff
34 changed files with 269 additions and 91 deletions

View File

@ -73,6 +73,17 @@ pub enum AuthenticationType {
NoAuth,
}
impl events::EventInfo for AuthenticationType {
type Data = Self;
fn data(&self) -> error_stack::Result<Self::Data, events::EventsError> {
Ok(self.clone())
}
fn key(&self) -> String {
"auth_info".to_string()
}
}
impl AuthenticationType {
pub fn get_merchant_id(&self) -> Option<&str> {
match self {