mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 05:17:02 +08:00
fix(analytics): added response to the connector outgoing event (#3129)
Co-authored-by: harsh-sharma-juspay <125131007+harsh-sharma-juspay@users.noreply.github.com> Co-authored-by: Sampras lopes <lsampras@pm.me>
This commit is contained in:
@ -116,7 +116,6 @@ impl_misc_api_event_type!(
|
||||
AttachEvidenceRequest,
|
||||
DisputeId,
|
||||
PaymentLinkFormData,
|
||||
PaymentsRedirectResponseData,
|
||||
ConfigUpdate
|
||||
);
|
||||
|
||||
@ -131,3 +130,15 @@ impl_misc_api_event_type!(
|
||||
DummyConnectorRefundResponse,
|
||||
DummyConnectorRefundRequest
|
||||
);
|
||||
|
||||
impl ApiEventMetric for PaymentsRedirectResponseData {
|
||||
fn get_api_event_type(&self) -> Option<ApiEventsType> {
|
||||
Some(ApiEventsType::PaymentRedirectionResponse {
|
||||
connector: self.connector.clone(),
|
||||
payment_id: match &self.resource_id {
|
||||
api_models::payments::PaymentIdType::PaymentIntentId(id) => Some(id.clone()),
|
||||
_ => None,
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user