mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-12-09 07:17:29 +08:00
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:
committed by
GitHub
parent
f33e1bb65c
commit
771f48cfe0
@@ -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(),
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user