refactor(connector): [facilitapay] move destination bank account number to connector metadata (#8704)

This commit is contained in:
Pa1NarK
2025-07-25 17:56:37 +05:30
committed by GitHub
parent 17d34a29e4
commit 38c19f30fc
11 changed files with 114 additions and 80 deletions

View File

@ -3452,15 +3452,12 @@ 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")]
#[schema(value_type = Option<String>, example = "8b******-****-****-****-*******08bc5")]
source_bank_account_id: Option<MaskedBankAccount>,
/// Destination bank account number
#[schema(value_type = Option<String>, example = "9b95f84e-de61-460b-a14b-f23b4e71c97b")]
/// Partially masked destination bank account number _Deprecated: Will be removed in next stable release._
#[schema(value_type = Option<String>, example = "********-****-460b-****-f23b4e71c97b", deprecated)]
destination_bank_account_id: Option<MaskedBankAccount>,
/// The expiration date and time for the Pix QR code in ISO 8601 format
#[schema(value_type = Option<String>, example = "2025-09-10T10:11:12Z")]
#[serde(default, with = "common_utils::custom_serde::iso8601::option")]

View File

@ -178,8 +178,8 @@ pub struct PixBankTransferAdditionalData {
#[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")]
/// Partially masked destination bank account number _Deprecated: Will be removed in next stable release._
#[schema(value_type = Option<String>, example = "********-****-460b-****-f23b4e71c97b", deprecated)]
pub destination_bank_account_id: Option<MaskedBankAccount>,
/// The expiration date and time for the Pix QR code in ISO 8601 format