mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 05:17:02 +08:00
refactor(router): remove admin v2 intermediate features (#5780)
Co-authored-by: Narayan Bhat <narayan.bhat@juspay.in> Co-authored-by: Aprabhat19 <amishaprabhat@gmail.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
c84af20ec1
commit
b853226120
@ -56,10 +56,7 @@ pub async fn check_if_connector_exists(
|
||||
.await
|
||||
.to_not_found_response(ApiErrorResponse::MerchantAccountNotFound)?;
|
||||
|
||||
#[cfg(all(
|
||||
any(feature = "v1", feature = "v2"),
|
||||
not(feature = "merchant_connector_account_v2")
|
||||
))]
|
||||
#[cfg(feature = "v1")]
|
||||
let _connector = state
|
||||
.store
|
||||
.find_by_merchant_connector_account_merchant_id_merchant_connector_id(
|
||||
@ -73,7 +70,7 @@ pub async fn check_if_connector_exists(
|
||||
id: connector_id.get_string_repr().to_string(),
|
||||
})?;
|
||||
|
||||
#[cfg(all(feature = "v2", feature = "merchant_connector_account_v2"))]
|
||||
#[cfg(feature = "v2")]
|
||||
{
|
||||
let _ = connector_id;
|
||||
let _ = key_store;
|
||||
|
||||
@ -44,10 +44,7 @@ pub async fn generate_sample_data(
|
||||
.await
|
||||
.change_context::<SampleDataError>(SampleDataError::DataDoesNotExist)?;
|
||||
|
||||
#[cfg(all(
|
||||
any(feature = "v1", feature = "v2"),
|
||||
not(feature = "merchant_account_v2")
|
||||
))]
|
||||
#[cfg(feature = "v1")]
|
||||
let (profile_id_result, business_country_default, business_label_default) = {
|
||||
let merchant_parsed_details: Vec<api_models::admin::PrimaryBusinessDetails> =
|
||||
serde_json::from_value(merchant_from_db.primary_business_details.clone())
|
||||
@ -72,7 +69,7 @@ pub async fn generate_sample_data(
|
||||
(profile_id, business_country_default, business_label_default)
|
||||
};
|
||||
|
||||
#[cfg(all(feature = "v2", feature = "merchant_account_v2"))]
|
||||
#[cfg(feature = "v2")]
|
||||
let (profile_id_result, business_country_default, business_label_default) = {
|
||||
let profile_id = req
|
||||
.profile_id.clone()
|
||||
|
||||
Reference in New Issue
Block a user