mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(connector): [DWOLLA] Connector integration (#8586)
Co-authored-by: Vani Gupta <vani.gupta@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -184,6 +184,8 @@ enum RequiredField {
|
||||
UpiCollectVpaId,
|
||||
AchBankDebitAccountNumber,
|
||||
AchBankDebitRoutingNumber,
|
||||
AchBankDebitBankType(Vec<enums::BankType>),
|
||||
AchBankDebitBankAccountHolderName,
|
||||
SepaBankDebitIban,
|
||||
BacsBankDebitAccountNumber,
|
||||
BacsBankDebitSortCode,
|
||||
@ -712,6 +714,30 @@ impl RequiredField {
|
||||
value: None,
|
||||
},
|
||||
),
|
||||
Self::AchBankDebitBankType(bank_type) => (
|
||||
"payment_method_data.bank_debit.ach_bank_debit.bank_type".to_string(),
|
||||
RequiredFieldInfo {
|
||||
required_field: "payment_method_data.bank_debit.ach_bank_debit.bank_type"
|
||||
.to_string(),
|
||||
display_name: "bank_type".to_string(),
|
||||
field_type: FieldType::UserBankType {
|
||||
options: bank_type.iter().map(|bt| bt.to_string()).collect(),
|
||||
},
|
||||
value: None,
|
||||
},
|
||||
),
|
||||
Self::AchBankDebitBankAccountHolderName => (
|
||||
"payment_method_data.bank_debit.ach_bank_debit.bank_account_holder_name"
|
||||
.to_string(),
|
||||
RequiredFieldInfo {
|
||||
required_field:
|
||||
"payment_method_data.bank_debit.ach_bank_debit.bank_account_holder_name"
|
||||
.to_string(),
|
||||
display_name: "bank_account_holder_name".to_string(),
|
||||
field_type: FieldType::UserBankAccountHolderName,
|
||||
value: None,
|
||||
},
|
||||
),
|
||||
Self::SepaBankDebitIban => (
|
||||
"payment_method_data.bank_debit.sepa_bank_debit.iban".to_string(),
|
||||
RequiredFieldInfo {
|
||||
@ -3101,6 +3127,30 @@ fn get_bank_debit_required_fields() -> HashMap<enums::PaymentMethodType, Connect
|
||||
]),
|
||||
},
|
||||
),
|
||||
(
|
||||
Connector::Dwolla,
|
||||
RequiredFieldFinal {
|
||||
mandate: HashMap::new(),
|
||||
non_mandate: HashMap::from([
|
||||
RequiredField::BillingFirstName(
|
||||
"first_name",
|
||||
FieldType::UserBillingName,
|
||||
)
|
||||
.to_tuple(),
|
||||
RequiredField::BillingLastName("last_name", FieldType::UserBillingName)
|
||||
.to_tuple(),
|
||||
RequiredField::AchBankDebitAccountNumber.to_tuple(),
|
||||
RequiredField::AchBankDebitRoutingNumber.to_tuple(),
|
||||
RequiredField::AchBankDebitBankAccountHolderName.to_tuple(),
|
||||
RequiredField::AchBankDebitBankType(vec![
|
||||
enums::BankType::Checking,
|
||||
enums::BankType::Savings,
|
||||
])
|
||||
.to_tuple(),
|
||||
]),
|
||||
common: HashMap::new(),
|
||||
},
|
||||
),
|
||||
]),
|
||||
),
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user