refactor(router): add domain type for merchant_connector_account id (#5685)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in>
This commit is contained in:
Sai Harsha Vardhan
2024-08-28 13:22:19 +05:30
committed by GitHub
parent f33e1bb65c
commit 771f48cfe0
69 changed files with 388 additions and 271 deletions

View File

@@ -384,7 +384,10 @@ pub async fn find_mca_from_authentication_id_type(
.await
.to_not_found_response(
errors::ApiErrorResponse::MerchantConnectorAccountNotFound {
id: authentication.merchant_connector_id.to_string(),
id: authentication
.merchant_connector_id
.get_string_repr()
.to_string(),
},
)
}
@@ -430,7 +433,7 @@ pub async fn get_mca_from_payment_intent(
.await
.to_not_found_response(
errors::ApiErrorResponse::MerchantConnectorAccountNotFound {
id: merchant_connector_id,
id: merchant_connector_id.get_string_repr().to_string(),
},
)
}
@@ -528,7 +531,7 @@ pub async fn get_mca_from_payout_attempt(
.await
.to_not_found_response(
errors::ApiErrorResponse::MerchantConnectorAccountNotFound {
id: merchant_connector_id,
id: merchant_connector_id.get_string_repr().to_string(),
},
)
}