mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
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:
committed by
GitHub
parent
8ac5e50422
commit
c749bd9c51
@ -2670,6 +2670,7 @@ impl GetPaymentMethodType for MobilePaymentData {
|
||||
impl GetPaymentMethodType for WalletData {
|
||||
fn get_payment_method_type(&self) -> api_enums::PaymentMethodType {
|
||||
match self {
|
||||
Self::BluecodeRedirect {} => api_enums::PaymentMethodType::Bluecode,
|
||||
Self::AliPayQr(_) | Self::AliPayRedirect(_) => api_enums::PaymentMethodType::AliPay,
|
||||
Self::AliPayHkRedirect(_) => api_enums::PaymentMethodType::AliPayHk,
|
||||
Self::AmazonPayRedirect(_) => api_enums::PaymentMethodType::AmazonPay,
|
||||
@ -3607,6 +3608,8 @@ pub enum WalletData {
|
||||
AliPayHkRedirect(AliPayHkRedirection),
|
||||
/// The wallet data for Amazon Pay redirect
|
||||
AmazonPayRedirect(AmazonPayRedirectData),
|
||||
/// The wallet data for Bluecode QR Code Redirect
|
||||
BluecodeRedirect {},
|
||||
/// The wallet data for Skrill
|
||||
Skrill(SkrillData),
|
||||
/// The wallet data for Paysera
|
||||
@ -3716,7 +3719,8 @@ impl GetAddressFromPaymentMethodData for WalletData {
|
||||
| Self::WeChatPayQr(_)
|
||||
| Self::CashappQr(_)
|
||||
| Self::SwishQr(_)
|
||||
| Self::RevolutPay(_) => None,
|
||||
| Self::RevolutPay(_)
|
||||
| Self::BluecodeRedirect {} => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -3903,6 +3907,9 @@ pub struct AliPayRedirection {}
|
||||
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
pub struct AliPayHkRedirection {}
|
||||
|
||||
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
pub struct BluecodeQrRedirect {}
|
||||
|
||||
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
pub struct MomoRedirection {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user