From e730030e24d177b3e696b446e5ccb964cc07ee37 Mon Sep 17 00:00:00 2001 From: Narayan Bhat <48803246+Narayanbhat166@users.noreply.github.com> Date: Fri, 26 Apr 2024 11:43:10 +0530 Subject: [PATCH] refactor(required_fields): change required fields for billing address (#4258) --- crates/router/src/configs/defaults.rs | 782 ++++++++++++++------------ 1 file changed, 427 insertions(+), 355 deletions(-) diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rs index ddf42d0bb6c7..bf2635c6fc29 100644 --- a/crates/router/src/configs/defaults.rs +++ b/crates/router/src/configs/defaults.rs @@ -280,14 +280,23 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } - ) + ), + ( + "billing.address.last_name".to_string(), + RequiredFieldInfo { + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, + value: None, + } + ), ] ), } @@ -476,9 +485,18 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, + value: None, + } + ), + ( + "billing.address.last_name".to_string(), + RequiredFieldInfo { + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, @@ -543,25 +561,25 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), - display_name: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -570,7 +588,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.state".to_string(), RequiredFieldInfo { - required_field: "billing.address.state".to_string(), + required_field: "payment_method_data.billing.address.state".to_string(), display_name: "state".to_string(), field_type: enums::FieldType::UserAddressState, value: None, @@ -579,7 +597,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -588,7 +606,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -601,7 +619,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -666,18 +684,18 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), - display_name: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ) @@ -742,9 +760,9 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ) @@ -797,45 +815,36 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, 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(), + "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( - "billing.address.last_name".to_string(), + "email".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), - display_name: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "email".to_string(), + display_name: "email".to_string(), + field_type: enums::FieldType::UserEmailAddress, value: None, } ), ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -844,7 +853,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -853,7 +862,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.state".to_string(), RequiredFieldInfo { - required_field: "billing.address.state".to_string(), + required_field: "payment_method_data.billing.address.state".to_string(), display_name: "state".to_string(), field_type: enums::FieldType::UserAddressState, value: None, @@ -862,7 +871,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -871,7 +880,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -927,37 +936,28 @@ impl Default for super::settings::RequiredFields { value: None, } ), - ( - "payment_method_data.card.card_holder_name".to_string(), + ( + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } ), - ( - "billing.address.first_name".to_string(), - RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_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: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), - ( + ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -1062,32 +1062,23 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } ), - ( - "billing.address.first_name".to_string(), - RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_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: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } - ) + ), ] ), common:HashMap::new(), @@ -1183,25 +1174,25 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), - display_name: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -1210,7 +1201,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -1272,14 +1263,23 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } - ) + ), + ( + "billing.address.last_name".to_string(), + RequiredFieldInfo { + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, + value: None, + } + ), ] ), common: HashMap::new(), @@ -1331,25 +1331,25 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), - display_name: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -1358,7 +1358,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line2".to_string(), RequiredFieldInfo { - required_field: "billing.address.line2".to_string(), + required_field: "payment_method_data.billing.address.line2".to_string(), display_name: "line2".to_string(), field_type: enums::FieldType::UserAddressLine2, value: None, @@ -1367,7 +1367,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -1376,7 +1376,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -1385,7 +1385,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -1491,25 +1491,25 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), - display_name: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "billing_zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -1564,14 +1564,23 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } - ) + ), + ( + "billing.address.last_name".to_string(), + RequiredFieldInfo { + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, + value: None, + } + ), ] ), } @@ -1631,18 +1640,18 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), - display_name: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), @@ -1787,14 +1796,23 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } - ) + ), + ( + "billing.address.last_name".to_string(), + RequiredFieldInfo { + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, + value: None, + } + ), ] ), common: HashMap::new(), @@ -1843,14 +1861,23 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } - ) + ), + ( + "billing.address.last_name".to_string(), + RequiredFieldInfo { + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, + value: None, + } + ), ] ), common: HashMap::new(), @@ -1945,14 +1972,23 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } - ) + ), + ( + "billing.address.last_name".to_string(), + RequiredFieldInfo { + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, + value: None, + } + ), ] ), common: HashMap::new(), @@ -2050,25 +2086,25 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), - field_type: enums::FieldType::UserBillingName, + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "card_holder_name".to_string(), - field_type: enums::FieldType::UserBillingName, + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -2077,7 +2113,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -2086,7 +2122,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -2095,7 +2131,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -2201,7 +2237,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -2347,14 +2383,23 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } - ) + ), + ( + "billing.address.last_name".to_string(), + RequiredFieldInfo { + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, + value: None, + } + ), ] ), } @@ -2543,9 +2588,18 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, + value: None, + } + ), + ( + "billing.address.last_name".to_string(), + RequiredFieldInfo { + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, @@ -2610,25 +2664,25 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), - display_name: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -2637,7 +2691,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.state".to_string(), RequiredFieldInfo { - required_field: "billing.address.state".to_string(), + required_field: "payment_method_data.billing.address.state".to_string(), display_name: "state".to_string(), field_type: enums::FieldType::UserAddressState, value: None, @@ -2646,7 +2700,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -2655,7 +2709,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -2668,7 +2722,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -2733,18 +2787,18 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), - display_name: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ) @@ -2809,9 +2863,9 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ) @@ -2863,45 +2917,36 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, 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(), + "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( - "billing.address.last_name".to_string(), + "email".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), - display_name: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "email".to_string(), + display_name: "email".to_string(), + field_type: enums::FieldType::UserEmailAddress, value: None, } ), ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -2910,7 +2955,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -2919,7 +2964,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.state".to_string(), RequiredFieldInfo { - required_field: "billing.address.state".to_string(), + required_field: "payment_method_data.billing.address.state".to_string(), display_name: "state".to_string(), field_type: enums::FieldType::UserAddressState, value: None, @@ -2928,7 +2973,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -2937,7 +2982,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -2995,36 +3040,27 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } ), - ( - "billing.address.first_name".to_string(), - RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_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: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -3129,32 +3165,23 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } ), - ( - "billing.address.first_name".to_string(), - RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_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: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } - ) + ), ] ), common:HashMap::new(), @@ -3250,25 +3277,25 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), - display_name: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -3277,7 +3304,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -3339,14 +3366,23 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } - ) + ), + ( + "billing.address.last_name".to_string(), + RequiredFieldInfo { + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, + value: None, + } + ), ] ), common: HashMap::new(), @@ -3398,25 +3434,25 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), - display_name: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -3425,7 +3461,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line2".to_string(), RequiredFieldInfo { - required_field: "billing.address.line2".to_string(), + required_field: "payment_method_data.billing.address.line2".to_string(), display_name: "line2".to_string(), field_type: enums::FieldType::UserAddressLine2, value: None, @@ -3434,7 +3470,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -3443,7 +3479,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -3452,7 +3488,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -3558,25 +3594,25 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), - display_name: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "billing_zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -3631,14 +3667,23 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), + RequiredFieldInfo { + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, + value: None, + } + ), + ( + "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } - ) + ), ] ), } @@ -3698,18 +3743,18 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), - display_name: "billing_first_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.first_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), - display_name: "billing_last_name".to_string(), - field_type: enums::FieldType::UserBillingName, + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, value: None, } ), @@ -3854,14 +3899,23 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } - ) + ), + ( + "billing.address.last_name".to_string(), + RequiredFieldInfo { + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, + value: None, + } + ), ] ), common: HashMap::new(), @@ -3910,14 +3964,23 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } - ) + ), + ( + "billing.address.last_name".to_string(), + RequiredFieldInfo { + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, + value: None, + } + ), ] ), common: HashMap::new(), @@ -4012,14 +4075,23 @@ impl Default for super::settings::RequiredFields { } ), ( - "payment_method_data.card.card_holder_name".to_string(), + "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "payment_method_data.card.card_holder_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), field_type: enums::FieldType::UserFullName, value: None, } - ) + ), + ( + "billing.address.last_name".to_string(), + RequiredFieldInfo { + required_field: "payment_method_data.billing.address.last_name".to_string(), + display_name: "card_holder_name".to_string(), + field_type: enums::FieldType::UserFullName, + value: None, + } + ), ] ), common: HashMap::new(), @@ -4117,25 +4189,25 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "card_holder_name".to_string(), - field_type: enums::FieldType::UserBillingName, + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "card_holder_name".to_string(), - field_type: enums::FieldType::UserBillingName, + field_type: enums::FieldType::UserFullName, value: None, } ), ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -4144,7 +4216,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -4153,7 +4225,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -4162,7 +4234,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -4268,7 +4340,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -4384,7 +4456,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -4393,7 +4465,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "billing_last_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -4566,7 +4638,7 @@ impl Default for super::settings::RequiredFields { common: HashMap::from([ ("billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry { options: vec![ @@ -4604,7 +4676,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -4613,7 +4685,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "billing_last_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -4622,7 +4694,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -4699,7 +4771,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -4708,7 +4780,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -4717,7 +4789,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -4726,7 +4798,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -4735,7 +4807,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry { options: vec![ @@ -4847,7 +4919,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -4856,7 +4928,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "billing_last_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -4865,7 +4937,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -4967,7 +5039,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -4976,7 +5048,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -4985,7 +5057,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -4994,7 +5066,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -5003,7 +5075,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -5072,7 +5144,7 @@ impl Default for super::settings::RequiredFields { common: HashMap::from([ ("billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry { options: vec![ @@ -5123,7 +5195,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -5132,7 +5204,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "billing_last_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -5141,7 +5213,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -5260,7 +5332,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -5269,7 +5341,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -5278,7 +5350,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -5287,7 +5359,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -5296,7 +5368,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry { options: vec![ @@ -5395,7 +5467,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry { options: vec![ @@ -5455,7 +5527,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -5464,7 +5536,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -5473,7 +5545,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -5482,7 +5554,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -5491,7 +5563,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -5530,7 +5602,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -5539,7 +5611,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "billing_last_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -5548,7 +5620,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -5623,7 +5695,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -5632,7 +5704,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "billing_last_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -5641,7 +5713,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -5650,7 +5722,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -5659,7 +5731,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -5668,7 +5740,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -5719,7 +5791,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -5728,7 +5800,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "billing_last_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -5737,7 +5809,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -5746,7 +5818,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.state".to_string(), RequiredFieldInfo { - required_field: "billing.address.state".to_string(), + required_field: "payment_method_data.billing.address.state".to_string(), display_name: "state".to_string(), field_type: enums::FieldType::UserAddressState, value: None, @@ -5755,7 +5827,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -5764,7 +5836,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -5777,7 +5849,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -5806,7 +5878,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -5815,7 +5887,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "billing_last_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -5824,7 +5896,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -5833,7 +5905,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.state".to_string(), RequiredFieldInfo { - required_field: "billing.address.state".to_string(), + required_field: "payment_method_data.billing.address.state".to_string(), display_name: "state".to_string(), field_type: enums::FieldType::UserAddressState, value: None, @@ -5842,7 +5914,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -5851,7 +5923,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -5864,7 +5936,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -5908,7 +5980,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -5917,7 +5989,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "billing_last_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -5926,7 +5998,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -5935,7 +6007,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.state".to_string(), RequiredFieldInfo { - required_field: "billing.address.state".to_string(), + required_field: "payment_method_data.billing.address.state".to_string(), display_name: "state".to_string(), field_type: enums::FieldType::UserAddressState, value: None, @@ -5944,7 +6016,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -5953,7 +6025,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -5966,7 +6038,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -6041,7 +6113,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -6050,7 +6122,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "billing_last_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -6059,7 +6131,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -6068,7 +6140,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.state".to_string(), RequiredFieldInfo { - required_field: "billing.address.state".to_string(), + required_field: "payment_method_data.billing.address.state".to_string(), display_name: "state".to_string(), field_type: enums::FieldType::UserAddressState, value: None, @@ -6077,7 +6149,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -6086,7 +6158,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -6099,7 +6171,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -6108,7 +6180,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line2".to_string(), RequiredFieldInfo { - required_field: "billing.address.line2".to_string(), + required_field: "payment_method_data.billing.address.line2".to_string(), display_name: "line2".to_string(), field_type: enums::FieldType::UserAddressLine2, value: None, @@ -6135,7 +6207,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -6144,7 +6216,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.last_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.last_name".to_string(), + required_field: "payment_method_data.billing.address.last_name".to_string(), display_name: "billing_last_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -6153,7 +6225,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.city".to_string(), RequiredFieldInfo { - required_field: "billing.address.city".to_string(), + required_field: "payment_method_data.billing.address.city".to_string(), display_name: "city".to_string(), field_type: enums::FieldType::UserAddressCity, value: None, @@ -6162,7 +6234,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.state".to_string(), RequiredFieldInfo { - required_field: "billing.address.state".to_string(), + required_field: "payment_method_data.billing.address.state".to_string(), display_name: "state".to_string(), field_type: enums::FieldType::UserAddressState, value: None, @@ -6171,7 +6243,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.zip".to_string(), RequiredFieldInfo { - required_field: "billing.address.zip".to_string(), + required_field: "payment_method_data.billing.address.zip".to_string(), display_name: "zip".to_string(), field_type: enums::FieldType::UserAddressPincode, value: None, @@ -6180,7 +6252,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![ @@ -6193,7 +6265,7 @@ impl Default for super::settings::RequiredFields { ( "billing.address.line1".to_string(), RequiredFieldInfo { - required_field: "billing.address.line1".to_string(), + required_field: "payment_method_data.billing.address.line1".to_string(), display_name: "line1".to_string(), field_type: enums::FieldType::UserAddressLine1, value: None, @@ -6456,7 +6528,7 @@ impl Default for super::settings::RequiredFields { common: HashMap::from([ ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -6477,7 +6549,7 @@ impl Default for super::settings::RequiredFields { common: HashMap::from([ ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -6500,7 +6572,7 @@ impl Default for super::settings::RequiredFields { common: HashMap::from([ ( "billing.address.first_name".to_string(), RequiredFieldInfo { - required_field: "billing.address.first_name".to_string(), + required_field: "payment_method_data.billing.address.first_name".to_string(), display_name: "billing_first_name".to_string(), field_type: enums::FieldType::UserBillingName, value: None, @@ -6536,7 +6608,7 @@ impl Default for super::settings::RequiredFields { non_mandate: HashMap::from([ ( "billing.address.country".to_string(), RequiredFieldInfo { - required_field: "billing.address.country".to_string(), + required_field: "payment_method_data.billing.address.country".to_string(), display_name: "country".to_string(), field_type: enums::FieldType::UserAddressCountry{ options: vec![