mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	refactor(router): remove admin v2 intermediate features (#5780)
Co-authored-by: Narayan Bhat <narayan.bhat@juspay.in> Co-authored-by: Aprabhat19 <amishaprabhat@gmail.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		 Sai Harsha Vardhan
					Sai Harsha Vardhan
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							c84af20ec1
						
					
				
				
					commit
					b853226120
				
			| @ -1145,10 +1145,7 @@ pub fn get_connector_label( | ||||
|         }) | ||||
| } | ||||
|  | ||||
| #[cfg(all( | ||||
|     any(feature = "v1", feature = "v2"), | ||||
|     not(feature = "merchant_account_v2") | ||||
| ))] | ||||
| #[cfg(feature = "v1")] | ||||
| /// If profile_id is not passed, use default profile if available, or | ||||
| /// If business_details (business_country and business_label) are passed, get the business_profile | ||||
| /// or return a `MissingRequiredField` error | ||||
| @ -1368,14 +1365,14 @@ impl GetProfileId for diesel_models::Refund { | ||||
|     } | ||||
| } | ||||
|  | ||||
| #[cfg(all(any(feature = "v1", feature = "v2"), not(feature = "routing_v2")))] | ||||
| #[cfg(feature = "v1")] | ||||
| impl GetProfileId for api_models::routing::RoutingConfigRequest { | ||||
|     fn get_profile_id(&self) -> Option<&common_utils::id_type::ProfileId> { | ||||
|         self.profile_id.as_ref() | ||||
|     } | ||||
| } | ||||
|  | ||||
| #[cfg(all(feature = "v2", feature = "routing_v2"))] | ||||
| #[cfg(feature = "v2")] | ||||
| impl GetProfileId for api_models::routing::RoutingConfigRequest { | ||||
|     fn get_profile_id(&self) -> Option<&common_utils::id_type::ProfileId> { | ||||
|         Some(&self.profile_id) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user