mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
feat(pii): implement a masking strategy for UPI VPAs (#1641)
Co-authored-by: Prasunna Soppa <prasunna.soppa@juspay.in> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
@ -5,7 +5,7 @@ use common_utils::{
|
||||
crypto::Encryptable,
|
||||
date_time,
|
||||
ext_traits::StringExt,
|
||||
pii::{IpAddress, SecretSerdeValue},
|
||||
pii::{IpAddress, SecretSerdeValue, UpiVpaMaskingStrategy},
|
||||
};
|
||||
use error_stack::{IntoReport, ResultExt};
|
||||
use serde::{Deserialize, Serialize};
|
||||
@ -63,7 +63,7 @@ pub enum StripeWallet {
|
||||
|
||||
#[derive(Default, Serialize, PartialEq, Eq, Deserialize, Clone, Debug)]
|
||||
pub struct StripeUpi {
|
||||
pub vpa_id: masking::Secret<String>,
|
||||
pub vpa_id: masking::Secret<String, UpiVpaMaskingStrategy>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Default, Serialize, PartialEq, Eq, Deserialize, Clone)]
|
||||
|
||||
Reference in New Issue
Block a user