diff --git a/crates/hyperswitch_interfaces/src/api.rs b/crates/hyperswitch_interfaces/src/api.rs index f39c83a55e..d91d609a9b 100644 --- a/crates/hyperswitch_interfaces/src/api.rs +++ b/crates/hyperswitch_interfaces/src/api.rs @@ -415,14 +415,6 @@ pub enum PreProcessingFlowName { /// The trait that provides specifications about the connector pub trait ConnectorSpecifications { - /// indicates whether the new pre-decide flow should be called - /// By default, it is false for all connectors - fn should_call_connector_service_with_pre_decide_flow( - &self, - _current_flow: CurrentFlowInfo<'_>, - ) -> bool { - false - } /// Preprocessing flow name if any, that must be made before the current flow. fn get_preprocessing_flow_if_needed( &self, diff --git a/crates/hyperswitch_interfaces/src/connector_integration_interface.rs b/crates/hyperswitch_interfaces/src/connector_integration_interface.rs index f27516af68..aa3740b3c2 100644 --- a/crates/hyperswitch_interfaces/src/connector_integration_interface.rs +++ b/crates/hyperswitch_interfaces/src/connector_integration_interface.rs @@ -508,19 +508,6 @@ impl ConnectorValidation for ConnectorEnum { } impl ConnectorSpecifications for ConnectorEnum { - fn should_call_connector_service_with_pre_decide_flow( - &self, - current_flow: api::CurrentFlowInfo<'_>, - ) -> bool { - match self { - Self::Old(connector) => { - connector.should_call_connector_service_with_pre_decide_flow(current_flow) - } - Self::New(connector) => { - connector.should_call_connector_service_with_pre_decide_flow(current_flow) - } - } - } fn get_preprocessing_flow_if_needed( &self, current_flow_info: api::CurrentFlowInfo<'_>,