mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 01:57:45 +08:00 
			
		
		
		
	feat(router): make core changes in payments flow to support incremental authorization (#3009)
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
						
							1e60c71098
						
					
				
				
					commit
					1ca2ba4594
				
			| @ -310,6 +310,9 @@ pub struct PaymentsRequest { | ||||
|     /// The type of the payment that differentiates between normal and various types of mandate payments | ||||
|     #[schema(value_type = Option<PaymentType>)] | ||||
|     pub payment_type: Option<api_enums::PaymentType>, | ||||
|  | ||||
|     ///Request for an incremental authorization | ||||
|     pub request_incremental_authorization: Option<bool>, | ||||
| } | ||||
|  | ||||
| impl PaymentsRequest { | ||||
| @ -2210,6 +2213,9 @@ pub struct PaymentsResponse { | ||||
|  | ||||
|     /// Identifier of the connector ( merchant connector account ) which was chosen to make the payment | ||||
|     pub merchant_connector_id: Option<String>, | ||||
|  | ||||
|     /// If true incremental authorization can be performed on this payment | ||||
|     pub incremental_authorization_allowed: Option<bool>, | ||||
| } | ||||
|  | ||||
| #[derive(Clone, Debug, serde::Deserialize, ToSchema, serde::Serialize)] | ||||
|  | ||||
		Reference in New Issue
	
	Block a user