From 9274cefbdd29d2ac64baeea2fe504dff2472cb47 Mon Sep 17 00:00:00 2001 From: Prasunna Soppa <70575890+prasunna09@users.noreply.github.com> Date: Mon, 4 Dec 2023 17:49:15 +0530 Subject: [PATCH] fix(pm_list): [Trustpay]Update dynamic fields for trustpay blik (#3042) --- crates/router/src/configs/defaults.rs | 36 +++++++-------------------- 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rs index db29e81800..d529ae034a 100644 --- a/crates/router/src/configs/defaults.rs +++ b/crates/router/src/configs/defaults.rs @@ -4293,6 +4293,15 @@ impl Default for super::settings::RequiredFields { mandate: HashMap::new(), non_mandate: HashMap::new(), common: HashMap::from([ + ( + "email".to_string(), + RequiredFieldInfo { + required_field: "email".to_string(), + display_name: "email".to_string(), + field_type: enums::FieldType::UserEmailAddress, + value: None, + } + ), ( "billing.address.first_name".to_string(), RequiredFieldInfo { @@ -4311,33 +4320,6 @@ impl Default for super::settings::RequiredFields { value: None, } ), - ( - "email".to_string(), - RequiredFieldInfo { - required_field: "email".to_string(), - display_name: "email".to_string(), - field_type: enums::FieldType::UserEmailAddress, - value: None, - } - ), - ( - "billing.address.first_name".to_string(), - RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "card_holder_name".to_string(), - field_type: enums::FieldType::UserBillingName, - value: None, - } - ), - ( - "billing.address.last_name".to_string(), - RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), - display_name: "card_holder_name".to_string(), - field_type: enums::FieldType::UserBillingName, - value: None, - } - ), ( "billing.address.line1".to_string(), RequiredFieldInfo {