mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +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
@ -76,6 +76,7 @@ pub enum PayLaterType {
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum WalletType {
|
||||
Bluecode,
|
||||
GooglePay,
|
||||
AmazonPay,
|
||||
Skrill,
|
||||
|
||||
@ -41,6 +41,7 @@ impl From<enums::PayLaterType> for global_enums::PaymentMethodType {
|
||||
impl From<enums::WalletType> for global_enums::PaymentMethodType {
|
||||
fn from(value: enums::WalletType) -> Self {
|
||||
match value {
|
||||
enums::WalletType::Bluecode => Self::Bluecode,
|
||||
enums::WalletType::GooglePay => Self::GooglePay,
|
||||
enums::WalletType::AmazonPay => Self::AmazonPay,
|
||||
enums::WalletType::Skrill => Self::Skrill,
|
||||
|
||||
@ -25,6 +25,7 @@ impl IntoDirValue for (global_enums::PaymentMethodType, global_enums::PaymentMet
|
||||
global_enums::PaymentMethodType::Skrill => Ok(dirval!(WalletType = Skrill)),
|
||||
global_enums::PaymentMethodType::Paysera => Ok(dirval!(WalletType = Paysera)),
|
||||
global_enums::PaymentMethodType::GooglePay => Ok(dirval!(WalletType = GooglePay)),
|
||||
global_enums::PaymentMethodType::Bluecode => Ok(dirval!(WalletType = Bluecode)),
|
||||
global_enums::PaymentMethodType::ApplePay => Ok(dirval!(WalletType = ApplePay)),
|
||||
global_enums::PaymentMethodType::Paypal => Ok(dirval!(WalletType = Paypal)),
|
||||
global_enums::PaymentMethodType::RevolutPay => Ok(dirval!(WalletType = RevolutPay)),
|
||||
|
||||
Reference in New Issue
Block a user