refactor(connector): [Mifinity] add a field language_preference in payment request for mifinity payment method data (#5326)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Swangi Kumari
2024-07-15 21:40:58 +05:30
committed by GitHub
parent 0f70473a3a
commit e4a0ff1c19
6 changed files with 80 additions and 0 deletions

View File

@ -120,6 +120,7 @@ pub enum WalletData {
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct MifinityData {
pub date_of_birth: Secret<Date>,
pub language_preference: Option<String>,
}
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize)]
@ -620,6 +621,7 @@ impl From<api_models::payments::WalletData> for WalletData {
api_models::payments::WalletData::Mifinity(mifinity_data) => {
Self::Mifinity(MifinityData {
date_of_birth: mifinity_data.date_of_birth,
language_preference: mifinity_data.language_preference,
})
}
}