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:
@ -26,7 +26,7 @@ pub use common_utils::{
|
||||
id_type, pii,
|
||||
validation::validate_email,
|
||||
};
|
||||
#[cfg(all(any(feature = "v1", feature = "v2"), not(feature = "customer_v2")))]
|
||||
#[cfg(feature = "v1")]
|
||||
use common_utils::{
|
||||
type_name,
|
||||
types::keymanager::{Identifier, ToEncryptable},
|
||||
@ -34,7 +34,7 @@ use common_utils::{
|
||||
use error_stack::ResultExt;
|
||||
pub use hyperswitch_connectors::utils::QrImage;
|
||||
use hyperswitch_domain_models::payments::PaymentIntent;
|
||||
#[cfg(all(any(feature = "v1", feature = "v2"), not(feature = "customer_v2")))]
|
||||
#[cfg(feature = "v1")]
|
||||
use hyperswitch_domain_models::type_encryption::{crypto_operation, CryptoOperation};
|
||||
use masking::{ExposeInterface, SwitchStrategy};
|
||||
use nanoid::nanoid;
|
||||
@ -44,10 +44,6 @@ use tracing_futures::Instrument;
|
||||
use uuid::Uuid;
|
||||
|
||||
pub use self::ext_traits::{OptionExt, ValidateCall};
|
||||
#[cfg(feature = "v1")]
|
||||
use crate::core::webhooks as webhooks_core;
|
||||
#[cfg(all(any(feature = "v1", feature = "v2"), not(feature = "customer_v2")))]
|
||||
use crate::types::storage;
|
||||
use crate::{
|
||||
consts,
|
||||
core::{
|
||||
@ -64,6 +60,8 @@ use crate::{
|
||||
transformers::{ForeignFrom, ForeignInto},
|
||||
},
|
||||
};
|
||||
#[cfg(feature = "v1")]
|
||||
use crate::{core::webhooks as webhooks_core, types::storage};
|
||||
|
||||
pub mod error_parser {
|
||||
use std::fmt::Display;
|
||||
@ -721,7 +719,7 @@ pub fn add_connector_http_status_code_metrics(option_status_code: Option<u16>) {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(all(any(feature = "v1", feature = "v2"), not(feature = "customer_v2")))]
|
||||
#[cfg(feature = "v1")]
|
||||
#[async_trait::async_trait]
|
||||
pub trait CustomerAddress {
|
||||
async fn get_address_update(
|
||||
@ -744,7 +742,7 @@ pub trait CustomerAddress {
|
||||
) -> CustomResult<domain::CustomerAddress, common_utils::errors::CryptoError>;
|
||||
}
|
||||
|
||||
#[cfg(all(any(feature = "v1", feature = "v2"), not(feature = "customer_v2")))]
|
||||
#[cfg(feature = "v1")]
|
||||
#[async_trait::async_trait]
|
||||
impl CustomerAddress for api_models::customers::CustomerRequest {
|
||||
async fn get_address_update(
|
||||
@ -880,7 +878,7 @@ impl CustomerAddress for api_models::customers::CustomerRequest {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(all(any(feature = "v1", feature = "v2"), not(feature = "customer_v2")))]
|
||||
#[cfg(feature = "v1")]
|
||||
#[async_trait::async_trait]
|
||||
impl CustomerAddress for api_models::customers::CustomerUpdateRequest {
|
||||
async fn get_address_update(
|
||||
|
||||
Reference in New Issue
Block a user