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:
SargamPuram
2023-08-01 17:58:46 +05:30
committed by GitHub
parent 5773faf739
commit e3a33bb5c2
6 changed files with 63 additions and 9 deletions

View File

@ -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)]