mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
fix(event): Updated the ApiEventMetric (#5126)
Co-authored-by: Sampras Lopes <Sampras.lopes@juspay.in>
This commit is contained in:
@ -58,7 +58,6 @@ impl ApiEventMetric for PaymentIntentFiltersResponse {
|
|||||||
|
|
||||||
impl_misc_api_event_type!(
|
impl_misc_api_event_type!(
|
||||||
PaymentMethodId,
|
PaymentMethodId,
|
||||||
PaymentsSessionResponse,
|
|
||||||
PaymentMethodCreate,
|
PaymentMethodCreate,
|
||||||
PaymentLinkInitiateRequest,
|
PaymentLinkInitiateRequest,
|
||||||
RetrievePaymentLinkResponse,
|
RetrievePaymentLinkResponse,
|
||||||
|
|||||||
@ -16,7 +16,7 @@ use crate::{
|
|||||||
PaymentsExternalAuthenticationRequest, PaymentsExternalAuthenticationResponse,
|
PaymentsExternalAuthenticationRequest, PaymentsExternalAuthenticationResponse,
|
||||||
PaymentsIncrementalAuthorizationRequest, PaymentsManualUpdateRequest,
|
PaymentsIncrementalAuthorizationRequest, PaymentsManualUpdateRequest,
|
||||||
PaymentsRejectRequest, PaymentsRequest, PaymentsResponse, PaymentsRetrieveRequest,
|
PaymentsRejectRequest, PaymentsRequest, PaymentsResponse, PaymentsRetrieveRequest,
|
||||||
PaymentsStartRequest, RedirectionResponse,
|
PaymentsSessionResponse, PaymentsStartRequest, RedirectionResponse,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
impl ApiEventMetric for PaymentsRetrieveRequest {
|
impl ApiEventMetric for PaymentsRetrieveRequest {
|
||||||
@ -248,3 +248,11 @@ impl ApiEventMetric for PaymentsManualUpdateRequest {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl ApiEventMetric for PaymentsSessionResponse {
|
||||||
|
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||||
|
Some(ApiEventsType::Payment {
|
||||||
|
payment_id: self.payment_id.clone(),
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user