Skip to content

Commit

Permalink
fix(core): Fix Default Values Enum FieldType (#2934)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshu-iiitu committed Dec 20, 2023
1 parent a152b52 commit 9519157
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions crates/api_models/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,8 @@ pub enum FieldType {
UserCountry { options: Vec<String> }, //for country inside payment method data ex- bank redirect
UserCurrency { options: Vec<String> },
UserBillingName,
UserAddressline1,
UserAddressline2,
UserAddressLine1,
UserAddressLine2,
UserAddressCity,
UserAddressPincode,
UserAddressState,
Expand Down
14 changes: 7 additions & 7 deletions crates/router/src/configs/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ impl Default for super::settings::RequiredFields {
RequiredFieldInfo {
required_field: "billing.address.line1".to_string(),
display_name: "line1".to_string(),
field_type: enums::FieldType::UserAddressline1,
field_type: enums::FieldType::UserAddressLine1,
value: None,
}
),
Expand Down Expand Up @@ -806,7 +806,7 @@ impl Default for super::settings::RequiredFields {
RequiredFieldInfo {
required_field: "billing.address.line1".to_string(),
display_name: "line1".to_string(),
field_type: enums::FieldType::UserAddressline1,
field_type: enums::FieldType::UserAddressLine1,
value: None,
}
),
Expand Down Expand Up @@ -1238,7 +1238,7 @@ impl Default for super::settings::RequiredFields {
RequiredFieldInfo {
required_field: "billing.address.line1".to_string(),
display_name: "line1".to_string(),
field_type: enums::FieldType::UserAddressline1,
field_type: enums::FieldType::UserAddressLine1,
value: None,
}
),
Expand All @@ -1247,7 +1247,7 @@ impl Default for super::settings::RequiredFields {
RequiredFieldInfo {
required_field: "billing.address.line2".to_string(),
display_name: "line2".to_string(),
field_type: enums::FieldType::UserAddressline2,
field_type: enums::FieldType::UserAddressLine2,
value: None,
}
),
Expand Down Expand Up @@ -2582,7 +2582,7 @@ impl Default for super::settings::RequiredFields {
RequiredFieldInfo {
required_field: "billing.address.line1".to_string(),
display_name: "line1".to_string(),
field_type: enums::FieldType::UserAddressline1,
field_type: enums::FieldType::UserAddressLine1,
value: None,
}
),
Expand Down Expand Up @@ -3014,7 +3014,7 @@ impl Default for super::settings::RequiredFields {
RequiredFieldInfo {
required_field: "billing.address.line1".to_string(),
display_name: "line1".to_string(),
field_type: enums::FieldType::UserAddressline1,
field_type: enums::FieldType::UserAddressLine1,
value: None,
}
),
Expand All @@ -3023,7 +3023,7 @@ impl Default for super::settings::RequiredFields {
RequiredFieldInfo {
required_field: "billing.address.line2".to_string(),
display_name: "line2".to_string(),
field_type: enums::FieldType::UserAddressline2,
field_type: enums::FieldType::UserAddressLine2,
value: None,
}
),
Expand Down
4 changes: 2 additions & 2 deletions openapi/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -5357,13 +5357,13 @@
{
"type": "string",
"enum": [
"user_addressline1"
"user_address_line1"
]
},
{
"type": "string",
"enum": [
"user_addressline2"
"user_address_line2"
]
},
{
Expand Down

0 comments on commit 9519157

Please sign in to comment.