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

refactor(connnector): Structure connector enums in separate files for improved team ownership (#6459)

chikke srujanbb246e27b72e
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 3f79111884..dc4010d0fd 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -45,6 +45,10 @@ crates/test_utils/tests/connectors/ @juspay/hyperswitch-connector
crates/test_utils/tests/sample_auth.toml @juspay/hyperswitch-connector
crates/connector_configs/ @juspay/hyperswitch-connector
crates/hyperswitch_connectors/ @juspay/hyperswitch-connector
+crates/api_models/src/connector_enums.rs @juspay/hyperswitch-connector
+crates/common_enums/src/connector_enums.rs @juspay/hyperswitch-connector
+crates/router/src/configs/defaults/payment_connector_required_fields.rs @juspay/hyperswitch-connector
+crates/hyperswitch_interfaces/src/configs.rs @juspay/hyperswitch-connector
crates/router/src/compatibility/ @juspay/hyperswitch-compatibility
diff --git a/crates/api_models/src/connector_enums.rs b/crates/api_models/src/connector_enums.rs
new file mode 100644
index 0000000000..5803800f4d
--- /dev/null
+++ b/crates/api_models/src/connector_enums.rs
@@ -0,0 +1,297 @@
+pub use common_enums::enums::{PaymentMethod, PayoutType};
+#[cfg(feature = "dummy_connector")]
+use common_utils::errors;
+use utoipa::ToSchema;
+
+/// A connector is an integration to fulfill payments
+#[derive(
+ Clone,
+ Copy,
+ Debug,
+ Eq,
+ PartialEq,
+ ToSchema,
+ serde::Deserialize,
+ serde::Serialize,
+ strum::VariantNames,
+ strum::EnumIter,
+ strum::Display,
+ strum::EnumString,
+ Hash,
+)]
+#[serde(rename_all = "snake_case")]
+#[strum(serialize_all = "snake_case")]
+pub enum Connector {
+ Adyenplatform,
+ #[cfg(feature = "dummy_connector")]
+ #[serde(rename = "phonypay")]
+ #[strum(serialize = "phonypay")]
+ DummyConnector1,
+ #[cfg(feature = "dummy_connector")]
+ #[serde(rename = "fauxpay")]
+ #[strum(serialize = "fauxpay")]
+ DummyConnector2,
+ #[cfg(feature = "dummy_connector")]
+ #[serde(rename = "pretendpay")]
+ #[strum(serialize = "pretendpay")]
+ DummyConnector3,
+ #[cfg(feature = "dummy_connector")]
+ #[serde(rename = "stripe_test")]
+ #[strum(serialize = "stripe_test")]
+ DummyConnector4,
+ #[cfg(feature = "dummy_connector")]
+ #[serde(rename = "adyen_test")]
+ #[strum(serialize = "adyen_test")]
+ DummyConnector5,
+ #[cfg(feature = "dummy_connector")]
+ #[serde(rename = "checkout_test")]
+ #[strum(serialize = "checkout_test")]
+ DummyConnector6,
+ #[cfg(feature = "dummy_connector")]
+ #[serde(rename = "paypal_test")]
+ #[strum(serialize = "paypal_test")]
+ DummyConnector7,
+ Aci,
+ Adyen,
+ Airwallex,
+ Authorizedotnet,
+ Bambora,
+ Bamboraapac,
+ Bankofamerica,
+ Billwerk,
+ Bitpay,
+ Bluesnap,
+ Boku,
+ Braintree,
+ Cashtocode,
+ Checkout,
+ Coinbase,
+ Cryptopay,
+ Cybersource,
+ Datatrans,
+ Deutschebank,
+ // Digitalvirgo, template code for future usage
+ Dlocal,
+ Ebanx,
+ Fiserv,
+ Fiservemea,
+ Fiuu,
+ Forte,
+ Globalpay,
+ Globepay,
+ Gocardless,
+ Gpayments,
+ Helcim,
+ Iatapay,
+ Itaubank,
+ Klarna,
+ Mifinity,
+ Mollie,
+ Multisafepay,
+ Netcetera,
+ Nexinets,
+ Nexixpay,
+ Nmi,
+ Noon,
+ Novalnet,
+ Nuvei,
+ // Opayo, added as template code for future usage
+ Opennode,
+ Paybox,
+ // Payeezy, As psync and rsync are not supported by this connector, it is added as template code for future usage
+ Payme,
+ Payone,
+ Paypal,
+ Payu,
+ Placetopay,
+ Powertranz,
+ Prophetpay,
+ Rapyd,
+ Razorpay,
+ Shift4,
+ Square,
+ Stax,
+ Stripe,
+ Taxjar,
+ Threedsecureio,
+ //Thunes,
+ Trustpay,
+ Tsys,
+ Volt,
+ Wellsfargo,
+ // Wellsfargopayout,
+ Wise,
+ Worldline,
+ Worldpay,
+ Signifyd,
+ Plaid,
+ Riskified,
+ Zen,
+ Zsl,
+}
+
+impl Connector {
+ #[cfg(feature = "payouts")]
+ pub fn supports_instant_payout(&self, payout_method: Option<PayoutType>) -> bool {
+ matches!(
+ (self, payout_method),
+ (Self::Paypal, Some(PayoutType::Wallet))
+ | (_, Some(PayoutType::Card))
+ | (Self::Adyenplatform, _)
+ )
+ }
+ #[cfg(feature = "payouts")]
+ pub fn supports_create_recipient(&self, payout_method: Option<PayoutType>) -> bool {
+ matches!((self, payout_method), (_, Some(PayoutType::Bank)))
+ }
+ #[cfg(feature = "payouts")]
+ pub fn supports_payout_eligibility(&self, payout_method: Option<PayoutType>) -> bool {
+ matches!((self, payout_method), (_, Some(PayoutType::Card)))
+ }
+ #[cfg(feature = "payouts")]
+ pub fn is_payout_quote_call_required(&self) -> bool {
+ matches!(self, Self::Wise)
+ }
+ #[cfg(feature = "payouts")]
+ pub fn supports_access_token_for_payout(&self, payout_method: Option<PayoutType>) -> bool {
+ matches!((self, payout_method), (Self::Paypal, _))
+ }
+ #[cfg(feature = "payouts")]
+ pub fn supports_vendor_disburse_account_create_for_payout(&self) -> bool {
+ matches!(self, Self::Stripe)
+ }
+ pub fn supports_access_token(&self, payment_method: PaymentMethod) -> bool {
+ matches!(
+ (self, payment_method),
+ (Self::Airwallex, _)
+ | (Self::Deutschebank, _)
+ | (Self::Globalpay, _)
+ | (Self::Paypal, _)
+ | (Self::Payu, _)
+ | (Self::Trustpay, PaymentMethod::BankRedirect)
+ | (Self::Iatapay, _)
+ | (Self::Volt, _)
+ | (Self::Itaubank, _)
+ )
+ }
+ pub fn supports_file_storage_module(&self) -> bool {
+ matches!(self, Self::Stripe | Self::Checkout)
+ }
+ pub fn requires_defend_dispute(&self) -> bool {
+ matches!(self, Self::Checkout)
+ }
+ pub fn is_separate_authentication_supported(&self) -> bool {
+ match self {
+ #[cfg(feature = "dummy_connector")]
+ Self::DummyConnector1
+ | Self::DummyConnector2
+ | Self::DummyConnector3
+ | Self::DummyConnector4
+ | Self::DummyConnector5
+ | Self::DummyConnector6
+ | Self::DummyConnector7 => false,
+ Self::Aci
+ // Add Separate authentication support for connectors
+ | Self::Adyen
+ | Self::Adyenplatform
+ | Self::Airwallex
+ | Self::Authorizedotnet
+ | Self::Bambora
+ | Self::Bamboraapac
+ | Self::Bankofamerica
+ | Self::Billwerk
+ | Self::Bitpay
+ | Self::Bluesnap
+ | Self::Boku
+ | Self::Braintree
+ | Self::Cashtocode
+ | Self::Coinbase
+ | Self::Cryptopay
+ | Self::Deutschebank
+ | Self::Dlocal
+ | Self::Ebanx
+ | Self::Fiserv
+ | Self::Fiservemea
+ | Self::Fiuu
+ | Self::Forte
+ | Self::Globalpay
+ | Self::Globepay
+ | Self::Gocardless
+ | Self::Gpayments
+ | Self::Helcim
+ | Self::Iatapay
+ | Self::Itaubank
+ | Self::Klarna
+ | Self::Mifinity
+ | Self::Mollie
+ | Self::Multisafepay
+ | Self::Nexinets
+ | Self::Nexixpay
+ | Self::Novalnet
+ | Self::Nuvei
+ | Self::Opennode
+ | Self::Paybox
+ | Self::Payme
+ | Self::Payone
+ | Self::Paypal
+ | Self::Payu
+ | Self::Placetopay
+ | Self::Powertranz
+ | Self::Prophetpay
+ | Self::Rapyd
+ | Self::Shift4
+ | Self::Square
+ | Self::Stax
+ | Self::Taxjar
+ // | Self::Thunes
+ | Self::Trustpay
+ | Self::Tsys
+ | Self::Volt
+ | Self::Wellsfargo
+ // | Self::Wellsfargopayout
+ | Self::Wise
+ | Self::Worldline
+ | Self::Worldpay
+ | Self::Zen
+ | Self::Zsl
+ | Self::Signifyd
+ | Self::Plaid
+ | Self::Razorpay
+ | Self::Riskified
+ | Self::Threedsecureio
+ | Self::Datatrans
+ | Self::Netcetera
+ | Self::Noon
+ | Self::Stripe => false,
+ Self::Checkout | Self::Nmi | Self::Cybersource => true,
+ }
+ }
+ pub fn is_pre_processing_required_before_authorize(&self) -> bool {
+ matches!(self, Self::Airwallex)
+ }
+ #[cfg(feature = "dummy_connector")]
+ pub fn validate_dummy_connector_enabled(
+ &self,
+ is_dummy_connector_enabled: bool,
+ ) -> errors::CustomResult<(), errors::ValidationError> {
+ if !is_dummy_connector_enabled
+ && matches!(
+ self,
+ Self::DummyConnector1
+ | Self::DummyConnector2
+ | Self::DummyConnector3
+ | Self::DummyConnector4
+ | Self::DummyConnector5
+ | Self::DummyConnector6
+ | Self::DummyConnector7
+ )
+ {
+ Err(errors::ValidationError::InvalidValue {
+ message: "Invalid connector name".to_string(),
+ }
+ .into())
+ } else {
+ Ok(())
+ }
+ }
+}
diff --git a/crates/api_models/src/enums.rs b/crates/api_models/src/enums.rs
index 48939e4305..e2b2b7fde4 100644
--- a/crates/api_models/src/enums.rs
+++ b/crates/api_models/src/enums.rs
@@ -1,10 +1,10 @@
use std::str::FromStr;
pub use common_enums::*;
-#[cfg(feature = "dummy_connector")]
-use common_utils::errors;
use utoipa::ToSchema;
+pub use super::connector_enums::Connector;
+
#[derive(
Clone,
Copy,
@@ -27,300 +27,6 @@ pub enum RoutingAlgorithm {
Custom,
}
-/// A connector is an integration to fulfill payments
-#[derive(
- Clone,
- Copy,
- Debug,
- Eq,
- PartialEq,
- ToSchema,
- serde::Deserialize,
- serde::Serialize,
- strum::VariantNames,
- strum::EnumIter,
- strum::Display,
- strum::EnumString,
- Hash,
-)]
-#[serde(rename_all = "snake_case")]
-#[strum(serialize_all = "snake_case")]
-pub enum Connector {
- Adyenplatform,
- #[cfg(feature = "dummy_connector")]
- #[serde(rename = "phonypay")]
- #[strum(serialize = "phonypay")]
- DummyConnector1,
- #[cfg(feature = "dummy_connector")]
- #[serde(rename = "fauxpay")]
- #[strum(serialize = "fauxpay")]
- DummyConnector2,
- #[cfg(feature = "dummy_connector")]
- #[serde(rename = "pretendpay")]
- #[strum(serialize = "pretendpay")]
- DummyConnector3,
- #[cfg(feature = "dummy_connector")]
- #[serde(rename = "stripe_test")]
- #[strum(serialize = "stripe_test")]
- DummyConnector4,
- #[cfg(feature = "dummy_connector")]
- #[serde(rename = "adyen_test")]
- #[strum(serialize = "adyen_test")]
- DummyConnector5,
- #[cfg(feature = "dummy_connector")]
- #[serde(rename = "checkout_test")]
- #[strum(serialize = "checkout_test")]
- DummyConnector6,
- #[cfg(feature = "dummy_connector")]
- #[serde(rename = "paypal_test")]
- #[strum(serialize = "paypal_test")]
- DummyConnector7,
- Aci,
- Adyen,
- Airwallex,
- Authorizedotnet,
- Bambora,
- Bamboraapac,
- Bankofamerica,
- Billwerk,
- Bitpay,
- Bluesnap,
- Boku,
- Braintree,
- Cashtocode,
- Checkout,
- Coinbase,
- Cryptopay,
- Cybersource,
- Datatrans,
- Deutschebank,
- // Digitalvirgo, template code for future usage
- Dlocal,
- Ebanx,
- Fiserv,
- Fiservemea,
- Fiuu,
- Forte,
- Globalpay,
- Globepay,
- Gocardless,
- Gpayments,
- Helcim,
- Iatapay,
- Itaubank,
- Klarna,
- Mifinity,
- Mollie,
- Multisafepay,
- Netcetera,
- Nexinets,
- Nexixpay,
- Nmi,
- Noon,
- Novalnet,
- Nuvei,
- // Opayo, added as template code for future usage
- Opennode,
- Paybox,
- // Payeezy, As psync and rsync are not supported by this connector, it is added as template code for future usage
- Payme,
- Payone,
- Paypal,
- Payu,
- Placetopay,
- Powertranz,
- Prophetpay,
- Rapyd,
- Razorpay,
- Shift4,
- Square,
- Stax,
- Stripe,
- Taxjar,
- Threedsecureio,
- //Thunes,
- Trustpay,
- Tsys,
- Volt,
- Wellsfargo,
- // Wellsfargopayout,
- Wise,
- Worldline,
- Worldpay,
- Signifyd,
- Plaid,
- Riskified,
- Zen,
- Zsl,
-}
-
-impl Connector {
- #[cfg(feature = "payouts")]
- pub fn supports_instant_payout(&self, payout_method: Option<PayoutType>) -> bool {
- matches!(
- (self, payout_method),
- (Self::Paypal, Some(PayoutType::Wallet))
- | (_, Some(PayoutType::Card))
- | (Self::Adyenplatform, _)
- )
- }
- #[cfg(feature = "payouts")]
- pub fn supports_create_recipient(&self, payout_method: Option<PayoutType>) -> bool {
- matches!((self, payout_method), (_, Some(PayoutType::Bank)))
- }
- #[cfg(feature = "payouts")]
- pub fn supports_payout_eligibility(&self, payout_method: Option<PayoutType>) -> bool {
- matches!((self, payout_method), (_, Some(PayoutType::Card)))
- }
- #[cfg(feature = "payouts")]
- pub fn is_payout_quote_call_required(&self) -> bool {
- matches!(self, Self::Wise)
- }
- #[cfg(feature = "payouts")]
- pub fn supports_access_token_for_payout(&self, payout_method: Option<PayoutType>) -> bool {
- matches!((self, payout_method), (Self::Paypal, _))
- }
- #[cfg(feature = "payouts")]
- pub fn supports_vendor_disburse_account_create_for_payout(&self) -> bool {
- matches!(self, Self::Stripe)
- }
- pub fn supports_access_token(&self, payment_method: PaymentMethod) -> bool {
- matches!(
- (self, payment_method),
- (Self::Airwallex, _)
- | (Self::Deutschebank, _)
- | (Self::Globalpay, _)
- | (Self::Paypal, _)
- | (Self::Payu, _)
- | (Self::Trustpay, PaymentMethod::BankRedirect)
- | (Self::Iatapay, _)
- | (Self::Volt, _)
- | (Self::Itaubank, _)
- )
- }
- pub fn supports_file_storage_module(&self) -> bool {
- matches!(self, Self::Stripe | Self::Checkout)
- }
- pub fn requires_defend_dispute(&self) -> bool {
- matches!(self, Self::Checkout)
- }
- pub fn is_separate_authentication_supported(&self) -> bool {
- match self {
- #[cfg(feature = "dummy_connector")]
- Self::DummyConnector1
- | Self::DummyConnector2
- | Self::DummyConnector3
- | Self::DummyConnector4
- | Self::DummyConnector5
- | Self::DummyConnector6
- | Self::DummyConnector7 => false,
- Self::Aci
- // Add Separate authentication support for connectors
- // | Self::Fiuu
- | Self::Adyen
- | Self::Adyenplatform
- | Self::Airwallex
- | Self::Authorizedotnet
- | Self::Bambora
- | Self::Bamboraapac
- | Self::Bankofamerica
- | Self::Billwerk
- | Self::Bitpay
- | Self::Bluesnap
- | Self::Boku
- | Self::Braintree
- | Self::Cashtocode
- | Self::Coinbase
- | Self::Cryptopay
- | Self::Deutschebank
- | Self::Dlocal
- | Self::Ebanx
- | Self::Fiserv
- | Self::Fiservemea
- | Self::Fiuu
- | Self::Forte
- | Self::Globalpay
- | Self::Globepay
- | Self::Gocardless
- | Self::Gpayments
- | Self::Helcim
- | Self::Iatapay
- | Self::Itaubank
- | Self::Klarna
- | Self::Mifinity
- | Self::Mollie
- | Self::Multisafepay
- | Self::Nexinets
- | Self::Nexixpay
- | Self::Novalnet
- | Self::Nuvei
- | Self::Opennode
- | Self::Paybox
- | Self::Payme
- | Self::Payone
- | Self::Paypal
- | Self::Payu
- | Self::Placetopay
- | Self::Powertranz
- | Self::Prophetpay
- | Self::Rapyd
- | Self::Shift4
- | Self::Square
- | Self::Stax
- | Self::Taxjar
- //| Self::Thunes
- | Self::Trustpay
- | Self::Tsys
- | Self::Volt
- | Self::Wellsfargo
- // | Self::Wellsfargopayout
- | Self::Wise
- | Self::Worldline
- | Self::Worldpay
- | Self::Zen
- | Self::Zsl
- | Self::Signifyd
- | Self::Plaid
- | Self::Razorpay
- | Self::Riskified
- | Self::Threedsecureio
- | Self::Datatrans
- | Self::Netcetera
- | Self::Noon
- | Self::Stripe => false,
- Self::Checkout | Self::Nmi | Self::Cybersource => true,
- }
- }
- pub fn is_pre_processing_required_before_authorize(&self) -> bool {
- matches!(self, Self::Airwallex)
- }
- #[cfg(feature = "dummy_connector")]
- pub fn validate_dummy_connector_enabled(
- &self,
- is_dummy_connector_enabled: bool,
- ) -> errors::CustomResult<(), errors::ValidationError> {
- if !is_dummy_connector_enabled
- && matches!(
- self,
- Self::DummyConnector1
- | Self::DummyConnector2
- | Self::DummyConnector3
- | Self::DummyConnector4
- | Self::DummyConnector5
- | Self::DummyConnector6
- | Self::DummyConnector7
- )
- {
- Err(errors::ValidationError::InvalidValue {
- message: "Invalid connector name".to_string(),
- }
- .into())
- } else {
- Ok(())
- }
- }
-}
-
#[cfg(feature = "payouts")]
#[derive(
Clone,
diff --git a/crates/api_models/src/lib.rs b/crates/api_models/src/lib.rs
index daa329a763..a28332e7fe 100644
--- a/crates/api_models/src/lib.rs
+++ b/crates/api_models/src/lib.rs
@@ -5,6 +5,7 @@ pub mod apple_pay_certificates_migration;
pub mod blocklist;
pub mod cards_info;
pub mod conditional_configs;
+pub mod connector_enums;
pub mod connector_onboarding;
pub mod consts;
pub mod currency;
diff --git a/crates/common_enums/src/connector_enums.rs b/crates/common_enums/src/connector_enums.rs
new file mode 100644
index 0000000000..a5f6d0fe35
--- /dev/null
+++ b/crates/common_enums/src/connector_enums.rs
@@ -0,0 +1,126 @@
+use utoipa::ToSchema;
+#[derive(
+ Clone,
+ Copy,
+ Debug,
+ Eq,
+ Hash,
+ PartialEq,
+ serde::Serialize,
+ serde::Deserialize,
+ strum::Display,
+ strum::EnumString,
+ strum::EnumIter,
+ strum::VariantNames,
+ ToSchema,
+)]
+#[router_derive::diesel_enum(storage_type = "db_enum")]
+#[serde(rename_all = "snake_case")]
+#[strum(serialize_all = "snake_case")]
+/// Connectors eligible for payments routing
+pub enum RoutableConnectors {
+ Adyenplatform,
+ #[cfg(feature = "dummy_connector")]
+ #[serde(rename = "phonypay")]
+ #[strum(serialize = "phonypay")]
+ DummyConnector1,
+ #[cfg(feature = "dummy_connector")]
+ #[serde(rename = "fauxpay")]
+ #[strum(serialize = "fauxpay")]
+ DummyConnector2,
+ #[cfg(feature = "dummy_connector")]
+ #[serde(rename = "pretendpay")]
+ #[strum(serialize = "pretendpay")]
+ DummyConnector3,
+ #[cfg(feature = "dummy_connector")]
+ #[serde(rename = "stripe_test")]
+ #[strum(serialize = "stripe_test")]
+ DummyConnector4,
+ #[cfg(feature = "dummy_connector")]
+ #[serde(rename = "adyen_test")]
+ #[strum(serialize = "adyen_test")]
+ DummyConnector5,
+ #[cfg(feature = "dummy_connector")]
+ #[serde(rename = "checkout_test")]
+ #[strum(serialize = "checkout_test")]
+ DummyConnector6,
+ #[cfg(feature = "dummy_connector")]
+ #[serde(rename = "paypal_test")]
+ #[strum(serialize = "paypal_test")]
+ DummyConnector7,
+ Aci,
+ Adyen,
+ Airwallex,
+ Authorizedotnet,
+ Bankofamerica,
+ Billwerk,
+ Bitpay,
+ Bambora,
+ Bamboraapac,
+ Bluesnap,
+ Boku,
+ Braintree,
+ Cashtocode,
+ Checkout,
+ Coinbase,
+ Cryptopay,
+ Cybersource,
+ Datatrans,
+ Deutschebank,
+ // Digitalvirgo, template code for future usage
+ Dlocal,
+ Ebanx,
+ Fiserv,
+ Fiservemea,
+ Fiuu,
+ Forte,
+ Globalpay,
+ Globepay,
+ Gocardless,
+ Helcim,
+ Iatapay,
+ Itaubank,
+ Klarna,
+ Mifinity,
+ Mollie,
+ Multisafepay,
+ Nexinets,
+ Nexixpay,
+ Nmi,
+ Noon,
+ Novalnet,
+ Nuvei,
+ // Opayo, added as template code for future usage
+ Opennode,
+ // Payeezy, As psync and rsync are not supported by this connector, it is added as template code for future usage
+ Paybox,
+ Payme,
+ Payone,
+ Paypal,
+ Payu,
+ Placetopay,
+ Powertranz,
+ Prophetpay,
+ Rapyd,
+ Razorpay,
+ Riskified,
+ Shift4,
+ Signifyd,
+ Square,
+ Stax,
+ Stripe,
+ // Taxjar,
+ Trustpay,
+ // Thunes
+ // Tsys,
+ Tsys,
+ Volt,
+ Wellsfargo,
+ // Wellsfargopayout,
+ Wise,
+ Worldline,
+ Worldpay,
+ Zen,
+ Plaid,
+ Zsl,
+}
diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rs
index faae71eda2..917030c1e8 100644
--- a/crates/common_enums/src/enums.rs
+++ b/crates/common_enums/src/enums.rs
@@ -3,6 +3,8 @@ use std::num::{ParseFloatError, TryFromIntError};
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;
+pub use super::connector_enums::RoutableConnectors;
+
#[doc(hidden)]
pub mod diesel_exports {
pub use super::{
@@ -140,132 +142,6 @@ pub enum AttemptStatus {
DeviceDataCollectionPending,
}
-#[derive(
- Clone,
- Copy,
- Debug,
- Eq,
- Hash,
- PartialEq,
- serde::Serialize,
- serde::Deserialize,
- strum::Display,
- strum::EnumString,
- strum::EnumIter,
- strum::VariantNames,
- ToSchema,
-)]
-#[router_derive::diesel_enum(storage_type = "db_enum")]
-#[serde(rename_all = "snake_case")]
-#[strum(serialize_all = "snake_case")]
-/// Connectors eligible for payments routing
-pub enum RoutableConnectors {
- Adyenplatform,
- #[cfg(feature = "dummy_connector")]
- #[serde(rename = "phonypay")]
- #[strum(serialize = "phonypay")]
- DummyConnector1,
- #[cfg(feature = "dummy_connector")]
- #[serde(rename = "fauxpay")]
- #[strum(serialize = "fauxpay")]
- DummyConnector2,
- #[cfg(feature = "dummy_connector")]
- #[serde(rename = "pretendpay")]
- #[strum(serialize = "pretendpay")]
- DummyConnector3,
- #[cfg(feature = "dummy_connector")]
- #[serde(rename = "stripe_test")]
- #[strum(serialize = "stripe_test")]
- DummyConnector4,
- #[cfg(feature = "dummy_connector")]
- #[serde(rename = "adyen_test")]
- #[strum(serialize = "adyen_test")]
- DummyConnector5,
- #[cfg(feature = "dummy_connector")]
- #[serde(rename = "checkout_test")]
- #[strum(serialize = "checkout_test")]
- DummyConnector6,
- #[cfg(feature = "dummy_connector")]
- #[serde(rename = "paypal_test")]
- #[strum(serialize = "paypal_test")]
- DummyConnector7,
- Aci,
- Adyen,
- Airwallex,
- Authorizedotnet,
- Bankofamerica,
- Billwerk,
- Bitpay,
- Bambora,
- Bamboraapac,
- Bluesnap,
- Boku,
- Braintree,
- Cashtocode,
- Checkout,
- Coinbase,
- Cryptopay,
- Cybersource,
- Datatrans,
- Deutschebank,
- // Digitalvirgo, template code for future usage
- Dlocal,
- Ebanx,
- Fiserv,
- Fiservemea,
- Fiuu,
- Forte,
- Globalpay,
- Globepay,
- Gocardless,
- Helcim,
- Iatapay,
- Itaubank,
- Klarna,
- Mifinity,
- Mollie,
- Multisafepay,
- Nexinets,
- Nexixpay,
- Nmi,
- Noon,
- Novalnet,
- Nuvei,
- // Opayo, added as template code for future usage
- Opennode,
- // Payeezy, As psync and rsync are not supported by this connector, it is added as template code for future usage
- Paybox,
- Payme,
- Payone,
- Paypal,
- Payu,
- Placetopay,
- Powertranz,
- Prophetpay,
- Rapyd,
- Razorpay,
- Riskified,
- Shift4,
- Signifyd,
- Square,
- Stax,
- Stripe,
- // Taxjar,
- Trustpay,
- // Thunes
- // Tsys,
- Tsys,
- Volt,
- Wellsfargo,
- // Wellsfargopayout,
- Wise,
- Worldline,
- Worldpay,
- Zen,
- Plaid,
- Zsl,
-}
-
impl AttemptStatus {
pub fn is_terminal_status(self) -> bool {
match self {
diff --git a/crates/common_enums/src/lib.rs b/crates/common_enums/src/lib.rs
index 14966d15b5..ec5b78d4a5 100644
--- a/crates/common_enums/src/lib.rs
+++ b/crates/common_enums/src/lib.rs
@@ -1,3 +1,4 @@
+pub mod connector_enums;
pub mod enums;
pub mod transformers;
diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rs
index c48d2fe54c..74f6502159 100644
--- a/crates/router/src/configs/defaults.rs
+++ b/crates/router/src/configs/defaults.rs
@@ -2,11 +2,11 @@ use std::collections::{HashMap, HashSet};
use api_models::{enums, payment_methods::RequiredFieldInfo};
-use super::settings::{ConnectorFields, PaymentMethodType, RequiredFieldFinal};
-
#[cfg(feature = "payouts")]
pub mod payout_required_fields;
+pub mod payment_connector_required_fields;
+
impl Default for super::settings::Server {
fn default() -> Self {
Self {
@@ -138,12564 +138,6 @@ impl Default for super::settings::KvConfig {
}
}
-use super::settings::{
- Mandates, SupportedConnectorsForMandate, SupportedPaymentMethodTypesForMandate,
- SupportedPaymentMethodsForMandate,
-};
-
-impl Default for Mandates {
- fn default() -> Self {
- Self {
- supported_payment_methods: SupportedPaymentMethodsForMandate(HashMap::from([
- (
- enums::PaymentMethod::PayLater,
- SupportedPaymentMethodTypesForMandate(HashMap::from([(
- enums::PaymentMethodType::Klarna,
- SupportedConnectorsForMandate {
- connector_list: HashSet::from([enums::Connector::Adyen]),
- },
- )])),
- ),
- (
- enums::PaymentMethod::Wallet,
- SupportedPaymentMethodTypesForMandate(HashMap::from([
- (
- enums::PaymentMethodType::GooglePay,
- SupportedConnectorsForMandate {
- connector_list: HashSet::from([
- enums::Connector::Stripe,
- enums::Connector::Adyen,
- enums::Connector::Globalpay,
- enums::Connector::Multisafepay,
- enums::Connector::Bankofamerica,
- enums::Connector::Noon,
- enums::Connector::Cybersource,
- enums::Connector::Wellsfargo,
- ]),
- },
- ),
- (
- enums::PaymentMethodType::ApplePay,
- SupportedConnectorsForMandate {
- connector_list: HashSet::from([
- enums::Connector::Stripe,
- enums::Connector::Adyen,
- enums::Connector::Bankofamerica,
- enums::Connector::Cybersource,
- enums::Connector::Wellsfargo,
- ]),
- },
- ),
- ])),
- ),
- (
- enums::PaymentMethod::Card,
- SupportedPaymentMethodTypesForMandate(HashMap::from([
- (
- enums::PaymentMethodType::Credit,
- SupportedConnectorsForMandate {
- connector_list: HashSet::from([
- enums::Connector::Aci,
- enums::Connector::Adyen,
- enums::Connector::Authorizedotnet,
- enums::Connector::Globalpay,
- enums::Connector::Worldpay,
- enums::Connector::Multisafepay,
- enums::Connector::Nexinets,
- enums::Connector::Noon,
- enums::Connector::Payme,
- enums::Connector::Stripe,
- enums::Connector::Bankofamerica,
- enums::Connector::Cybersource,
- enums::Connector::Wellsfargo,
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Debit,
- SupportedConnectorsForMandate {
- connector_list: HashSet::from([
- enums::Connector::Aci,
- enums::Connector::Adyen,
- enums::Connector::Authorizedotnet,
- enums::Connector::Globalpay,
- enums::Connector::Worldpay,
- enums::Connector::Multisafepay,
- enums::Connector::Nexinets,
- enums::Connector::Noon,
- enums::Connector::Payme,
- enums::Connector::Stripe,
- ]),
- },
- ),
- ])),
- ),
- ])),
- update_mandate_supported: SupportedPaymentMethodsForMandate(HashMap::default()),
- }
- }
-}
-
-impl Default for super::settings::RequiredFields {
- fn default() -> Self {
- Self(HashMap::from([
- (
- enums::PaymentMethod::Card,
- PaymentMethodType(HashMap::from([
- (
- enums::PaymentMethodType::Debit,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Aci,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- }
- ),
- (
- enums::Connector::Airwallex,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Fiuu,
- RequiredFieldFinal {
- mandate: HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- )
- ]),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Authorizedotnet,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Bambora,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Bankofamerica,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Billwerk,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Bluesnap,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Boku,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Braintree,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Checkout,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Coinbase,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Cybersource,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common:HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Dlocal,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]
- ),
- common:HashMap::new(),
- }
- ),
- #[cfg(feature = "dummy_connector")]
- (
- enums::Connector::DummyConnector1,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- #[cfg(feature = "dummy_connector")]
- (
- enums::Connector::DummyConnector2,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- #[cfg(feature = "dummy_connector")]
- (
- enums::Connector::DummyConnector3,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- #[cfg(feature = "dummy_connector")]
- (
- enums::Connector::DummyConnector4,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- #[cfg(feature = "dummy_connector")]
- (
- enums::Connector::DummyConnector5,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- #[cfg(feature = "dummy_connector")]
- (
- enums::Connector::DummyConnector6,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- #[cfg(feature = "dummy_connector")]
- (
- enums::Connector::DummyConnector7,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Fiserv,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Fiuu,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Forte,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- common:HashMap::new(),
- }
- ),
- (
- enums::Connector::Globalpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]),
- }
- ),
- (
- enums::Connector::Helcim,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Iatapay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Mollie,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Multisafepay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate:HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.line2".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line2".to_string(),
- display_name: "line2".to_string(),
- field_type: enums::FieldType::UserAddressLine2,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Nexinets,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Nmi,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "billing_zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Noon,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- }
- ),
- (
- enums::Connector::Novalnet,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "browser_info.language".to_string(),
- RequiredFieldInfo {
- required_field: "browser_info.language".to_string(),
- display_name: "browser_info_language".to_string(),
- field_type: enums::FieldType::BrowserLanguage,
- value: None,
- }
- ),
- (
- "browser_info.ip_address".to_string(),
- RequiredFieldInfo {
- required_field: "browser_info.ip_address".to_string(),
- display_name: "browser_info_ip_address".to_string(),
- field_type: enums::FieldType::BrowserIp,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.line2".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line2".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine2,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "first_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "last_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email_address".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- ]
- ),
- }
- ),
- (
- enums::Connector::Nuvei,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Paybox,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- )
-
- ]
- ),
- }
- ),
- (
- enums::Connector::Payme,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- }
- ),
- (
- enums::Connector::Paypal,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Payu,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Powertranz,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Rapyd,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Shift4,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Square,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Stax,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common:HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Trustpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new()
- }
- ),
- (
- enums::Connector::Tsys,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new()
- }
- ),
- (
- enums::Connector::Wellsfargo,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common:HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Worldline,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Worldpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Zen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- ]),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Credit,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Aci,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- }
- ),
- (
- enums::Connector::Airwallex,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Fiuu,
- RequiredFieldFinal {
- mandate: HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- )
- ]),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Authorizedotnet,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Bambora,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Bankofamerica,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- ]
- ),
- }
- ),
- (
- enums::Connector::Billwerk,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Bluesnap,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Boku,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Braintree,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Checkout,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Coinbase,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Cybersource,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate:HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Dlocal,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]
- ),
- common:HashMap::new(),
- }
- ),
- #[cfg(feature = "dummy_connector")]
- (
- enums::Connector::DummyConnector1,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- #[cfg(feature = "dummy_connector")]
- (
- enums::Connector::DummyConnector2,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- #[cfg(feature = "dummy_connector")]
- (
- enums::Connector::DummyConnector3,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- #[cfg(feature = "dummy_connector")]
- (
- enums::Connector::DummyConnector4,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- #[cfg(feature = "dummy_connector")]
- (
- enums::Connector::DummyConnector5,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- #[cfg(feature = "dummy_connector")]
- (
- enums::Connector::DummyConnector6,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- #[cfg(feature = "dummy_connector")]
- (
- enums::Connector::DummyConnector7,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Fiserv,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Fiuu,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Forte,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- common:HashMap::new(),
- }
- ),
- (
- enums::Connector::Globalpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]),
- }
- ),
- (
- enums::Connector::Helcim,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Iatapay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Mollie,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Multisafepay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate:HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.line2".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line2".to_string(),
- display_name: "line2".to_string(),
- field_type: enums::FieldType::UserAddressLine2,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Nexinets,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Nexixpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.line2".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line2".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine2,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "first_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "last_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Nmi,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "billing_zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Noon,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- }
- ),
- (
- enums::Connector::Novalnet,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "browser_info.language".to_string(),
- RequiredFieldInfo {
- required_field: "browser_info.language".to_string(),
- display_name: "browser_info_language".to_string(),
- field_type: enums::FieldType::BrowserLanguage,
- value: None,
- }
- ),
- (
- "browser_info.ip_address".to_string(),
- RequiredFieldInfo {
- required_field: "browser_info.ip_address".to_string(),
- display_name: "browser_info_ip_address".to_string(),
- field_type: enums::FieldType::BrowserIp,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.line2".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line2".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine2,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "first_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "last_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email_address".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- ]
- ),
- }
- ),
- (
- enums::Connector::Nuvei,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),(
- enums::Connector::Paybox,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- )
-
- ]
- ),
- }
- ),
- (
- enums::Connector::Payme,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- }
- ),
- (
- enums::Connector::Paypal,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Payu,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Powertranz,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Rapyd,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Shift4,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Square,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Stax,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common:HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Trustpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new()
- }
- ),
- (
- enums::Connector::Tsys,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new()
- }
- ),
- (
- enums::Connector::Wellsfargo,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate:HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]
- ),
- }
- ),
- (
- enums::Connector::Worldline,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_cvc".to_string(),
- display_name: "card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Worldpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Zen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "payment_method_data.card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- ]),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
-
- ])),
- ),
- (
- enums::PaymentMethod::BankRedirect,
- PaymentMethodType(HashMap::from([
- (
- enums::PaymentMethodType::OpenBankingUk,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Volt,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_last_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap:: from([
- (
- "payment_method_data.bank_redirect.open_banking_uk.issuer".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_redirect.open_banking_uk.issuer".to_string(),
- display_name: "issuer".to_string(),
- field_type: enums::FieldType::UserBank,
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Trustly,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::OnlineBankingCzechRepublic,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "payment_method_data.bank_redirect.open_banking_czech_republic.issuer".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_redirect.open_banking_czech_republic.issuer".to_string(),
- display_name: "issuer".to_string(),
- field_type: enums::FieldType::UserBank,
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::OnlineBankingFinland,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- ]),
- common: HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::OnlineBankingPoland,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "payment_method_data.bank_redirect.open_banking_poland.issuer".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_redirect.open_banking_poland.issuer".to_string(),
- display_name: "issuer".to_string(),
- field_type: enums::FieldType::UserBank,
- value: None,
- }
- ),
-
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- ]),
- common: HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::OnlineBankingSlovakia,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "payment_method_data.bank_redirect.open_banking_slovakia.issuer".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_redirect.open_banking_slovakia.issuer".to_string(),
- display_name: "issuer".to_string(),
- field_type: enums::FieldType::UserBank,
- value: None,
- }
- ),
- ]),
- common: HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::OnlineBankingFpx,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "payment_method_data.bank_redirect.open_banking_fpx.issuer".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_redirect.open_banking_fpx.issuer".to_string(),
- display_name: "issuer".to_string(),
- field_type: enums::FieldType::UserBank,
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::OnlineBankingThailand,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "payment_method_data.bank_redirect.open_banking_thailand.issuer".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_redirect.open_banking_thailand.issuer".to_string(),
- display_name: "issuer".to_string(),
- field_type: enums::FieldType::UserBank,
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Bizum,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Przelewy24,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- )]),
- },
- ),
- (
- enums::PaymentMethodType::BancontactCard,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Mollie,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- )
- ]),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- (
- "payment_method_data.bank_redirect.bancontact_card.card_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_redirect.bancontact_card.card_number".to_string(),
- display_name: "card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_redirect.bancontact_card.card_exp_month".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_redirect.bancontact_card.card_exp_month".to_string(),
- display_name: "card_exp_month".to_string(),
- field_type: enums::FieldType::UserCardExpiryMonth,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_redirect.bancontact_card.card_exp_year".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_redirect.bancontact_card.card_exp_year".to_string(),
- display_name: "card_exp_year".to_string(),
- field_type: enums::FieldType::UserCardExpiryYear,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Giropay,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Aci,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserCountry {
- options: vec![
- "DE".to_string(),
- ]},
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Globalpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- ("billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry {
- options: vec![
- "DE".to_string(),
- ]
- },
- value: None,
- }
- )
- ]),
- }
- ),
- (
- enums::Connector::Mollie,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Nuvei,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate:HashMap::from([
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_last_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "DE".to_string(),
- ]
- },
- value: None,
- }
- )]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Paypal,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserCountry {
- options: vec![
- "DE".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Shift4,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Trustpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry {
- options: vec![
- "DE".to_string(),
- ]
- },
- value: None,
- }
- ),
- ]),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Ideal,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Aci,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "payment_method_data.bank_redirect.ideal.bank_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_redirect.ideal.bank_name".to_string(),
- display_name: "bank_name".to_string(),
- field_type: enums::FieldType::UserBank,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserCountry {
- options: vec![
- "NL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- (
- "payment_method_data.bank_redirect.ideal.bank_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_redirect.ideal.bank_name".to_string(),
- display_name: "bank_name".to_string(),
- field_type: enums::FieldType::UserBank,
- value: None,
- }
- ),
-
- ]),
- }
- ),
- (
- enums::Connector::Globalpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Mollie,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Nexinets,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Nuvei,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_last_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "NL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Shift4,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserCountry{
- options: vec![
- "NL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Paypal,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserCountry{
- options: vec![
- "NL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "billing_email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- )
- ]),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Trustpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "NL".to_string(),
- ]
- },
- value: None,
- }
- ),
- ]),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Sofort,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Aci,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- ("billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserCountry {
- options: vec![
- "ES".to_string(),
- "GB".to_string(),
- "SE".to_string(),
- "AT".to_string(),
- "NL".to_string(),
- "DE".to_string(),
- "CH".to_string(),
- "BE".to_string(),
- "FR".to_string(),
- "FI".to_string(),
- "IT".to_string(),
- "PL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Globalpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- ("billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry {
- options: vec![
- "AT".to_string(),
- "BE".to_string(),
- "DE".to_string(),
- "ES".to_string(),
- "IT".to_string(),
- "NL".to_string(),
- ]
- },
- value: None,
- }
- )
- ]),
- }
- ),
- (
- enums::Connector::Mollie,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Nexinets,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Nuvei,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate:HashMap::from([
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_last_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ES".to_string(),
- "GB".to_string(),
- "IT".to_string(),
- "DE".to_string(),
- "FR".to_string(),
- "AT".to_string(),
- "BE".to_string(),
- "NL".to_string(),
- "BE".to_string(),
- "SK".to_string(),
- ]
- },
- value: None,
- }
- )]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Paypal,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- ( "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserCountry {
- options: vec![
- "ES".to_string(),
- "GB".to_string(),
- "AT".to_string(),
- "NL".to_string(),
- "DE".to_string(),
- "BE".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Shift4,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- )
- ]),
- non_mandate : HashMap::new(),
- common: HashMap::from([
- ("billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserCountry {
- options: vec![
- "ES".to_string(),
- "AT".to_string(),
- "NL".to_string(),
- "DE".to_string(),
- "BE".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "account_holder_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "account_holder_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- )]),
- }
- ),
- (
- enums::Connector::Trustpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry {
- options: vec![
- "ES".to_string(),
- "GB".to_string(),
- "SE".to_string(),
- "AT".to_string(),
- "NL".to_string(),
- "DE".to_string(),
- "CH".to_string(),
- "BE".to_string(),
- "FR".to_string(),
- "FI".to_string(),
- "IT".to_string(),
- "PL".to_string(),
- ]
- },
- value: None,
- }
- ),
- ]),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Eps,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- (
- "payment_method_data.bank_redirect.eps.bank_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_redirect.eps.bank_name".to_string(),
- display_name: "bank_name".to_string(),
- field_type: enums::FieldType::UserBank,
- value: None,
- }
- )
- ]),
- }
- ),
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Aci,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "bank_account_country".to_string(),
- field_type: enums::FieldType::UserCountry {
- options: vec![
- "AT".to_string(),
- ]
- },
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Globalpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry {
- options: vec![
- "AT".to_string(),
- ]
- },
- value: None,
- }
- )
- ])
- }
- ),
- (
- enums::Connector::Mollie,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate:HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Paypal,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "bank_account_country".to_string(),
- field_type: enums::FieldType::UserCountry {
- options: vec![
- "AT".to_string(),
- ]
- },
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Trustpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "AT".to_string(),
- ]
- },
- value: None,
- }
- ),
- ]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Shift4,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate:HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Nuvei,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_last_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "AT".to_string(),
- ]
- },
- value: None,
- }
- )]
- ),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Blik,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- (
- "payment_method_data.bank_redirect.blik.blik_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_redirect.blik.blik_code".to_string(),
- display_name: "blik_code".to_string(),
- field_type: enums::FieldType::UserBlikCode,
- value: None,
- }
- )
- ]),
- }
- ),
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- (
- "payment_method_data.bank_redirect.blik.blik_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_redirect.blik.blik_code".to_string(),
- display_name: "blik_code".to_string(),
- field_type: enums::FieldType::UserBlikCode,
- value: None,
- }
- )
- ]),
- }
- ),
- (
- enums::Connector::Trustpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_last_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- ]),
- }
- )
- ]),
- },
- ),
- ])),
- ),
- (
- enums::PaymentMethod::Wallet,
- PaymentMethodType(HashMap::from([
- (
- enums::PaymentMethodType::ApplePay,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Bankofamerica,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_last_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Cybersource,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_last_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Wellsfargo,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_last_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "shipping.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.first_name".to_string(),
- display_name: "shipping_first_name".to_string(),
- field_type: enums::FieldType::UserShippingName,
- value: None,
- }
- ),
- (
- "shipping.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.last_name".to_string(),
- display_name: "shipping_last_name".to_string(),
- field_type: enums::FieldType::UserShippingName,
- value: None,
- }
- ),
- (
- "shipping.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserShippingAddressCity,
- value: None,
- }
- ),
- (
- "shipping.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserShippingAddressState,
- value: None,
- }
- ),
- (
- "shipping.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserShippingAddressPincode,
- value: None,
- }
- ),
- (
- "shipping.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserShippingAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "shipping.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserShippingAddressLine1,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
-
- ]),
- },
- ),
- (
- enums::PaymentMethodType::GooglePay,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Bankofamerica,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_last_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Bluesnap,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Noon,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Nuvei,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Airwallex,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Authorizedotnet,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Checkout,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Globalpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Multisafepay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_last_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.line2".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line2".to_string(),
- display_name: "line2".to_string(),
- field_type: enums::FieldType::UserAddressLine2,
- value: None,
- }
- )]),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Cybersource,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_last_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Payu,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Rapyd,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Trustpay,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Wellsfargo,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "email".to_string(),
- RequiredFieldInfo {
- required_field: "email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_last_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "shipping.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.first_name".to_string(),
- display_name: "shipping_first_name".to_string(),
- field_type: enums::FieldType::UserShippingName,
- value: None,
- }
- ),
- (
- "shipping.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.last_name".to_string(),
- display_name: "shipping_last_name".to_string(),
- field_type: enums::FieldType::UserShippingName,
- value: None,
- }
- ),
- (
- "shipping.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserShippingAddressCity,
- value: None,
- }
- ),
- (
- "shipping.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserShippingAddressState,
- value: None,
- }
- ),
- (
- "shipping.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserShippingAddressPincode,
- value: None,
- }
- ),
- (
- "shipping.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserShippingAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "shipping.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserShippingAddressLine1,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::WeChatPay,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::AliPay,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::AliPayHk,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Cashapp,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::MbWay,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- common: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "payment_method_data.billing.phone.number".to_string(),
- RequiredFieldInfo {
- required_field: "billing.phone.number".to_string(),
- display_name: "phone_number".to_string(),
- field_type: enums::FieldType::UserPhoneNumber,
- value: None,
- }
- ),
- (
- "billing.phone.country_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.country_code".to_string(),
- display_name: "dialing_code".to_string(),
- field_type: enums::FieldType::UserPhoneNumberCountryCode,
- value: None,
- }
- ),
- ]
- ),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::KakaoPay,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Twint,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Gcash,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Vipps,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Dana,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Momo,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Swish,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::TouchNGo,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- // Added shipping fields for the SDK flow to accept it from wallet directly,
- // this won't show up in SDK in payment's sheet but will be used in the background
- enums::PaymentMethodType::Paypal,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- )]
- ),
- }
- ),
- (
- enums::Connector::Braintree,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Paypal,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(
- ),
- common: HashMap::from(
- [
- (
- "shipping.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.first_name".to_string(),
- display_name: "shipping_first_name".to_string(),
- field_type: enums::FieldType::UserShippingName,
- value: None,
- }
- ),
- (
- "shipping.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.last_name".to_string(),
- display_name: "shipping_last_name".to_string(),
- field_type: enums::FieldType::UserShippingName,
- value: None,
- }
- ),
- (
- "shipping.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserShippingAddressCity,
- value: None,
- }
- ),
- (
- "shipping.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserShippingAddressState,
- value: None,
- }
- ),
- (
- "shipping.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserShippingAddressPincode,
- value: None,
- }
- ),
- (
- "shipping.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserShippingAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "shipping.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserShippingAddressLine1,
- value: None,
- }
- ),
- ]
- ),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Mifinity,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Mifinity,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- (
- "payment_method_data.wallet.mifinity.date_of_birth".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.wallet.mifinity.date_of_birth".to_string(),
- display_name: "date_of_birth".to_string(),
- field_type: enums::FieldType::UserDateOfBirth,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "first_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "last_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.phone.number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.number".to_string(),
- display_name: "phone".to_string(),
- field_type: enums::FieldType::UserPhoneNumber,
- value: None,
- }
- ),
- (
- "billing.phone.country_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.country_code".to_string(),
- display_name: "dialing_code".to_string(),
- field_type: enums::FieldType::UserPhoneNumberCountryCode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "nationality".to_string(),
- field_type: enums::FieldType::UserCountry{
- options: vec![
- "BR".to_string(),
- "CN".to_string(),
- "SG".to_string(),
- "MY".to_string(),
- "DE".to_string(),
- "CH".to_string(),
- "DK".to_string(),
- "GB".to_string(),
- "ES".to_string(),
- "AD".to_string(),
- "GI".to_string(),
- "FI".to_string(),
- "FR".to_string(),
- "GR".to_string(),
- "HR".to_string(),
- "IT".to_string(),
- "JP".to_string(),
- "MX".to_string(),
- "AR".to_string(),
- "CO".to_string(),
- "CL".to_string(),
- "PE".to_string(),
- "VE".to_string(),
- "UY".to_string(),
- "PY".to_string(),
- "BO".to_string(),
- "EC".to_string(),
- "GT".to_string(),
- "HN".to_string(),
- "SV".to_string(),
- "NI".to_string(),
- "CR".to_string(),
- "PA".to_string(),
- "DO".to_string(),
- "CU".to_string(),
- "PR".to_string(),
- "NL".to_string(),
- "NO".to_string(),
- "PL".to_string(),
- "PT".to_string(),
- "SE".to_string(),
- "RU".to_string(),
- "TR".to_string(),
- "TW".to_string(),
- "HK".to_string(),
- "MO".to_string(),
- "AX".to_string(),
- "AL".to_string(),
- "DZ".to_string(),
- "AS".to_string(),
- "AO".to_string(),
- "AI".to_string(),
- "AG".to_string(),
- "AM".to_string(),
- "AW".to_string(),
- "AU".to_string(),
- "AT".to_string(),
- "AZ".to_string(),
- "BS".to_string(),
- "BH".to_string(),
- "BD".to_string(),
- "BB".to_string(),
- "BE".to_string(),
- "BZ".to_string(),
- "BJ".to_string(),
- "BM".to_string(),
- "BT".to_string(),
- "BQ".to_string(),
- "BA".to_string(),
- "BW".to_string(),
- "IO".to_string(),
- "BN".to_string(),
- "BG".to_string(),
- "BF".to_string(),
- "BI".to_string(),
- "KH".to_string(),
- "CM".to_string(),
- "CA".to_string(),
- "CV".to_string(),
- "KY".to_string(),
- "CF".to_string(),
- "TD".to_string(),
- "CX".to_string(),
- "CC".to_string(),
- "KM".to_string(),
- "CG".to_string(),
- "CK".to_string(),
- "CI".to_string(),
- "CW".to_string(),
- "CY".to_string(),
- "CZ".to_string(),
- "DJ".to_string(),
- "DM".to_string(),
- "EG".to_string(),
- "GQ".to_string(),
- "ER".to_string(),
- "EE".to_string(),
- "ET".to_string(),
- "FK".to_string(),
- "FO".to_string(),
- "FJ".to_string(),
- "GF".to_string(),
- "PF".to_string(),
- "TF".to_string(),
- "GA".to_string(),
- "GM".to_string(),
- "GE".to_string(),
- "GH".to_string(),
- "GL".to_string(),
- "GD".to_string(),
- "GP".to_string(),
- "GU".to_string(),
- "GG".to_string(),
- "GN".to_string(),
- "GW".to_string(),
- "GY".to_string(),
- "HT".to_string(),
- "HM".to_string(),
- "VA".to_string(),
- "IS".to_string(),
- "IN".to_string(),
- "ID".to_string(),
- "IE".to_string(),
- "IM".to_string(),
- "IL".to_string(),
- "JE".to_string(),
- "JO".to_string(),
- "KZ".to_string(),
- "KE".to_string(),
- "KI".to_string(),
- "KW".to_string(),
- "KG".to_string(),
- "LA".to_string(),
- "LV".to_string(),
- "LB".to_string(),
- "LS".to_string(),
- "LI".to_string(),
- "LT".to_string(),
- "LU".to_string(),
- "MK".to_string(),
- "MG".to_string(),
- "MW".to_string(),
- "MV".to_string(),
- "ML".to_string(),
- "MT".to_string(),
- "MH".to_string(),
- "MQ".to_string(),
- "MR".to_string(),
- "MU".to_string(),
- "YT".to_string(),
- "FM".to_string(),
- "MD".to_string(),
- "MC".to_string(),
- "MN".to_string(),
- "ME".to_string(),
- "MS".to_string(),
- "MA".to_string(),
- "MZ".to_string(),
- "NA".to_string(),
- "NR".to_string(),
- "NP".to_string(),
- "NC".to_string(),
- "NZ".to_string(),
- "NE".to_string(),
- "NG".to_string(),
- "NU".to_string(),
- "NF".to_string(),
- "MP".to_string(),
- "OM".to_string(),
- "PK".to_string(),
- "PW".to_string(),
- "PS".to_string(),
- "PG".to_string(),
- "PH".to_string(),
- "PN".to_string(),
- "QA".to_string(),
- "RE".to_string(),
- "RO".to_string(),
- "RW".to_string(),
- "BL".to_string(),
- "SH".to_string(),
- "KN".to_string(),
- "LC".to_string(),
- "MF".to_string(),
- "PM".to_string(),
- "VC".to_string(),
- "WS".to_string(),
- "SM".to_string(),
- "ST".to_string(),
- "SA".to_string(),
- "SN".to_string(),
- "RS".to_string(),
- "SC".to_string(),
- "SL".to_string(),
- "SX".to_string(),
- "SK".to_string(),
- "SI".to_string(),
- "SB".to_string(),
- "SO".to_string(),
- "ZA".to_string(),
- "GS".to_string(),
- "KR".to_string(),
- "LK".to_string(),
- "SR".to_string(),
- "SJ".to_string(),
- "SZ".to_string(),
- "TH".to_string(),
- "TL".to_string(),
- "TG".to_string(),
- "TK".to_string(),
- "TO".to_string(),
- "TT".to_string(),
- "TN".to_string(),
- "TM".to_string(),
- "TC".to_string(),
- "TV".to_string(),
- "UG".to_string(),
- "UA".to_string(),
- "AE".to_string(),
- "UZ".to_string(),
- "VU".to_string(),
- "VN".to_string(),
- "VG".to_string(),
- "VI".to_string(),
- "WF".to_string(),
- "EH".to_string(),
- "ZM".to_string(),
- ]
- },
- value: None,
- }
-
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email_address".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "payment_method_data.wallet.mifinity.language_preference".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.wallet.mifinity.language_preference".to_string(),
- display_name: "language_preference".to_string(),
- field_type: enums::FieldType::LanguagePreference{
- options: vec![
- "BR".to_string(),
- "PT_BR".to_string(),
- "CN".to_string(),
- "ZH_CN".to_string(),
- "DE".to_string(),
- "DK".to_string(),
- "DA".to_string(),
- "DA_DK".to_string(),
- "EN".to_string(),
- "ES".to_string(),
- "FI".to_string(),
- "FR".to_string(),
- "GR".to_string(),
- "EL".to_string(),
- "EL_GR".to_string(),
- "HR".to_string(),
- "IT".to_string(),
- "JP".to_string(),
- "JA".to_string(),
- "JA_JP".to_string(),
- "LA".to_string(),
- "ES_LA".to_string(),
- "NL".to_string(),
- "NO".to_string(),
- "PL".to_string(),
- "PT".to_string(),
- "RU".to_string(),
- "SV".to_string(),
- "SE".to_string(),
- "SV_SE".to_string(),
- "ZH".to_string(),
- "TW".to_string(),
- "ZH_TW".to_string(),
- ]
- },
- value: None,
- }
- ),
- ]),
- }
- ),
- ]),
- }
- ),
- ])),
- ),
- (
- enums::PaymentMethod::PayLater,
- PaymentMethodType(HashMap::from([
- (
- enums::PaymentMethodType::AfterpayClearpay,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_last_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "GB".to_string(),
- "AU".to_string(),
- "CA".to_string(),
- "US".to_string(),
- "NZ".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "shipping.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.first_name".to_string(),
- display_name: "shipping_first_name".to_string(),
- field_type: enums::FieldType::UserShippingName,
- value: None,
- }
- ),
- (
- "shipping.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.last_name".to_string(),
- display_name: "shipping_last_name".to_string(),
- field_type: enums::FieldType::UserShippingName,
- value: None,
- }
- ),
- (
- "shipping.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserShippingAddressCity,
- value: None,
- }
- ),
- (
- "shipping.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserShippingAddressState,
- value: None,
- }
- ),
- (
- "shipping.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserShippingAddressPincode,
- value: None,
- }
- ),
- (
- "shipping.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserShippingAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "shipping.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserShippingAddressLine1,
- value: None,
- }
- ),
- ]),
- common : HashMap::new(),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "billing_last_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.line2".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line2".to_string(),
- display_name: "line2".to_string(),
- field_type: enums::FieldType::UserAddressLine2,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "GB".to_string(),
- "AU".to_string(),
- "CA".to_string(),
- "US".to_string(),
- "NZ".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "shipping.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserShippingAddressCity,
- value: None,
- }
- ),
- (
- "shipping.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserShippingAddressPincode,
- value: None,
- }
- ),
- (
- "shipping.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserShippingAddressCountry{
- options: vec![
- "GB".to_string(),
- "AU".to_string(),
- "CA".to_string(),
- "US".to_string(),
- "NZ".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "shipping.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserShippingAddressLine1,
- value: None,
- }
- ),
- (
- "shipping.address.line2".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.line2".to_string(),
- display_name: "line2".to_string(),
- field_type: enums::FieldType::UserShippingAddressLine2,
- value: None,
- }
- ),
- ]),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Klarna,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate: HashMap::from([
- ( "payment_method_data.pay_later.klarna.billing_country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.pay_later.klarna.billing_country".to_string(),
- display_name: "billing_country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "AU".to_string(),
- "AT".to_string(),
- "BE".to_string(),
- "CA".to_string(),
- "CZ".to_string(),
- "DK".to_string(),
- "FI".to_string(),
- "FR".to_string(),
- "GR".to_string(),
- "DE".to_string(),
- "IE".to_string(),
- "IT".to_string(),
- "NL".to_string(),
- "NZ".to_string(),
- "NO".to_string(),
- "PL".to_string(),
- "PT".to_string(),
- "RO".to_string(),
- "ES".to_string(),
- "SE".to_string(),
- "CH".to_string(),
- "GB".to_string(),
- "US".to_string(),
- ]
- },
- value: None,
- }),
- ("billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- })
- ]),
- common : HashMap::new(),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate: HashMap::new(),
- common : HashMap::from([
- ( "payment_method_data.pay_later.klarna.billing_country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.pay_later.klarna.billing_country".to_string(),
- display_name: "billing_country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- ]),
- }
- ),
- (
- enums::Connector::Klarna,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "AU".to_string(),
- "AT".to_string(),
- "BE".to_string(),
- "CA".to_string(),
- "CZ".to_string(),
- "DK".to_string(),
- "FI".to_string(),
- "FR".to_string(),
- "DE".to_string(),
- "GR".to_string(),
- "IE".to_string(),
- "IT".to_string(),
- "NL".to_string(),
- "NZ".to_string(),
- "NO".to_string(),
- "PL".to_string(),
- "PT".to_string(),
- "ES".to_string(),
- "SE".to_string(),
- "CH".to_string(),
- "GB".to_string(),
- "US".to_string(),
- ]
- },
- value: None,
- }
- )
- ]),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Affirm,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "US".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.phone.number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.number".to_string(),
- display_name: "phone_number".to_string(),
- field_type: enums::FieldType::UserPhoneNumber,
- value: None,
- }
- ),
- (
- "billing.phone.country_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.country_code".to_string(),
- display_name: "dialing_code".to_string(),
- field_type: enums::FieldType::UserPhoneNumberCountryCode,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.line2".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line2".to_string(),
- display_name: "line2".to_string(),
- field_type: enums::FieldType::UserAddressLine2,
- value: None,
- }
- ),
- (
- "shipping.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "shipping.address.line2".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.line2".to_string(),
- display_name: "line2".to_string(),
- field_type: enums::FieldType::UserAddressLine2,
- value: None,
- }
- ),
- (
- "shipping.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserShippingAddressPincode,
- value: None,
- }
- ),
- (
- "shipping.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserShippingAddressCity,
- value: None,
- }
- ),
- (
- "shipping.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserCountry {
- options: vec![
- "US".to_string(),
- ]},
- value: None,
- }
- ),
-
- ]
- ),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::PayBright,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "CA".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "payment_method_data.billing.phone.number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.number".to_string(),
- display_name: "phone_number".to_string(),
- field_type: enums::FieldType::UserPhoneNumber,
- value: None,
- }
- ),
- (
- "billing.phone.country_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.country_code".to_string(),
- display_name: "dialing_code".to_string(),
- field_type: enums::FieldType::UserPhoneNumberCountryCode,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.line2".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line2".to_string(),
- display_name: "line2".to_string(),
- field_type: enums::FieldType::UserAddressLine2,
- value: None,
- }
- ),
- (
- "shipping.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserShippingAddressCity,
- value: None,
- }
- ),
- (
- "shipping.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserShippingAddressPincode,
- value: None,
- }
- ),
- (
- "shipping.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserShippingAddressCountry{
- options: vec![
- "ALL".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "shipping.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserShippingAddressLine1,
- value: None,
- }
- ),
- (
- "shipping.address.line2".to_string(),
- RequiredFieldInfo {
- required_field: "shipping.address.line2".to_string(),
- display_name: "line2".to_string(),
- field_type: enums::FieldType::UserShippingAddressLine2,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Walley,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "billing.phone.number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.number".to_string(),
- display_name: "phone".to_string(),
- field_type: enums::FieldType::UserPhoneNumber,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "DK".to_string(),
- "FI".to_string(),
- "NO".to_string(),
- "SE".to_string(),
- ]},
- value: None,
- }
- ),
- (
- "billing.phone.country_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.country_code".to_string(),
- display_name: "dialing_code".to_string(),
- field_type: enums::FieldType::UserPhoneNumberCountryCode,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- ]
- ),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Alma,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "FR".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "payment_method_data.billing.phone.number".to_string(),
- RequiredFieldInfo {
- required_field: "billing.phone.number".to_string(),
- display_name: "phone_number".to_string(),
- field_type: enums::FieldType::UserPhoneNumber,
- value: None,
- }
- ),
- (
- "billing.phone.country_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.country_code".to_string(),
- display_name: "dialing_code".to_string(),
- field_type: enums::FieldType::UserPhoneNumberCountryCode,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.line2".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line2".to_string(),
- display_name: "line2".to_string(),
- field_type: enums::FieldType::UserAddressLine2,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Atome,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "MY".to_string(),
- "SG".to_string()
- ]
- },
- value: None,
- }
- ),
- (
- "payment_method_data.billing.phone.number".to_string(),
- RequiredFieldInfo {
- required_field: "billing.phone.number".to_string(),
- display_name: "phone_number".to_string(),
- field_type: enums::FieldType::UserPhoneNumber,
- value: None,
- }
- ),
- (
- "billing.phone.country_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.country_code".to_string(),
- display_name: "dialing_code".to_string(),
- field_type: enums::FieldType::UserPhoneNumberCountryCode,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.line2".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line2".to_string(),
- display_name: "line2".to_string(),
- field_type: enums::FieldType::UserAddressLine2,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- ])),
- ),
- (
- enums::PaymentMethod::Crypto,
- PaymentMethodType(HashMap::from([
- (
- enums::PaymentMethodType::CryptoCurrency,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Cryptopay,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate: HashMap::from([
- (
- "payment_method_data.crypto.pay_currency".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.crypto.pay_currency".to_string(),
- display_name: "currency".to_string(),
- field_type: enums::FieldType::UserCurrency{
- options: vec![
- "BTC".to_string(),
- "LTC".to_string(),
- "ETH".to_string(),
- "XRP".to_string(),
- "XLM".to_string(),
- "BCH".to_string(),
- "ADA".to_string(),
- "SOL".to_string(),
- "SHIB".to_string(),
- "TRX".to_string(),
- "DOGE".to_string(),
- "BNB".to_string(),
- "USDT".to_string(),
- "USDC".to_string(),
- "DAI".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "payment_method_data.crypto.network".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.crypto.network".to_string(),
- display_name: "network".to_string(),
- field_type: enums::FieldType::UserCryptoCurrencyNetwork,
- value: None,
- }
- ),
- ]),
- common : HashMap::new(),
- }
- ),
- ]),
- },
- ),
- ])),
- ),
- (
- enums::PaymentMethod::Voucher,
- PaymentMethodType(HashMap::from([
- (
- enums::PaymentMethodType::Boleto,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "payment_method_data.voucher.boleto.social_security_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.voucher.boleto.social_security_number".to_string(),
- display_name: "social_security_number".to_string(),
- field_type: enums::FieldType::Text,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- }
- ),
- (
- "billing.address.state".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.state".to_string(),
- display_name: "state".to_string(),
- field_type: enums::FieldType::UserAddressState,
- value: None,
- }
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "BR".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- }
- ),
- (
- "billing.address.line2".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line2".to_string(),
- display_name: "line2".to_string(),
- field_type: enums::FieldType::UserAddressLine2,
- value: None,
- }
- ),
- ]),
- common : HashMap::new(),
- }
- ),
- (
- enums::Connector::Zen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Alfamart,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- )
- ]),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Indomaret,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- )
- ]),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Oxxo,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::new(),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::SevenEleven,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.phone.number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.number".to_string(),
- display_name: "phone".to_string(),
- field_type: enums::FieldType::UserPhoneNumber,
- value: None,
- }
- ),
- (
- "billing.phone.country_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.country_code".to_string(),
- display_name: "dialing_code".to_string(),
- field_type: enums::FieldType::UserPhoneNumberCountryCode,
- value: None,
- }
- )
- ]
- ),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Lawson,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.phone.number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.number".to_string(),
- display_name: "phone".to_string(),
- field_type: enums::FieldType::UserPhoneNumber,
- value: None,
- }
- ),
- (
- "billing.phone.country_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.country_code".to_string(),
- display_name: "dialing_code".to_string(),
- field_type: enums::FieldType::UserPhoneNumberCountryCode,
- value: None,
- }
- ),
- ]
- ),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::MiniStop,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.phone.number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.number".to_string(),
- display_name: "phone".to_string(),
- field_type: enums::FieldType::UserPhoneNumber,
- value: None,
- }
- ),
- (
- "billing.phone.country_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.country_code".to_string(),
- display_name: "dialing_code".to_string(),
- field_type: enums::FieldType::UserPhoneNumberCountryCode,
- value: None,
- }
- ),
- ]
- ),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::FamilyMart,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.phone.number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.number".to_string(),
- display_name: "phone".to_string(),
- field_type: enums::FieldType::UserPhoneNumber,
- value: None,
- }
- ),
- (
- "billing.phone.country_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.country_code".to_string(),
- display_name: "dialing_code".to_string(),
- field_type: enums::FieldType::UserPhoneNumberCountryCode,
- value: None,
- }
- ),
- ]
- ),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Seicomart,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.phone.number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.number".to_string(),
- display_name: "phone".to_string(),
- field_type: enums::FieldType::UserPhoneNumber,
- value: None,
- }
- ),
- (
- "billing.phone.country_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.country_code".to_string(),
- display_name: "dialing_code".to_string(),
- field_type: enums::FieldType::UserPhoneNumberCountryCode,
- value: None,
- }
- ),
- ]
- ),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::PayEasy,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.phone.number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.number".to_string(),
- display_name: "phone".to_string(),
- field_type: enums::FieldType::UserPhoneNumber,
- value: None,
- }
- ),
- (
- "billing.phone.country_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.country_code".to_string(),
- display_name: "dialing_code".to_string(),
- field_type: enums::FieldType::UserPhoneNumberCountryCode,
- value: None,
- }
- ),
- ]
- ),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- ])),
- ),
- (
- enums::PaymentMethod::Upi,
- PaymentMethodType(HashMap::from([
- (
- enums::PaymentMethodType::UpiCollect,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Razorpay,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::new(),
- common : HashMap::from([
- (
- "payment_method_data.upi.upi_collect.vpa_id".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.upi.upi_collect.vpa_id".to_string(),
- display_name: "vpa_id".to_string(),
- field_type: enums::FieldType::UserVpaId,
- value: None,
- }
- ),
- ]),
- }
- ),
- ]),
- },
- ),
- ])),
- ),
- (
- enums::PaymentMethod::BankDebit,
- PaymentMethodType(HashMap::from([(
- enums::PaymentMethodType::Ach,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([(
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "owner_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_debit.ach.account_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_debit.ach.account_number".to_string(),
- display_name: "bank_account_number".to_string(),
- field_type: enums::FieldType::UserBankAccountNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_debit.ach.routing_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_debit.ach.routing_number".to_string(),
- display_name: "bank_routing_number".to_string(),
- field_type: enums::FieldType::Text,
- value: None,
- }
- )
- ]),
- }),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([ (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "owner_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "owner_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_debit.ach.account_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_debit.ach.account_number".to_string(),
- display_name: "bank_account_number".to_string(),
- field_type: enums::FieldType::UserBankAccountNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_debit.ach.routing_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_debit.ach.routing_number".to_string(),
- display_name: "bank_routing_number".to_string(),
- field_type: enums::FieldType::Text,
- value: None,
- }
- )
- ]),
- })
- ]
- )}
- ),
- (
- enums::PaymentMethodType::Sepa,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([ (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "owner_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_debit.sepa_bank_debit.iban".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_debit.sepa_bank_debit.iban".to_string(),
- display_name: "iban".to_string(),
- field_type: enums::FieldType::UserIban,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- )
- ]),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([ (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "owner_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "owner_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_debit.sepa_bank_debit.iban".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_debit.sepa_bank_debit.iban".to_string(),
- display_name: "iban".to_string(),
- field_type: enums::FieldType::UserIban,
- value: None,
- }
- )
- ]),
- }
- ),
- (
- enums::Connector::Deutschebank,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([ (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "owner_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "owner_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_debit.sepa_bank_debit.iban".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_debit.sepa_bank_debit.iban".to_string(),
- display_name: "iban".to_string(),
- field_type: enums::FieldType::UserIban,
- value: None,
- }
- )
- ]),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Bacs,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([ (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_debit.bacs.account_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_debit.bacs.account_number".to_string(),
- display_name: "bank_account_number".to_string(),
- field_type: enums::FieldType::UserBankAccountNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_debit.bacs.sort_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_debit.bacs.sort_code".to_string(),
- display_name: "bank_sort_code".to_string(),
- field_type: enums::FieldType::Text,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry {
- options: vec!["UK".to_string()],
- },
- value: None,
- },
- ),
- (
- "billing.address.zip".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.zip".to_string(),
- display_name: "zip".to_string(),
- field_type: enums::FieldType::UserAddressPincode,
- value: None,
- },
- ),
- (
- "billing.address.line1".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.line1".to_string(),
- display_name: "line1".to_string(),
- field_type: enums::FieldType::UserAddressLine1,
- value: None,
- },
- )
- ]),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([ (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "owner_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "owner_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_debit.bacs.account_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_debit.bacs.account_number".to_string(),
- display_name: "bank_account_number".to_string(),
- field_type: enums::FieldType::UserBankAccountNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_debit.bacs.sort_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_debit.bacs.sort_code".to_string(),
- display_name: "bank_sort_code".to_string(),
- field_type: enums::FieldType::Text,
- value: None,
- }
- )
- ]),
- })
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Becs,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([ (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "billing_first_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "owner_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_debit.becs.account_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_debit.becs.account_number".to_string(),
- display_name: "bank_account_number".to_string(),
- field_type: enums::FieldType::UserBankAccountNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_debit.becs.bsb_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_debit.becs.bsb_number".to_string(),
- display_name: "bsb_number".to_string(),
- field_type: enums::FieldType::Text,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- )
- ]),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([ (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "owner_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "owner_name".to_string(),
- field_type: enums::FieldType::UserBillingName,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_debit.bacs.account_number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_debit.bacs.account_number".to_string(),
- display_name: "bank_account_number".to_string(),
- field_type: enums::FieldType::UserBankAccountNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_debit.bacs.sort_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_debit.bacs.sort_code".to_string(),
- display_name: "bank_sort_code".to_string(),
- field_type: enums::FieldType::Text,
- value: None,
- }
- )
- ]),
- })
- ]),
- },
- ),
- ]))),
- (
- enums::PaymentMethod::BankTransfer,
- PaymentMethodType(HashMap::from([(
- enums::PaymentMethodType::Multibanco,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- )
- ]),
- common: HashMap::new(),
- }
- ),
- ])}),
- (enums::PaymentMethodType::LocalBankTransfer,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Zsl,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([ (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry{
- options: vec![
- "CN".to_string(),
- ]
- },
- value: None,
- }
- ),
- (
- "billing.address.city".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.city".to_string(),
- display_name: "city".to_string(),
- field_type: enums::FieldType::UserAddressCity,
- value: None,
- },
- ),
- ]),
- common: HashMap::new(),
- }
- ),
- ])}),
- (enums::PaymentMethodType::Ach,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- )
- ])
- }
- ),
- ])}),
- (enums::PaymentMethodType::Pix,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Itaubank,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::from(
- [
- (
- "payment_method_data.bank_transfer.pix.pix_key".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_transfer.pix.pix_key".to_string(),
- display_name: "pix_key".to_string(),
- field_type: enums::FieldType::UserPixKey,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_transfer.pix.cnpj".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_transfer.pix.cnpj".to_string(),
- display_name: "cnpj".to_string(),
- field_type: enums::FieldType::UserCnpj,
- value: None,
- }
- ),
- (
- "payment_method_data.bank_transfer.pix.cpf".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.bank_transfer.pix.cpf".to_string(),
- display_name: "cpf".to_string(),
- field_type: enums::FieldType::UserCpf,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- ]
- ),
- }
- ),
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- ])}),
- (
- enums::PaymentMethodType::PermataBankTransfer,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- )
- ]),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::BcaBankTransfer,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- )
- ]),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::BniVa,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- )
- ]),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::BriVa,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- )
- ]),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::CimbVa,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- )
- ]),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::DanamonVa,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- )
- ]),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::MandiriVa,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- )
- ]),
- common : HashMap::new(),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Sepa,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::new(),
- common : HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.country".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.country".to_string(),
- display_name: "country".to_string(),
- field_type: enums::FieldType::UserAddressCountry {
- options: vec![
- "BE".to_string(),
- "DE".to_string(),
- "ES".to_string(),
- "FR".to_string(),
- "IE".to_string(),
- "NL".to_string(),
- ],
- },
- value: None,
- },
- ),
- ]),
- }
- )
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Bacs,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Stripe,
- RequiredFieldFinal {
- mandate : HashMap::new(),
- non_mandate : HashMap::new(),
- common : HashMap::from([
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- ),
- (
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "card_holder_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- )
- ]),
- }
- )
- ]),
- },
- ),
- ]))),
- (
- enums::PaymentMethod::GiftCard,
- PaymentMethodType(HashMap::from([
- (
- enums::PaymentMethodType::PaySafeCard,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Givex,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from([
-
- (
- "payment_method_data.gift_card.number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.gift_card.number".to_string(),
- display_name: "gift_card_number".to_string(),
- field_type: enums::FieldType::UserCardNumber,
- value: None,
- }
- ),
- (
- "payment_method_data.gift_card.cvc".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.gift_card.cvc".to_string(),
- display_name: "gift_card_cvc".to_string(),
- field_type: enums::FieldType::UserCardCvc,
- value: None,
- }
- ),
- ]),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- ]))
- ),
- (
- enums::PaymentMethod::CardRedirect,
- PaymentMethodType(HashMap::from([
- (
- enums::PaymentMethodType::Benefit,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [(
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "first_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "last_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.phone.number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.number".to_string(),
- display_name: "phone".to_string(),
- field_type: enums::FieldType::UserPhoneNumber,
- value: None,
- }
- ),
- (
- "billing.phone.country_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.country_code".to_string(),
- display_name: "dialing_code".to_string(),
- field_type: enums::FieldType::UserPhoneNumberCountryCode,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::Knet,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::from(
- [(
- "billing.address.first_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.first_name".to_string(),
- display_name: "first_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.address.last_name".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.address.last_name".to_string(),
- display_name: "last_name".to_string(),
- field_type: enums::FieldType::UserFullName,
- value: None,
- }
- ),
- (
- "billing.phone.number".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.number".to_string(),
- display_name: "phone".to_string(),
- field_type: enums::FieldType::UserPhoneNumber,
- value: None,
- }
- ),
- (
- "billing.phone.country_code".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.phone.country_code".to_string(),
- display_name: "dialing_code".to_string(),
- field_type: enums::FieldType::UserPhoneNumberCountryCode,
- value: None,
- }
- ),
- (
- "billing.email".to_string(),
- RequiredFieldInfo {
- required_field: "payment_method_data.billing.email".to_string(),
- display_name: "email".to_string(),
- field_type: enums::FieldType::UserEmailAddress,
- value: None,
- }
- )
- ]
- ),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- ),
- (
- enums::PaymentMethodType::MomoAtm,
- ConnectorFields {
- fields: HashMap::from([
- (
- enums::Connector::Adyen,
- RequiredFieldFinal {
- mandate: HashMap::new(),
- non_mandate: HashMap::new(),
- common: HashMap::new(),
- }
- ),
- ]),
- },
- )
- ]))
- )
- ]))
- }
-}
-
#[allow(clippy::derivable_impls)]
impl Default for super::settings::ApiKeys {
fn default() -> Self {
diff --git a/crates/router/src/configs/defaults/payment_connector_required_fields.rs b/crates/router/src/configs/defaults/payment_connector_required_fields.rs
new file mode 100644
index 0000000000..28ddeec1fc
--- /dev/null
+++ b/crates/router/src/configs/defaults/payment_connector_required_fields.rs
@@ -0,0 +1,12562 @@
+use std::collections::{HashMap, HashSet};
+
+use api_models::{enums, payment_methods::RequiredFieldInfo};
+
+use crate::settings::{
+ self, ConnectorFields, Mandates, PaymentMethodType, RequiredFieldFinal,
+ SupportedConnectorsForMandate, SupportedPaymentMethodTypesForMandate,
+ SupportedPaymentMethodsForMandate,
+};
+
+impl Default for Mandates {
+ fn default() -> Self {
+ Self {
+ supported_payment_methods: SupportedPaymentMethodsForMandate(HashMap::from([
+ (
+ enums::PaymentMethod::PayLater,
+ SupportedPaymentMethodTypesForMandate(HashMap::from([(
+ enums::PaymentMethodType::Klarna,
+ SupportedConnectorsForMandate {
+ connector_list: HashSet::from([enums::Connector::Adyen]),
+ },
+ )])),
+ ),
+ (
+ enums::PaymentMethod::Wallet,
+ SupportedPaymentMethodTypesForMandate(HashMap::from([
+ (
+ enums::PaymentMethodType::GooglePay,
+ SupportedConnectorsForMandate {
+ connector_list: HashSet::from([
+ enums::Connector::Stripe,
+ enums::Connector::Adyen,
+ enums::Connector::Globalpay,
+ enums::Connector::Multisafepay,
+ enums::Connector::Bankofamerica,
+ enums::Connector::Noon,
+ enums::Connector::Cybersource,
+ enums::Connector::Wellsfargo,
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::ApplePay,
+ SupportedConnectorsForMandate {
+ connector_list: HashSet::from([
+ enums::Connector::Stripe,
+ enums::Connector::Adyen,
+ enums::Connector::Bankofamerica,
+ enums::Connector::Cybersource,
+ enums::Connector::Wellsfargo,
+ ]),
+ },
+ ),
+ ])),
+ ),
+ (
+ enums::PaymentMethod::Card,
+ SupportedPaymentMethodTypesForMandate(HashMap::from([
+ (
+ enums::PaymentMethodType::Credit,
+ SupportedConnectorsForMandate {
+ connector_list: HashSet::from([
+ enums::Connector::Aci,
+ enums::Connector::Adyen,
+ enums::Connector::Authorizedotnet,
+ enums::Connector::Globalpay,
+ enums::Connector::Worldpay,
+ enums::Connector::Multisafepay,
+ enums::Connector::Nexinets,
+ enums::Connector::Noon,
+ enums::Connector::Payme,
+ enums::Connector::Stripe,
+ enums::Connector::Bankofamerica,
+ enums::Connector::Cybersource,
+ enums::Connector::Wellsfargo,
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Debit,
+ SupportedConnectorsForMandate {
+ connector_list: HashSet::from([
+ enums::Connector::Aci,
+ enums::Connector::Adyen,
+ enums::Connector::Authorizedotnet,
+ enums::Connector::Globalpay,
+ enums::Connector::Worldpay,
+ enums::Connector::Multisafepay,
+ enums::Connector::Nexinets,
+ enums::Connector::Noon,
+ enums::Connector::Payme,
+ enums::Connector::Stripe,
+ ]),
+ },
+ ),
+ ])),
+ ),
+ ])),
+ update_mandate_supported: SupportedPaymentMethodsForMandate(HashMap::default()),
+ }
+ }
+}
+
+impl Default for settings::RequiredFields {
+ fn default() -> Self {
+ Self(HashMap::from([
+ (
+ enums::PaymentMethod::Card,
+ PaymentMethodType(HashMap::from([
+ (
+ enums::PaymentMethodType::Debit,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Aci,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Airwallex,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Fiuu,
+ RequiredFieldFinal {
+ mandate: HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ )
+ ]),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Authorizedotnet,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Bambora,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Bankofamerica,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Billwerk,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Bluesnap,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Boku,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Braintree,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Checkout,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Coinbase,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Cybersource,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common:HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Dlocal,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]
+ ),
+ common:HashMap::new(),
+ }
+ ),
+ #[cfg(feature = "dummy_connector")]
+ (
+ enums::Connector::DummyConnector1,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ #[cfg(feature = "dummy_connector")]
+ (
+ enums::Connector::DummyConnector2,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ #[cfg(feature = "dummy_connector")]
+ (
+ enums::Connector::DummyConnector3,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ #[cfg(feature = "dummy_connector")]
+ (
+ enums::Connector::DummyConnector4,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ #[cfg(feature = "dummy_connector")]
+ (
+ enums::Connector::DummyConnector5,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ #[cfg(feature = "dummy_connector")]
+ (
+ enums::Connector::DummyConnector6,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ #[cfg(feature = "dummy_connector")]
+ (
+ enums::Connector::DummyConnector7,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Fiserv,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Fiuu,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Forte,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common:HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Globalpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]),
+ }
+ ),
+ (
+ enums::Connector::Helcim,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Iatapay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Mollie,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Multisafepay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate:HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line2".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line2".to_string(),
+ display_name: "line2".to_string(),
+ field_type: enums::FieldType::UserAddressLine2,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Nexinets,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Nmi,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "billing_zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Noon,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Novalnet,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "browser_info.language".to_string(),
+ RequiredFieldInfo {
+ required_field: "browser_info.language".to_string(),
+ display_name: "browser_info_language".to_string(),
+ field_type: enums::FieldType::BrowserLanguage,
+ value: None,
+ }
+ ),
+ (
+ "browser_info.ip_address".to_string(),
+ RequiredFieldInfo {
+ required_field: "browser_info.ip_address".to_string(),
+ display_name: "browser_info_ip_address".to_string(),
+ field_type: enums::FieldType::BrowserIp,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line2".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line2".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine2,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "first_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "last_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email_address".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Nuvei,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Paybox,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Payme,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Paypal,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Payu,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Powertranz,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Rapyd,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Shift4,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Square,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Stax,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common:HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Trustpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new()
+ }
+ ),
+ (
+ enums::Connector::Tsys,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new()
+ }
+ ),
+ (
+ enums::Connector::Wellsfargo,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common:HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Worldline,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Worldpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Zen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Credit,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Aci,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Airwallex,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Fiuu,
+ RequiredFieldFinal {
+ mandate: HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ )
+ ]),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Authorizedotnet,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Bambora,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Bankofamerica,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Billwerk,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Bluesnap,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Boku,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Braintree,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Checkout,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Coinbase,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Cybersource,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate:HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Dlocal,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]
+ ),
+ common:HashMap::new(),
+ }
+ ),
+ #[cfg(feature = "dummy_connector")]
+ (
+ enums::Connector::DummyConnector1,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ #[cfg(feature = "dummy_connector")]
+ (
+ enums::Connector::DummyConnector2,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ #[cfg(feature = "dummy_connector")]
+ (
+ enums::Connector::DummyConnector3,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ #[cfg(feature = "dummy_connector")]
+ (
+ enums::Connector::DummyConnector4,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ #[cfg(feature = "dummy_connector")]
+ (
+ enums::Connector::DummyConnector5,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ #[cfg(feature = "dummy_connector")]
+ (
+ enums::Connector::DummyConnector6,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ #[cfg(feature = "dummy_connector")]
+ (
+ enums::Connector::DummyConnector7,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Fiserv,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Fiuu,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Forte,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common:HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Globalpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]),
+ }
+ ),
+ (
+ enums::Connector::Helcim,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Iatapay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Mollie,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Multisafepay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate:HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line2".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line2".to_string(),
+ display_name: "line2".to_string(),
+ field_type: enums::FieldType::UserAddressLine2,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Nexinets,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Nexixpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line2".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line2".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine2,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "first_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "last_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Nmi,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "billing_zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Noon,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Novalnet,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "browser_info.language".to_string(),
+ RequiredFieldInfo {
+ required_field: "browser_info.language".to_string(),
+ display_name: "browser_info_language".to_string(),
+ field_type: enums::FieldType::BrowserLanguage,
+ value: None,
+ }
+ ),
+ (
+ "browser_info.ip_address".to_string(),
+ RequiredFieldInfo {
+ required_field: "browser_info.ip_address".to_string(),
+ display_name: "browser_info_ip_address".to_string(),
+ field_type: enums::FieldType::BrowserIp,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line2".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line2".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine2,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "first_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "last_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email_address".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Nuvei,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),(
+ enums::Connector::Paybox,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Payme,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Paypal,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Payu,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Powertranz,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Rapyd,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Shift4,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Square,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Stax,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common:HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Trustpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new()
+ }
+ ),
+ (
+ enums::Connector::Tsys,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new()
+ }
+ ),
+ (
+ enums::Connector::Wellsfargo,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate:HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Worldline,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_cvc".to_string(),
+ display_name: "card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Worldpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Zen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "payment_method_data.card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+
+ ])),
+ ),
+ (
+ enums::PaymentMethod::BankRedirect,
+ PaymentMethodType(HashMap::from([
+ (
+ enums::PaymentMethodType::OpenBankingUk,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Volt,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap:: from([
+ (
+ "payment_method_data.bank_redirect.open_banking_uk.issuer".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_redirect.open_banking_uk.issuer".to_string(),
+ display_name: "issuer".to_string(),
+ field_type: enums::FieldType::UserBank,
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Trustly,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::OnlineBankingCzechRepublic,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "payment_method_data.bank_redirect.open_banking_czech_republic.issuer".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_redirect.open_banking_czech_republic.issuer".to_string(),
+ display_name: "issuer".to_string(),
+ field_type: enums::FieldType::UserBank,
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::OnlineBankingFinland,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ ]),
+ common: HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::OnlineBankingPoland,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "payment_method_data.bank_redirect.open_banking_poland.issuer".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_redirect.open_banking_poland.issuer".to_string(),
+ display_name: "issuer".to_string(),
+ field_type: enums::FieldType::UserBank,
+ value: None,
+ }
+ ),
+
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ ]),
+ common: HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::OnlineBankingSlovakia,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "payment_method_data.bank_redirect.open_banking_slovakia.issuer".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_redirect.open_banking_slovakia.issuer".to_string(),
+ display_name: "issuer".to_string(),
+ field_type: enums::FieldType::UserBank,
+ value: None,
+ }
+ ),
+ ]),
+ common: HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::OnlineBankingFpx,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "payment_method_data.bank_redirect.open_banking_fpx.issuer".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_redirect.open_banking_fpx.issuer".to_string(),
+ display_name: "issuer".to_string(),
+ field_type: enums::FieldType::UserBank,
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::OnlineBankingThailand,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "payment_method_data.bank_redirect.open_banking_thailand.issuer".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_redirect.open_banking_thailand.issuer".to_string(),
+ display_name: "issuer".to_string(),
+ field_type: enums::FieldType::UserBank,
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Bizum,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Przelewy24,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ )]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::BancontactCard,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Mollie,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ )
+ ]),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ (
+ "payment_method_data.bank_redirect.bancontact_card.card_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_redirect.bancontact_card.card_number".to_string(),
+ display_name: "card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_redirect.bancontact_card.card_exp_month".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_redirect.bancontact_card.card_exp_month".to_string(),
+ display_name: "card_exp_month".to_string(),
+ field_type: enums::FieldType::UserCardExpiryMonth,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_redirect.bancontact_card.card_exp_year".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_redirect.bancontact_card.card_exp_year".to_string(),
+ display_name: "card_exp_year".to_string(),
+ field_type: enums::FieldType::UserCardExpiryYear,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Giropay,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Aci,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserCountry {
+ options: vec![
+ "DE".to_string(),
+ ]},
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Globalpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ ("billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry {
+ options: vec![
+ "DE".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]),
+ }
+ ),
+ (
+ enums::Connector::Mollie,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Nuvei,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate:HashMap::from([
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "DE".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Paypal,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserCountry {
+ options: vec![
+ "DE".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Shift4,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Trustpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry {
+ options: vec![
+ "DE".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Ideal,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Aci,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "payment_method_data.bank_redirect.ideal.bank_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_redirect.ideal.bank_name".to_string(),
+ display_name: "bank_name".to_string(),
+ field_type: enums::FieldType::UserBank,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserCountry {
+ options: vec![
+ "NL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ (
+ "payment_method_data.bank_redirect.ideal.bank_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_redirect.ideal.bank_name".to_string(),
+ display_name: "bank_name".to_string(),
+ field_type: enums::FieldType::UserBank,
+ value: None,
+ }
+ ),
+
+ ]),
+ }
+ ),
+ (
+ enums::Connector::Globalpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Mollie,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Nexinets,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Nuvei,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "NL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Shift4,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserCountry{
+ options: vec![
+ "NL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Paypal,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserCountry{
+ options: vec![
+ "NL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "billing_email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ )
+ ]),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Trustpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "NL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Sofort,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Aci,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ ("billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserCountry {
+ options: vec![
+ "ES".to_string(),
+ "GB".to_string(),
+ "SE".to_string(),
+ "AT".to_string(),
+ "NL".to_string(),
+ "DE".to_string(),
+ "CH".to_string(),
+ "BE".to_string(),
+ "FR".to_string(),
+ "FI".to_string(),
+ "IT".to_string(),
+ "PL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Globalpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ ("billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry {
+ options: vec![
+ "AT".to_string(),
+ "BE".to_string(),
+ "DE".to_string(),
+ "ES".to_string(),
+ "IT".to_string(),
+ "NL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]),
+ }
+ ),
+ (
+ enums::Connector::Mollie,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Nexinets,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Nuvei,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate:HashMap::from([
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ES".to_string(),
+ "GB".to_string(),
+ "IT".to_string(),
+ "DE".to_string(),
+ "FR".to_string(),
+ "AT".to_string(),
+ "BE".to_string(),
+ "NL".to_string(),
+ "BE".to_string(),
+ "SK".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Paypal,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ ( "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserCountry {
+ options: vec![
+ "ES".to_string(),
+ "GB".to_string(),
+ "AT".to_string(),
+ "NL".to_string(),
+ "DE".to_string(),
+ "BE".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Shift4,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ )
+ ]),
+ non_mandate : HashMap::new(),
+ common: HashMap::from([
+ ("billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserCountry {
+ options: vec![
+ "ES".to_string(),
+ "AT".to_string(),
+ "NL".to_string(),
+ "DE".to_string(),
+ "BE".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "account_holder_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "account_holder_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ )]),
+ }
+ ),
+ (
+ enums::Connector::Trustpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry {
+ options: vec![
+ "ES".to_string(),
+ "GB".to_string(),
+ "SE".to_string(),
+ "AT".to_string(),
+ "NL".to_string(),
+ "DE".to_string(),
+ "CH".to_string(),
+ "BE".to_string(),
+ "FR".to_string(),
+ "FI".to_string(),
+ "IT".to_string(),
+ "PL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Eps,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ (
+ "payment_method_data.bank_redirect.eps.bank_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_redirect.eps.bank_name".to_string(),
+ display_name: "bank_name".to_string(),
+ field_type: enums::FieldType::UserBank,
+ value: None,
+ }
+ )
+ ]),
+ }
+ ),
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Aci,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "bank_account_country".to_string(),
+ field_type: enums::FieldType::UserCountry {
+ options: vec![
+ "AT".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Globalpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry {
+ options: vec![
+ "AT".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ])
+ }
+ ),
+ (
+ enums::Connector::Mollie,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate:HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Paypal,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "bank_account_country".to_string(),
+ field_type: enums::FieldType::UserCountry {
+ options: vec![
+ "AT".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Trustpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "AT".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Shift4,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate:HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Nuvei,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "AT".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Blik,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ (
+ "payment_method_data.bank_redirect.blik.blik_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_redirect.blik.blik_code".to_string(),
+ display_name: "blik_code".to_string(),
+ field_type: enums::FieldType::UserBlikCode,
+ value: None,
+ }
+ )
+ ]),
+ }
+ ),
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ (
+ "payment_method_data.bank_redirect.blik.blik_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_redirect.blik.blik_code".to_string(),
+ display_name: "blik_code".to_string(),
+ field_type: enums::FieldType::UserBlikCode,
+ value: None,
+ }
+ )
+ ]),
+ }
+ ),
+ (
+ enums::Connector::Trustpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ ]),
+ }
+ )
+ ]),
+ },
+ ),
+ ])),
+ ),
+ (
+ enums::PaymentMethod::Wallet,
+ PaymentMethodType(HashMap::from([
+ (
+ enums::PaymentMethodType::ApplePay,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Bankofamerica,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Cybersource,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Wellsfargo,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.first_name".to_string(),
+ display_name: "shipping_first_name".to_string(),
+ field_type: enums::FieldType::UserShippingName,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.last_name".to_string(),
+ display_name: "shipping_last_name".to_string(),
+ field_type: enums::FieldType::UserShippingName,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserShippingAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserShippingAddressState,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserShippingAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserShippingAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserShippingAddressLine1,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::GooglePay,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Bankofamerica,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Bluesnap,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Noon,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Nuvei,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Airwallex,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Authorizedotnet,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Checkout,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Globalpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Multisafepay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line2".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line2".to_string(),
+ display_name: "line2".to_string(),
+ field_type: enums::FieldType::UserAddressLine2,
+ value: None,
+ }
+ )]),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Cybersource,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Payu,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Rapyd,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Trustpay,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Wellsfargo,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "email".to_string(),
+ RequiredFieldInfo {
+ required_field: "email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.first_name".to_string(),
+ display_name: "shipping_first_name".to_string(),
+ field_type: enums::FieldType::UserShippingName,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.last_name".to_string(),
+ display_name: "shipping_last_name".to_string(),
+ field_type: enums::FieldType::UserShippingName,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserShippingAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserShippingAddressState,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserShippingAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserShippingAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserShippingAddressLine1,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::WeChatPay,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::AliPay,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::AliPayHk,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Cashapp,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::MbWay,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ common: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "payment_method_data.billing.phone.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "billing.phone.number".to_string(),
+ display_name: "phone_number".to_string(),
+ field_type: enums::FieldType::UserPhoneNumber,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.country_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.country_code".to_string(),
+ display_name: "dialing_code".to_string(),
+ field_type: enums::FieldType::UserPhoneNumberCountryCode,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::KakaoPay,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Twint,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Gcash,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Vipps,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Dana,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Momo,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Swish,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::TouchNGo,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ // Added shipping fields for the SDK flow to accept it from wallet directly,
+ // this won't show up in SDK in payment's sheet but will be used in the background
+ enums::PaymentMethodType::Paypal,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ )]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Braintree,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Paypal,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(
+ ),
+ common: HashMap::from(
+ [
+ (
+ "shipping.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.first_name".to_string(),
+ display_name: "shipping_first_name".to_string(),
+ field_type: enums::FieldType::UserShippingName,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.last_name".to_string(),
+ display_name: "shipping_last_name".to_string(),
+ field_type: enums::FieldType::UserShippingName,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserShippingAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserShippingAddressState,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserShippingAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserShippingAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserShippingAddressLine1,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Mifinity,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Mifinity,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ (
+ "payment_method_data.wallet.mifinity.date_of_birth".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.wallet.mifinity.date_of_birth".to_string(),
+ display_name: "date_of_birth".to_string(),
+ field_type: enums::FieldType::UserDateOfBirth,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "first_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "last_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.number".to_string(),
+ display_name: "phone".to_string(),
+ field_type: enums::FieldType::UserPhoneNumber,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.country_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.country_code".to_string(),
+ display_name: "dialing_code".to_string(),
+ field_type: enums::FieldType::UserPhoneNumberCountryCode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "nationality".to_string(),
+ field_type: enums::FieldType::UserCountry{
+ options: vec![
+ "BR".to_string(),
+ "CN".to_string(),
+ "SG".to_string(),
+ "MY".to_string(),
+ "DE".to_string(),
+ "CH".to_string(),
+ "DK".to_string(),
+ "GB".to_string(),
+ "ES".to_string(),
+ "AD".to_string(),
+ "GI".to_string(),
+ "FI".to_string(),
+ "FR".to_string(),
+ "GR".to_string(),
+ "HR".to_string(),
+ "IT".to_string(),
+ "JP".to_string(),
+ "MX".to_string(),
+ "AR".to_string(),
+ "CO".to_string(),
+ "CL".to_string(),
+ "PE".to_string(),
+ "VE".to_string(),
+ "UY".to_string(),
+ "PY".to_string(),
+ "BO".to_string(),
+ "EC".to_string(),
+ "GT".to_string(),
+ "HN".to_string(),
+ "SV".to_string(),
+ "NI".to_string(),
+ "CR".to_string(),
+ "PA".to_string(),
+ "DO".to_string(),
+ "CU".to_string(),
+ "PR".to_string(),
+ "NL".to_string(),
+ "NO".to_string(),
+ "PL".to_string(),
+ "PT".to_string(),
+ "SE".to_string(),
+ "RU".to_string(),
+ "TR".to_string(),
+ "TW".to_string(),
+ "HK".to_string(),
+ "MO".to_string(),
+ "AX".to_string(),
+ "AL".to_string(),
+ "DZ".to_string(),
+ "AS".to_string(),
+ "AO".to_string(),
+ "AI".to_string(),
+ "AG".to_string(),
+ "AM".to_string(),
+ "AW".to_string(),
+ "AU".to_string(),
+ "AT".to_string(),
+ "AZ".to_string(),
+ "BS".to_string(),
+ "BH".to_string(),
+ "BD".to_string(),
+ "BB".to_string(),
+ "BE".to_string(),
+ "BZ".to_string(),
+ "BJ".to_string(),
+ "BM".to_string(),
+ "BT".to_string(),
+ "BQ".to_string(),
+ "BA".to_string(),
+ "BW".to_string(),
+ "IO".to_string(),
+ "BN".to_string(),
+ "BG".to_string(),
+ "BF".to_string(),
+ "BI".to_string(),
+ "KH".to_string(),
+ "CM".to_string(),
+ "CA".to_string(),
+ "CV".to_string(),
+ "KY".to_string(),
+ "CF".to_string(),
+ "TD".to_string(),
+ "CX".to_string(),
+ "CC".to_string(),
+ "KM".to_string(),
+ "CG".to_string(),
+ "CK".to_string(),
+ "CI".to_string(),
+ "CW".to_string(),
+ "CY".to_string(),
+ "CZ".to_string(),
+ "DJ".to_string(),
+ "DM".to_string(),
+ "EG".to_string(),
+ "GQ".to_string(),
+ "ER".to_string(),
+ "EE".to_string(),
+ "ET".to_string(),
+ "FK".to_string(),
+ "FO".to_string(),
+ "FJ".to_string(),
+ "GF".to_string(),
+ "PF".to_string(),
+ "TF".to_string(),
+ "GA".to_string(),
+ "GM".to_string(),
+ "GE".to_string(),
+ "GH".to_string(),
+ "GL".to_string(),
+ "GD".to_string(),
+ "GP".to_string(),
+ "GU".to_string(),
+ "GG".to_string(),
+ "GN".to_string(),
+ "GW".to_string(),
+ "GY".to_string(),
+ "HT".to_string(),
+ "HM".to_string(),
+ "VA".to_string(),
+ "IS".to_string(),
+ "IN".to_string(),
+ "ID".to_string(),
+ "IE".to_string(),
+ "IM".to_string(),
+ "IL".to_string(),
+ "JE".to_string(),
+ "JO".to_string(),
+ "KZ".to_string(),
+ "KE".to_string(),
+ "KI".to_string(),
+ "KW".to_string(),
+ "KG".to_string(),
+ "LA".to_string(),
+ "LV".to_string(),
+ "LB".to_string(),
+ "LS".to_string(),
+ "LI".to_string(),
+ "LT".to_string(),
+ "LU".to_string(),
+ "MK".to_string(),
+ "MG".to_string(),
+ "MW".to_string(),
+ "MV".to_string(),
+ "ML".to_string(),
+ "MT".to_string(),
+ "MH".to_string(),
+ "MQ".to_string(),
+ "MR".to_string(),
+ "MU".to_string(),
+ "YT".to_string(),
+ "FM".to_string(),
+ "MD".to_string(),
+ "MC".to_string(),
+ "MN".to_string(),
+ "ME".to_string(),
+ "MS".to_string(),
+ "MA".to_string(),
+ "MZ".to_string(),
+ "NA".to_string(),
+ "NR".to_string(),
+ "NP".to_string(),
+ "NC".to_string(),
+ "NZ".to_string(),
+ "NE".to_string(),
+ "NG".to_string(),
+ "NU".to_string(),
+ "NF".to_string(),
+ "MP".to_string(),
+ "OM".to_string(),
+ "PK".to_string(),
+ "PW".to_string(),
+ "PS".to_string(),
+ "PG".to_string(),
+ "PH".to_string(),
+ "PN".to_string(),
+ "QA".to_string(),
+ "RE".to_string(),
+ "RO".to_string(),
+ "RW".to_string(),
+ "BL".to_string(),
+ "SH".to_string(),
+ "KN".to_string(),
+ "LC".to_string(),
+ "MF".to_string(),
+ "PM".to_string(),
+ "VC".to_string(),
+ "WS".to_string(),
+ "SM".to_string(),
+ "ST".to_string(),
+ "SA".to_string(),
+ "SN".to_string(),
+ "RS".to_string(),
+ "SC".to_string(),
+ "SL".to_string(),
+ "SX".to_string(),
+ "SK".to_string(),
+ "SI".to_string(),
+ "SB".to_string(),
+ "SO".to_string(),
+ "ZA".to_string(),
+ "GS".to_string(),
+ "KR".to_string(),
+ "LK".to_string(),
+ "SR".to_string(),
+ "SJ".to_string(),
+ "SZ".to_string(),
+ "TH".to_string(),
+ "TL".to_string(),
+ "TG".to_string(),
+ "TK".to_string(),
+ "TO".to_string(),
+ "TT".to_string(),
+ "TN".to_string(),
+ "TM".to_string(),
+ "TC".to_string(),
+ "TV".to_string(),
+ "UG".to_string(),
+ "UA".to_string(),
+ "AE".to_string(),
+ "UZ".to_string(),
+ "VU".to_string(),
+ "VN".to_string(),
+ "VG".to_string(),
+ "VI".to_string(),
+ "WF".to_string(),
+ "EH".to_string(),
+ "ZM".to_string(),
+ ]
+ },
+ value: None,
+ }
+
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email_address".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.wallet.mifinity.language_preference".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.wallet.mifinity.language_preference".to_string(),
+ display_name: "language_preference".to_string(),
+ field_type: enums::FieldType::LanguagePreference{
+ options: vec![
+ "BR".to_string(),
+ "PT_BR".to_string(),
+ "CN".to_string(),
+ "ZH_CN".to_string(),
+ "DE".to_string(),
+ "DK".to_string(),
+ "DA".to_string(),
+ "DA_DK".to_string(),
+ "EN".to_string(),
+ "ES".to_string(),
+ "FI".to_string(),
+ "FR".to_string(),
+ "GR".to_string(),
+ "EL".to_string(),
+ "EL_GR".to_string(),
+ "HR".to_string(),
+ "IT".to_string(),
+ "JP".to_string(),
+ "JA".to_string(),
+ "JA_JP".to_string(),
+ "LA".to_string(),
+ "ES_LA".to_string(),
+ "NL".to_string(),
+ "NO".to_string(),
+ "PL".to_string(),
+ "PT".to_string(),
+ "RU".to_string(),
+ "SV".to_string(),
+ "SE".to_string(),
+ "SV_SE".to_string(),
+ "ZH".to_string(),
+ "TW".to_string(),
+ "ZH_TW".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ ]),
+ }
+ ),
+ ]),
+ }
+ ),
+ ])),
+ ),
+ (
+ enums::PaymentMethod::PayLater,
+ PaymentMethodType(HashMap::from([
+ (
+ enums::PaymentMethodType::AfterpayClearpay,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "GB".to_string(),
+ "AU".to_string(),
+ "CA".to_string(),
+ "US".to_string(),
+ "NZ".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.first_name".to_string(),
+ display_name: "shipping_first_name".to_string(),
+ field_type: enums::FieldType::UserShippingName,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.last_name".to_string(),
+ display_name: "shipping_last_name".to_string(),
+ field_type: enums::FieldType::UserShippingName,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserShippingAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserShippingAddressState,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserShippingAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserShippingAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserShippingAddressLine1,
+ value: None,
+ }
+ ),
+ ]),
+ common : HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "billing_last_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line2".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line2".to_string(),
+ display_name: "line2".to_string(),
+ field_type: enums::FieldType::UserAddressLine2,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "GB".to_string(),
+ "AU".to_string(),
+ "CA".to_string(),
+ "US".to_string(),
+ "NZ".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserShippingAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserShippingAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserShippingAddressCountry{
+ options: vec![
+ "GB".to_string(),
+ "AU".to_string(),
+ "CA".to_string(),
+ "US".to_string(),
+ "NZ".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserShippingAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.line2".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.line2".to_string(),
+ display_name: "line2".to_string(),
+ field_type: enums::FieldType::UserShippingAddressLine2,
+ value: None,
+ }
+ ),
+ ]),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Klarna,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate: HashMap::from([
+ ( "payment_method_data.pay_later.klarna.billing_country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.pay_later.klarna.billing_country".to_string(),
+ display_name: "billing_country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "AU".to_string(),
+ "AT".to_string(),
+ "BE".to_string(),
+ "CA".to_string(),
+ "CZ".to_string(),
+ "DK".to_string(),
+ "FI".to_string(),
+ "FR".to_string(),
+ "GR".to_string(),
+ "DE".to_string(),
+ "IE".to_string(),
+ "IT".to_string(),
+ "NL".to_string(),
+ "NZ".to_string(),
+ "NO".to_string(),
+ "PL".to_string(),
+ "PT".to_string(),
+ "RO".to_string(),
+ "ES".to_string(),
+ "SE".to_string(),
+ "CH".to_string(),
+ "GB".to_string(),
+ "US".to_string(),
+ ]
+ },
+ value: None,
+ }),
+ ("billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ })
+ ]),
+ common : HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate: HashMap::new(),
+ common : HashMap::from([
+ ( "payment_method_data.pay_later.klarna.billing_country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.pay_later.klarna.billing_country".to_string(),
+ display_name: "billing_country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ ]),
+ }
+ ),
+ (
+ enums::Connector::Klarna,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "AU".to_string(),
+ "AT".to_string(),
+ "BE".to_string(),
+ "CA".to_string(),
+ "CZ".to_string(),
+ "DK".to_string(),
+ "FI".to_string(),
+ "FR".to_string(),
+ "DE".to_string(),
+ "GR".to_string(),
+ "IE".to_string(),
+ "IT".to_string(),
+ "NL".to_string(),
+ "NZ".to_string(),
+ "NO".to_string(),
+ "PL".to_string(),
+ "PT".to_string(),
+ "ES".to_string(),
+ "SE".to_string(),
+ "CH".to_string(),
+ "GB".to_string(),
+ "US".to_string(),
+ ]
+ },
+ value: None,
+ }
+ )
+ ]),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Affirm,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "US".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.number".to_string(),
+ display_name: "phone_number".to_string(),
+ field_type: enums::FieldType::UserPhoneNumber,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.country_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.country_code".to_string(),
+ display_name: "dialing_code".to_string(),
+ field_type: enums::FieldType::UserPhoneNumberCountryCode,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line2".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line2".to_string(),
+ display_name: "line2".to_string(),
+ field_type: enums::FieldType::UserAddressLine2,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.line2".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.line2".to_string(),
+ display_name: "line2".to_string(),
+ field_type: enums::FieldType::UserAddressLine2,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserShippingAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserShippingAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserCountry {
+ options: vec![
+ "US".to_string(),
+ ]},
+ value: None,
+ }
+ ),
+
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::PayBright,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "CA".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.billing.phone.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.number".to_string(),
+ display_name: "phone_number".to_string(),
+ field_type: enums::FieldType::UserPhoneNumber,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.country_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.country_code".to_string(),
+ display_name: "dialing_code".to_string(),
+ field_type: enums::FieldType::UserPhoneNumberCountryCode,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line2".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line2".to_string(),
+ display_name: "line2".to_string(),
+ field_type: enums::FieldType::UserAddressLine2,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserShippingAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserShippingAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserShippingAddressCountry{
+ options: vec![
+ "ALL".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserShippingAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "shipping.address.line2".to_string(),
+ RequiredFieldInfo {
+ required_field: "shipping.address.line2".to_string(),
+ display_name: "line2".to_string(),
+ field_type: enums::FieldType::UserShippingAddressLine2,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Walley,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "billing.phone.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.number".to_string(),
+ display_name: "phone".to_string(),
+ field_type: enums::FieldType::UserPhoneNumber,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "DK".to_string(),
+ "FI".to_string(),
+ "NO".to_string(),
+ "SE".to_string(),
+ ]},
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.country_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.country_code".to_string(),
+ display_name: "dialing_code".to_string(),
+ field_type: enums::FieldType::UserPhoneNumberCountryCode,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Alma,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "FR".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.billing.phone.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "billing.phone.number".to_string(),
+ display_name: "phone_number".to_string(),
+ field_type: enums::FieldType::UserPhoneNumber,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.country_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.country_code".to_string(),
+ display_name: "dialing_code".to_string(),
+ field_type: enums::FieldType::UserPhoneNumberCountryCode,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line2".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line2".to_string(),
+ display_name: "line2".to_string(),
+ field_type: enums::FieldType::UserAddressLine2,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Atome,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "MY".to_string(),
+ "SG".to_string()
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.billing.phone.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "billing.phone.number".to_string(),
+ display_name: "phone_number".to_string(),
+ field_type: enums::FieldType::UserPhoneNumber,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.country_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.country_code".to_string(),
+ display_name: "dialing_code".to_string(),
+ field_type: enums::FieldType::UserPhoneNumberCountryCode,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line2".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line2".to_string(),
+ display_name: "line2".to_string(),
+ field_type: enums::FieldType::UserAddressLine2,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ ])),
+ ),
+ (
+ enums::PaymentMethod::Crypto,
+ PaymentMethodType(HashMap::from([
+ (
+ enums::PaymentMethodType::CryptoCurrency,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Cryptopay,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "payment_method_data.crypto.pay_currency".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.crypto.pay_currency".to_string(),
+ display_name: "currency".to_string(),
+ field_type: enums::FieldType::UserCurrency{
+ options: vec![
+ "BTC".to_string(),
+ "LTC".to_string(),
+ "ETH".to_string(),
+ "XRP".to_string(),
+ "XLM".to_string(),
+ "BCH".to_string(),
+ "ADA".to_string(),
+ "SOL".to_string(),
+ "SHIB".to_string(),
+ "TRX".to_string(),
+ "DOGE".to_string(),
+ "BNB".to_string(),
+ "USDT".to_string(),
+ "USDC".to_string(),
+ "DAI".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.crypto.network".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.crypto.network".to_string(),
+ display_name: "network".to_string(),
+ field_type: enums::FieldType::UserCryptoCurrencyNetwork,
+ value: None,
+ }
+ ),
+ ]),
+ common : HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ ])),
+ ),
+ (
+ enums::PaymentMethod::Voucher,
+ PaymentMethodType(HashMap::from([
+ (
+ enums::PaymentMethodType::Boleto,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "payment_method_data.voucher.boleto.social_security_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.voucher.boleto.social_security_number".to_string(),
+ display_name: "social_security_number".to_string(),
+ field_type: enums::FieldType::Text,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.state".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.state".to_string(),
+ display_name: "state".to_string(),
+ field_type: enums::FieldType::UserAddressState,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "BR".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.line2".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line2".to_string(),
+ display_name: "line2".to_string(),
+ field_type: enums::FieldType::UserAddressLine2,
+ value: None,
+ }
+ ),
+ ]),
+ common : HashMap::new(),
+ }
+ ),
+ (
+ enums::Connector::Zen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Alfamart,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ )
+ ]),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Indomaret,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ )
+ ]),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Oxxo,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::new(),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::SevenEleven,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.number".to_string(),
+ display_name: "phone".to_string(),
+ field_type: enums::FieldType::UserPhoneNumber,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.country_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.country_code".to_string(),
+ display_name: "dialing_code".to_string(),
+ field_type: enums::FieldType::UserPhoneNumberCountryCode,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Lawson,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.number".to_string(),
+ display_name: "phone".to_string(),
+ field_type: enums::FieldType::UserPhoneNumber,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.country_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.country_code".to_string(),
+ display_name: "dialing_code".to_string(),
+ field_type: enums::FieldType::UserPhoneNumberCountryCode,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::MiniStop,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.number".to_string(),
+ display_name: "phone".to_string(),
+ field_type: enums::FieldType::UserPhoneNumber,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.country_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.country_code".to_string(),
+ display_name: "dialing_code".to_string(),
+ field_type: enums::FieldType::UserPhoneNumberCountryCode,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::FamilyMart,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.number".to_string(),
+ display_name: "phone".to_string(),
+ field_type: enums::FieldType::UserPhoneNumber,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.country_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.country_code".to_string(),
+ display_name: "dialing_code".to_string(),
+ field_type: enums::FieldType::UserPhoneNumberCountryCode,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Seicomart,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.number".to_string(),
+ display_name: "phone".to_string(),
+ field_type: enums::FieldType::UserPhoneNumber,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.country_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.country_code".to_string(),
+ display_name: "dialing_code".to_string(),
+ field_type: enums::FieldType::UserPhoneNumberCountryCode,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::PayEasy,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.number".to_string(),
+ display_name: "phone".to_string(),
+ field_type: enums::FieldType::UserPhoneNumber,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.country_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.country_code".to_string(),
+ display_name: "dialing_code".to_string(),
+ field_type: enums::FieldType::UserPhoneNumberCountryCode,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ ])),
+ ),
+ (
+ enums::PaymentMethod::Upi,
+ PaymentMethodType(HashMap::from([
+ (
+ enums::PaymentMethodType::UpiCollect,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Razorpay,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::new(),
+ common : HashMap::from([
+ (
+ "payment_method_data.upi.upi_collect.vpa_id".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.upi.upi_collect.vpa_id".to_string(),
+ display_name: "vpa_id".to_string(),
+ field_type: enums::FieldType::UserVpaId,
+ value: None,
+ }
+ ),
+ ]),
+ }
+ ),
+ ]),
+ },
+ ),
+ ])),
+ ),
+ (
+ enums::PaymentMethod::BankDebit,
+ PaymentMethodType(HashMap::from([(
+ enums::PaymentMethodType::Ach,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([(
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "owner_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_debit.ach.account_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_debit.ach.account_number".to_string(),
+ display_name: "bank_account_number".to_string(),
+ field_type: enums::FieldType::UserBankAccountNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_debit.ach.routing_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_debit.ach.routing_number".to_string(),
+ display_name: "bank_routing_number".to_string(),
+ field_type: enums::FieldType::Text,
+ value: None,
+ }
+ )
+ ]),
+ }),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "owner_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "owner_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_debit.ach.account_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_debit.ach.account_number".to_string(),
+ display_name: "bank_account_number".to_string(),
+ field_type: enums::FieldType::UserBankAccountNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_debit.ach.routing_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_debit.ach.routing_number".to_string(),
+ display_name: "bank_routing_number".to_string(),
+ field_type: enums::FieldType::Text,
+ value: None,
+ }
+ )
+ ]),
+ })
+ ]
+ )}
+ ),
+ (
+ enums::PaymentMethodType::Sepa,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "owner_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_debit.sepa_bank_debit.iban".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_debit.sepa_bank_debit.iban".to_string(),
+ display_name: "iban".to_string(),
+ field_type: enums::FieldType::UserIban,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ )
+ ]),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "owner_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "owner_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_debit.sepa_bank_debit.iban".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_debit.sepa_bank_debit.iban".to_string(),
+ display_name: "iban".to_string(),
+ field_type: enums::FieldType::UserIban,
+ value: None,
+ }
+ )
+ ]),
+ }
+ ),
+ (
+ enums::Connector::Deutschebank,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "owner_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "owner_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_debit.sepa_bank_debit.iban".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_debit.sepa_bank_debit.iban".to_string(),
+ display_name: "iban".to_string(),
+ field_type: enums::FieldType::UserIban,
+ value: None,
+ }
+ )
+ ]),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Bacs,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_debit.bacs.account_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_debit.bacs.account_number".to_string(),
+ display_name: "bank_account_number".to_string(),
+ field_type: enums::FieldType::UserBankAccountNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_debit.bacs.sort_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_debit.bacs.sort_code".to_string(),
+ display_name: "bank_sort_code".to_string(),
+ field_type: enums::FieldType::Text,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry {
+ options: vec!["UK".to_string()],
+ },
+ value: None,
+ },
+ ),
+ (
+ "billing.address.zip".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.zip".to_string(),
+ display_name: "zip".to_string(),
+ field_type: enums::FieldType::UserAddressPincode,
+ value: None,
+ },
+ ),
+ (
+ "billing.address.line1".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.line1".to_string(),
+ display_name: "line1".to_string(),
+ field_type: enums::FieldType::UserAddressLine1,
+ value: None,
+ },
+ )
+ ]),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "owner_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "owner_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_debit.bacs.account_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_debit.bacs.account_number".to_string(),
+ display_name: "bank_account_number".to_string(),
+ field_type: enums::FieldType::UserBankAccountNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_debit.bacs.sort_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_debit.bacs.sort_code".to_string(),
+ display_name: "bank_sort_code".to_string(),
+ field_type: enums::FieldType::Text,
+ value: None,
+ }
+ )
+ ]),
+ })
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Becs,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "billing_first_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "owner_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_debit.becs.account_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_debit.becs.account_number".to_string(),
+ display_name: "bank_account_number".to_string(),
+ field_type: enums::FieldType::UserBankAccountNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_debit.becs.bsb_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_debit.becs.bsb_number".to_string(),
+ display_name: "bsb_number".to_string(),
+ field_type: enums::FieldType::Text,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ )
+ ]),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "owner_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "owner_name".to_string(),
+ field_type: enums::FieldType::UserBillingName,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_debit.bacs.account_number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_debit.bacs.account_number".to_string(),
+ display_name: "bank_account_number".to_string(),
+ field_type: enums::FieldType::UserBankAccountNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_debit.bacs.sort_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_debit.bacs.sort_code".to_string(),
+ display_name: "bank_sort_code".to_string(),
+ field_type: enums::FieldType::Text,
+ value: None,
+ }
+ )
+ ]),
+ })
+ ]),
+ },
+ ),
+ ]))),
+ (
+ enums::PaymentMethod::BankTransfer,
+ PaymentMethodType(HashMap::from([(
+ enums::PaymentMethodType::Multibanco,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ )
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ ])}),
+ (enums::PaymentMethodType::LocalBankTransfer,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Zsl,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry{
+ options: vec![
+ "CN".to_string(),
+ ]
+ },
+ value: None,
+ }
+ ),
+ (
+ "billing.address.city".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.city".to_string(),
+ display_name: "city".to_string(),
+ field_type: enums::FieldType::UserAddressCity,
+ value: None,
+ },
+ ),
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ ])}),
+ (enums::PaymentMethodType::Ach,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ )
+ ])
+ }
+ ),
+ ])}),
+ (enums::PaymentMethodType::Pix,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Itaubank,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::from(
+ [
+ (
+ "payment_method_data.bank_transfer.pix.pix_key".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_transfer.pix.pix_key".to_string(),
+ display_name: "pix_key".to_string(),
+ field_type: enums::FieldType::UserPixKey,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_transfer.pix.cnpj".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_transfer.pix.cnpj".to_string(),
+ display_name: "cnpj".to_string(),
+ field_type: enums::FieldType::UserCnpj,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.bank_transfer.pix.cpf".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.bank_transfer.pix.cpf".to_string(),
+ display_name: "cpf".to_string(),
+ field_type: enums::FieldType::UserCpf,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ ]
+ ),
+ }
+ ),
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ ])}),
+ (
+ enums::PaymentMethodType::PermataBankTransfer,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ )
+ ]),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::BcaBankTransfer,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ )
+ ]),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::BniVa,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ )
+ ]),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::BriVa,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ )
+ ]),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::CimbVa,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ )
+ ]),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::DanamonVa,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ )
+ ]),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::MandiriVa,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ )
+ ]),
+ common : HashMap::new(),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Sepa,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::new(),
+ common : HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.country".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.country".to_string(),
+ display_name: "country".to_string(),
+ field_type: enums::FieldType::UserAddressCountry {
+ options: vec![
+ "BE".to_string(),
+ "DE".to_string(),
+ "ES".to_string(),
+ "FR".to_string(),
+ "IE".to_string(),
+ "NL".to_string(),
+ ],
+ },
+ value: None,
+ },
+ ),
+ ]),
+ }
+ )
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Bacs,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Stripe,
+ RequiredFieldFinal {
+ mandate : HashMap::new(),
+ non_mandate : HashMap::new(),
+ common : HashMap::from([
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "card_holder_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ )
+ ]),
+ }
+ )
+ ]),
+ },
+ ),
+ ]))),
+ (
+ enums::PaymentMethod::GiftCard,
+ PaymentMethodType(HashMap::from([
+ (
+ enums::PaymentMethodType::PaySafeCard,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Givex,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+
+ (
+ "payment_method_data.gift_card.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.gift_card.number".to_string(),
+ display_name: "gift_card_number".to_string(),
+ field_type: enums::FieldType::UserCardNumber,
+ value: None,
+ }
+ ),
+ (
+ "payment_method_data.gift_card.cvc".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.gift_card.cvc".to_string(),
+ display_name: "gift_card_cvc".to_string(),
+ field_type: enums::FieldType::UserCardCvc,
+ value: None,
+ }
+ ),
+ ]),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ ]))
+ ),
+ (
+ enums::PaymentMethod::CardRedirect,
+ PaymentMethodType(HashMap::from([
+ (
+ enums::PaymentMethodType::Benefit,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [(
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "first_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "last_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.number".to_string(),
+ display_name: "phone".to_string(),
+ field_type: enums::FieldType::UserPhoneNumber,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.country_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.country_code".to_string(),
+ display_name: "dialing_code".to_string(),
+ field_type: enums::FieldType::UserPhoneNumberCountryCode,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::Knet,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from(
+ [(
+ "billing.address.first_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.first_name".to_string(),
+ display_name: "first_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.address.last_name".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.address.last_name".to_string(),
+ display_name: "last_name".to_string(),
+ field_type: enums::FieldType::UserFullName,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.number".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.number".to_string(),
+ display_name: "phone".to_string(),
+ field_type: enums::FieldType::UserPhoneNumber,
+ value: None,
+ }
+ ),
+ (
+ "billing.phone.country_code".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.phone.country_code".to_string(),
+ display_name: "dialing_code".to_string(),
+ field_type: enums::FieldType::UserPhoneNumberCountryCode,
+ value: None,
+ }
+ ),
+ (
+ "billing.email".to_string(),
+ RequiredFieldInfo {
+ required_field: "payment_method_data.billing.email".to_string(),
+ display_name: "email".to_string(),
+ field_type: enums::FieldType::UserEmailAddress,
+ value: None,
+ }
+ )
+ ]
+ ),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ ),
+ (
+ enums::PaymentMethodType::MomoAtm,
+ ConnectorFields {
+ fields: HashMap::from([
+ (
+ enums::Connector::Adyen,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::new(),
+ common: HashMap::new(),
+ }
+ ),
+ ]),
+ },
+ )
+ ]))
+ )
+ ]))
+ }
+}
diff --git a/scripts/add_connector.sh b/scripts/add_connector.sh
index 2e12d82905..0405f8b110 100755
--- a/scripts/add_connector.sh
+++ b/scripts/add_connector.sh
@@ -45,7 +45,7 @@ cd $SCRIPT/..
# Remove template files if already created for this connector
rm -rf $conn/$payment_gateway $conn/$payment_gateway.rs
-git checkout $conn.rs $src/types/api.rs $src/configs/settings.rs config/development.toml config/docker_compose.toml config/config.example.toml loadtest/config/development.toml crates/api_models/src/enums.rs crates/euclid/src/enums.rs crates/api_models/src/routing.rs $src/core/payments/flows.rs crates/common_enums/src/enums.rs $src/types/transformers.rs $src/core/admin.rs
+git checkout $conn.rs $src/types/api.rs $src/configs/settings.rs config/development.toml config/docker_compose.toml config/config.example.toml loadtest/config/development.toml crates/api_models/src/connector_enums.rs crates/euclid/src/enums.rs crates/api_models/src/routing.rs $src/core/payments/flows.rs crates/common_enums/src/connector_enums.rs crates/common_enums/src/connector_enums.rs-e $src/types/transformers.rs $src/core/admin.rs
# Add enum for this connector in required places
previous_connector=''
@@ -59,17 +59,17 @@ sed -i'' -e "s|$previous_connector_camelcase \(.*\)|$previous_connector_camelcas
sed -i'' -e "s/pub $previous_connector: \(.*\)/pub $previous_connector: \1\n\tpub ${payment_gateway}: ConnectorParams,/" crates/hyperswitch_interfaces/src/configs.rs
sed -i'' -e "s|$previous_connector.base_url \(.*\)|$previous_connector.base_url \1\n${payment_gateway}.base_url = \"$base_url\"|" config/development.toml config/docker_compose.toml config/config.example.toml loadtest/config/development.toml
sed -r -i'' -e "s/\"$previous_connector\",/\"$previous_connector\",\n \"${payment_gateway}\",/" config/development.toml config/docker_compose.toml config/config.example.toml loadtest/config/development.toml
-sed -i '' -e "s/\(pub enum Connector {\)/\1\n\t${payment_gateway_camelcase},/" crates/api_models/src/enums.rs
-sed -i '' -e "/\/\/ Add Separate authentication support for connectors/{N;s/\(.*\)\n/\1\n\t\t\t| Self::${payment_gateway_camelcase}\n/;}" crates/api_models/src/enums.rs
+sed -i '' -e "s/\(pub enum Connector {\)/\1\n\t${payment_gateway_camelcase},/" crates/api_models/src/connector_enums.rs
+sed -i '' -e "/\/\/ Add Separate authentication support for connectors/{N;s/\(.*\)\n/\1\n\t\t\t| Self::${payment_gateway_camelcase}\n/;}" crates/api_models/src/connector_enums.rs
sed -i '' -e "s/\(match connector_name {\)/\1\n\t\tapi_enums::Connector::${payment_gateway_camelcase} => {${payment_gateway}::transformers::${payment_gateway_camelcase}AuthType::try_from(val)?;Ok(())}/" $src/core/admin.rs
-sed -i'' -e "s/\(pub enum RoutableConnectors {\)/\1\n\t${payment_gateway_camelcase},/" crates/common_enums/src/enums.rs
+sed -i'' -e "s/\(pub enum RoutableConnectors {\)/\1\n\t${payment_gateway_camelcase},/" crates/common_enums/src/connector_enums.rs
sed -i '' -e "s/\(pub enum Connector {\)/\1\n\t${payment_gateway_camelcase},/" crates/euclid/src/enums.rs
sed -i'' -e "s|$previous_connector_camelcase \(.*\)|$previous_connector_camelcase \1\n\t\t\tapi_enums::Connector::${payment_gateway_camelcase} => Self::${payment_gateway_camelcase},|" $src/types/transformers.rs
sed -i'' -e "s/^default_imp_for_\(.*\)/default_imp_for_\1\n\tconnectors::${payment_gateway_camelcase},/" crates/hyperswitch_connectors/src/default_implementations.rs
sed -i'' -e "s/^default_imp_for_\(.*\)/default_imp_for_\1\n\tconnectors::${payment_gateway_camelcase},/" crates/hyperswitch_connectors/src/default_implementations_v2.rs
# Remove temporary files created in above step
-rm $conn.rs-e $src/types/api.rs-e $src/configs/settings.rs-e config/development.toml-e config/docker_compose.toml-e config/config.example.toml-e loadtest/config/development.toml-e crates/api_models/src/enums.rs-e crates/euclid/src/enums.rs-e crates/api_models/src/routing.rs-e $src/core/payments/flows.rs-e crates/common_enums/src/enums.rs-e $src/types/transformers.rs-e $src/core/admin.rs-e
+rm $conn.rs-e $src/types/api.rs-e $src/configs/settings.rs-e config/development.toml-e config/docker_compose.toml-e config/config.example.toml-e loadtest/config/development.toml-e crates/api_models/src/connector_enums.rs-e crates/euclid/src/enums.rs-e crates/api_models/src/routing.rs-e $src/core/payments/flows.rs-e crates/common_enums/src/connector_enums.rs-e $src/types/transformers.rs-e $src/core/admin.rs-e crates/hyperswitch_connectors/src/default_implementations.rs-e crates/hyperswitch_connectors/src/default_implementations_v2.rs-e crates/hyperswitch_interfaces/src/configs.rs-e $src/connector.rs-e
cd $conn/
# Generate template files for the connector