mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +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:
@ -20,8 +20,6 @@ metrics = ["dep:router_env", "dep:futures"]
|
||||
payouts = ["common_enums/payouts"]
|
||||
v1 = []
|
||||
v2 = []
|
||||
customer_v2 = []
|
||||
payment_methods_v2 = []
|
||||
crypto_openssl = ["dep:openssl"]
|
||||
tokenization_v2 = []
|
||||
|
||||
|
||||
@ -44,13 +44,13 @@ pub enum ApiEventsType {
|
||||
payment_method_type: Option<common_enums::PaymentMethod>,
|
||||
payment_method_subtype: Option<common_enums::PaymentMethodType>,
|
||||
},
|
||||
#[cfg(all(feature = "v2", feature = "payment_methods_v2"))]
|
||||
#[cfg(feature = "v2")]
|
||||
PaymentMethodCreate,
|
||||
#[cfg(all(feature = "v2", feature = "customer_v2"))]
|
||||
#[cfg(feature = "v2")]
|
||||
Customer {
|
||||
customer_id: Option<id_type::GlobalCustomerId>,
|
||||
},
|
||||
#[cfg(all(any(feature = "v1", feature = "v2"), not(feature = "customer_v2")))]
|
||||
#[cfg(feature = "v1")]
|
||||
Customer {
|
||||
customer_id: id_type::CustomerId,
|
||||
},
|
||||
|
||||
@ -14,7 +14,7 @@ crate::impl_serializable_secret_id_type!(CustomerId);
|
||||
crate::impl_queryable_id_type!(CustomerId);
|
||||
crate::impl_to_sql_from_sql_id_type!(CustomerId);
|
||||
|
||||
#[cfg(all(any(feature = "v1", feature = "v2"), not(feature = "customer_v2")))]
|
||||
#[cfg(feature = "v1")]
|
||||
impl crate::events::ApiEventMetric for CustomerId {
|
||||
fn get_api_event_type(&self) -> Option<crate::events::ApiEventsType> {
|
||||
Some(crate::events::ApiEventsType::Customer {
|
||||
|
||||
Reference in New Issue
Block a user