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
refactor(events): update api events to follow snake case naming (#2828)
Sampras Lopesb3d5062dc076
diff --git a/crates/common_utils/src/events.rs b/crates/common_utils/src/events.rsindex 8c52f6c36d..753f1deeb6 100644--- a/crates/common_utils/src/events.rs+++ b/crates/common_utils/src/events.rs@@ -8,7 +8,7 @@ pub trait ApiEventMetric {}#[derive(Clone, Debug, Eq, PartialEq, Serialize)]-#[serde(tag = "flow_type")]+#[serde(tag = "flow_type", rename_all = "snake_case")]pub enum ApiEventsType {Payout,Payment {diff --git a/crates/router/src/events/api_logs.rs b/crates/router/src/events/api_logs.rsindex 1a47568e7a..873102e81e 100644--- a/crates/router/src/events/api_logs.rs+++ b/crates/router/src/events/api_logs.rs@@ -22,6 +22,7 @@ use crate::{};#[derive(Clone, Debug, Eq, PartialEq, Serialize)]+#[serde(rename_all = "snake_case")]pub struct ApiEvent {api_flow: String,created_at_timestamp: i128,diff --git a/crates/router/src/services/authentication.rs b/crates/router/src/services/authentication.rsindex faa7864aff..0a7f5189b9 100644--- a/crates/router/src/services/authentication.rs+++ b/crates/router/src/services/authentication.rs@@ -29,7 +29,11 @@ pub struct AuthenticationData {}#[derive(Clone, Debug, Eq, PartialEq, Serialize)]-#[serde(tag = "api_auth_type")]+#[serde(+ tag = "api_auth_type",+ content = "authentication_data",+ rename_all = "snake_case"+)]pub enum AuthenticationType {ApiKey {merchant_id: String,