mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 17:47:54 +08:00
refactor: introduce a domain type for profile ID (#5687)
This commit is contained in:
@ -467,7 +467,10 @@ pub async fn get_mca_from_payment_intent(
|
||||
.await
|
||||
.to_not_found_response(
|
||||
errors::ApiErrorResponse::MerchantConnectorAccountNotFound {
|
||||
id: format!("profile_id {profile_id} and connector_name {connector_name}"),
|
||||
id: format!(
|
||||
"profile_id {} and connector_name {connector_name}",
|
||||
profile_id.get_string_repr()
|
||||
),
|
||||
},
|
||||
)
|
||||
}
|
||||
@ -556,7 +559,8 @@ pub async fn get_mca_from_payout_attempt(
|
||||
errors::ApiErrorResponse::MerchantConnectorAccountNotFound {
|
||||
id: format!(
|
||||
"profile_id {} and connector_name {}",
|
||||
payout.profile_id, connector_name
|
||||
payout.profile_id.get_string_repr(),
|
||||
connector_name
|
||||
),
|
||||
},
|
||||
)
|
||||
@ -603,7 +607,10 @@ pub async fn get_mca_from_object_reference_id(
|
||||
.await
|
||||
.to_not_found_response(
|
||||
errors::ApiErrorResponse::MerchantConnectorAccountNotFound {
|
||||
id: format!("profile_id {profile_id} and connector_name {connector_name}"),
|
||||
id: format!(
|
||||
"profile_id {} and connector_name {connector_name}",
|
||||
profile_id.get_string_repr()
|
||||
),
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user