mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	feat(connector): [CRYPTOPAY] Make payment_method_data.crypto.network as enum (#4853)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -430,6 +430,7 @@ pub enum FieldType { | |||||||
|     UserCountryCode,                      //phone number's country code |     UserCountryCode,                      //phone number's country code | ||||||
|     UserCountry { options: Vec<String> }, //for country inside payment method data ex- bank redirect |     UserCountry { options: Vec<String> }, //for country inside payment method data ex- bank redirect | ||||||
|     UserCurrency { options: Vec<String> }, |     UserCurrency { options: Vec<String> }, | ||||||
|  |     UserCryptoCurrencyNetwork, //for crypto network associated with the cryptopcurrency | ||||||
|     UserBillingName, |     UserBillingName, | ||||||
|     UserAddressLine1, |     UserAddressLine1, | ||||||
|     UserAddressLine2, |     UserAddressLine2, | ||||||
| @ -504,6 +505,7 @@ impl PartialEq for FieldType { | |||||||
|                     options: options_other, |                     options: options_other, | ||||||
|                 }, |                 }, | ||||||
|             ) => options_self.eq(options_other), |             ) => options_self.eq(options_other), | ||||||
|  |             (Self::UserCryptoCurrencyNetwork, Self::UserCryptoCurrencyNetwork) => true, | ||||||
|             (Self::UserBillingName, Self::UserBillingName) => true, |             (Self::UserBillingName, Self::UserBillingName) => true, | ||||||
|             (Self::UserAddressLine1, Self::UserAddressLine1) => true, |             (Self::UserAddressLine1, Self::UserAddressLine1) => true, | ||||||
|             (Self::UserAddressLine2, Self::UserAddressLine2) => true, |             (Self::UserAddressLine2, Self::UserAddressLine2) => true, | ||||||
|  | |||||||
| @ -8303,7 +8303,7 @@ impl Default for super::settings::RequiredFields { | |||||||
|                                                 RequiredFieldInfo { |                                                 RequiredFieldInfo { | ||||||
|                                                     required_field: "payment_method_data.crypto.network".to_string(), |                                                     required_field: "payment_method_data.crypto.network".to_string(), | ||||||
|                                                     display_name: "network".to_string(), |                                                     display_name: "network".to_string(), | ||||||
|                                                     field_type: enums::FieldType::Text, |                                                     field_type: enums::FieldType::UserCryptoCurrencyNetwork, | ||||||
|                                                     value: None, |                                                     value: None, | ||||||
|                                                 } |                                                 } | ||||||
|                                             ), |                                             ), | ||||||
|  | |||||||
| @ -9296,6 +9296,12 @@ | |||||||
|               } |               } | ||||||
|             } |             } | ||||||
|           }, |           }, | ||||||
|  |           { | ||||||
|  |             "type": "string", | ||||||
|  |             "enum": [ | ||||||
|  |               "user_crypto_currency_network" | ||||||
|  |             ] | ||||||
|  |           }, | ||||||
|           { |           { | ||||||
|             "type": "string", |             "type": "string", | ||||||
|             "enum": [ |             "enum": [ | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 DEEPANSHU BANSAL
					DEEPANSHU BANSAL