feat(connector_events): added api to fetch connector event logs (#3319)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: harsh-sharma-juspay <125131007+harsh-sharma-juspay@users.noreply.github.com>
This commit is contained in:
ivor-juspay
2024-01-17 15:07:41 +05:30
committed by GitHub
parent 01c2de223f
commit 68a3a28067
12 changed files with 160 additions and 2 deletions

View File

@ -12,6 +12,7 @@ use self::{
pub use crate::payments::TimeRange;
pub mod api_event;
pub mod connector_events;
pub mod outgoing_webhook_event;
pub mod payments;
pub mod refunds;

View File

@ -0,0 +1,11 @@
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[serde(tag = "type")]
pub enum QueryType {
Payment { payment_id: String },
}
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct ConnectorEventsRequest {
#[serde(flatten)]
pub query_param: QueryType,
}

View File

@ -17,10 +17,12 @@ use common_utils::{
impl_misc_api_event_type,
};
#[allow(unused_imports)]
use crate::{
admin::*,
analytics::{
api_event::*, outgoing_webhook_event::OutgoingWebhookLogsRequest, sdk_events::*, *,
api_event::*, connector_events::ConnectorEventsRequest,
outgoing_webhook_event::OutgoingWebhookLogsRequest, sdk_events::*, *,
},
api_keys::*,
cards_info::*,
@ -94,6 +96,7 @@ impl_misc_api_event_type!(
GetApiEventMetricRequest,
SdkEventsRequest,
ReportRequest,
ConnectorEventsRequest,
OutgoingWebhookLogsRequest
);