mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 02:57:02 +08:00
refactor(routing): Remove backwards compatibility for the routing crate (#3015)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Shanks <shashank.attarde@juspay.in>
This commit is contained in:
@ -3,10 +3,8 @@ use common_utils::events::{ApiEventMetric, ApiEventsType};
|
||||
use crate::routing::{
|
||||
LinkedRoutingConfigRetrieveResponse, MerchantRoutingAlgorithm, ProfileDefaultRoutingConfig,
|
||||
RoutingAlgorithmId, RoutingConfigRequest, RoutingDictionaryRecord, RoutingKind,
|
||||
RoutingPayloadWrapper,
|
||||
RoutingPayloadWrapper, RoutingRetrieveLinkQuery, RoutingRetrieveQuery,
|
||||
};
|
||||
#[cfg(feature = "business_profile_routing")]
|
||||
use crate::routing::{RoutingRetrieveLinkQuery, RoutingRetrieveQuery};
|
||||
|
||||
impl ApiEventMetric for RoutingKind {
|
||||
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||
@ -49,7 +47,6 @@ impl ApiEventMetric for ProfileDefaultRoutingConfig {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "business_profile_routing")]
|
||||
impl ApiEventMetric for RoutingRetrieveQuery {
|
||||
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||
Some(ApiEventsType::Routing)
|
||||
@ -62,7 +59,6 @@ impl ApiEventMetric for RoutingConfigRequest {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "business_profile_routing")]
|
||||
impl ApiEventMetric for RoutingRetrieveLinkQuery {
|
||||
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||
Some(ApiEventsType::Routing)
|
||||
|
||||
Reference in New Issue
Block a user