mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	refactor(stripe): return all the missing fields in a request (#935)
Co-authored-by: jeeva <jeeva.ramu@codurance.com> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com> Co-authored-by: ItsMeShashank <sattarde9913@gmail.com>
This commit is contained in:
		| @ -51,3 +51,18 @@ macro_rules! async_spawn { | ||||
|         tokio::spawn(async move { $t }); | ||||
|     }; | ||||
| } | ||||
|  | ||||
| #[macro_export] | ||||
| macro_rules! collect_missing_value_keys { | ||||
|     [$(($key:literal, $option:expr)),+] => { | ||||
|         { | ||||
|             let mut keys: Vec<&'static str> = Vec::new(); | ||||
|             $( | ||||
|                 if $option.is_none() { | ||||
|                     keys.push($key); | ||||
|                 } | ||||
|             )* | ||||
|             keys | ||||
|         } | ||||
|     }; | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jeeva
					Jeeva