mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
feat(router): add local bank transfer payment method (#4294)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -186,6 +186,7 @@ pub enum BankTransferType {
|
||||
PermataBankTransfer,
|
||||
Pix,
|
||||
Pse,
|
||||
LocalBankTransfer,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
|
||||
@ -115,6 +115,7 @@ impl From<enums::BankTransferType> for global_enums::PaymentMethodType {
|
||||
enums::BankTransferType::DanamonVa => Self::DanamonVa,
|
||||
enums::BankTransferType::MandiriVa => Self::MandiriVa,
|
||||
enums::BankTransferType::PermataBankTransfer => Self::PermataBankTransfer,
|
||||
enums::BankTransferType::LocalBankTransfer => Self::LocalBankTransfer,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -143,6 +143,9 @@ impl IntoDirValue for (global_enums::PaymentMethodType, global_enums::PaymentMet
|
||||
global_enums::PaymentMethodType::DanamonVa => Ok(dirval!(BankTransferType = DanamonVa)),
|
||||
global_enums::PaymentMethodType::Indomaret => Ok(dirval!(VoucherType = Indomaret)),
|
||||
global_enums::PaymentMethodType::MandiriVa => Ok(dirval!(BankTransferType = MandiriVa)),
|
||||
global_enums::PaymentMethodType::LocalBankTransfer => {
|
||||
Ok(dirval!(BankTransferType = LocalBankTransfer))
|
||||
}
|
||||
global_enums::PaymentMethodType::PermataBankTransfer => {
|
||||
Ok(dirval!(BankTransferType = PermataBankTransfer))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user