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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
feat(pm_list): add card pm required field info for connectors (#1918)
Prasunna Soppa52e01769d405
diff --git a/crates/api_models/src/enums.rs b/crates/api_models/src/enums.rsindex 833eba4a04..f9e282531c 100644--- a/crates/api_models/src/enums.rs+++ b/crates/api_models/src/enums.rs@@ -508,20 +508,25 @@ pub struct UnresolvedResponseReason {#[serde(rename_all = "snake_case")]#[strum(serialize_all = "snake_case")]pub enum FieldType {+ CardNumber,+ CardExpiryMonth,+ CardExpiryYear,+ CardCVC,UserFullName,UserEmailAddress,UserPhoneNumber,- UserCountry { options: Vec<String> },+ UserCountryCode, //phone number's country code+ UserCountry { options: Vec<String> }, //for country inside payment method data ex- bank redirect+ UserCurrency { options: Vec<String> },+ UserBillingName,UserAddressline1,UserAddressline2,UserAddressCity,UserAddressPincode,UserAddressState,- UserAddressCountry,+ UserAddressCountry { options: Vec<String> },UserBlikCode,- UserBillingName,UserBank,- UserCurrency { options: Vec<String> },Text,DropDown { options: Vec<String> },}diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rsindex cb14b37b65..2c116ebd76 100644--- a/crates/router/src/configs/defaults.rs+++ b/crates/router/src/configs/defaults.rs@@ -173,15 +173,16 @@ impl Default for Mandates {enums::PaymentMethodType::Credit,SupportedConnectorsForMandate {connector_list: HashSet::from([- enums::Connector::Stripe,+ enums::Connector::Aci,enums::Connector::Adyen,enums::Connector::Authorizedotnet,enums::Connector::Globalpay,enums::Connector::Worldpay,enums::Connector::Multisafepay,- enums::Connector::Nmi,enums::Connector::Nexinets,enums::Connector::Noon,+ enums::Connector::Payme,+ enums::Connector::Stripe,]),},),@@ -189,15 +190,16 @@ impl Default for Mandates {enums::PaymentMethodType::Debit,SupportedConnectorsForMandate {connector_list: HashSet::from([- enums::Connector::Stripe,+ enums::Connector::Aci,enums::Connector::Adyen,enums::Connector::Authorizedotnet,enums::Connector::Globalpay,enums::Connector::Worldpay,enums::Connector::Multisafepay,- enums::Connector::Nmi,enums::Connector::Nexinets,enums::Connector::Noon,+ enums::Connector::Payme,+ enums::Connector::Stripe,]),},),@@ -218,228 +220,1726 @@ impl Default for super::settings::RequiredFields {ConnectorFields {fields: HashMap::from([(- enums::Connector::Stripe,+ enums::Connector::Aci,RequiredFieldFinal {- mandate: HashMap::from([- (- "billing.address.line1".to_string(),- RequiredFieldInfo {- required_field: "billing.address.line1".to_string(),- display_name: "billing_line1".to_string(),- field_type: enums::FieldType::UserFullName,- value: None,- }- ),- (- "billing.address.first_name".to_string(),- RequiredFieldInfo {- required_field: "billing.address.first_name".to_string(),- display_name: "billing_first_name".to_string(),- field_type: enums::FieldType::UserFullName,- value: None,- }- )- ]),+ mandate: HashMap::new(),non_mandate: HashMap::new(),- common:HashMap::from([- (- "shipping.address.line1".to_string(),- RequiredFieldInfo {- required_field: "shipping.address.line1".to_string(),- display_name: "shipping_line1".to_string(),- field_type: enums::FieldType::UserFullName,- value: None,- }- ),- (- "shipping.phone.number".to_string(),- RequiredFieldInfo {- required_field: "shipping.phone.number".to_string(),- display_name: "shipping_phone".to_string(),- field_type: enums::FieldType::UserFullName,- value: None,- }- )- ]),+ 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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ ),+ (+ "payment_method_data.card.card_holder_name".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.card.card_holder_name".to_string(),+ display_name: "card_holder_name".to_string(),+ field_type: enums::FieldType::UserFullName,+ value: None,+ }+ )+ ]+ ),}),(- enums::Connector::Cybersource,- RequiredFieldFinal {- mandate: HashMap::from([- (- "billing.address.line1".to_string(),- RequiredFieldInfo {- required_field: "billing.address.line1".to_string(),- display_name: "billing_line1".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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ )+ ]),- (- "billing.address.first_name".to_string(),- RequiredFieldInfo {- required_field: "billing.address.first_name".to_string(),- display_name: "billing_first_name".to_string(),- field_type: enums::FieldType::UserFullName,- value: None,- }- )- ]),- non_mandate: HashMap::new(),- common:HashMap::from([- (- "shipping.address.line1".to_string(),- RequiredFieldInfo {- required_field: "shipping.address.line1".to_string(),- display_name: "shipping_line1".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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ )+ ]),- (- "shipping.phone.number".to_string(),- RequiredFieldInfo {- required_field: "shipping.phone.number".to_string(),- display_name: "shipping_phone".to_string(),- field_type: enums::FieldType::UserFullName,- value: None,- }- )- ]),- }+ common: HashMap::new(),+ }),(- enums::Connector::Dlocal,- RequiredFieldFinal {- mandate: HashMap::from([- (- "billing.address.line1".to_string(),- RequiredFieldInfo {- required_field: "billing.address.line1".to_string(),- display_name: "billing_line1".to_string(),- field_type: enums::FieldType::UserFullName,- value: None,- }+ 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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ )+ ]),- (- "billing.address.first_name".to_string(),- RequiredFieldInfo {- required_field: "billing.address.first_name".to_string(),- display_name: "billing_first_name".to_string(),- field_type: enums::FieldType::UserFullName,- value: None,- }- )- ]),- non_mandate: HashMap::new(),- common:HashMap::from([- (- "shipping.address.line1".to_string(),- RequiredFieldInfo {- required_field: "shipping.address.line1".to_string(),- display_name: "shipping_line1".to_string(),- field_type: enums::FieldType::UserFullName,- 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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ ),+ (+ "payment_method_data.card.card_holder_name".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.card.card_holder_name".to_string(),+ display_name: "card_holder_name".to_string(),+ field_type: enums::FieldType::UserFullName,+ value: None,+ }+ ),+ ]),- (- "shipping.phone.number".to_string(),- RequiredFieldInfo {- required_field: "shipping.phone.number".to_string(),- display_name: "shipping_phone".to_string(),- field_type: enums::FieldType::UserFullName,- value: None,- }- )- ]),- }+ common: HashMap::new(),+ }),(- enums::Connector::Forte,+ enums::Connector::Bluesnap,RequiredFieldFinal {mandate: HashMap::new(),- non_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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ 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: "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: "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::Globalpay,+ enums::Connector::Checkout,RequiredFieldFinal {mandate: HashMap::new(),- non_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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ 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: "billing.address.first_name".to_string(),+ display_name: "billing_first_name".to_string(),+ field_type: enums::FieldType::UserBillingName,+ value: None,+ }+ )+ ]+ ),+ common: HashMap::new(),+ }+ ),+ (+ enums::Connector::Cybersource,+ 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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ 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: "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: "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: "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: "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: "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: "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: "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::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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ ),+ (+ "payment_method_data.card.card_holder_name".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.card.card_holder_name".to_string(),+ display_name: "card_holder_name".to_string(),+ field_type: enums::FieldType::UserFullName,+ value: None,+ }+ ),+ (+ "billing.address.first_name".to_string(),+ RequiredFieldInfo {+ required_field: "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: "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: "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::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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ 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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ ),+ (+ "payment_method_data.card.card_holder_name".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.card.card_holder_name".to_string(),+ display_name: "card_holder_name".to_string(),+ field_type: enums::FieldType::UserFullName,+ value: None,+ }+ ),+ (+ "billing.address.first_name".to_string(),+ RequiredFieldInfo {+ required_field: "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: "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::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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ )+ ]),+ }+ ),+ (+ 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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ ),+ (+ "payment_method_data.card.card_holder_name".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.card.card_holder_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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ ),+ (+ "billing.address.first_name".to_string(),+ RequiredFieldInfo {+ required_field: "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: "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: "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: "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: "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: "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: "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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ 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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ 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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ ),+ (+ "payment_method_data.card.card_holder_name".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.card.card_holder_name".to_string(),+ display_name: "card_holder_name".to_string(),+ field_type: enums::FieldType::UserFullName,+ 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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ 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: "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: "billing.address.last_name".to_string(),+ display_name: "billing_last_name".to_string(),+ field_type: enums::FieldType::UserBillingName,+ 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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ 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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ )+ ]+ ),common: HashMap::new(),}),(- enums::Connector::Iatapay,+ enums::Connector::Powertranz,RequiredFieldFinal {mandate: HashMap::new(),- non_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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ ),+ (+ "payment_method_data.card.card_holder_name".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.card.card_holder_name".to_string(),+ display_name: "card_holder_name".to_string(),+ field_type: enums::FieldType::UserFullName,+ value: None,+ }+ )+ ]+ ),common: HashMap::new(),}),(- enums::Connector::Multisafepay,+ enums::Connector::Rapyd,RequiredFieldFinal {mandate: HashMap::new(),- non_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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ ),+ (+ "payment_method_data.card.card_holder_name".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.card.card_holder_name".to_string(),+ display_name: "card_holder_name".to_string(),+ field_type: enums::FieldType::UserFullName,+ value: None,+ }+ )+ ]+ ),common: HashMap::new(),}),(- enums::Connector::Noon,+ enums::Connector::Shift4,RequiredFieldFinal {mandate: HashMap::new(),- non_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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ )+ ]+ ),common: HashMap::new(),}- ),- (- enums::Connector::Opennode,+ ),(+ enums::Connector::Stax,RequiredFieldFinal {mandate: HashMap::new(),- non_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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ ),+ (+ "payment_method_data.card.card_holder_name".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.card.card_holder_name".to_string(),+ display_name: "card_holder_name".to_string(),+ field_type: enums::FieldType::UserFullName,+ value: None,+ }+ )+ ]+ ),common: HashMap::new(),}),(- enums::Connector::Payu,+ enums::Connector::Stripe,RequiredFieldFinal {mandate: HashMap::new(),non_mandate: HashMap::new(),- common: 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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ )+ ]+ ),}),(- enums::Connector::Rapyd,+ enums::Connector::Trustpay,RequiredFieldFinal {mandate: HashMap::new(),- non_mandate: HashMap::new(),- common: 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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ ),+ (+ "payment_method_data.card.card_holder_name".to_string(),+ RequiredFieldInfo {+ required_field: "payment_method_data.card.card_holder_name".to_string(),+ display_name: "card_holder_name".to_string(),+ field_type: enums::FieldType::UserFullName,+ value: None,+ }+ )+ ]+ ),+ common: HashMap::new()}),(- enums::Connector::Shift4,+ enums::Connector::Tsys,RequiredFieldFinal {mandate: HashMap::new(),- non_mandate: HashMap::new(),- common: 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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ )+ ]+ ),+ common: HashMap::new()}),(- enums::Connector::Trustpay,+ enums::Connector::Worldline,RequiredFieldFinal {mandate: HashMap::new(),- non_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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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::CardCVC,+ value: None,+ }+ ),+ (+ "billing.address.country".to_string(),+ RequiredFieldInfo {+ required_field: "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::Worldline,+ enums::Connector::Worldpay,RequiredFieldFinal {mandate: HashMap::new(),- non_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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ value: None,+ }+ )+ ]),common: HashMap::new(),}),@@ -447,7 +1947,44 @@ impl Default for super::settings::RequiredFields {enums::Connector::Zen,RequiredFieldFinal {mandate: HashMap::new(),- non_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::CardNumber,+ 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::CardExpiryMonth,+ 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::CardExpiryYear,+ 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(),}),@@ -659,14 +2196,18 @@ impl Default for super::settings::RequiredFields {( "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_name".to_string(),- field_type: enums::FieldType::UserAddressCountry,+ display_name: "billing_country".to_string(),+ field_type: enums::FieldType::UserAddressCountry{+ options: vec![+ "ALL".to_string(),+ ]+ },value: None,}),("email".to_string(),RequiredFieldInfo {required_field: "email".to_string(),- display_name: "cust_email".to_string(),+ display_name: "email".to_string(),field_type: enums::FieldType::UserEmailAddress,value: None,})@@ -705,8 +2246,7 @@ impl Default for super::settings::RequiredFields {enums::Connector::Cryptopay,RequiredFieldFinal {mandate : HashMap::new(),- non_mandate: HashMap::new(),- common : HashMap::from([+ non_mandate: HashMap::from([("payment_method_data.crypto.pay_currency".to_string(),RequiredFieldInfo {@@ -736,6 +2276,7 @@ impl Default for super::settings::RequiredFields {}),]),+ common : HashMap::new(),}),]),diff --git a/openapi/openapi_spec.json b/openapi/openapi_spec.jsonindex d57c73010e..0e28a1e70d 100644--- a/openapi/openapi_spec.json+++ b/openapi/openapi_spec.json@@ -5003,6 +5003,30 @@},"FieldType": {"oneOf": [+ {+ "type": "string",+ "enum": [+ "card_number"+ ]+ },+ {+ "type": "string",+ "enum": [+ "card_expiry_month"+ ]+ },+ {+ "type": "string",+ "enum": [+ "card_expiry_year"+ ]+ },+ {+ "type": "string",+ "enum": [+ "card_c_v_c"+ ]+ },{"type": "string","enum": [@@ -5021,6 +5045,12 @@"user_phone_number"]},+ {+ "type": "string",+ "enum": [+ "user_country_code"+ ]+ },{"type": "object","required": [@@ -5044,66 +5074,70 @@}},{- "type": "string",- "enum": [- "user_addressline1"- ]- },- {- "type": "string",- "enum": [- "user_addressline2"- ]- },- {- "type": "string",- "enum": [- "user_address_city"- ]+ "type": "object",+ "required": [+ "user_currency"+ ],+ "properties": {+ "user_currency": {+ "type": "object",+ "required": [+ "options"+ ],+ "properties": {+ "options": {+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ }+ }+ }},{"type": "string","enum": [- "user_address_pincode"+ "user_billing_name"]},{"type": "string","enum": [- "user_address_state"+ "user_addressline1"]},{"type": "string","enum": [- "user_address_country"+ "user_addressline2"]},{"type": "string","enum": [- "user_blik_code"+ "user_address_city"]},{"type": "string","enum": [- "user_billing_name"+ "user_address_pincode"]},{"type": "string","enum": [- "user_bank"+ "user_address_state"]},{"type": "object","required": [- "user_currency"+ "user_address_country"],"properties": {- "user_currency": {+ "user_address_country": {"type": "object","required": ["options"@@ -5119,6 +5153,18 @@}}},+ {+ "type": "string",+ "enum": [+ "user_blik_code"+ ]+ },+ {+ "type": "string",+ "enum": [+ "user_bank"+ ]+ },{"type": "string","enum": [