refactor: incorporate hyperswitch_interface into router (#3669)

Co-authored-by: Narayan Bhat <narayan.bhat@juspay.in>
This commit is contained in:
Chethan Rao
2024-02-26 19:18:18 +05:30
committed by GitHub
parent c117f8ec63
commit 2185cd38c1
48 changed files with 671 additions and 1613 deletions

View File

@ -15,7 +15,7 @@ use super::payouts::PayoutData;
#[cfg(feature = "payouts")]
use crate::core::payments;
use crate::{
configs::settings,
configs::Settings,
consts,
core::errors::{self, RouterResult, StorageErrorExt},
db::StorageInterface,
@ -942,7 +942,7 @@ pub async fn construct_retrieve_file_router_data<'a>(
}
pub fn is_merchant_enabled_for_payment_id_as_connector_request_id(
conf: &settings::Settings,
conf: &Settings,
merchant_id: &str,
) -> bool {
let config_map = &conf
@ -952,7 +952,7 @@ pub fn is_merchant_enabled_for_payment_id_as_connector_request_id(
}
pub fn get_connector_request_reference_id(
conf: &settings::Settings,
conf: &Settings,
merchant_id: &str,
payment_attempt: &data_models::payments::payment_attempt::PaymentAttempt,
) -> String {