mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	refactor(subscription): move subscription related modules in router to new crate (#9863)
Co-authored-by: Ankit Kumar Gupta <ankit.gupta.001@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Gaurav Rawat <104276743+GauravRawat369@users.noreply.github.com>
This commit is contained in:
		| @ -41,11 +41,11 @@ use masking::{ExposeInterface, SwitchStrategy}; | ||||
| use nanoid::nanoid; | ||||
| use serde::de::DeserializeOwned; | ||||
| use serde_json::Value; | ||||
| #[cfg(feature = "v1")] | ||||
| use subscriptions::subscription_handler::SubscriptionHandler; | ||||
| use tracing_futures::Instrument; | ||||
|  | ||||
| pub use self::ext_traits::{OptionExt, ValidateCall}; | ||||
| #[cfg(feature = "v1")] | ||||
| use crate::core::subscription::subscription_handler::SubscriptionHandler; | ||||
| use crate::{ | ||||
|     consts, | ||||
|     core::{ | ||||
| @ -643,7 +643,9 @@ pub async fn get_mca_from_object_reference_id( | ||||
|             webhooks::ObjectReferenceId::SubscriptionId(subscription_id_type) => { | ||||
|                 #[cfg(feature = "v1")] | ||||
|                 { | ||||
|                     let subscription_handler = SubscriptionHandler::new(state, merchant_context); | ||||
|                     let subscription_state = state.clone().into(); | ||||
|                     let subscription_handler = | ||||
|                         SubscriptionHandler::new(&subscription_state, merchant_context); | ||||
|                     let mut subscription_with_handler = subscription_handler | ||||
|                         .find_subscription(subscription_id_type) | ||||
|                         .await?; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jagan
					Jagan