mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
feat(refunds): add connector field in refund response (#1059)
Co-authored-by: Sarthak Soni <76486416+Sarthak1799@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
38aa9eab3f
commit
3fe24b3255
@ -120,6 +120,9 @@ pub struct RefundResponse {
|
||||
/// The timestamp at which refund is updated
|
||||
#[serde(with = "common_utils::custom_serde::iso8601::option")]
|
||||
pub updated_at: Option<PrimitiveDateTime>,
|
||||
/// The connector used for the refund and the corresponding payment
|
||||
#[schema(example = "stripe")]
|
||||
pub connector: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize, ToSchema)]
|
||||
|
||||
@ -669,6 +669,7 @@ impl ForeignFrom<storage::Refund> for api::RefundResponse {
|
||||
error_code: refund.refund_error_code,
|
||||
created_at: Some(refund.created_at),
|
||||
updated_at: Some(refund.updated_at),
|
||||
connector: refund.connector,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user