feat(users): refactor ProdIntent to support product-type context and merchant-scope (#7638)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sandeep Kumar
2025-04-10 15:14:07 +05:30
committed by GitHub
parent 203ae3e97e
commit bbd2102274
10 changed files with 51 additions and 19 deletions

View File

@ -1,4 +1,4 @@
use common_enums::CountryAlpha2;
use common_enums::{CountryAlpha2, MerchantProductType};
use common_utils::{id_type, pii};
use masking::Secret;
use strum::EnumString;
@ -103,6 +103,8 @@ pub struct ProdIntent {
pub poc_contact: Option<String>,
pub comments: Option<String>,
pub is_completed: bool,
#[serde(default)]
pub product_type: MerchantProductType,
}
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone)]