mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +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:
@ -241,6 +241,8 @@ pub enum FieldType {
|
||||
UserBlikCode,
|
||||
UserBank,
|
||||
UserBankAccountNumber,
|
||||
UserSourceBankAccountId,
|
||||
UserDestinationBankAccountId,
|
||||
Text,
|
||||
DropDown { options: Vec<String> },
|
||||
UserDateOfBirth,
|
||||
|
||||
@ -19,6 +19,7 @@ use common_utils::{
|
||||
ext_traits::{ConfigExt, Encode, ValueExt},
|
||||
hashing::HashedString,
|
||||
id_type,
|
||||
new_type::MaskedBankAccount,
|
||||
pii::{self, Email},
|
||||
types::{MinorUnit, StringMajorUnit},
|
||||
};
|
||||
@ -3413,6 +3414,14 @@ pub enum BankTransferData {
|
||||
/// CNPJ is a Brazilian company tax identification number
|
||||
#[schema(value_type = Option<String>, example = "74469027417312")]
|
||||
cnpj: Option<Secret<String>>,
|
||||
|
||||
/// Source bank account number
|
||||
#[schema(value_type = Option<String>, example = "8b2812f0-d6c8-4073-97bb-9fa964d08bc5")]
|
||||
source_bank_account_id: Option<MaskedBankAccount>,
|
||||
|
||||
/// Destination bank account number
|
||||
#[schema(value_type = Option<String>, example = "9b95f84e-de61-460b-a14b-f23b4e71c97b")]
|
||||
destination_bank_account_id: Option<MaskedBankAccount>,
|
||||
},
|
||||
Pse {},
|
||||
LocalBankTransfer {
|
||||
|
||||
@ -167,6 +167,14 @@ pub struct PixBankTransferAdditionalData {
|
||||
/// Partially masked CNPJ - CNPJ is a Brazilian company tax identification number
|
||||
#[schema(value_type = Option<String>, example = "**** 417312")]
|
||||
pub cnpj: Option<MaskedBankAccount>,
|
||||
|
||||
/// Partially masked source bank account number
|
||||
#[schema(value_type = Option<String>, example = "********-****-4073-****-9fa964d08bc5")]
|
||||
pub source_bank_account_id: Option<MaskedBankAccount>,
|
||||
|
||||
/// Partially masked destination bank account number
|
||||
#[schema(value_type = Option<String>, example = "********-****-460b-****-f23b4e71c97b")]
|
||||
pub destination_bank_account_id: Option<MaskedBankAccount>,
|
||||
}
|
||||
|
||||
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
|
||||
Reference in New Issue
Block a user