mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	feat(connector): [chargebee] consumes required fields to support transaction monitoring (#7774)
Co-authored-by: Nishanth Challa <nishanth.challa@Nishanth-Challa-C0WGKCFHLF.local> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		 CHALLA NISHANTH BABU
					CHALLA NISHANTH BABU
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							8759162927
						
					
				
				
					commit
					5fa54e5e57
				
			| @ -388,6 +388,34 @@ impl IncomingWebhook for ConnectorEnum { | ||||
|             Self::New(connector) => connector.get_network_txn_id(request), | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     #[cfg(all(feature = "revenue_recovery", feature = "v2"))] | ||||
|     fn get_revenue_recovery_invoice_details( | ||||
|         &self, | ||||
|         request: &IncomingWebhookRequestDetails<'_>, | ||||
|     ) -> CustomResult< | ||||
|         hyperswitch_domain_models::revenue_recovery::RevenueRecoveryInvoiceData, | ||||
|         errors::ConnectorError, | ||||
|     > { | ||||
|         match self { | ||||
|             Self::Old(connector) => connector.get_revenue_recovery_invoice_details(request), | ||||
|             Self::New(connector) => connector.get_revenue_recovery_invoice_details(request), | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     #[cfg(all(feature = "revenue_recovery", feature = "v2"))] | ||||
|     fn get_revenue_recovery_attempt_details( | ||||
|         &self, | ||||
|         request: &IncomingWebhookRequestDetails<'_>, | ||||
|     ) -> CustomResult< | ||||
|         hyperswitch_domain_models::revenue_recovery::RevenueRecoveryAttemptData, | ||||
|         errors::ConnectorError, | ||||
|     > { | ||||
|         match self { | ||||
|             Self::Old(connector) => connector.get_revenue_recovery_attempt_details(request), | ||||
|             Self::New(connector) => connector.get_revenue_recovery_attempt_details(request), | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl ConnectorRedirectResponse for ConnectorEnum { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user