mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
chore(connector_events_fields): added refund_id, dispute_id to connector events (#3424)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sampras Lopes <lsampras@pm.me>
This commit is contained in:
@ -18,6 +18,8 @@ pub struct ConnectorEvent {
|
||||
created_at: i128,
|
||||
request_id: String,
|
||||
latency: u128,
|
||||
refund_id: Option<String>,
|
||||
dispute_id: Option<String>,
|
||||
status_code: u16,
|
||||
}
|
||||
|
||||
@ -34,6 +36,8 @@ impl ConnectorEvent {
|
||||
merchant_id: String,
|
||||
request_id: Option<&RequestId>,
|
||||
latency: u128,
|
||||
refund_id: Option<String>,
|
||||
dispute_id: Option<String>,
|
||||
status_code: u16,
|
||||
) -> Self {
|
||||
Self {
|
||||
@ -54,6 +58,8 @@ impl ConnectorEvent {
|
||||
.map(|i| i.as_hyphenated().to_string())
|
||||
.unwrap_or("NO_REQUEST_ID".to_string()),
|
||||
latency,
|
||||
refund_id,
|
||||
dispute_id,
|
||||
status_code,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user