mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
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:
@ -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(),
|
||||
]),
|
||||
},
|
||||
),
|
||||
]),
|
||||
),
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user