mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
fix(connector): [Novalnet] Add mandatory fields for wallets and card in config (#6463)
This commit is contained in:
@ -33,6 +33,7 @@ impl Default for Mandates {
|
|||||||
enums::Connector::Globalpay,
|
enums::Connector::Globalpay,
|
||||||
enums::Connector::Multisafepay,
|
enums::Connector::Multisafepay,
|
||||||
enums::Connector::Bankofamerica,
|
enums::Connector::Bankofamerica,
|
||||||
|
enums::Connector::Novalnet,
|
||||||
enums::Connector::Noon,
|
enums::Connector::Noon,
|
||||||
enums::Connector::Cybersource,
|
enums::Connector::Cybersource,
|
||||||
enums::Connector::Wellsfargo,
|
enums::Connector::Wellsfargo,
|
||||||
@ -47,6 +48,7 @@ impl Default for Mandates {
|
|||||||
enums::Connector::Adyen,
|
enums::Connector::Adyen,
|
||||||
enums::Connector::Bankofamerica,
|
enums::Connector::Bankofamerica,
|
||||||
enums::Connector::Cybersource,
|
enums::Connector::Cybersource,
|
||||||
|
enums::Connector::Novalnet,
|
||||||
enums::Connector::Wellsfargo,
|
enums::Connector::Wellsfargo,
|
||||||
]),
|
]),
|
||||||
},
|
},
|
||||||
@ -68,6 +70,7 @@ impl Default for Mandates {
|
|||||||
enums::Connector::Multisafepay,
|
enums::Connector::Multisafepay,
|
||||||
enums::Connector::Nexinets,
|
enums::Connector::Nexinets,
|
||||||
enums::Connector::Noon,
|
enums::Connector::Noon,
|
||||||
|
enums::Connector::Novalnet,
|
||||||
enums::Connector::Payme,
|
enums::Connector::Payme,
|
||||||
enums::Connector::Stripe,
|
enums::Connector::Stripe,
|
||||||
enums::Connector::Bankofamerica,
|
enums::Connector::Bankofamerica,
|
||||||
@ -88,6 +91,7 @@ impl Default for Mandates {
|
|||||||
enums::Connector::Multisafepay,
|
enums::Connector::Multisafepay,
|
||||||
enums::Connector::Nexinets,
|
enums::Connector::Nexinets,
|
||||||
enums::Connector::Noon,
|
enums::Connector::Noon,
|
||||||
|
enums::Connector::Novalnet,
|
||||||
enums::Connector::Payme,
|
enums::Connector::Payme,
|
||||||
enums::Connector::Stripe,
|
enums::Connector::Stripe,
|
||||||
]),
|
]),
|
||||||
@ -2067,7 +2071,7 @@ impl Default for settings::RequiredFields {
|
|||||||
"billing.address.line2".to_string(),
|
"billing.address.line2".to_string(),
|
||||||
RequiredFieldInfo {
|
RequiredFieldInfo {
|
||||||
required_field: "payment_method_data.billing.address.line2".to_string(),
|
required_field: "payment_method_data.billing.address.line2".to_string(),
|
||||||
display_name: "line1".to_string(),
|
display_name: "line2".to_string(),
|
||||||
field_type: enums::FieldType::UserAddressLine2,
|
field_type: enums::FieldType::UserAddressLine2,
|
||||||
value: None,
|
value: None,
|
||||||
}
|
}
|
||||||
@ -2117,6 +2121,19 @@ impl Default for settings::RequiredFields {
|
|||||||
value: None,
|
value: None,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
"billing.address.country".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.country".to_string(),
|
||||||
|
display_name: "country".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressCountry{
|
||||||
|
options: vec![
|
||||||
|
"ALL".to_string(),
|
||||||
|
]
|
||||||
|
},
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
@ -5256,7 +5273,7 @@ impl Default for settings::RequiredFields {
|
|||||||
"billing.address.line2".to_string(),
|
"billing.address.line2".to_string(),
|
||||||
RequiredFieldInfo {
|
RequiredFieldInfo {
|
||||||
required_field: "payment_method_data.billing.address.line2".to_string(),
|
required_field: "payment_method_data.billing.address.line2".to_string(),
|
||||||
display_name: "line1".to_string(),
|
display_name: "line2".to_string(),
|
||||||
field_type: enums::FieldType::UserAddressLine2,
|
field_type: enums::FieldType::UserAddressLine2,
|
||||||
value: None,
|
value: None,
|
||||||
}
|
}
|
||||||
@ -5306,6 +5323,19 @@ impl Default for settings::RequiredFields {
|
|||||||
value: None,
|
value: None,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
"billing.address.country".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.country".to_string(),
|
||||||
|
display_name: "country".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressCountry{
|
||||||
|
options: vec![
|
||||||
|
"ALL".to_string(),
|
||||||
|
]
|
||||||
|
},
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
@ -8200,6 +8230,111 @@ impl Default for settings::RequiredFields {
|
|||||||
common: HashMap::new(),
|
common: HashMap::new(),
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
enums::Connector::Novalnet,
|
||||||
|
RequiredFieldFinal {
|
||||||
|
mandate: HashMap::new(),
|
||||||
|
non_mandate: HashMap::new(),
|
||||||
|
common: HashMap::from(
|
||||||
|
[
|
||||||
|
(
|
||||||
|
"browser_info.language".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "browser_info.language".to_string(),
|
||||||
|
display_name: "browser_info_language".to_string(),
|
||||||
|
field_type: enums::FieldType::BrowserLanguage,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"browser_info.ip_address".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "browser_info.ip_address".to_string(),
|
||||||
|
display_name: "browser_info_ip_address".to_string(),
|
||||||
|
field_type: enums::FieldType::BrowserIp,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.line1".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.line1".to_string(),
|
||||||
|
display_name: "line1".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressLine1,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.line2".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.line2".to_string(),
|
||||||
|
display_name: "line2".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressLine2,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.city".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.city".to_string(),
|
||||||
|
display_name: "city".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressCity,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.zip".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.zip".to_string(),
|
||||||
|
display_name: "zip".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressPincode,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.first_name".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.first_name".to_string(),
|
||||||
|
display_name: "first_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: "last_name".to_string(),
|
||||||
|
field_type: enums::FieldType::UserFullName,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.email".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.email".to_string(),
|
||||||
|
display_name: "email_address".to_string(),
|
||||||
|
field_type: enums::FieldType::UserEmailAddress,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.country".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.country".to_string(),
|
||||||
|
display_name: "country".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressCountry{
|
||||||
|
options: vec![
|
||||||
|
"ALL".to_string(),
|
||||||
|
]
|
||||||
|
},
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
]
|
||||||
|
),
|
||||||
|
}
|
||||||
|
),
|
||||||
(
|
(
|
||||||
enums::Connector::Wellsfargo,
|
enums::Connector::Wellsfargo,
|
||||||
RequiredFieldFinal {
|
RequiredFieldFinal {
|
||||||
@ -8473,6 +8608,111 @@ impl Default for settings::RequiredFields {
|
|||||||
common: HashMap::new(),
|
common: HashMap::new(),
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
enums::Connector::Novalnet,
|
||||||
|
RequiredFieldFinal {
|
||||||
|
mandate: HashMap::new(),
|
||||||
|
non_mandate: HashMap::new(),
|
||||||
|
common: HashMap::from(
|
||||||
|
[
|
||||||
|
(
|
||||||
|
"browser_info.language".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "browser_info.language".to_string(),
|
||||||
|
display_name: "browser_info_language".to_string(),
|
||||||
|
field_type: enums::FieldType::BrowserLanguage,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"browser_info.ip_address".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "browser_info.ip_address".to_string(),
|
||||||
|
display_name: "browser_info_ip_address".to_string(),
|
||||||
|
field_type: enums::FieldType::BrowserIp,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.line1".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.line1".to_string(),
|
||||||
|
display_name: "line1".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressLine1,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.line2".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.line2".to_string(),
|
||||||
|
display_name: "line2".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressLine2,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.city".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.city".to_string(),
|
||||||
|
display_name: "city".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressCity,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.zip".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.zip".to_string(),
|
||||||
|
display_name: "zip".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressPincode,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.first_name".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.first_name".to_string(),
|
||||||
|
display_name: "first_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: "last_name".to_string(),
|
||||||
|
field_type: enums::FieldType::UserFullName,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.email".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.email".to_string(),
|
||||||
|
display_name: "email_address".to_string(),
|
||||||
|
field_type: enums::FieldType::UserEmailAddress,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.country".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.country".to_string(),
|
||||||
|
display_name: "country".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressCountry{
|
||||||
|
options: vec![
|
||||||
|
"ALL".to_string(),
|
||||||
|
]
|
||||||
|
},
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
]
|
||||||
|
),
|
||||||
|
}
|
||||||
|
),
|
||||||
(
|
(
|
||||||
enums::Connector::Nuvei,
|
enums::Connector::Nuvei,
|
||||||
RequiredFieldFinal {
|
RequiredFieldFinal {
|
||||||
@ -9136,6 +9376,111 @@ impl Default for settings::RequiredFields {
|
|||||||
common: HashMap::new(),
|
common: HashMap::new(),
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
enums::Connector::Novalnet,
|
||||||
|
RequiredFieldFinal {
|
||||||
|
mandate: HashMap::new(),
|
||||||
|
non_mandate: HashMap::new(),
|
||||||
|
common: HashMap::from(
|
||||||
|
[
|
||||||
|
(
|
||||||
|
"browser_info.language".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "browser_info.language".to_string(),
|
||||||
|
display_name: "browser_info_language".to_string(),
|
||||||
|
field_type: enums::FieldType::BrowserLanguage,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"browser_info.ip_address".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "browser_info.ip_address".to_string(),
|
||||||
|
display_name: "browser_info_ip_address".to_string(),
|
||||||
|
field_type: enums::FieldType::BrowserIp,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.line1".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.line1".to_string(),
|
||||||
|
display_name: "line1".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressLine1,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.line2".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.line2".to_string(),
|
||||||
|
display_name: "line2".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressLine2,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.city".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.city".to_string(),
|
||||||
|
display_name: "city".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressCity,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.zip".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.zip".to_string(),
|
||||||
|
display_name: "zip".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressPincode,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.first_name".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.first_name".to_string(),
|
||||||
|
display_name: "first_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: "last_name".to_string(),
|
||||||
|
field_type: enums::FieldType::UserFullName,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.email".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.email".to_string(),
|
||||||
|
display_name: "email_address".to_string(),
|
||||||
|
field_type: enums::FieldType::UserEmailAddress,
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"billing.address.country".to_string(),
|
||||||
|
RequiredFieldInfo {
|
||||||
|
required_field: "payment_method_data.billing.address.country".to_string(),
|
||||||
|
display_name: "country".to_string(),
|
||||||
|
field_type: enums::FieldType::UserAddressCountry{
|
||||||
|
options: vec![
|
||||||
|
"ALL".to_string(),
|
||||||
|
]
|
||||||
|
},
|
||||||
|
value: None,
|
||||||
|
}
|
||||||
|
),
|
||||||
|
]
|
||||||
|
),
|
||||||
|
}
|
||||||
|
),
|
||||||
(
|
(
|
||||||
enums::Connector::Paypal,
|
enums::Connector::Paypal,
|
||||||
RequiredFieldFinal {
|
RequiredFieldFinal {
|
||||||
|
|||||||
Reference in New Issue
Block a user