feat(outgoingwebhookevent): adding api for query to fetch outgoing webhook events log (#3310)

Co-authored-by: Sampras Lopes <lsampras@pm.me>
This commit is contained in:
harsh-sharma-juspay
2024-01-11 18:42:09 +05:30
committed by GitHub
parent bb096138b5
commit 54d44bef73
12 changed files with 192 additions and 3 deletions

View File

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

View File

@ -0,0 +1,10 @@
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub struct OutgoingWebhookLogsRequest {
pub payment_id: String,
pub event_id: Option<String>,
pub refund_id: Option<String>,
pub dispute_id: Option<String>,
pub mandate_id: Option<String>,
pub payment_method_id: Option<String>,
pub attempt_id: Option<String>,
}

View File

@ -17,7 +17,9 @@ use common_utils::{
use crate::{
admin::*,
analytics::{api_event::*, sdk_events::*, *},
analytics::{
api_event::*, outgoing_webhook_event::OutgoingWebhookLogsRequest, sdk_events::*, *,
},
api_keys::*,
cards_info::*,
disputes::*,
@ -89,7 +91,8 @@ impl_misc_api_event_type!(
ApiLogsRequest,
GetApiEventMetricRequest,
SdkEventsRequest,
ReportRequest
ReportRequest,
OutgoingWebhookLogsRequest
);
#[cfg(feature = "stripe")]