mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	chore: remove should_call_connector_service_with_pre_decide_flow function from ConnectorSpecification trait
This commit is contained in:
		| @ -415,14 +415,6 @@ pub enum PreProcessingFlowName { | |||||||
|  |  | ||||||
| /// The trait that provides specifications about the connector | /// The trait that provides specifications about the connector | ||||||
| pub trait ConnectorSpecifications { | 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. |     /// Preprocessing flow name if any, that must be made before the current flow. | ||||||
|     fn get_preprocessing_flow_if_needed( |     fn get_preprocessing_flow_if_needed( | ||||||
|         &self, |         &self, | ||||||
|  | |||||||
| @ -508,19 +508,6 @@ impl ConnectorValidation for ConnectorEnum { | |||||||
| } | } | ||||||
|  |  | ||||||
| impl ConnectorSpecifications 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( |     fn get_preprocessing_flow_if_needed( | ||||||
|         &self, |         &self, | ||||||
|         current_flow_info: api::CurrentFlowInfo<'_>, |         current_flow_info: api::CurrentFlowInfo<'_>, | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 hrithikesh026
					hrithikesh026