refactor(business_profile): change id for business profile (#5748)

This commit is contained in:
Narayan Bhat
2024-09-02 15:25:22 +05:30
committed by GitHub
parent c03587f9c6
commit 8e5c33e2d8
27 changed files with 538 additions and 274 deletions

View File

@ -302,7 +302,7 @@ pub async fn perform_static_routing_v1<F: Clone>(
))]
let fallback_config = routing::helpers::get_merchant_default_config(
&*state.clone().store,
business_profile.profile_id.get_string_repr(),
business_profile.get_id().get_string_repr(),
&api_enums::TransactionType::from(transaction_data),
)
.await
@ -322,7 +322,7 @@ pub async fn perform_static_routing_v1<F: Clone>(
state,
merchant_id,
&algorithm_id,
business_profile.profile_id.clone(),
business_profile.get_id().to_owned(),
&api_enums::TransactionType::from(transaction_data),
)
.await?;
@ -780,7 +780,7 @@ pub async fn perform_fallback_routing<F: Clone>(
fallback_config,
backend_input,
eligible_connectors,
business_profile.profile_id.clone(),
business_profile.get_id().to_owned(),
&api_enums::TransactionType::from(transaction_data),
)
.await
@ -800,7 +800,7 @@ pub async fn perform_eligibility_analysis_with_fallback<F: Clone>(
chosen,
transaction_data,
eligible_connectors.as_ref(),
business_profile.profile_id.clone(),
business_profile.get_id().to_owned(),
)
.await?;