mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
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:
committed by
GitHub
parent
80d5afc4e9
commit
db4413cef3
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user