mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
refactor: Add routing_approach other variant to handle unknown data (#8754)
This commit is contained in:
@ -8535,7 +8535,6 @@ pub enum TokenDataType {
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
Debug,
|
||||
Default,
|
||||
Eq,
|
||||
@ -8562,6 +8561,9 @@ pub enum RoutingApproach {
|
||||
StraightThroughRouting,
|
||||
#[default]
|
||||
DefaultFallback,
|
||||
#[serde(untagged)]
|
||||
#[strum(default)]
|
||||
Other(String),
|
||||
}
|
||||
|
||||
impl RoutingApproach {
|
||||
@ -8570,6 +8572,7 @@ impl RoutingApproach {
|
||||
"SR_SELECTION_V3_ROUTING" => Self::SuccessRateExploitation,
|
||||
"SR_V3_HEDGING" => Self::SuccessRateExploration,
|
||||
"NTW_BASED_ROUTING" => Self::DebitRouting,
|
||||
"DEFAULT" => Self::StraightThroughRouting,
|
||||
_ => Self::DefaultFallback,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user