mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(globalsearch): Added search_tags based filter for global search in dashboard (#5341)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Abhishek Kanojia <89402434+Abhitator216@users.noreply.github.com>
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
use common_utils::hashing::HashedString;
|
||||
use masking::WithType;
|
||||
use serde_json::Value;
|
||||
|
||||
#[derive(Clone, Debug, Default, serde::Deserialize, serde::Serialize)]
|
||||
@ -7,6 +8,7 @@ pub struct SearchFilters {
|
||||
pub currency: Option<Vec<String>>,
|
||||
pub status: Option<Vec<String>>,
|
||||
pub customer_email: Option<Vec<HashedString<common_utils::pii::EmailStrategy>>>,
|
||||
pub search_tags: Option<Vec<HashedString<WithType>>>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
|
||||
|
||||
@ -9,11 +9,12 @@ use common_utils::{
|
||||
consts::default_payments_list_limit,
|
||||
crypto,
|
||||
ext_traits::{ConfigExt, Encode},
|
||||
hashing::HashedString,
|
||||
id_type,
|
||||
pii::{self, Email},
|
||||
types::{MinorUnit, StringMajorUnit},
|
||||
};
|
||||
use masking::{PeekInterface, Secret};
|
||||
use masking::{PeekInterface, Secret, WithType};
|
||||
use router_derive::Setter;
|
||||
use serde::{
|
||||
de::{self, Unexpected, Visitor},
|
||||
@ -4987,11 +4988,12 @@ 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>>>,
|
||||
#[schema(value_type = Option<Vec<String>>)]
|
||||
pub search_tags: Option<Vec<HashedString<WithType>>>,
|
||||
}
|
||||
|
||||
///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