mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
refactor(routing): Refactor api v2 routes for deactivating and retrieving the routing config (#5478)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in> Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
@ -30,7 +30,16 @@ impl ConnectorSelection {
|
||||
}
|
||||
}
|
||||
}
|
||||
#[cfg(all(feature = "v2", feature = "routing_v2"))]
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
pub struct RoutingConfigRequest {
|
||||
pub name: String,
|
||||
pub description: String,
|
||||
pub algorithm: RoutingAlgorithm,
|
||||
pub profile_id: String,
|
||||
}
|
||||
|
||||
#[cfg(all(any(feature = "v1", feature = "v2"), not(feature = "routing_v2")))]
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
pub struct RoutingConfigRequest {
|
||||
pub name: Option<String>,
|
||||
|
||||
Reference in New Issue
Block a user