From 96abb1e337f11b17627cc9ad95eb64013cf0c2f9 Mon Sep 17 00:00:00 2001 From: Kashif Date: Thu, 7 Nov 2024 17:33:20 +0530 Subject: [PATCH] refactor: remove redundant feature flags --- crates/hyperswitch_interfaces/src/api/payouts.rs | 11 ++++++----- crates/hyperswitch_interfaces/src/api/payouts_v2.rs | 12 ++++++------ 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/crates/hyperswitch_interfaces/src/api/payouts.rs b/crates/hyperswitch_interfaces/src/api/payouts.rs index e752debfb8e1..5fc0280f19c0 100644 --- a/crates/hyperswitch_interfaces/src/api/payouts.rs +++ b/crates/hyperswitch_interfaces/src/api/payouts.rs @@ -1,10 +1,12 @@ //! Payouts interface -use hyperswitch_domain_models::router_flow_types::payouts::{ - PoCancel, PoCreate, PoEligibility, PoFulfill, PoQuote, PoRecipient, PoRecipientAccount, PoSync, -}; use hyperswitch_domain_models::{ - router_request_types::PayoutsData, router_response_types::PayoutsResponseData, + router_flow_types::payouts::{ + PoCancel, PoCreate, PoEligibility, PoFulfill, PoQuote, PoRecipient, PoRecipientAccount, + PoSync, + }, + router_request_types::PayoutsData, + router_response_types::PayoutsResponseData, }; use super::ConnectorCommon; @@ -43,7 +45,6 @@ pub trait PayoutRecipientAccount: /// trait PayoutSync pub trait PayoutSync: ConnectorIntegration {} -#[cfg(feature = "payouts")] /// trait Payouts pub trait Payouts: ConnectorCommon diff --git a/crates/hyperswitch_interfaces/src/api/payouts_v2.rs b/crates/hyperswitch_interfaces/src/api/payouts_v2.rs index 495e93979f0e..9027152f02d5 100644 --- a/crates/hyperswitch_interfaces/src/api/payouts_v2.rs +++ b/crates/hyperswitch_interfaces/src/api/payouts_v2.rs @@ -1,10 +1,11 @@ //! Payouts V2 interface -use hyperswitch_domain_models::router_flow_types::payouts::{ - PoCancel, PoCreate, PoEligibility, PoFulfill, PoQuote, PoRecipient, PoRecipientAccount, PoSync, -}; -#[cfg(feature = "payouts")] use hyperswitch_domain_models::{ - router_data_v2::flow_common_types::PayoutFlowData, router_request_types::PayoutsData, + router_data_v2::flow_common_types::PayoutFlowData, + router_flow_types::payouts::{ + PoCancel, PoCreate, PoEligibility, PoFulfill, PoQuote, PoRecipient, PoRecipientAccount, + PoSync, + }, + router_request_types::PayoutsData, router_response_types::PayoutsResponseData, }; @@ -59,7 +60,6 @@ pub trait PayoutSyncV2: { } -#[cfg(feature = "payouts")] /// trait Payouts pub trait PayoutsV2: ConnectorCommon