Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(event): Updated the ApiEventMetric (#5126)
Tanbir Ali1bb2ae842378
diff --git a/crates/api_models/src/events.rs b/crates/api_models/src/events.rsindex 346fc06f20..4dcf1a3896 100644--- a/crates/api_models/src/events.rs+++ b/crates/api_models/src/events.rs@@ -58,7 +58,6 @@ impl ApiEventMetric for PaymentIntentFiltersResponse {impl_misc_api_event_type!(PaymentMethodId,- PaymentsSessionResponse,PaymentMethodCreate,PaymentLinkInitiateRequest,RetrievePaymentLinkResponse,diff --git a/crates/api_models/src/events/payment.rs b/crates/api_models/src/events/payment.rsindex 4ed4e00666..ad2e2546f3 100644--- a/crates/api_models/src/events/payment.rs+++ b/crates/api_models/src/events/payment.rs@@ -16,7 +16,7 @@ use crate::{PaymentsExternalAuthenticationRequest, PaymentsExternalAuthenticationResponse,PaymentsIncrementalAuthorizationRequest, PaymentsManualUpdateRequest,PaymentsRejectRequest, PaymentsRequest, PaymentsResponse, PaymentsRetrieveRequest,- PaymentsStartRequest, RedirectionResponse,+ PaymentsSessionResponse, PaymentsStartRequest, RedirectionResponse,},};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(),+ })+ }+}