Skip to content

Commit b5b8d3c

Browse files
committed
refactor: add a new type user vpa id for dynamic fields
1 parent 27cd8ea commit b5b8d3c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

crates/api_models/src/enums.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ pub enum FieldType {
468468
Text,
469469
DropDown { options: Vec<String> },
470470
UserDateOfBirth,
471+
UserVpaId,
471472
}
472473

473474
impl FieldType {
@@ -553,6 +554,7 @@ impl PartialEq for FieldType {
553554
},
554555
) => options_self.eq(options_other),
555556
(Self::UserDateOfBirth, Self::UserDateOfBirth) => true,
557+
(Self::UserVpaId, Self::UserVpaId) => true,
556558
_unused => false,
557559
}
558560
}

crates/router/src/configs/defaults.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8659,7 +8659,7 @@ impl Default for super::settings::RequiredFields {
86598659
RequiredFieldInfo {
86608660
required_field: "payment_method_data.upi.upi_collect.vpa_id".to_string(),
86618661
display_name: "vpa_id".to_string(),
8662-
field_type: enums::FieldType::Text,
8662+
field_type: enums::FieldType::UserVpaId,
86638663
value: None,
86648664
}
86658665
),

0 commit comments

Comments
 (0)