mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
Co-authored-by: prajjwalkumar17 <write2prajjwal@gmail.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: prajjwalkumar17 <prajjwal.kumar@juspay.in>
117 lines
3.3 KiB
Rust
117 lines
3.3 KiB
Rust
use common_utils::events::{ApiEventMetric, ApiEventsType};
|
|
|
|
use crate::routing::{
|
|
LinkedRoutingConfigRetrieveResponse, MerchantRoutingAlgorithm, ProfileDefaultRoutingConfig,
|
|
RoutingAlgorithmId, RoutingConfigRequest, RoutingDictionaryRecord, RoutingKind,
|
|
RoutingLinkWrapper, RoutingPayloadWrapper, RoutingRetrieveLinkQuery,
|
|
RoutingRetrieveLinkQueryWrapper, RoutingRetrieveQuery, RoutingVolumeSplitWrapper,
|
|
SuccessBasedRoutingConfig, SuccessBasedRoutingPayloadWrapper,
|
|
SuccessBasedRoutingUpdateConfigQuery, ToggleDynamicRoutingQuery, ToggleDynamicRoutingWrapper,
|
|
};
|
|
|
|
impl ApiEventMetric for RoutingKind {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
|
|
impl ApiEventMetric for MerchantRoutingAlgorithm {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
|
|
impl ApiEventMetric for RoutingAlgorithmId {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
|
|
impl ApiEventMetric for RoutingDictionaryRecord {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
|
|
impl ApiEventMetric for LinkedRoutingConfigRetrieveResponse {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
|
|
impl ApiEventMetric for RoutingPayloadWrapper {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
impl ApiEventMetric for ProfileDefaultRoutingConfig {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
|
|
impl ApiEventMetric for RoutingRetrieveQuery {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
|
|
impl ApiEventMetric for RoutingConfigRequest {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
|
|
impl ApiEventMetric for RoutingRetrieveLinkQuery {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
|
|
impl ApiEventMetric for RoutingLinkWrapper {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
impl ApiEventMetric for RoutingRetrieveLinkQueryWrapper {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
|
|
impl ApiEventMetric for ToggleDynamicRoutingQuery {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
|
|
impl ApiEventMetric for SuccessBasedRoutingConfig {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
|
|
impl ApiEventMetric for SuccessBasedRoutingPayloadWrapper {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
|
|
impl ApiEventMetric for ToggleDynamicRoutingWrapper {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
|
|
impl ApiEventMetric for SuccessBasedRoutingUpdateConfigQuery {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|
|
|
|
impl ApiEventMetric for RoutingVolumeSplitWrapper {
|
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
|
Some(ApiEventsType::Routing)
|
|
}
|
|
}
|