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:
Amisha Prabhat
2024-08-05 15:28:19 +05:30
committed by GitHub
parent 7743255cd8
commit 3fea00c43e
4 changed files with 168 additions and 58 deletions

View File

@ -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>,