fix(dummyconnector): add tenant id in dummyconnector requests (#7008)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Kartikeya Hegde
2025-01-09 14:41:38 +05:30
committed by GitHub
parent d516fc72cb
commit 9c983b68bd
28 changed files with 194 additions and 51 deletions

View File

@ -11,6 +11,7 @@ use crate::{
db::{get_and_deserialize_key, StorageInterface},
services::logger,
types::{self, api, domain, PaymentAddress},
SessionState,
};
const IRRELEVANT_ATTEMPT_ID_IN_SOURCE_VERIFICATION_FLOW: &str =
@ -57,6 +58,7 @@ pub async fn is_webhook_event_disabled(
}
pub async fn construct_webhook_router_data<'a>(
state: &SessionState,
connector_name: &str,
merchant_connector_account: domain::MerchantConnectorAccount,
merchant_account: &domain::MerchantAccount,
@ -74,6 +76,7 @@ pub async fn construct_webhook_router_data<'a>(
merchant_id: merchant_account.get_id().clone(),
connector: connector_name.to_string(),
customer_id: None,
tenant_id: state.tenant.tenant_id.clone(),
payment_id: common_utils::id_type::PaymentId::get_irrelevant_id("source_verification_flow")
.get_string_repr()
.to_owned(),