feat(business_profile_v2): business profile v2 create and retrieve endpoint (#5606)

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:
Narayan Bhat
2024-08-20 14:50:58 +05:30
committed by GitHub
parent ac7d8c572c
commit 6e7b38a622
28 changed files with 756 additions and 248 deletions

View File

@ -700,8 +700,7 @@ impl<T: DatabaseStore> PayoutsInterface for crate::RouterStore<T> {
})
}
#[cfg(feature = "olap")]
#[cfg(all(feature = "v2", feature = "customer_v2"))]
#[cfg(all(feature = "olap", feature = "v2", feature = "customer_v2"))]
#[instrument(skip_all)]
async fn filter_payouts_and_attempts(
&self,
@ -765,7 +764,11 @@ impl<T: DatabaseStore> PayoutsInterface for crate::RouterStore<T> {
})
}
#[cfg(feature = "olap")]
#[cfg(all(
any(feature = "v1", feature = "v2"),
feature = "olap",
not(feature = "customer_v2")
))]
#[instrument(skip_all)]
async fn filter_active_payout_ids_by_constraints(
&self,
@ -841,6 +844,16 @@ impl<T: DatabaseStore> PayoutsInterface for crate::RouterStore<T> {
.into()
})
}
#[cfg(all(feature = "olap", feature = "v2", feature = "customer_v2"))]
#[instrument(skip_all)]
async fn filter_active_payout_ids_by_constraints(
&self,
merchant_id: &common_utils::id_type::MerchantId,
constraints: &PayoutFetchConstraints,
) -> error_stack::Result<Vec<String>, StorageError> {
todo!()
}
}
impl DataModelExt for Payouts {