mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 17:47:54 +08:00
refactor(router): add support to store signature_network and is_regulated in payment attempts (#8891)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -124,6 +124,13 @@ impl CoBadgedCardNetworks {
|
||||
pub fn get_card_networks(&self) -> Vec<common_enums::CardNetwork> {
|
||||
self.0.iter().map(|info| info.network.clone()).collect()
|
||||
}
|
||||
|
||||
pub fn get_signature_network(&self) -> Option<common_enums::CardNetwork> {
|
||||
self.0
|
||||
.iter()
|
||||
.find(|info| info.network.is_signature_network())
|
||||
.map(|info| info.network.clone())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&DebitRoutingOutput> for payment_methods::CoBadgedCardData {
|
||||
|
||||
Reference in New Issue
Block a user