Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

feat(core): Adding new Payment Method Types : PixAutomaticoPush & PixAutomaticoQr (#11559)

Sayak Bhattacharyaeff7ccaf9a4a
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.json
index dadef177bc..24753090f8 100644
--- a/api-reference/v1/openapi_spec_v1.json
+++ b/api-reference/v1/openapi_spec_v1.json
@@ -12982,6 +12982,48 @@
}
}
},
+ {
+ "type": "object",
+ "required": [
+ "pix_automatico_qr"
+ ],
+ "properties": {
+ "pix_automatico_qr": {
+ "type": "object"
+ }
+ }
+ },
+ {
+ "type": "object",
+ "required": [
+ "pix_automatico_push"
+ ],
+ "properties": {
+ "pix_automatico_push": {
+ "type": "object",
+ "properties": {
+ "account_number": {
+ "type": "string",
+ "description": "Account number for Pix Automatico Push payment method",
+ "example": "550689",
+ "nullable": true
+ },
+ "branch_code": {
+ "type": "string",
+ "description": "Branch code for Pix Automatico Push payment method",
+ "example": "2569",
+ "nullable": true
+ },
+ "bank_identifier": {
+ "type": "string",
+ "description": "Bank identifier for Pix Automatico Push payment method",
+ "example": "91193552",
+ "nullable": true
+ }
+ }
+ }
+ }
+ },
{
"type": "object",
"required": [
@@ -35415,19 +35457,19 @@
"properties": {
"account_number": {
"type": "string",
- "description": "Partially masked account number for Pix Automatico Push payment method",
+ "description": "Account number for Pix Automatico Push payment method",
"example": "550689",
"nullable": true
},
"branch_code": {
"type": "string",
- "description": "Partially masked branch code for Pix Automatico Push payment method",
+ "description": "Branch code for Pix Automatico Push payment method",
"example": "2569",
"nullable": true
},
"bank_identifier": {
"type": "string",
- "description": "Partially masked bank identifier for Pix Automatico Push payment method",
+ "description": "Bank identifier for Pix Automatico Push payment method",
"example": "91193552",
"nullable": true
}
diff --git a/api-reference/v2/openapi_spec_v2.json b/api-reference/v2/openapi_spec_v2.json
index 64481167fb..f65ea75b15 100644
--- a/api-reference/v2/openapi_spec_v2.json
+++ b/api-reference/v2/openapi_spec_v2.json
@@ -8652,6 +8652,48 @@
}
}
},
+ {
+ "type": "object",
+ "required": [
+ "pix_automatico_qr"
+ ],
+ "properties": {
+ "pix_automatico_qr": {
+ "type": "object"
+ }
+ }
+ },
+ {
+ "type": "object",
+ "required": [
+ "pix_automatico_push"
+ ],
+ "properties": {
+ "pix_automatico_push": {
+ "type": "object",
+ "properties": {
+ "account_number": {
+ "type": "string",
+ "description": "Account number for Pix Automatico Push payment method",
+ "example": "550689",
+ "nullable": true
+ },
+ "branch_code": {
+ "type": "string",
+ "description": "Branch code for Pix Automatico Push payment method",
+ "example": "2569",
+ "nullable": true
+ },
+ "bank_identifier": {
+ "type": "string",
+ "description": "Bank identifier for Pix Automatico Push payment method",
+ "example": "91193552",
+ "nullable": true
+ }
+ }
+ }
+ }
+ },
{
"type": "object",
"required": [
@@ -25627,19 +25669,19 @@
"properties": {
"account_number": {
"type": "string",
- "description": "Partially masked account number for Pix Automatico Push payment method",
+ "description": "Account number for Pix Automatico Push payment method",
"example": "550689",
"nullable": true
},
"branch_code": {
"type": "string",
- "description": "Partially masked branch code for Pix Automatico Push payment method",
+ "description": "Branch code for Pix Automatico Push payment method",
"example": "2569",
"nullable": true
},
"bank_identifier": {
"type": "string",
- "description": "Partially masked bank identifier for Pix Automatico Push payment method",
+ "description": "Bank identifier for Pix Automatico Push payment method",
"example": "91193552",
"nullable": true
}
diff --git a/config/config.example.toml b/config/config.example.toml
index 970e7f9fc9..fd260b97f8 100644
--- a/config/config.example.toml
+++ b/config/config.example.toml
@@ -988,6 +988,8 @@ apple_pay = { country = "AU,NZ,CN,HK,JP,SG,MY,KR,TW,VN,GB,IE,FR,DE,IT,ES,PT,NL,B
[pm_filters.santander]
pix = { country = "BR", currency = "BRL" }
boleto = { country = "BR", currency = "BRL" }
+pix_automatico_qr = { country = "BR", currency = "BRL" }
+pix_automatico_push = { country = "BR", currency = "BRL" }
[pm_filters.calida]
calida = { country = "AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,SK,SI,ES,SE,IS,LI,NO", currency = "EUR" }
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml
index 945fa7c97f..6db107a1e6 100644
--- a/config/deployments/integration_test.toml
+++ b/config/deployments/integration_test.toml
@@ -882,6 +882,8 @@ eft = { country = "NG, ZA, GH, KE, CI", currency = "NGN, GHS, ZAR, KES, USD" }
[pm_filters.santander]
pix = { country = "BR", currency = "BRL" }
boleto = { country = "BR", currency = "BRL" }
+pix_automatico_qr = { country = "BR", currency = "BRL" }
+pix_automatico_push = { country = "BR", currency = "BRL" }
[pm_filters.calida]
bluecode = { country = "AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,SK,SI,ES,SE,IS,LI,NO", currency = "EUR" }
diff --git a/config/deployments/production.toml b/config/deployments/production.toml
index b84639d6c8..953ccdb956 100644
--- a/config/deployments/production.toml
+++ b/config/deployments/production.toml
@@ -873,6 +873,8 @@ eft = { country = "NG, ZA, GH, KE, CI", currency = "NGN, GHS, ZAR, KES, USD" }
[pm_filters.santander]
pix = { country = "BR", currency = "BRL" }
boleto = { country = "BR", currency = "BRL" }
+pix_automatico_qr = { country = "BR", currency = "BRL" }
+pix_automatico_push = { country = "BR", currency = "BRL" }
[pm_filters.calida]
bluecode = { country = "AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,SK,SI,ES,SE,IS,LI,NO", currency = "EUR" }
diff --git a/config/deployments/sandbox.toml b/config/deployments/sandbox.toml
index ef3adc57a8..326ebe649e 100644
--- a/config/deployments/sandbox.toml
+++ b/config/deployments/sandbox.toml
@@ -885,6 +885,8 @@ eft = { country = "NG, ZA, GH, KE, CI", currency = "NGN, GHS, ZAR, KES, USD" }
[pm_filters.santander]
pix = { country = "BR", currency = "BRL" }
boleto = { country = "BR", currency = "BRL" }
+pix_automatico_qr = { country = "BR", currency = "BRL" }
+pix_automatico_push = { country = "BR", currency = "BRL" }
[pm_filters.calida]
bluecode = { country = "AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,SK,SI,ES,SE,IS,LI,NO", currency = "EUR" }
diff --git a/config/development.toml b/config/development.toml
index 2a78fd191f..0eafbdc09e 100644
--- a/config/development.toml
+++ b/config/development.toml
@@ -1045,6 +1045,8 @@ eft = { country = "NG, ZA, GH, KE, CI", currency = "NGN, GHS, ZAR, KES, USD" }
[pm_filters.santander]
pix = { country = "BR", currency = "BRL" }
boleto = { country = "BR", currency = "BRL" }
+pix_automatico_qr = { country = "BR", currency = "BRL" }
+pix_automatico_push = { country = "BR", currency = "BRL" }
[pm_filters.boku]
dana = { country = "ID", currency = "IDR" }
diff --git a/config/docker_compose.toml b/config/docker_compose.toml
index b2475f1821..b52cf797f4 100644
--- a/config/docker_compose.toml
+++ b/config/docker_compose.toml
@@ -1007,6 +1007,8 @@ eft = { country = "NG, ZA, GH, KE, CI", currency = "NGN, GHS, ZAR, KES, USD" }
[pm_filters.santander]
pix = { country = "BR", currency = "BRL" }
boleto = { country = "BR", currency = "BRL" }
+pix_automatico_qr = { country = "BR", currency = "BRL" }
+pix_automatico_push = { country = "BR", currency = "BRL" }
[pm_filters.calida]
bluecode = { country = "AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,SK,SI,ES,SE,IS,LI,NO", currency = "EUR" }
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs
index bf5e930c52..6aa8f06995 100644
--- a/crates/api_models/src/payments.rs
+++ b/crates/api_models/src/payments.rs
@@ -3839,6 +3839,8 @@ impl GetPaymentMethodType for BankTransferData {
Self::DanamonVaBankTransfer { .. } => api_enums::PaymentMethodType::DanamonVa,
Self::MandiriVaBankTransfer { .. } => api_enums::PaymentMethodType::MandiriVa,
Self::Pix { .. } => api_enums::PaymentMethodType::Pix,
+ Self::PixAutomaticoQr {} => api_enums::PaymentMethodType::PixAutomaticoQr,
+ Self::PixAutomaticoPush { .. } => api_enums::PaymentMethodType::PixAutomaticoPush,
Self::Pse {} => api_enums::PaymentMethodType::Pse,
Self::LocalBankTransfer { .. } => api_enums::PaymentMethodType::LocalBankTransfer,
Self::InstantBankTransfer {} => api_enums::PaymentMethodType::InstantBankTransfer,
@@ -4882,6 +4884,23 @@ pub enum BankTransferData {
expiry_date: Option<PrimitiveDateTime>,
},
#[smithy(nested_value_type)]
+ PixAutomaticoQr {},
+ #[smithy(nested_value_type)]
+ PixAutomaticoPush {
+ /// Account number for Pix Automatico Push payment method
+ #[schema(value_type = Option<String>, example = "550689")]
+ #[smithy(value_type = "Option<String>")]
+ account_number: Option<Secret<String>>,
+ /// Branch code for Pix Automatico Push payment method
+ #[schema(value_type = Option<String>, example = "2569")]
+ #[smithy(value_type = "Option<String>")]
+ branch_code: Option<Secret<String>>,
+ /// Bank identifier for Pix Automatico Push payment method
+ #[schema(value_type = Option<String>, example = "91193552")]
+ #[smithy(value_type = "Option<String>")]
+ bank_identifier: Option<Secret<String>>,
+ },
+ #[smithy(nested_value_type)]
Pse {},
#[smithy(nested_value_type)]
LocalBankTransfer {
@@ -5001,6 +5020,8 @@ impl GetAddressFromPaymentMethodData for BankTransferData {
}
Self::LocalBankTransfer { .. }
| Self::Pix { .. }
+ | Self::PixAutomaticoPush { .. }
+ | Self::PixAutomaticoQr {}
| Self::Pse {}
| Self::InstantBankTransfer {}
| Self::InstantBankTransferFinland {}
diff --git a/crates/api_models/src/payments/additional_info.rs b/crates/api_models/src/payments/additional_info.rs
index ccdfd72f36..aabb1f1678 100644
--- a/crates/api_models/src/payments/additional_info.rs
+++ b/crates/api_models/src/payments/additional_info.rs
@@ -275,17 +275,17 @@ pub enum BankTransferAdditionalData {
)]
#[smithy(namespace = "com.hyperswitch.smithy.types")]
pub struct PixAutomaticoPushAdditionalData {
- /// Partially masked account number for Pix Automatico Push payment method
+ /// Account number for Pix Automatico Push payment method
#[schema(value_type = Option<String>, example = "550689")]
#[smithy(value_type = "Option<String>")]
pub account_number: Option<Secret<String>>,
- /// Partially masked branch code for Pix Automatico Push payment method
+ /// Branch code for Pix Automatico Push payment method
#[schema(value_type = Option<String>, example = "2569")]
#[smithy(value_type = "Option<String>")]
pub branch_code: Option<Secret<String>>,
- /// Partially masked bank identifier for Pix Automatico Push payment method
+ /// Bank identifier for Pix Automatico Push payment method
#[schema(value_type = Option<String>, example = "91193552")]
#[smithy(value_type = "Option<String>")]
pub bank_identifier: Option<Secret<String>>,
diff --git a/crates/connector_configs/src/connector.rs b/crates/connector_configs/src/connector.rs
index 0684bf9bfa..2d6710d88f 100644
--- a/crates/connector_configs/src/connector.rs
+++ b/crates/connector_configs/src/connector.rs
@@ -152,6 +152,8 @@ pub struct ConfigMetadata {
pub apple_pay: Option<Vec<InputData>>,
pub paypal_sdk: Option<Vec<InputData>>,
pub pix: Option<Vec<InputData>>,
+ pub pix_automatico_push: Option<Vec<InputData>>,
+ pub pix_automatico_qr: Option<Vec<InputData>>,
pub boleto: Option<Vec<InputData>>,
pub merchant_id: Option<InputData>,
pub endpoint_prefix: Option<InputData>,
diff --git a/crates/connector_configs/toml/development.toml b/crates/connector_configs/toml/development.toml
index f2c78ae8a7..8fb9ab440e 100644
--- a/crates/connector_configs/toml/development.toml
+++ b/crates/connector_configs/toml/development.toml
@@ -7116,6 +7116,10 @@ options=[]
[santander]
[[santander.bank_transfer]]
payment_method_type = "pix"
+[[santander.bank_transfer]]
+payment_method_type = "pix_automatico_push"
+[[santander.bank_transfer]]
+payment_method_type = "pix_automatico_qr"
[[santander.voucher]]
payment_method_type = "boleto"
[santander.connector_auth.CertificateAuth]
@@ -7160,6 +7164,58 @@ placeholder="Enter the merchant name"
required=true
type="Text"
+[[santander.metadata.pix_automatico_push]]
+name="client_id"
+label="Client ID"
+placeholder="Enter your Client Id"
+required=true
+type="Text"
+[[santander.metadata.pix_automatico_push]]
+name="client_secret"
+label="Client Secret"
+placeholder="Enter your Client Secret"
+required=true
+type="Text"
+[[santander.metadata.pix_automatico_push]]
+name="pix_key_type"
+label="Chave Key Type"
+placeholder="Enter your Chave/Pix Key Type"
+required=true
+type="Select"
+options=["CPF", "CNPJ", "EMAIL", "CELLULAR", "EVP"]
+[[santander.metadata.pix_automatico_push]]
+name="pix_key_value"
+label="Chave Key"
+placeholder="Enter your Chave/Pix Key"
+required=true
+type="Text"
+
+[[santander.metadata.pix_automatico_qr]]
+name="client_id"
+label="Client ID"
+placeholder="Enter your Client Id"
+required=true
+type="Text"
+[[santander.metadata.pix_automatico_qr]]
+name="client_secret"
+label="Client Secret"
+placeholder="Enter your Client Secret"
+required=true
+type="Text"
+[[santander.metadata.pix_automatico_qr]]
+name="pix_key_type"
+label="Chave Key Type"
+placeholder="Enter your Chave/Pix Key Type"
+required=true
+type="Select"
+options=["CPF", "CNPJ", "EMAIL", "CELLULAR", "EVP"]
+[[santander.metadata.pix_automatico_qr]]
+name="pix_key_value"
+label="Chave Key"
+placeholder="Enter your Chave/Pix Key"
+required=true
+type="Text"
+
[[santander.metadata.boleto]]
name="client_id"
label="Client ID"
diff --git a/crates/connector_configs/toml/production.toml b/crates/connector_configs/toml/production.toml
index ebcf51b1b8..d109cd8847 100644
--- a/crates/connector_configs/toml/production.toml
+++ b/crates/connector_configs/toml/production.toml
@@ -6131,6 +6131,10 @@ type = "Text"
[santander]
[[santander.bank_transfer]]
payment_method_type = "pix"
+[[santander.bank_transfer]]
+payment_method_type = "pix_automatico_push"
+[[santander.bank_transfer]]
+payment_method_type = "pix_automatico_qr"
[[santander.voucher]]
payment_method_type = "boleto"
[santander.connector_auth.CertificateAuth]
@@ -6175,6 +6179,58 @@ placeholder="Enter the merchant name"
required=true
type="Text"
+[[santander.metadata.pix_automatico_push]]
+name="client_id"
+label="Client ID"
+placeholder="Enter your Client Id"
+required=true
+type="Text"
+[[santander.metadata.pix_automatico_push]]
+name="client_secret"
+label="Client Secret"
+placeholder="Enter your Client Secret"
+required=true
+type="Text"
+[[santander.metadata.pix_automatico_push]]
+name="pix_key_type"
+label="Chave Key Type"
+placeholder="Enter your Chave/Pix Key Type"
+required=true
+type="Select"
+options=["CPF", "CNPJ", "EMAIL", "CELLULAR", "EVP"]
+[[santander.metadata.pix_automatico_push]]
+name="pix_key_value"
+label="Chave Key"
+placeholder="Enter your Chave/Pix Key"
+required=true
+type="Text"
+
+[[santander.metadata.pix_automatico_qr]]
+name="client_id"
+label="Client ID"
+placeholder="Enter your Client Id"
+required=true
+type="Text"
+[[santander.metadata.pix_automatico_qr]]
+name="client_secret"
+label="Client Secret"
+placeholder="Enter your Client Secret"
+required=true
+type="Text"
+[[santander.metadata.pix_automatico_qr]]
+name="pix_key_type"
+label="Chave Key Type"
+placeholder="Enter your Chave/Pix Key Type"
+required=true
+type="Select"
+options=["CPF", "CNPJ", "EMAIL", "CELLULAR", "EVP"]
+[[santander.metadata.pix_automatico_qr]]
+name="pix_key_value"
+label="Chave Key"
+placeholder="Enter your Chave/Pix Key"
+required=true
+type="Text"
+
[[santander.metadata.boleto]]
name="client_id"
label="Client ID"
diff --git a/crates/connector_configs/toml/sandbox.toml b/crates/connector_configs/toml/sandbox.toml
index 8cd82cdf5c..8c85137c88 100644
--- a/crates/connector_configs/toml/sandbox.toml
+++ b/crates/connector_configs/toml/sandbox.toml
@@ -7093,6 +7093,10 @@ options = []
[santander]
[[santander.bank_transfer]]
payment_method_type = "pix"
+[[santander.bank_transfer]]
+payment_method_type = "pix_automatico_push"
+[[santander.bank_transfer]]
+payment_method_type = "pix_automatico_qr"
[[santander.voucher]]
payment_method_type = "boleto"
[santander.connector_auth.CertificateAuth]
@@ -7137,6 +7141,58 @@ placeholder="Enter the merchant name"
required=true
type="Text"
+[[santander.metadata.pix_automatico_push]]
+name="client_id"
+label="Client ID"
+placeholder="Enter your Client Id"
+required=true
+type="Text"
+[[santander.metadata.pix_automatico_push]]
+name="client_secret"
+label="Client Secret"
+placeholder="Enter your Client Secret"
+required=true
+type="Text"
+[[santander.metadata.pix_automatico_push]]
+name="pix_key_type"
+label="Chave Key Type"
+placeholder="Enter your Chave/Pix Key Type"
+required=true
+type="Select"
+options=["CPF", "CNPJ", "EMAIL", "CELLULAR", "EVP"]
+[[santander.metadata.pix_automatico_push]]
+name="pix_key_value"
+label="Chave Key"
+placeholder="Enter your Chave/Pix Key"
+required=true
+type="Text"
+
+[[santander.metadata.pix_automatico_qr]]
+name="client_id"
+label="Client ID"
+placeholder="Enter your Client Id"
+required=true
+type="Text"
+[[santander.metadata.pix_automatico_qr]]
+name="client_secret"
+label="Client Secret"
+placeholder="Enter your Client Secret"
+required=true
+type="Text"
+[[santander.metadata.pix_automatico_qr]]
+name="pix_key_type"
+label="Chave Key Type"
+placeholder="Enter your Chave/Pix Key Type"
+required=true
+type="Select"
+options=["CPF", "CNPJ", "EMAIL", "CELLULAR", "EVP"]
+[[santander.metadata.pix_automatico_qr]]
+name="pix_key_value"
+label="Chave Key"
+placeholder="Enter your Chave/Pix Key"
+required=true
+type="Text"
+
[[santander.metadata.boleto]]
name="client_id"
label="Client ID"
diff --git a/crates/hyperswitch_connectors/src/connectors/santander/requests.rs b/crates/hyperswitch_connectors/src/connectors/santander/requests.rs
index 18d0913b45..9a48a17dfc 100644
--- a/crates/hyperswitch_connectors/src/connectors/santander/requests.rs
+++ b/crates/hyperswitch_connectors/src/connectors/santander/requests.rs
@@ -56,6 +56,8 @@ pub enum SantanderDiscountType {
pub struct SantanderMetadataObject {
pub pix: Option<PixMetadataObject>,
pub boleto: Option<BoletoMetadataObject>,
+ pub pix_automatico_push: Option<PixAutomaticoMetadataObject>,
+ pub pix_automatico_qr: Option<PixAutomaticoMetadataObject>,
}
#[derive(Debug, Serialize, Deserialize)]
@@ -360,3 +362,11 @@ pub type BoletoAdditionalFields = (
Option<StringMajorUnit>,
),
);
+
+#[derive(Debug, Serialize, Deserialize)]
+pub struct PixAutomaticoMetadataObject {
+ pub client_id: Secret<String>,
+ pub client_secret: Secret<String>,
+ pub pix_key_value: Secret<String>,
+ pub pix_key_type: responses::SantanderPixKeyType,
+}
diff --git a/crates/hyperswitch_connectors/src/connectors/santander/transformers.rs b/crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
index a9993f10aa..13aa497a23 100644
--- a/crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
@@ -222,6 +222,28 @@ impl TryFrom<(&RefreshTokenRouterData, &SantanderMetadataObject)> for SantanderA
pix_mca_metadata.client_secret.clone(),
))
}
+ Some(enums::PaymentMethodType::PixAutomaticoPush) => {
+ let pix_mca_metadata = item
+ .1
+ .pix_automatico_push
+ .as_ref()
+ .ok_or(errors::ConnectorError::NoConnectorMetaData)?;
+ Ok((
+ pix_mca_metadata.client_id.clone(),
+ pix_mca_metadata.client_secret.clone(),
+ ))
+ }
+ Some(enums::PaymentMethodType::PixAutomaticoQr) => {
+ let pix_mca_metadata = item
+ .1
+ .pix_automatico_qr
+ .as_ref()
+ .ok_or(errors::ConnectorError::NoConnectorMetaData)?;
+ Ok((
+ pix_mca_metadata.client_id.clone(),
+ pix_mca_metadata.client_secret.clone(),
+ ))
+ }
Some(enums::PaymentMethodType::Boleto) => {
let boleto_mca_metadata = item
.1
diff --git a/crates/hyperswitch_domain_models/src/payment_method_data.rs b/crates/hyperswitch_domain_models/src/payment_method_data.rs
index 416974faea..24723205fc 100644
--- a/crates/hyperswitch_domain_models/src/payment_method_data.rs
+++ b/crates/hyperswitch_domain_models/src/payment_method_data.rs
@@ -2762,6 +2762,16 @@ impl From<api_models::payments::BankTransferData> for BankTransferData {
destination_bank_account_id,
expiry_date,
},
+ api_models::payments::BankTransferData::PixAutomaticoPush {
+ account_number,
+ branch_code,
+ bank_identifier,
+ } => Self::PixAutomaticoPush {
+ account_number,
+ branch_code,
+ bank_identifier,
+ },
+ api_models::payments::BankTransferData::PixAutomaticoQr {} => Self::PixAutomaticoQr {},
api_models::payments::BankTransferData::Pse {} => Self::Pse {},
api_models::payments::BankTransferData::LocalBankTransfer { bank_code } => {
Self::LocalBankTransfer { bank_code }
diff --git a/crates/payment_methods/src/helpers.rs b/crates/payment_methods/src/helpers.rs
index 6a62fe0c17..4d1496c80f 100644
--- a/crates/payment_methods/src/helpers.rs
+++ b/crates/payment_methods/src/helpers.rs
@@ -168,6 +168,8 @@ pub fn validate_payment_method_type_against_payment_method(
| api_enums::PaymentMethodType::Bacs
| api_enums::PaymentMethodType::Multibanco
| api_enums::PaymentMethodType::Pix
+ | api_enums::PaymentMethodType::PixAutomaticoPush
+ | api_enums::PaymentMethodType::PixAutomaticoQr
| api_enums::PaymentMethodType::Pse
| api_enums::PaymentMethodType::PermataBankTransfer
| api_enums::PaymentMethodType::BcaBankTransfer