mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 17:47:54 +08:00
50 lines
1.5 KiB
Rust
50 lines
1.5 KiB
Rust
use api_models::analytics::{
|
|
api_event::{ApiEventDimensions, ApiEventMetrics},
|
|
disputes::{DisputeDimensions, DisputeMetrics},
|
|
payments::{PaymentDimensions, PaymentMetrics},
|
|
refunds::{RefundDimensions, RefundMetrics},
|
|
sdk_events::{SdkEventDimensions, SdkEventMetrics},
|
|
NameDescription,
|
|
};
|
|
use strum::IntoEnumIterator;
|
|
|
|
pub fn get_payment_dimensions() -> Vec<NameDescription> {
|
|
PaymentDimensions::iter().map(Into::into).collect()
|
|
}
|
|
|
|
pub fn get_refund_dimensions() -> Vec<NameDescription> {
|
|
RefundDimensions::iter().map(Into::into).collect()
|
|
}
|
|
|
|
pub fn get_sdk_event_dimensions() -> Vec<NameDescription> {
|
|
SdkEventDimensions::iter().map(Into::into).collect()
|
|
}
|
|
|
|
pub fn get_api_event_dimensions() -> Vec<NameDescription> {
|
|
ApiEventDimensions::iter().map(Into::into).collect()
|
|
}
|
|
|
|
pub fn get_payment_metrics_info() -> Vec<NameDescription> {
|
|
PaymentMetrics::iter().map(Into::into).collect()
|
|
}
|
|
|
|
pub fn get_refund_metrics_info() -> Vec<NameDescription> {
|
|
RefundMetrics::iter().map(Into::into).collect()
|
|
}
|
|
|
|
pub fn get_sdk_event_metrics_info() -> Vec<NameDescription> {
|
|
SdkEventMetrics::iter().map(Into::into).collect()
|
|
}
|
|
|
|
pub fn get_api_event_metrics_info() -> Vec<NameDescription> {
|
|
ApiEventMetrics::iter().map(Into::into).collect()
|
|
}
|
|
|
|
pub fn get_dispute_metrics_info() -> Vec<NameDescription> {
|
|
DisputeMetrics::iter().map(Into::into).collect()
|
|
}
|
|
|
|
pub fn get_dispute_dimensions() -> Vec<NameDescription> {
|
|
DisputeDimensions::iter().map(Into::into).collect()
|
|
}
|