mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(access_token): support creating access token for connectors (#407)
This commit is contained in:
@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user