mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user