mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(core): Rename crate data_models to hyperswitch_domain_models (#4504)
This commit is contained in:
@ -2,16 +2,6 @@ use std::str::FromStr;
|
||||
|
||||
use api_models::enums::PayoutConnectors;
|
||||
use common_utils::{errors::CustomResult, ext_traits::Encode, fallback_reverse_lookup_not_found};
|
||||
use data_models::{
|
||||
errors,
|
||||
payouts::{
|
||||
payout_attempt::{
|
||||
PayoutAttempt, PayoutAttemptInterface, PayoutAttemptNew, PayoutAttemptUpdate,
|
||||
PayoutListFilters,
|
||||
},
|
||||
payouts::Payouts,
|
||||
},
|
||||
};
|
||||
use diesel_models::{
|
||||
enums::MerchantStorageScheme,
|
||||
kv,
|
||||
@ -22,6 +12,16 @@ use diesel_models::{
|
||||
ReverseLookupNew,
|
||||
};
|
||||
use error_stack::ResultExt;
|
||||
use hyperswitch_domain_models::{
|
||||
errors,
|
||||
payouts::{
|
||||
payout_attempt::{
|
||||
PayoutAttempt, PayoutAttemptInterface, PayoutAttemptNew, PayoutAttemptUpdate,
|
||||
PayoutListFilters,
|
||||
},
|
||||
payouts::Payouts,
|
||||
},
|
||||
};
|
||||
use redis_interface::HsetnxReply;
|
||||
use router_env::{instrument, logger, tracing};
|
||||
|
||||
|
||||
@ -2,15 +2,6 @@
|
||||
use async_bb8_diesel::{AsyncConnection, AsyncRunQueryDsl};
|
||||
use common_utils::ext_traits::Encode;
|
||||
#[cfg(feature = "olap")]
|
||||
use data_models::payouts::PayoutFetchConstraints;
|
||||
use data_models::{
|
||||
errors::StorageError,
|
||||
payouts::{
|
||||
payout_attempt::PayoutAttempt,
|
||||
payouts::{Payouts, PayoutsInterface, PayoutsNew, PayoutsUpdate},
|
||||
},
|
||||
};
|
||||
#[cfg(feature = "olap")]
|
||||
use diesel::{associations::HasTable, ExpressionMethods, JoinOnDsl, QueryDsl};
|
||||
#[cfg(feature = "olap")]
|
||||
use diesel_models::{
|
||||
@ -28,6 +19,15 @@ use diesel_models::{
|
||||
},
|
||||
};
|
||||
use error_stack::ResultExt;
|
||||
#[cfg(feature = "olap")]
|
||||
use hyperswitch_domain_models::payouts::PayoutFetchConstraints;
|
||||
use hyperswitch_domain_models::{
|
||||
errors::StorageError,
|
||||
payouts::{
|
||||
payout_attempt::PayoutAttempt,
|
||||
payouts::{Payouts, PayoutsInterface, PayoutsNew, PayoutsUpdate},
|
||||
},
|
||||
};
|
||||
use redis_interface::HsetnxReply;
|
||||
#[cfg(feature = "olap")]
|
||||
use router_env::logger;
|
||||
|
||||
Reference in New Issue
Block a user