mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	fix(refunds): Add profile_id in refunds response (#2652)
				
					
				
			Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -602,6 +602,7 @@ pub async fn validate_and_create_refund( | ||||
|         .set_description(req.reason.clone()) | ||||
|         .set_attempt_id(payment_attempt.attempt_id.clone()) | ||||
|         .set_refund_reason(req.reason) | ||||
|         .set_profile_id(payment_intent.profile_id.clone()) | ||||
|         .to_owned(); | ||||
|  | ||||
|     refund = db | ||||
| @ -704,6 +705,7 @@ impl ForeignFrom<storage::Refund> for api::RefundResponse { | ||||
|             currency: refund.currency.to_string(), | ||||
|             reason: refund.refund_reason, | ||||
|             status: refund.refund_status.foreign_into(), | ||||
|             profile_id: refund.profile_id, | ||||
|             metadata: refund.metadata, | ||||
|             error_message: refund.refund_error_message, | ||||
|             error_code: refund.refund_error_code, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Pa1NarK
					Pa1NarK