mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
refactor(router): Remove payment_methods_v2 and customer_v2 feature flag (#8236)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -4,10 +4,7 @@ pub use hyperswitch_domain_models::{errors::api_error_response, payment_methods
|
||||
use router_env::logger;
|
||||
|
||||
use crate::state;
|
||||
#[cfg(all(
|
||||
any(feature = "v1", feature = "v2"),
|
||||
not(feature = "payment_methods_v2")
|
||||
))]
|
||||
#[cfg(feature = "v1")]
|
||||
pub async fn populate_bin_details_for_payment_method_create(
|
||||
card_details: api_models::payment_methods::CardDetail,
|
||||
db: Box<dyn state::PaymentMethodsStorageInterface>,
|
||||
@ -65,7 +62,7 @@ pub async fn populate_bin_details_for_payment_method_create(
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(all(feature = "v2", feature = "payment_methods_v2"))]
|
||||
#[cfg(feature = "v2")]
|
||||
pub async fn populate_bin_details_for_payment_method_create(
|
||||
_card_details: api_models::payment_methods::CardDetail,
|
||||
_db: &dyn state::PaymentMethodsStorageInterface,
|
||||
@ -246,10 +243,7 @@ pub trait ForeignTryFrom<F>: Sized {
|
||||
fn foreign_try_from(from: F) -> Result<Self, Self::Error>;
|
||||
}
|
||||
|
||||
#[cfg(all(
|
||||
any(feature = "v1", feature = "v2"),
|
||||
not(feature = "payment_methods_v2")
|
||||
))]
|
||||
#[cfg(feature = "v1")]
|
||||
impl ForeignFrom<(Option<api::CardDetailFromLocker>, domain::PaymentMethod)>
|
||||
for api::PaymentMethodResponse
|
||||
{
|
||||
@ -276,7 +270,7 @@ impl ForeignFrom<(Option<api::CardDetailFromLocker>, domain::PaymentMethod)>
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(all(feature = "v2", feature = "payment_methods_v2"))]
|
||||
#[cfg(feature = "v2")]
|
||||
impl ForeignFrom<(Option<api::CardDetailFromLocker>, domain::PaymentMethod)>
|
||||
for api::PaymentMethodResponse
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user