Skip to content

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

fix(analytics): fix `authentication_type` and `card_last_4` fields serialization for payment_intent_filters (#6595)

Sandeep Kumar0302c3033fbf
diff --git a/crates/api_models/src/analytics/payment_intents.rs b/crates/api_models/src/analytics/payment_intents.rs
index dd51c97d93..365abd71ed 100644
--- a/crates/api_models/src/analytics/payment_intents.rs
+++ b/crates/api_models/src/analytics/payment_intents.rs
@@ -63,11 +63,15 @@ pub enum PaymentIntentDimensions {
Currency,
ProfileId,
Connector,
+ #[strum(serialize = "authentication_type")]
+ #[serde(rename = "authentication_type")]
AuthType,
PaymentMethod,
PaymentMethodType,
CardNetwork,
MerchantId,
+ #[strum(serialize = "card_last_4")]
+ #[serde(rename = "card_last_4")]
CardLast4,
CardIssuer,
ErrorReason,