mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
storage: Added Ephemeral Key types (#83)
This commit is contained in:
@ -3,6 +3,7 @@ pub mod configs;
|
||||
pub mod connector_response;
|
||||
pub mod customers;
|
||||
pub mod enums;
|
||||
pub mod ephemeral_key;
|
||||
pub mod events;
|
||||
pub mod locker_mock_up;
|
||||
pub mod mandate;
|
||||
|
||||
16
crates/router/src/types/storage/ephemeral_key.rs
Normal file
16
crates/router/src/types/storage/ephemeral_key.rs
Normal file
@ -0,0 +1,16 @@
|
||||
pub struct EphemeralKeyNew {
|
||||
pub id: String,
|
||||
pub merchant_id: String,
|
||||
pub customer_id: String,
|
||||
pub secret: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize, serde::Deserialize)]
|
||||
pub struct EphemeralKey {
|
||||
pub id: String,
|
||||
pub merchant_id: String,
|
||||
pub customer_id: String,
|
||||
pub created_at: time::PrimitiveDateTime,
|
||||
pub expires: time::PrimitiveDateTime,
|
||||
pub secret: String,
|
||||
}
|
||||
Reference in New Issue
Block a user