feat(access_token): support creating access token for connectors (#407)

This commit is contained in:
Narayan Bhat
2023-01-20 16:14:33 +05:30
committed by GitHub
parent d761e52c35
commit 30593bd1fd
38 changed files with 647 additions and 63 deletions

View File

@ -38,4 +38,15 @@ pub trait Feature<F, T> {
Self: Sized,
F: Clone,
dyn api::Connector: services::ConnectorIntegration<F, T, types::PaymentsResponseData>;
async fn add_access_token<'a>(
&self,
state: &AppState,
connector: &api::ConnectorData,
merchant_account: &storage::MerchantAccount,
) -> RouterResult<types::AddAccessTokenResult>
where
F: Clone,
Self: Sized,
dyn api::Connector: services::ConnectorIntegration<F, T, types::PaymentsResponseData>;
}