refactor(routing): receive json value instead of string (#8965)

Co-authored-by: Ankit Gupta <ankit.gupta.001@Ankit-Gupta-M6QG9L6RHV.local>
This commit is contained in:
Ankit Kumar Gupta
2025-09-03 17:42:53 +05:30
committed by GitHub
parent 80d5afc4e9
commit db4413cef3

View File

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