mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
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:
committed by
GitHub
parent
bb096138b5
commit
54d44bef73
@ -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;
|
||||
|
||||
10
crates/api_models/src/analytics/outgoing_webhook_event.rs
Normal file
10
crates/api_models/src/analytics/outgoing_webhook_event.rs
Normal 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>,
|
||||
}
|
||||
@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user