mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
feat(connector): [BHN] Add BHN GiftCard Flow( Alpha) (#8701)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -247,6 +247,7 @@ pub enum BankTransferType {
|
||||
pub enum GiftCardType {
|
||||
PaySafeCard,
|
||||
Givex,
|
||||
BhnCardNetwork,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
|
||||
@ -142,6 +142,7 @@ impl From<enums::GiftCardType> for global_enums::PaymentMethodType {
|
||||
match value {
|
||||
enums::GiftCardType::PaySafeCard => Self::PaySafeCard,
|
||||
enums::GiftCardType::Givex => Self::Givex,
|
||||
enums::GiftCardType::BhnCardNetwork => Self::BhnCardNetwork,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -204,6 +204,9 @@ impl IntoDirValue for (global_enums::PaymentMethodType, global_enums::PaymentMet
|
||||
global_enums::PaymentMethodType::IndonesianBankTransfer => {
|
||||
Ok(dirval!(BankTransferType = IndonesianBankTransfer))
|
||||
}
|
||||
global_enums::PaymentMethodType::BhnCardNetwork => {
|
||||
Ok(dirval!(GiftCardType = BhnCardNetwork))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user