mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(connector): [Flexiti]Add support for flexiti connector (#8743)
Co-authored-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-V9P7D4K9V0.local> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -2463,6 +2463,7 @@ pub enum PaymentMethodDataType {
|
||||
AlmaRedirect,
|
||||
AtomeRedirect,
|
||||
BreadpayRedirect,
|
||||
FlexitiRedirect,
|
||||
BancontactCard,
|
||||
Bizum,
|
||||
Blik,
|
||||
@ -2597,6 +2598,7 @@ impl From<domain::payments::PaymentMethodData> for PaymentMethodDataType {
|
||||
domain::payments::PayLaterData::PayBrightRedirect {} => Self::PayBrightRedirect,
|
||||
domain::payments::PayLaterData::WalleyRedirect {} => Self::WalleyRedirect,
|
||||
domain::payments::PayLaterData::AlmaRedirect {} => Self::AlmaRedirect,
|
||||
domain::payments::PayLaterData::FlexitiRedirect {} => Self::FlexitiRedirect,
|
||||
domain::payments::PayLaterData::AtomeRedirect {} => Self::AtomeRedirect,
|
||||
domain::payments::PayLaterData::BreadpayRedirect {} => Self::BreadpayRedirect,
|
||||
},
|
||||
|
||||
@ -236,6 +236,10 @@ impl ConnectorAuthTypeAndMetadataValidation<'_> {
|
||||
fiuu::transformers::FiuuAuthType::try_from(self.auth_type)?;
|
||||
Ok(())
|
||||
}
|
||||
api_enums::Connector::Flexiti => {
|
||||
flexiti::transformers::FlexitiAuthType::try_from(self.auth_type)?;
|
||||
Ok(())
|
||||
}
|
||||
api_enums::Connector::Forte => {
|
||||
forte::transformers::ForteAuthType::try_from(self.auth_type)?;
|
||||
Ok(())
|
||||
|
||||
@ -251,6 +251,9 @@ impl ConnectorData {
|
||||
Ok(ConnectorEnum::Old(Box::new(connector::Fiservemea::new())))
|
||||
}
|
||||
enums::Connector::Fiuu => Ok(ConnectorEnum::Old(Box::new(connector::Fiuu::new()))),
|
||||
enums::Connector::Flexiti => {
|
||||
Ok(ConnectorEnum::Old(Box::new(connector::Flexiti::new())))
|
||||
}
|
||||
enums::Connector::Forte => {
|
||||
Ok(ConnectorEnum::Old(Box::new(connector::Forte::new())))
|
||||
}
|
||||
|
||||
@ -57,6 +57,7 @@ impl ForeignTryFrom<api_enums::Connector> for common_enums::RoutableConnectors {
|
||||
api_enums::Connector::Fiserv => Self::Fiserv,
|
||||
api_enums::Connector::Fiservemea => Self::Fiservemea,
|
||||
api_enums::Connector::Fiuu => Self::Fiuu,
|
||||
api_enums::Connector::Flexiti => Self::Flexiti,
|
||||
api_enums::Connector::Forte => Self::Forte,
|
||||
api_enums::Connector::Getnet => Self::Getnet,
|
||||
api_enums::Connector::Globalpay => Self::Globalpay,
|
||||
|
||||
@ -295,6 +295,7 @@ impl ForeignFrom<api_enums::PaymentMethodType> for api_enums::PaymentMethod {
|
||||
| api_enums::PaymentMethodType::Alma
|
||||
| api_enums::PaymentMethodType::AfterpayClearpay
|
||||
| api_enums::PaymentMethodType::Klarna
|
||||
| api_enums::PaymentMethodType::Flexiti
|
||||
| api_enums::PaymentMethodType::PayBright
|
||||
| api_enums::PaymentMethodType::Atome
|
||||
| api_enums::PaymentMethodType::Walley
|
||||
|
||||
Reference in New Issue
Block a user