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

731 B
Raw Blame
use diesel::{Identifiable, Queryable, Selectable};
use hyperswitch_masking::Secret;

use crate::schema_v2::revenue_recovery_retry_stats;

#[derive(
    Clone, Debug, Queryable, Identifiable, Selectable, serde::Serialize, serde::Deserialize,
)]
#[diesel(table_name = revenue_recovery_retry_stats, check_for_backend(diesel::pg::Pg))]
#[diesel(primary_key(cluster_key))]
pub struct RevenueRecoveryRetryStats {
    pub cluster_key: String,
    pub stats: Secret<serde_json::Value>,
}

#[derive(Clone, Debug, diesel::Insertable, serde::Serialize, serde::Deserialize)]
#[diesel(table_name = revenue_recovery_retry_stats)]
pub struct RevenueRecoveryRetryStatsNew {
    pub cluster_key: String,
    pub stats: Secret<serde_json::Value>,
}