mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(debit_routing): add debit_routing_savings in analytics payment attempt (#8519)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -111,6 +111,7 @@ pub enum PaymentMetrics {
|
||||
AvgTicketSize,
|
||||
RetriesCount,
|
||||
ConnectorSuccessRate,
|
||||
DebitRouting,
|
||||
SessionizedPaymentSuccessRate,
|
||||
SessionizedPaymentCount,
|
||||
SessionizedPaymentSuccessCount,
|
||||
@ -118,6 +119,7 @@ pub enum PaymentMetrics {
|
||||
SessionizedAvgTicketSize,
|
||||
SessionizedRetriesCount,
|
||||
SessionizedConnectorSuccessRate,
|
||||
SessionizedDebitRouting,
|
||||
PaymentsDistribution,
|
||||
FailureReasons,
|
||||
}
|
||||
@ -128,8 +130,10 @@ impl ForexMetric for PaymentMetrics {
|
||||
self,
|
||||
Self::PaymentProcessedAmount
|
||||
| Self::AvgTicketSize
|
||||
| Self::DebitRouting
|
||||
| Self::SessionizedPaymentProcessedAmount
|
||||
| Self::SessionizedAvgTicketSize
|
||||
| Self::SessionizedDebitRouting,
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -309,6 +313,9 @@ pub struct PaymentMetricsBucketValue {
|
||||
pub payments_failure_rate_distribution_with_only_retries: Option<f64>,
|
||||
pub failure_reason_count: Option<u64>,
|
||||
pub failure_reason_count_without_smart_retries: Option<u64>,
|
||||
pub debit_routed_transaction_count: Option<u64>,
|
||||
pub debit_routing_savings: Option<u64>,
|
||||
pub debit_routing_savings_in_usd: Option<u64>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user