mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat(events): add extracted fields based on req/res types (#2795)
This commit is contained in:
74
crates/api_models/src/events.rs
Normal file
74
crates/api_models/src/events.rs
Normal file
@ -0,0 +1,74 @@
|
||||
pub mod customer;
|
||||
pub mod payment;
|
||||
#[cfg(feature = "payouts")]
|
||||
pub mod payouts;
|
||||
pub mod refund;
|
||||
pub mod routing;
|
||||
|
||||
use common_utils::{
|
||||
events::{ApiEventMetric, ApiEventsType},
|
||||
impl_misc_api_event_type,
|
||||
};
|
||||
|
||||
use crate::{
|
||||
admin::*, api_keys::*, cards_info::*, disputes::*, files::*, mandates::*, payment_methods::*,
|
||||
payments::*, verifications::*,
|
||||
};
|
||||
|
||||
impl ApiEventMetric for TimeRange {}
|
||||
|
||||
impl_misc_api_event_type!(
|
||||
PaymentMethodId,
|
||||
PaymentsSessionResponse,
|
||||
PaymentMethodListResponse,
|
||||
PaymentMethodCreate,
|
||||
PaymentLinkInitiateRequest,
|
||||
RetrievePaymentLinkResponse,
|
||||
MandateListConstraints,
|
||||
CreateFileResponse,
|
||||
DisputeResponse,
|
||||
SubmitEvidenceRequest,
|
||||
MerchantConnectorResponse,
|
||||
MerchantConnectorId,
|
||||
MandateResponse,
|
||||
MandateRevokedResponse,
|
||||
RetrievePaymentLinkRequest,
|
||||
MandateId,
|
||||
DisputeListConstraints,
|
||||
RetrieveApiKeyResponse,
|
||||
BusinessProfileResponse,
|
||||
BusinessProfileUpdate,
|
||||
BusinessProfileCreate,
|
||||
RevokeApiKeyResponse,
|
||||
ToggleKVResponse,
|
||||
ToggleKVRequest,
|
||||
MerchantAccountDeleteResponse,
|
||||
MerchantAccountUpdate,
|
||||
CardInfoResponse,
|
||||
CreateApiKeyResponse,
|
||||
CreateApiKeyRequest,
|
||||
MerchantConnectorDeleteResponse,
|
||||
MerchantConnectorUpdate,
|
||||
MerchantConnectorCreate,
|
||||
MerchantId,
|
||||
CardsInfoRequest,
|
||||
MerchantAccountResponse,
|
||||
MerchantAccountListRequest,
|
||||
MerchantAccountCreate,
|
||||
PaymentsSessionRequest,
|
||||
ApplepayMerchantVerificationRequest,
|
||||
ApplepayMerchantResponse,
|
||||
ApplepayVerifiedDomainsResponse,
|
||||
UpdateApiKeyRequest
|
||||
);
|
||||
|
||||
#[cfg(feature = "stripe")]
|
||||
impl_misc_api_event_type!(
|
||||
StripeSetupIntentResponse,
|
||||
StripeRefundResponse,
|
||||
StripePaymentIntentListResponse,
|
||||
StripePaymentIntentResponse,
|
||||
CustomerDeleteResponse,
|
||||
CustomerPaymentMethodListResponse,
|
||||
CreateCustomerResponse
|
||||
);
|
||||
Reference in New Issue
Block a user