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:
Sai Harsha Vardhan
2024-09-04 13:58:05 +05:30
committed by GitHub
parent c84af20ec1
commit b853226120
71 changed files with 458 additions and 1351 deletions

View File

@ -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;

View File

@ -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()