mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-31 01:57:45 +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
@ -307,7 +307,7 @@ async fn store_bank_details_in_payment_methods(
|
||||
state: SessionState,
|
||||
bank_account_details_resp: pm_auth_types::BankAccountCredentialsResponse,
|
||||
connector_details: (&str, Secret<String>),
|
||||
mca_id: String,
|
||||
mca_id: common_utils::id_type::MerchantConnectorAccountId,
|
||||
) -> RouterResult<()> {
|
||||
let key = key_store.key.get_inner().peek();
|
||||
let db = &*state.clone().store;
|
||||
@ -753,7 +753,12 @@ pub async fn retrieve_payment_method_from_auth_service(
|
||||
)
|
||||
.await
|
||||
.to_not_found_response(ApiErrorResponse::MerchantConnectorAccountNotFound {
|
||||
id: auth_token.connector_details.mca_id.clone(),
|
||||
id: auth_token
|
||||
.connector_details
|
||||
.mca_id
|
||||
.get_string_repr()
|
||||
.to_string()
|
||||
.clone(),
|
||||
})
|
||||
.attach_printable(
|
||||
"error while fetching merchant_connector_account from merchant_id and connector name",
|
||||
|
||||
Reference in New Issue
Block a user