chore(analytics): adding dispute id to api log events (#3450)

This commit is contained in:
harsh-sharma-juspay
2024-01-30 12:53:58 +05:30
committed by GitHub
parent d6807abba4
commit 937aea906e
6 changed files with 55 additions and 12 deletions

View File

@ -0,0 +1,25 @@
use common_utils::events::{ApiEventMetric, ApiEventsType};
use super::{DisputeResponse, DisputeResponsePaymentsRetrieve, SubmitEvidenceRequest};
impl ApiEventMetric for SubmitEvidenceRequest {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Dispute {
dispute_id: self.dispute_id.clone(),
})
}
}
impl ApiEventMetric for DisputeResponsePaymentsRetrieve {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Dispute {
dispute_id: self.dispute_id.clone(),
})
}
}
impl ApiEventMetric for DisputeResponse {
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Dispute {
dispute_id: self.dispute_id.clone(),
})
}
}