mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
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:
@ -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;
|
||||
|
||||
11
crates/api_models/src/analytics/connector_events.rs
Normal file
11
crates/api_models/src/analytics/connector_events.rs
Normal 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,
|
||||
}
|
||||
@ -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
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user