Skip to content

Commit

Permalink
refactor: remove redundant feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
kashif-m committed Nov 7, 2024
1 parent 63199f5 commit 96abb1e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
11 changes: 6 additions & 5 deletions crates/hyperswitch_interfaces/src/api/payouts.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -43,7 +45,6 @@ pub trait PayoutRecipientAccount:
/// trait PayoutSync
pub trait PayoutSync: ConnectorIntegration<PoSync, PayoutsData, PayoutsResponseData> {}

#[cfg(feature = "payouts")]
/// trait Payouts
pub trait Payouts:
ConnectorCommon
Expand Down
12 changes: 6 additions & 6 deletions crates/hyperswitch_interfaces/src/api/payouts_v2.rs
Original file line number Diff line number Diff line change
@@ -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,
};

Expand Down Expand Up @@ -59,7 +60,6 @@ pub trait PayoutSyncV2:
{
}

#[cfg(feature = "payouts")]
/// trait Payouts
pub trait PayoutsV2:
ConnectorCommon
Expand Down

0 comments on commit 96abb1e

Please sign in to comment.