mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
feat(storage_impl): split payment intent interface implementation (#1946)
This commit is contained in:
25
crates/data_models/src/lib.rs
Normal file
25
crates/data_models/src/lib.rs
Normal file
@ -0,0 +1,25 @@
|
||||
pub mod errors;
|
||||
pub mod mandates;
|
||||
pub mod payments;
|
||||
|
||||
// TODO: This decision about using KV mode or not,
|
||||
// should be taken at a top level rather than pushing it down to individual functions via an enum.
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
Debug,
|
||||
Default,
|
||||
Eq,
|
||||
PartialEq,
|
||||
serde::Deserialize,
|
||||
serde::Serialize,
|
||||
strum::Display,
|
||||
strum::EnumString,
|
||||
)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum MerchantStorageScheme {
|
||||
#[default]
|
||||
PostgresOnly,
|
||||
RedisKv,
|
||||
}
|
||||
Reference in New Issue
Block a user