Files
Sai Harsha Vardhan 56791c2743 refactor(router): add api_version and make profile_id mandatory in mca v2 (#5602)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
2024-08-14 15:19:26 +00:00

20 lines
569 B
Rust

//! Constants that are used in the domain models.
#[cfg(all(
any(feature = "v1", feature = "v2"),
not(feature = "customer_v2"),
not(feature = "merchant_account_v2"),
not(feature = "merchant_connector_account_v2")
))]
pub const API_VERSION: common_enums::ApiVersion = common_enums::ApiVersion::V1;
#[cfg(all(
feature = "v2",
any(
feature = "customer_v2",
feature = "merchant_account_v2",
feature = "merchant_connector_account_v2"
)
))]
pub const API_VERSION: common_enums::ApiVersion = common_enums::ApiVersion::V2;