From db4413cef3695d4f833ef1f9870158711e9af199 Mon Sep 17 00:00:00 2001 From: Ankit Kumar Gupta <143015358+AnkitKmrGupta@users.noreply.github.com> Date: Wed, 3 Sep 2025 17:42:53 +0530 Subject: [PATCH] refactor(routing): receive json value instead of string (#8965) Co-authored-by: Ankit Gupta --- crates/router/src/core/routing/helpers.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/router/src/core/routing/helpers.rs b/crates/router/src/core/routing/helpers.rs index 0b1395ed4b..98b71748b3 100644 --- a/crates/router/src/core/routing/helpers.rs +++ b/crates/router/src/core/routing/helpers.rs @@ -2481,7 +2481,7 @@ pub async fn enable_decision_engine_dynamic_routing_setup( create_merchant_in_decision_engine_if_not_exists(state, profile_id, dynamic_routing_algo_ref) .await; - routing_utils::ConfigApiClient::send_decision_engine_request::<_, String>( + routing_utils::ConfigApiClient::send_decision_engine_request::<_, serde_json::Value>( state, services::Method::Post, DECISION_ENGINE_RULE_CREATE_ENDPOINT, @@ -2559,7 +2559,7 @@ pub async fn update_decision_engine_dynamic_routing_setup( create_merchant_in_decision_engine_if_not_exists(state, profile_id, dynamic_routing_algo_ref) .await; - routing_utils::ConfigApiClient::send_decision_engine_request::<_, String>( + routing_utils::ConfigApiClient::send_decision_engine_request::<_, serde_json::Value>( state, services::Method::Post, DECISION_ENGINE_RULE_UPDATE_ENDPOINT, @@ -2640,7 +2640,7 @@ pub async fn disable_decision_engine_dynamic_routing_setup( create_merchant_in_decision_engine_if_not_exists(state, profile_id, dynamic_routing_algo_ref) .await; - routing_utils::ConfigApiClient::send_decision_engine_request::<_, String>( + routing_utils::ConfigApiClient::send_decision_engine_request::<_, serde_json::Value>( state, services::Method::Post, DECISION_ENGINE_RULE_DELETE_ENDPOINT, @@ -2691,7 +2691,7 @@ pub async fn create_decision_engine_merchant( gateway_success_rate_based_decider_input: None, }; - routing_utils::ConfigApiClient::send_decision_engine_request::<_, String>( + routing_utils::ConfigApiClient::send_decision_engine_request::<_, serde_json::Value>( state, services::Method::Post, DECISION_ENGINE_MERCHANT_CREATE_ENDPOINT, @@ -2717,7 +2717,7 @@ pub async fn delete_decision_engine_merchant( DECISION_ENGINE_MERCHANT_BASE_ENDPOINT, profile_id.get_string_repr() ); - routing_utils::ConfigApiClient::send_decision_engine_request::<_, String>( + routing_utils::ConfigApiClient::send_decision_engine_request::<_, serde_json::Value>( state, services::Method::Delete, &path,