mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
refactor(router): make error_type generic in domain_models inorder to avoid conversion of errors in storage_impl (#7537)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -9,16 +9,16 @@ use common_utils::types::keymanager::KeyManagerState;
|
||||
not(feature = "payment_methods_v2")
|
||||
))]
|
||||
use hyperswitch_domain_models::{
|
||||
errors, merchant_account::MerchantAccount, payment_methods::PaymentMethod,
|
||||
merchant_account::MerchantAccount, payment_methods::PaymentMethod,
|
||||
};
|
||||
use hyperswitch_domain_models::{
|
||||
merchant_key_store::MerchantKeyStore, payment_methods::PaymentMethodInterface,
|
||||
};
|
||||
use storage_impl::{kv_router_store::KVRouterStore, DatabaseStore, MockDb, RouterStore};
|
||||
use storage_impl::{errors, kv_router_store::KVRouterStore, DatabaseStore, MockDb, RouterStore};
|
||||
|
||||
#[async_trait::async_trait]
|
||||
pub trait PaymentMethodsStorageInterface:
|
||||
Send + Sync + dyn_clone::DynClone + PaymentMethodInterface + 'static
|
||||
Send + Sync + dyn_clone::DynClone + PaymentMethodInterface<Error = errors::StorageError> + 'static
|
||||
{
|
||||
}
|
||||
dyn_clone::clone_trait_object!(PaymentMethodsStorageInterface);
|
||||
|
||||
Reference in New Issue
Block a user