Skip to content

Commit

Permalink
feat(pm_list): Add required field for open_banking_uk for Adyen and V…
Browse files Browse the repository at this point in the history
…olt Connector (#3032)

Co-authored-by: Prasunna Soppa <[email protected]>
  • Loading branch information
swangi-kumari and prasunna09 authored Dec 4, 2023
1 parent 3ce04ab commit 9d93533
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions crates/router/src/configs/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4106,6 +4106,58 @@ impl Default for super::settings::RequiredFields {
(
enums::PaymentMethod::BankRedirect,
PaymentMethodType(HashMap::from([
(
enums::PaymentMethodType::OpenBankingUk,
ConnectorFields {
fields: HashMap::from([
(
enums::Connector::Volt,
RequiredFieldFinal {
mandate: HashMap::new(),
non_mandate: HashMap::from([
(
"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,
value: None,
}
),
]),
common: HashMap::new(),
}
),
(
enums::Connector::Adyen,
RequiredFieldFinal {
mandate: HashMap::new(),
non_mandate: HashMap:: from([
(
"payment_method_data.bank_redirect.open_banking_uk.issuer".to_string(),
RequiredFieldInfo {
required_field: "payment_method_data.bank_redirect.open_banking_uk.issuer".to_string(),
display_name: "issuer".to_string(),
field_type: enums::FieldType::UserBank,
value: None,
}
)
]),
common: HashMap::new(),
}
)
]),
},
),
(
enums::PaymentMethodType::Przelewy24,
ConnectorFields {
Expand Down

0 comments on commit 9d93533

Please sign in to comment.