mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
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:
@ -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,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user