mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
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:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user