mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(events): add hashed customer_email and feature_metadata (#5220)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
use common_utils::hashing::HashedString;
|
||||
use serde_json::Value;
|
||||
|
||||
#[derive(Clone, Debug, Default, serde::Deserialize, serde::Serialize)]
|
||||
@ -5,7 +6,7 @@ pub struct SearchFilters {
|
||||
pub payment_method: Option<Vec<String>>,
|
||||
pub currency: Option<Vec<String>>,
|
||||
pub status: Option<Vec<String>>,
|
||||
pub customer_email: Option<Vec<String>>,
|
||||
pub customer_email: Option<Vec<HashedString<common_utils::pii::EmailStrategy>>>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
|
||||
|
||||
@ -4821,8 +4821,11 @@ pub struct PaymentsStartRequest {
|
||||
#[derive(Debug, Clone, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
pub struct FeatureMetadata {
|
||||
/// Redirection response coming in request as metadata field only for redirection scenarios
|
||||
#[schema(value_type = Option<RedirectResponse>)]
|
||||
pub redirect_response: Option<RedirectResponse>,
|
||||
// TODO: Convert this to hashedstrings to avoid PII sensitive data
|
||||
/// Additional tags to be used for global search
|
||||
#[schema(value_type = Option<RedirectResponse>)]
|
||||
pub search_tags: Option<Vec<Secret<String>>>,
|
||||
}
|
||||
|
||||
///frm message is an object sent inside the payments response...when frm is invoked, its value is Some(...), else its None
|
||||
|
||||
Reference in New Issue
Block a user