mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
fix(connector): [BOA/CYBS] make risk information message optional (#5107)
This commit is contained in:
@ -884,7 +884,7 @@ pub struct Profile {
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||
pub struct ClientRiskInformationRules {
|
||||
name: Secret<String>,
|
||||
name: Option<Secret<String>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
@ -2961,7 +2961,11 @@ impl
|
||||
client_risk_information.rules.map(|rules| {
|
||||
rules
|
||||
.iter()
|
||||
.map(|risk_info| format!(" , {}", risk_info.name.clone().expose()))
|
||||
.map(|risk_info| {
|
||||
risk_info.name.clone().map_or("".to_string(), |name| {
|
||||
format!(" , {}", name.clone().expose())
|
||||
})
|
||||
})
|
||||
.collect::<Vec<String>>()
|
||||
.join("")
|
||||
})
|
||||
|
||||
@ -1839,7 +1839,7 @@ pub struct ClientRiskInformation {
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||
pub struct ClientRiskInformationRules {
|
||||
name: Secret<String>,
|
||||
name: Option<Secret<String>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||
@ -3402,7 +3402,11 @@ impl
|
||||
client_risk_information.rules.map(|rules| {
|
||||
rules
|
||||
.iter()
|
||||
.map(|risk_info| format!(" , {}", risk_info.name.clone().expose()))
|
||||
.map(|risk_info| {
|
||||
risk_info.name.clone().map_or("".to_string(), |name| {
|
||||
format!(" , {}", name.clone().expose())
|
||||
})
|
||||
})
|
||||
.collect::<Vec<String>>()
|
||||
.join("")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user