feat(analytics): add customer_id as filter for payment intents (#6344)

This commit is contained in:
Sandeep Kumar
2024-10-30 12:56:26 +05:30
committed by GitHub
parent cae75314c4
commit d697def0b7
8 changed files with 190 additions and 1 deletions

View File

@ -16,6 +16,8 @@ pub struct PaymentIntentFilters {
pub currency: Vec<Currency>,
#[serde(default)]
pub profile_id: Vec<id_type::ProfileId>,
#[serde(default)]
pub customer_id: Vec<id_type::CustomerId>,
}
#[derive(
@ -62,6 +64,7 @@ pub enum PaymentIntentMetrics {
SmartRetriedAmount,
PaymentIntentCount,
PaymentsSuccessRate,
PaymentProcessedAmount,
SessionizedSuccessfulSmartRetries,
SessionizedTotalSmartRetries,
SessionizedSmartRetriedAmount,