feat(core): confirm flow and authorization api changes for external authentication (#4015)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: sai-harsha-vardhan <harsha111hero@gmail.com>
Co-authored-by: Sai Harsha Vardhan <56996463+sai-harsha-vardhan@users.noreply.github.com>
This commit is contained in:
Hrithikesh
2024-03-12 16:11:22 +05:30
committed by GitHub
parent 195c700e6c
commit ce3625cb0c
19 changed files with 692 additions and 49 deletions

View File

@ -2133,6 +2133,15 @@ pub enum PaymentSource {
ExternalAuthenticator,
}
impl PaymentSource {
pub fn is_for_internal_use_only(&self) -> bool {
match self {
Self::Dashboard | Self::Sdk | Self::MerchantServer | Self::Postman => false,
Self::Webhook | Self::ExternalAuthenticator => true,
}
}
}
#[derive(
Clone,
Copy,