feat(connector): [EFT] Add EFT as a payment method (#7304)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sagnik Mitra
2025-03-05 19:32:06 +05:30
committed by GitHub
parent 0c8f8f5f5c
commit 6df1578922
31 changed files with 109 additions and 1 deletions

View File

@ -2639,6 +2639,7 @@ impl GetPaymentMethodType for BankRedirectData {
Self::BancontactCard { .. } => api_enums::PaymentMethodType::BancontactCard,
Self::Bizum {} => api_enums::PaymentMethodType::Bizum,
Self::Blik { .. } => api_enums::PaymentMethodType::Blik,
Self::Eft { .. } => api_enums::PaymentMethodType::Eft,
Self::Eps { .. } => api_enums::PaymentMethodType::Eps,
Self::Giropay { .. } => api_enums::PaymentMethodType::Giropay,
Self::Ideal { .. } => api_enums::PaymentMethodType::Ideal,
@ -3015,6 +3016,11 @@ pub enum BankRedirectData {
issuer: common_enums::BankNames,
},
LocalBankRedirect {},
Eft {
/// The preferred eft provider
#[schema(example = "ozow")]
provider: String,
},
}
impl GetAddressFromPaymentMethodData for BankRedirectData {
@ -3130,7 +3136,8 @@ impl GetAddressFromPaymentMethodData for BankRedirectData {
| Self::OnlineBankingPoland { .. }
| Self::OnlineBankingSlovakia { .. }
| Self::OnlineBankingCzechRepublic { .. }
| Self::Blik { .. } => None,
| Self::Blik { .. }
| Self::Eft { .. } => None,
}
}
}