mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-30 09:38:33 +08:00 
			
		
		
		
	feat(router): add support for overcapture (#8949)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Hrithikesh <61539176+hrithikesh026@users.noreply.github.com>
This commit is contained in:
		| @ -2193,12 +2193,16 @@ pub struct ProfileCreate { | ||||
|     #[schema(value_type = Option<MerchantCountryCode>, example = "840")] | ||||
|     pub merchant_country_code: Option<common_types::payments::MerchantCountryCode>, | ||||
|  | ||||
|     /// Time interval (in hours) for polling the connector to check dispute statuses | ||||
|     /// Time interval (in hours) for polling the connector to check  for new disputes | ||||
|     #[schema(value_type = Option<i32>, example = 2)] | ||||
|     pub dispute_polling_interval: Option<primitive_wrappers::DisputePollingIntervalInHours>, | ||||
|  | ||||
|     /// Indicates if manual retry for payment is enabled or not | ||||
|     pub is_manual_retry_enabled: Option<bool>, | ||||
|  | ||||
|     /// Bool indicating if overcapture  must be requested for all payments | ||||
|     #[schema(value_type = Option<bool>)] | ||||
|     pub always_enable_overcapture: Option<primitive_wrappers::AlwaysEnableOvercaptureBool>, | ||||
| } | ||||
|  | ||||
| #[nutype::nutype( | ||||
| @ -2539,11 +2543,16 @@ pub struct ProfileResponse { | ||||
|     #[schema(value_type = Option<MerchantCountryCode>, example = "840")] | ||||
|     pub merchant_country_code: Option<common_types::payments::MerchantCountryCode>, | ||||
|  | ||||
|     /// Time interval (in hours) for polling the connector to check dispute statuses | ||||
|     #[schema(value_type = Option<u32>, example = 2)] | ||||
|     pub dispute_polling_interval: Option<primitive_wrappers::DisputePollingIntervalInHours>, | ||||
|  | ||||
|     /// Indicates if manual retry for payment is enabled or not | ||||
|     pub is_manual_retry_enabled: Option<bool>, | ||||
|  | ||||
|     /// Bool indicating if overcapture  must be requested for all payments | ||||
|     #[schema(value_type = Option<bool>)] | ||||
|     pub always_enable_overcapture: Option<primitive_wrappers::AlwaysEnableOvercaptureBool>, | ||||
| } | ||||
|  | ||||
| #[cfg(feature = "v2")] | ||||
| @ -2882,11 +2891,16 @@ pub struct ProfileUpdate { | ||||
|     #[schema(value_type = Option<MerchantCountryCode>, example = "840")] | ||||
|     pub merchant_country_code: Option<common_types::payments::MerchantCountryCode>, | ||||
|  | ||||
|     /// Time interval (in hours) for polling the connector to check for new disputes | ||||
|     #[schema(value_type = Option<u32>, example = 2)] | ||||
|     pub dispute_polling_interval: Option<primitive_wrappers::DisputePollingIntervalInHours>, | ||||
|  | ||||
|     /// Indicates if manual retry for payment is enabled or not | ||||
|     pub is_manual_retry_enabled: Option<bool>, | ||||
|  | ||||
|     /// Bool indicating if overcapture  must be requested for all payments | ||||
|     #[schema(value_type = Option<bool>)] | ||||
|     pub always_enable_overcapture: Option<primitive_wrappers::AlwaysEnableOvercaptureBool>, | ||||
| } | ||||
|  | ||||
| #[cfg(feature = "v2")] | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 AkshayaFoiger
					AkshayaFoiger