mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	feat(connector): add auth_token_refresh for payu and some quick bug fixes (#426)
Co-authored-by: Narayan Bhat <narayan.bhat@juspay.in> Co-authored-by: samraat bansal <samraat.bansal@samraat.bansal-MacBookPro> Co-authored-by: Jagan Elavarasan <jaganelavarasan@gmail.com>
This commit is contained in:
		| @ -18,6 +18,20 @@ pub fn missing_field_err( | ||||
| } | ||||
|  | ||||
| type Error = error_stack::Report<errors::ConnectorError>; | ||||
|  | ||||
| pub trait AccessTokenRequestInfo { | ||||
|     fn get_request_id(&self) -> Result<String, Error>; | ||||
| } | ||||
|  | ||||
| impl AccessTokenRequestInfo for types::RefreshTokenRouterData { | ||||
|     fn get_request_id(&self) -> Result<String, Error> { | ||||
|         self.request | ||||
|             .id | ||||
|             .clone() | ||||
|             .ok_or_else(missing_field_err("request.id")) | ||||
|     } | ||||
| } | ||||
|  | ||||
| pub trait PaymentsRequestData { | ||||
|     fn get_attempt_id(&self) -> Result<String, Error>; | ||||
|     fn get_billing(&self) -> Result<&api::Address, Error>; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 SamraatBansal
					SamraatBansal