mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +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
|
||||
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,
|
||||
|
||||
@ -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<'_>,
|
||||
|
||||
Reference in New Issue
Block a user