refactor: introduce a domain type for profile ID (#5687)

This commit is contained in:
Sanchith Hegde
2024-08-27 13:31:01 +05:30
committed by GitHub
parent fac8e7916f
commit b63d723b8b
118 changed files with 707 additions and 547 deletions

View File

@ -178,7 +178,7 @@ pub async fn create_new_authentication(
merchant_id: common_utils::id_type::MerchantId,
authentication_connector: String,
token: String,
profile_id: String,
profile_id: common_utils::id_type::ProfileId,
payment_id: Option<String>,
merchant_connector_id: String,
) -> RouterResult<storage::Authentication> {
@ -285,7 +285,7 @@ pub async fn get_authentication_connector_data(
.ok_or(errors::ApiErrorResponse::UnprocessableEntity {
message: format!(
"No authentication_connector found for profile_id {}",
business_profile.profile_id
business_profile.profile_id.get_string_repr()
),
})
.attach_printable(