feat(connector): [trustpay] introduce instant bank_transfer, finland and poland (#7925)

Co-authored-by: PiX <69745008+pixincreate@users.noreply.github.com>
This commit is contained in:
Swangi Kumari
2025-06-13 12:03:32 +05:30
committed by GitHub
parent c72d365fde
commit 61c2e2c75f
53 changed files with 600 additions and 141 deletions

View File

@ -219,6 +219,8 @@ pub enum BankTransferType {
Pse,
LocalBankTransfer,
InstantBankTransfer,
InstantBankTransferFinland,
InstantBankTransferPoland,
}
#[derive(

View File

@ -125,6 +125,8 @@ impl From<enums::BankTransferType> for global_enums::PaymentMethodType {
enums::BankTransferType::PermataBankTransfer => Self::PermataBankTransfer,
enums::BankTransferType::LocalBankTransfer => Self::LocalBankTransfer,
enums::BankTransferType::InstantBankTransfer => Self::InstantBankTransfer,
enums::BankTransferType::InstantBankTransferFinland => Self::InstantBankTransferFinland,
enums::BankTransferType::InstantBankTransferPoland => Self::InstantBankTransferPoland,
}
}
}

View File

@ -159,6 +159,12 @@ impl IntoDirValue for (global_enums::PaymentMethodType, global_enums::PaymentMet
global_enums::PaymentMethodType::InstantBankTransfer => {
Ok(dirval!(BankTransferType = InstantBankTransfer))
}
global_enums::PaymentMethodType::InstantBankTransferFinland => {
Ok(dirval!(BankTransferType = InstantBankTransferFinland))
}
global_enums::PaymentMethodType::InstantBankTransferPoland => {
Ok(dirval!(BankTransferType = InstantBankTransferPoland))
}
global_enums::PaymentMethodType::PermataBankTransfer => {
Ok(dirval!(BankTransferType = PermataBankTransfer))
}