mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
refactor(router): domain and diesel model changes for merchant_connector_account create v2 flow (#5462)
This commit is contained in:
committed by
GitHub
parent
b4e7717055
commit
85209d12ae
@ -56,6 +56,10 @@ pub async fn check_if_connector_exists(
|
||||
.await
|
||||
.to_not_found_response(ApiErrorResponse::MerchantAccountNotFound)?;
|
||||
|
||||
#[cfg(all(
|
||||
any(feature = "v1", feature = "v2"),
|
||||
not(feature = "merchant_connector_account_v2")
|
||||
))]
|
||||
let _connector = state
|
||||
.store
|
||||
.find_by_merchant_connector_account_merchant_id_merchant_connector_id(
|
||||
@ -69,6 +73,13 @@ pub async fn check_if_connector_exists(
|
||||
id: connector_id.to_string(),
|
||||
})?;
|
||||
|
||||
#[cfg(all(feature = "v2", feature = "merchant_connector_account_v2"))]
|
||||
{
|
||||
let _ = connector_id;
|
||||
let _ = key_store;
|
||||
todo!()
|
||||
};
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user