feat(router): add organization_id in authentication table and add it in authentication events (#7168)

This commit is contained in:
Sai Harsha Vardhan
2025-02-06 19:17:11 +05:30
committed by GitHub
parent 9b1b245564
commit f2117542a7
13 changed files with 32 additions and 0 deletions

View File

@ -174,6 +174,7 @@ impl ForeignFrom<common_enums::AuthenticationStatus> for common_enums::AttemptSt
}
}
#[allow(clippy::too_many_arguments)]
pub async fn create_new_authentication(
state: &SessionState,
merchant_id: common_utils::id_type::MerchantId,
@ -182,6 +183,7 @@ pub async fn create_new_authentication(
profile_id: common_utils::id_type::ProfileId,
payment_id: Option<common_utils::id_type::PaymentId>,
merchant_connector_id: common_utils::id_type::MerchantConnectorAccountId,
organization_id: common_utils::id_type::OrganizationId,
) -> RouterResult<storage::Authentication> {
let authentication_id =
common_utils::generate_id_with_default_len(consts::AUTHENTICATION_ID_PREFIX);
@ -220,6 +222,7 @@ pub async fn create_new_authentication(
directory_server_id: None,
acquirer_country_code: None,
service_details: None,
organization_id,
};
state
.store