mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat: add a domain type for customer_id (#4705)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
use common_utils::id_type;
|
||||
use serde;
|
||||
use utoipa::ToSchema;
|
||||
|
||||
#[derive(Debug, serde::Serialize, serde::Deserialize, Clone, Eq, PartialEq, ToSchema)]
|
||||
pub struct EphemeralKeyCreateResponse {
|
||||
/// customer_id to which this ephemeral key belongs to
|
||||
pub customer_id: String,
|
||||
#[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
|
||||
|
||||
Reference in New Issue
Block a user