mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	refactor(routing): Remove backwards compatibility for the routing crate (#3015)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Shanks <shashank.attarde@juspay.in>
This commit is contained in:
		| @ -293,13 +293,9 @@ impl TryFrom<StripePaymentIntentRequest> for payments::PaymentsRequest { | ||||
|             .map(|connector| { | ||||
|                 api_models::routing::RoutingAlgorithm::Single(Box::new( | ||||
|                     api_models::routing::RoutableConnectorChoice { | ||||
|                         #[cfg(feature = "backwards_compatibility")] | ||||
|                         choice_kind: api_models::routing::RoutableChoiceKind::FullStruct, | ||||
|                         connector, | ||||
|                         #[cfg(feature = "connector_choice_mca_id")] | ||||
|                         merchant_connector_id: None, | ||||
|                         #[cfg(not(feature = "connector_choice_mca_id"))] | ||||
|                         sub_label: None, | ||||
|                     }, | ||||
|                 )) | ||||
|             }) | ||||
|  | ||||
| @ -189,13 +189,9 @@ impl TryFrom<StripeSetupIntentRequest> for payments::PaymentsRequest { | ||||
|             .map(|connector| { | ||||
|                 api_models::routing::RoutingAlgorithm::Single(Box::new( | ||||
|                     api_models::routing::RoutableConnectorChoice { | ||||
|                         #[cfg(feature = "backwards_compatibility")] | ||||
|                         choice_kind: api_models::routing::RoutableChoiceKind::FullStruct, | ||||
|                         connector, | ||||
|                         #[cfg(feature = "connector_choice_mca_id")] | ||||
|                         merchant_connector_id: None, | ||||
|                         #[cfg(not(feature = "connector_choice_mca_id"))] | ||||
|                         sub_label: None, | ||||
|                     }, | ||||
|                 )) | ||||
|             }) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Amisha Prabhat
					Amisha Prabhat