feat(payments): add PaymentListFilterConstraints and payments_list_by_filter endpoint for v2 (#8794)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Ayush Anand
2025-08-21 19:20:59 +05:30
committed by GitHub
parent a819b4639b
commit 47ae9908e1
10 changed files with 218 additions and 178 deletions

View File

@ -1827,12 +1827,12 @@ impl PaymentAttemptInterface for KafkaStore {
&self,
merchant_id: &id_type::MerchantId,
active_attempt_ids: &[String],
connector: Option<api_models::enums::Connector>,
payment_method_type: Option<common_enums::PaymentMethod>,
payment_method_subtype: Option<common_enums::PaymentMethodType>,
authentication_type: Option<common_enums::AuthenticationType>,
merchant_connector_id: Option<id_type::MerchantConnectorAccountId>,
card_network: Option<common_enums::CardNetwork>,
connector: Option<Vec<api_models::enums::Connector>>,
payment_method_type: Option<Vec<common_enums::PaymentMethod>>,
payment_method_subtype: Option<Vec<common_enums::PaymentMethodType>>,
authentication_type: Option<Vec<common_enums::AuthenticationType>>,
merchant_connector_id: Option<Vec<id_type::MerchantConnectorAccountId>>,
card_network: Option<Vec<common_enums::CardNetwork>>,
storage_scheme: MerchantStorageScheme,
) -> CustomResult<i64, errors::StorageError> {
self.diesel_store