mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 20:23:43 +08:00
Co-authored-by: Gorakhnath Yadav <gorakhnath.yadav@Gorakhnath-Yadav-J9J2YJH1J2.local> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
18 lines
651 B
Rust
18 lines
651 B
Rust
use common_utils::id_type;
|
|
use serde;
|
|
use utoipa::ToSchema;
|
|
|
|
/// ephemeral_key for the customer_id mentioned
|
|
#[derive(Debug, serde::Serialize, serde::Deserialize, Clone, Eq, PartialEq, ToSchema)]
|
|
pub struct EphemeralKeyCreateResponse {
|
|
/// customer_id to which this ephemeral key belongs to
|
|
#[schema(value_type = String, max_length = 64, min_length = 1, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")]
|
|
pub customer_id: id_type::CustomerId,
|
|
/// time at which this ephemeral key was created
|
|
pub created_at: i64,
|
|
/// time at which this ephemeral key would expire
|
|
pub expires: i64,
|
|
/// ephemeral key
|
|
pub secret: String,
|
|
}
|