mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(core): Add profile-level configuration for L2/L3 data enablement (#9683)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: likhinbopanna <131246334+likhinbopanna@users.noreply.github.com>
This commit is contained in:
@ -2214,6 +2214,10 @@ pub struct ProfileCreate {
|
||||
/// Merchant Connector id to be stored for billing_processor connector
|
||||
#[schema(value_type = Option<String>)]
|
||||
pub billing_processor_id: Option<id_type::MerchantConnectorAccountId>,
|
||||
|
||||
/// Flag to enable Level 2 and Level 3 processing data for card transactions
|
||||
#[schema(value_type = Option<bool>)]
|
||||
pub is_l2_l3_enabled: Option<bool>,
|
||||
}
|
||||
|
||||
#[nutype::nutype(
|
||||
@ -2375,6 +2379,10 @@ pub struct ProfileCreate {
|
||||
/// Merchant Connector id to be stored for billing_processor connector
|
||||
#[schema(value_type = Option<String>)]
|
||||
pub billing_processor_id: Option<id_type::MerchantConnectorAccountId>,
|
||||
|
||||
/// Flag to enable Level 2 and Level 3 processing data for card transactions
|
||||
#[schema(value_type = Option<bool>)]
|
||||
pub is_l2_l3_enabled: Option<bool>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
@ -2579,6 +2587,10 @@ pub struct ProfileResponse {
|
||||
/// Merchant Connector id to be stored for billing_processor connector
|
||||
#[schema(value_type = Option<String>)]
|
||||
pub billing_processor_id: Option<id_type::MerchantConnectorAccountId>,
|
||||
|
||||
/// Flag to enable Level 2 and Level 3 processing data for card transactions
|
||||
#[schema(value_type = Option<bool>)]
|
||||
pub is_l2_l3_enabled: Option<bool>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
@ -2753,6 +2765,10 @@ pub struct ProfileResponse {
|
||||
/// Merchant Connector id to be stored for billing_processor connector
|
||||
#[schema(value_type = Option<String>)]
|
||||
pub billing_processor_id: Option<id_type::MerchantConnectorAccountId>,
|
||||
|
||||
/// Flag to enable Level 2 and Level 3 processing data for card transactions
|
||||
#[schema(value_type = Option<bool>)]
|
||||
pub is_l2_l3_enabled: Option<bool>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
@ -2947,6 +2963,10 @@ pub struct ProfileUpdate {
|
||||
/// Merchant Connector id to be stored for billing_processor connector
|
||||
#[schema(value_type = Option<String>)]
|
||||
pub billing_processor_id: Option<id_type::MerchantConnectorAccountId>,
|
||||
|
||||
/// Flag to enable Level 2 and Level 3 processing data for card transactions
|
||||
#[schema(value_type = Option<bool>)]
|
||||
pub is_l2_l3_enabled: Option<bool>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
|
||||
Reference in New Issue
Block a user