mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
fix(payments): add time range in list payment attempts query (#5959)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -52,6 +52,7 @@ impl PaymentAttemptInterface for MockDb {
|
||||
_payment_method_type: Option<Vec<PaymentMethodType>>,
|
||||
_authentication_type: Option<Vec<AuthenticationType>>,
|
||||
_merchanat_connector_id: Option<Vec<common_utils::id_type::MerchantConnectorAccountId>>,
|
||||
_time_range: Option<common_utils::types::TimeRange>,
|
||||
_profile_id_list: Option<Vec<common_utils::id_type::ProfileId>>,
|
||||
_storage_scheme: storage_enums::MerchantStorageScheme,
|
||||
) -> CustomResult<i64, StorageError> {
|
||||
|
||||
@ -41,7 +41,7 @@ impl PaymentIntentInterface for MockDb {
|
||||
&self,
|
||||
_state: &KeyManagerState,
|
||||
_merchant_id: &common_utils::id_type::MerchantId,
|
||||
_time_range: &api_models::payments::TimeRange,
|
||||
_time_range: &common_utils::types::TimeRange,
|
||||
_key_store: &MerchantKeyStore,
|
||||
_storage_scheme: storage_enums::MerchantStorageScheme,
|
||||
) -> CustomResult<Vec<PaymentIntent>, StorageError> {
|
||||
@ -57,7 +57,7 @@ impl PaymentIntentInterface for MockDb {
|
||||
&self,
|
||||
_merchant_id: &common_utils::id_type::MerchantId,
|
||||
_profile_id_list: Option<Vec<common_utils::id_type::ProfileId>>,
|
||||
_time_range: &api_models::payments::TimeRange,
|
||||
_time_range: &common_utils::types::TimeRange,
|
||||
) -> CustomResult<Vec<(common_enums::IntentStatus, i64)>, StorageError> {
|
||||
// [#172]: Implement function for `MockDb`
|
||||
Err(StorageError::MockDbError)?
|
||||
|
||||
@ -86,7 +86,7 @@ impl PayoutsInterface for MockDb {
|
||||
async fn filter_payouts_by_time_range_constraints(
|
||||
&self,
|
||||
_merchant_id: &common_utils::id_type::MerchantId,
|
||||
_time_range: &api_models::payments::TimeRange,
|
||||
_time_range: &common_utils::types::TimeRange,
|
||||
_storage_scheme: storage_enums::MerchantStorageScheme,
|
||||
) -> CustomResult<Vec<Payouts>, StorageError> {
|
||||
// TODO: Implement function for `MockDb`
|
||||
|
||||
Reference in New Issue
Block a user