mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
refactor: Rename business profile to profiles in api, diesel, domain, interface and error types (#5877)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -88,7 +88,7 @@ pub async fn retrieve_payment_method(
|
||||
payment_intent: &PaymentIntent,
|
||||
payment_attempt: &PaymentAttempt,
|
||||
merchant_key_store: &domain::MerchantKeyStore,
|
||||
business_profile: Option<&domain::BusinessProfile>,
|
||||
business_profile: Option<&domain::Profile>,
|
||||
) -> RouterResult<(Option<domain::PaymentMethodData>, Option<String>)> {
|
||||
match pm_data {
|
||||
pm_opt @ Some(pm @ domain::PaymentMethodData::Card(_)) => {
|
||||
@ -507,7 +507,7 @@ pub async fn retrieve_payment_method_with_token(
|
||||
_storage_scheme: common_enums::enums::MerchantStorageScheme,
|
||||
_mandate_id: Option<api_models::payments::MandateIds>,
|
||||
_payment_method_info: Option<domain::PaymentMethod>,
|
||||
_business_profile: &domain::BusinessProfile,
|
||||
_business_profile: &domain::Profile,
|
||||
) -> RouterResult<storage::PaymentMethodDataWithId> {
|
||||
todo!()
|
||||
}
|
||||
@ -528,7 +528,7 @@ pub async fn retrieve_payment_method_with_token(
|
||||
storage_scheme: common_enums::enums::MerchantStorageScheme,
|
||||
mandate_id: Option<api_models::payments::MandateIds>,
|
||||
payment_method_info: Option<domain::PaymentMethod>,
|
||||
business_profile: &domain::BusinessProfile,
|
||||
business_profile: &domain::Profile,
|
||||
) -> RouterResult<storage::PaymentMethodDataWithId> {
|
||||
let token = match token_data {
|
||||
storage::PaymentTokenData::TemporaryGeneric(generic_token) => {
|
||||
|
||||
Reference in New Issue
Block a user