Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
refactor(routing): receive json value instead of string (#8965)
Ankit Kumar Guptadb4413cef369
diff --git a/crates/router/src/core/routing/helpers.rs b/crates/router/src/core/routing/helpers.rsindex 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,