storage: Added Ephemeral Key types (#83)

This commit is contained in:
Kartikeya Hegde
2022-12-07 19:08:18 +05:30
committed by GitHub
parent 7313c06254
commit 7ddf5ccf30
2 changed files with 17 additions and 0 deletions

View File

@ -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;

View 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,
}