@@ -9,11 +9,12 @@ use common_utils::{
9
9
consts:: default_payments_list_limit,
10
10
crypto,
11
11
ext_traits:: { ConfigExt , Encode } ,
12
+ hashing:: HashedString ,
12
13
id_type,
13
14
pii:: { self , Email } ,
14
15
types:: { MinorUnit , StringMajorUnit } ,
15
16
} ;
16
- use masking:: { PeekInterface , Secret } ;
17
+ use masking:: { PeekInterface , Secret , WithType } ;
17
18
use router_derive:: Setter ;
18
19
use serde:: {
19
20
de:: { self , Unexpected , Visitor } ,
@@ -4987,11 +4988,12 @@ pub struct PaymentsStartRequest {
4987
4988
#[ derive( Debug , Clone , serde:: Deserialize , serde:: Serialize , ToSchema ) ]
4988
4989
pub struct FeatureMetadata {
4989
4990
/// Redirection response coming in request as metadata field only for redirection scenarios
4991
+ #[ schema( value_type = Option <RedirectResponse >) ]
4990
4992
pub redirect_response : Option < RedirectResponse > ,
4991
4993
// TODO: Convert this to hashedstrings to avoid PII sensitive data
4992
4994
/// Additional tags to be used for global search
4993
- #[ schema( value_type = Option <RedirectResponse >) ]
4994
- pub search_tags : Option < Vec < Secret < String > > > ,
4995
+ #[ schema( value_type = Option <Vec < String > >) ]
4996
+ pub search_tags : Option < Vec < HashedString < WithType > > > ,
4995
4997
}
4996
4998
4997
4999
///frm message is an object sent inside the payments response...when frm is invoked, its value is Some(...), else its None
0 commit comments