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

@ -470,6 +470,7 @@ pub enum FieldType {
DropDown { options: Vec<String> },
UserDateOfBirth,
UserVpaId,
LanguagePreference { options: Vec<String> },
}
impl FieldType {
@ -556,6 +557,7 @@ impl PartialEq for FieldType {
) => options_self.eq(options_other),
(Self::UserDateOfBirth, Self::UserDateOfBirth) => true,
(Self::UserVpaId, Self::UserVpaId) => true,
(Self::LanguagePreference { .. }, Self::LanguagePreference { .. }) => true,
_unused => false,
}
}

View File

@ -2785,6 +2785,7 @@ pub struct SwishQrData {}
pub struct MifinityData {
#[schema(value_type = Date)]
pub date_of_birth: Secret<Date>,
pub language_preference: Option<String>,
}
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]