mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
refactor(business_profile): add is_connector_agnostic_mit_enabled in the business profile APIs (#4925)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -442,6 +442,7 @@ pub async fn update_business_profile_cascade(
|
||||
extended_card_info_config: None,
|
||||
use_billing_as_payment_method_billing: None,
|
||||
collect_shipping_details_from_wallet_connector: None,
|
||||
is_connector_agnostic_mit_enabled: None,
|
||||
};
|
||||
|
||||
let update_futures = business_profiles.iter().map(|business_profile| async {
|
||||
@ -1728,6 +1729,7 @@ pub async fn update_business_profile(
|
||||
use_billing_as_payment_method_billing: request.use_billing_as_payment_method_billing,
|
||||
collect_shipping_details_from_wallet_connector: request
|
||||
.collect_shipping_details_from_wallet_connector,
|
||||
is_connector_agnostic_mit_enabled: request.is_connector_agnostic_mit_enabled,
|
||||
};
|
||||
|
||||
let updated_business_profile = db
|
||||
|
||||
@ -277,6 +277,7 @@ pub async fn update_business_profile_active_algorithm_ref(
|
||||
extended_card_info_config: None,
|
||||
use_billing_as_payment_method_billing: None,
|
||||
collect_shipping_details_from_wallet_connector: None,
|
||||
is_connector_agnostic_mit_enabled: None,
|
||||
};
|
||||
|
||||
db.update_business_profile_by_profile_id(current_business_profile, business_profile_update)
|
||||
|
||||
@ -87,6 +87,7 @@ impl ForeignTryFrom<storage::business_profile::BusinessProfile> for BusinessProf
|
||||
.transpose()?,
|
||||
collect_shipping_details_from_wallet_connector: item
|
||||
.collect_shipping_details_from_wallet_connector,
|
||||
is_connector_agnostic_mit_enabled: item.is_connector_agnostic_mit_enabled,
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -183,7 +184,7 @@ impl ForeignTryFrom<(domain::MerchantAccount, BusinessProfileCreate)>
|
||||
.change_context(errors::ApiErrorResponse::InvalidDataValue {
|
||||
field_name: "authentication_connector_details",
|
||||
})?,
|
||||
is_connector_agnostic_mit_enabled: None,
|
||||
is_connector_agnostic_mit_enabled: request.is_connector_agnostic_mit_enabled,
|
||||
is_extended_card_info_enabled: None,
|
||||
extended_card_info_config: None,
|
||||
use_billing_as_payment_method_billing: request
|
||||
|
||||
Reference in New Issue
Block a user