mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +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:
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user