mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
refactor(connector): [Fiserv] Mask PII data (#3821)
This commit is contained in:
@ -62,8 +62,8 @@ pub enum Source {
|
|||||||
},
|
},
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
GooglePay {
|
GooglePay {
|
||||||
data: String,
|
data: Secret<String>,
|
||||||
signature: String,
|
signature: Secret<String>,
|
||||||
version: String,
|
version: String,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -80,8 +80,8 @@ pub struct CardData {
|
|||||||
#[derive(Default, Debug, Serialize)]
|
#[derive(Default, Debug, Serialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct GooglePayToken {
|
pub struct GooglePayToken {
|
||||||
signature: String,
|
signature: Secret<String>,
|
||||||
signed_message: String,
|
signed_message: Secret<String>,
|
||||||
protocol_version: String,
|
protocol_version: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ pub struct TransactionDetails {
|
|||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct MerchantDetails {
|
pub struct MerchantDetails {
|
||||||
merchant_id: Secret<String>,
|
merchant_id: Secret<String>,
|
||||||
terminal_id: Option<String>,
|
terminal_id: Option<Secret<String>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default, Debug, Serialize)]
|
#[derive(Default, Debug, Serialize)]
|
||||||
@ -428,7 +428,7 @@ pub struct ReferenceTransactionDetails {
|
|||||||
|
|
||||||
#[derive(Debug, Default, Serialize, Deserialize)]
|
#[derive(Debug, Default, Serialize, Deserialize)]
|
||||||
pub struct FiservSessionObject {
|
pub struct FiservSessionObject {
|
||||||
pub terminal_id: String,
|
pub terminal_id: Secret<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl TryFrom<&Option<pii::SecretSerdeValue>> for FiservSessionObject {
|
impl TryFrom<&Option<pii::SecretSerdeValue>> for FiservSessionObject {
|
||||||
|
|||||||
Reference in New Issue
Block a user