feat: core changes for extended authorization (#6766)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Hrithikesh
2025-03-21 17:08:02 +05:30
committed by GitHub
parent fb8cba0701
commit c3c4f50fcf
26 changed files with 340 additions and 29 deletions

View File

@ -1,6 +1,9 @@
use std::collections::HashSet;
use utoipa::ToSchema;
pub use super::enums::{PaymentMethod, PayoutType};
pub use crate::PaymentMethodType;
#[derive(
Clone,
@ -453,6 +456,15 @@ impl Connector {
matches!(self, Self::Airwallex)
}
pub fn get_payment_methods_supporting_extended_authorization(self) -> HashSet<PaymentMethod> {
HashSet::new()
}
pub fn get_payment_method_types_supporting_extended_authorization(
self,
) -> HashSet<PaymentMethodType> {
HashSet::new()
}
pub fn should_acknowledge_webhook_for_resource_not_found_errors(self) -> bool {
matches!(self, Self::Adyenplatform)
}