feat(connector): [BAMBORA, BITPAY, STAX] Move connector to hyperswitch_connectors (#5450)

This commit is contained in:
DEEPANSHU BANSAL
2024-07-30 17:34:41 +05:30
committed by GitHub
parent b3b71b10c3
commit 827fa07418
21 changed files with 1193 additions and 1032 deletions

View File

@ -17,7 +17,7 @@ pub mod payouts_v2;
pub mod refunds;
pub mod refunds_v2;
use common_enums::enums::{CaptureMethod, PaymentMethodType};
use common_enums::enums::{CallConnectorAction, CaptureMethod, PaymentAction, PaymentMethodType};
use common_utils::{
errors::CustomResult,
request::{Method, Request, RequestContent},
@ -398,3 +398,16 @@ pub trait ConnectorValidation: ConnectorCommon {
false
}
}
/// trait ConnectorRedirectResponse
pub trait ConnectorRedirectResponse {
/// fn get_flow_type
fn get_flow_type(
&self,
_query_params: &str,
_json_payload: Option<serde_json::Value>,
_action: PaymentAction,
) -> CustomResult<CallConnectorAction, errors::ConnectorError> {
Ok(CallConnectorAction::Avoid)
}
}