Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

450 B
Raw Blame
pub use hyperswitch_interfaces::events::routing_api_logs::RoutingEvent;

use super::EventType;
use crate::services::kafka::KafkaMessage;

impl KafkaMessage for RoutingEvent {
    fn event_type(&self) -> EventType {
        EventType::RoutingApiLogs
    }

    fn key(&self) -> String {
        format!(
            "{}-{}-{}",
            self.get_merchant_id(),
            self.get_profile_id(),
            self.get_payment_id()
        )
    }
}