feat(connector): [Facilitapay] Add support for Pix Bank Transfers (#7704)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Pa1NarK
2025-04-23 13:36:17 +05:30
committed by GitHub
parent bca8979a0c
commit 639b8cba5f
37 changed files with 1622 additions and 278 deletions

View File

@ -189,6 +189,8 @@ enum RequiredField {
PixKey,
PixCnpj,
PixCpf,
PixSourceBankAccountId,
PixDestinationBankAccountId,
GiftCardNumber,
GiftCardCvc,
DcbMsisdn,
@ -782,6 +784,27 @@ impl RequiredField {
value: None,
},
),
Self::PixSourceBankAccountId => (
"payment_method_data.bank_transfer.pix.source_bank_account_id".to_string(),
RequiredFieldInfo {
required_field: "payment_method_data.bank_transfer.pix.source_bank_account_id"
.to_string(),
display_name: "source_bank_account_id".to_string(),
field_type: FieldType::UserSourceBankAccountId,
value: None,
},
),
Self::PixDestinationBankAccountId => (
"payment_method_data.bank_transfer.pix.destination_bank_account_id".to_string(),
RequiredFieldInfo {
required_field:
"payment_method_data.bank_transfer.pix.destination_bank_account_id"
.to_string(),
display_name: "destination_bank_account_id".to_string(),
field_type: FieldType::UserDestinationBankAccountId,
value: None,
},
),
Self::GiftCardNumber => (
"payment_method_data.gift_card.number".to_string(),
RequiredFieldInfo {
@ -3068,6 +3091,20 @@ fn get_bank_transfer_required_fields() -> HashMap<enums::PaymentMethodType, Conn
},
),
(Connector::Adyen, fields(vec![], vec![], vec![])),
(
Connector::Facilitapay,
RequiredFieldFinal {
mandate: HashMap::new(),
non_mandate: HashMap::new(),
common: HashMap::from([
RequiredField::PixSourceBankAccountId.to_tuple(),
RequiredField::PixDestinationBankAccountId.to_tuple(),
RequiredField::BillingAddressCountries(vec!["BR"]).to_tuple(),
RequiredField::BillingUserFirstName.to_tuple(),
RequiredField::BillingUserLastName.to_tuple(),
]),
},
),
]),
),
(