feat(connector): [BLUECODE] Added Bluecode Wallet QR Code Redirect Payment Method (#8762)

Co-authored-by: Sayak Bhattacharya <sayak.b@Sayak-Bhattacharya-G092THXJ34.local>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sayak Bhattacharya
2025-08-01 18:11:09 +05:30
committed by GitHub
parent 8ac5e50422
commit c749bd9c51
61 changed files with 642 additions and 129 deletions

View File

@ -2439,6 +2439,7 @@ pub enum PaymentMethodDataType {
DanaRedirect,
DuitNow,
GooglePay,
Bluecode,
GooglePayRedirect,
GooglePayThirdPartySdk,
MbWayRedirect,
@ -2568,6 +2569,7 @@ impl From<domain::payments::PaymentMethodData> for PaymentMethodDataType {
}
domain::payments::WalletData::DanaRedirect {} => Self::DanaRedirect,
domain::payments::WalletData::GooglePay(_) => Self::GooglePay,
domain::payments::WalletData::BluecodeRedirect {} => Self::Bluecode,
domain::payments::WalletData::GooglePayRedirect(_) => Self::GooglePayRedirect,
domain::payments::WalletData::GooglePayThirdPartySdk(_) => {
Self::GooglePayThirdPartySdk

View File

@ -129,10 +129,11 @@ impl ConnectorAuthTypeAndMetadataValidation<'_> {
bluesnap::transformers::BluesnapAuthType::try_from(self.auth_type)?;
Ok(())
}
// api_enums::Connector::Bluecode => {
// bluecode::transformers::BluecodeAuthType::try_from(self.auth_type)?;
// Ok(())
// }
api_enums::Connector::Bluecode => {
bluecode::transformers::BluecodeAuthType::try_from(self.auth_type)?;
bluecode::transformers::BluecodeMetadataObject::try_from(self.connector_meta_data)?;
Ok(())
}
api_enums::Connector::Braintree => {
braintree::transformers::BraintreeAuthType::try_from(self.auth_type)?;
braintree::transformers::BraintreeMeta::try_from(self.connector_meta_data)?;

View File

@ -145,9 +145,9 @@ impl ConnectorData {
enums::Connector::Bluesnap => {
Ok(ConnectorEnum::Old(Box::new(connector::Bluesnap::new())))
}
// enums::Connector::Bluecode => {
// Ok(ConnectorEnum::Old(Box::new(connector::Bluecode::new())))
// }
enums::Connector::Bluecode => {
Ok(ConnectorEnum::Old(Box::new(connector::Bluecode::new())))
}
enums::Connector::Boku => Ok(ConnectorEnum::Old(Box::new(connector::Boku::new()))),
enums::Connector::Braintree => {
Ok(ConnectorEnum::Old(Box::new(connector::Braintree::new())))

View File

@ -22,7 +22,7 @@ impl ForeignTryFrom<api_enums::Connector> for common_enums::RoutableConnectors {
api_enums::Connector::Billwerk => Self::Billwerk,
api_enums::Connector::Bitpay => Self::Bitpay,
api_enums::Connector::Bluesnap => Self::Bluesnap,
// api_enums::Connector::Bluecode => Self::Bluecode,
api_enums::Connector::Bluecode => Self::Bluecode,
api_enums::Connector::Boku => Self::Boku,
api_enums::Connector::Braintree => Self::Braintree,
api_enums::Connector::Breadpay => Self::Breadpay,

View File

@ -290,7 +290,8 @@ impl ForeignFrom<api_enums::PaymentMethodType> for api_enums::PaymentMethod {
| api_enums::PaymentMethodType::KakaoPay
| api_enums::PaymentMethodType::Venmo
| api_enums::PaymentMethodType::Mifinity
| api_enums::PaymentMethodType::RevolutPay => Self::Wallet,
| api_enums::PaymentMethodType::RevolutPay
| api_enums::PaymentMethodType::Bluecode => Self::Wallet,
api_enums::PaymentMethodType::Affirm
| api_enums::PaymentMethodType::Alma
| api_enums::PaymentMethodType::AfterpayClearpay