Files
hyperswitch/crates/diesel_models/src/ephemeral_key.rs

23 lines
590 B
Rust

pub struct EphemeralKeyNew {
pub id: String,
pub merchant_id: String,
pub customer_id: String,
pub secret: String,
}
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
pub struct EphemeralKey {
pub id: String,
pub merchant_id: String,
pub customer_id: String,
pub created_at: i64,
pub expires: i64,
pub secret: String,
}
impl common_utils::events::ApiEventMetric for EphemeralKey {
fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType> {
Some(common_utils::events::ApiEventsType::Miscellaneous)
}
}