mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	refactor(connector): [Itaubank] add dynamic fields for pix (#5419)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -8871,7 +8871,49 @@ impl Default for super::settings::RequiredFields { | ||||
|                                         } | ||||
|                                     ), | ||||
|                                 ])}), | ||||
|                                 ]))) | ||||
|                                 (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, | ||||
|                                                         } | ||||
|                                                     ), | ||||
|                                                 ] | ||||
|                                             ), | ||||
|                                         } | ||||
|                                     ), | ||||
|                                 ])}), | ||||
|                     ]))) | ||||
|         ])) | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Sakil Mostak
					Sakil Mostak