mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 13:30:39 +08:00
23 lines
590 B
Rust
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)
|
|
}
|
|
}
|