feat: add support for merchant to pass public key and ttl for encrypting payload (#4456)

This commit is contained in:
Chethan Rao
2024-05-01 16:06:33 +05:30
committed by GitHub
parent bda749d097
commit b562e62ac8
8 changed files with 42 additions and 0 deletions

View File

@ -1042,6 +1042,9 @@ pub struct BusinessProfileUpdate {
/// External 3DS authentication details
pub authentication_connector_details: Option<AuthenticationConnectorDetails>,
/// Merchant's config to support extended card info feature
pub extended_card_info_config: Option<ExtendedCardInfoConfig>,
}
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, PartialEq, ToSchema)]
@ -1095,3 +1098,9 @@ pub struct ExtendedCardInfoChoice {
}
impl common_utils::events::ApiEventMetric for ExtendedCardInfoChoice {}
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct ExtendedCardInfoConfig {
pub public_key: Secret<String>,
pub ttl_in_secs: u16,
}