refactor(core): move update trackers after build request (#1472)

This commit is contained in:
Narayan Bhat
2023-06-19 13:04:45 +05:30
committed by GitHub
parent 1b2841be59
commit 6114fb6340
32 changed files with 330 additions and 212 deletions

View File

@ -39,6 +39,7 @@ pub trait Feature<F, T> {
maybe_customer: &Option<domain::Customer>,
call_connector_action: payments::CallConnectorAction,
merchant_account: &domain::MerchantAccount,
connector_request: Option<services::Request>,
) -> RouterResult<Self>
where
Self: Sized,
@ -95,6 +96,15 @@ pub trait Feature<F, T> {
{
Ok(None)
}
async fn build_flow_specific_connector_request(
&mut self,
_state: &AppState,
_connector: &api::ConnectorData,
_call_connector_action: payments::CallConnectorAction,
) -> RouterResult<Option<services::Request>> {
Ok(None)
}
}
macro_rules! default_imp_for_complete_authorize{