Command: grep -n -A 30 "RecoveryPaymentFailure" crates/apimodels/src/webhooks.rs Output:…
- User
Command: grep -n -A 30 "RecoveryPaymentFailure" crates/api_models/src/webhooks.rs Output: 62: RecoveryPaymentFailure, 63- #[cfg(all(feature = "revenue_recovery", feature = "v2"))] 64- RecoveryPaymentSuccess, 65- #[cfg(all(feature = "revenue_recovery", feature = "v2"))] 66- RecoveryPaymentPending, 67- #[cfg(all(feature = "revenue_recovery", feature = "v2"))] 68- RecoveryInvoiceCancel, 69- SetupWebhook, 70-} 71- 72-impl IncomingWebhookEvent { 73- /// Convert UCS event type integer to IncomingWebhookEvent 74- /// Maps from proto WebhookEventType enum values to IncomingWebhookEvent variants 75- pub fn from_ucs_event_type(event_type: i32) -> Self { 76- match event_type { 77- 0 => Self::EventNotSupported, 78- // Payment intent events 79- 1 => Self::PaymentIntentFailure, 80- 2 => Self::PaymentIntentSuccess, 81- 3 => Self::PaymentIntentProcessing, 82- 4 => Self::PaymentIntentPartiallyFunded, 83- 5 => Self::PaymentIntentCancelled, 84- 6 => Self::PaymentIntentCancelFailure, 85- 7 => Self::PaymentIntentAuthorizationSuccess, 86- 8 => Self::PaymentIntentAuthorizationFailure, 87- 9 => Self::PaymentIntentCaptureSuccess, 88- 10 => Self::PaymentIntentCaptureFailure, 89- 11 => Self::PaymentIntentExpired, 90- 12 => Self::PaymentActionRequired, 91- // Source events 92- 13 => Self::SourceChargeable,
299: | IncomingWebhookEvent::RecoveryPaymentFailure 300- | IncomingWebhookEvent::RecoveryPaymentPending 301- | IncomingWebhookEvent::RecoveryPaymentSuccess => Self::Recovery, 302- IncomingWebhookEvent::SetupWebhook => Self::Setup, 303- } 304- } 305-} 306- 307-pub type MerchantWebhookConfig = std::collections::HashSet; 308- 309-#[derive(serde::Serialize, serde::Deserialize, Clone, Debug)] 310-pub enum RefundIdType { 311- RefundId(String), 312- ConnectorRefundId(String), 313-} 314- 315-#[derive(serde::Serialize, serde::Deserialize, Clone, Debug)] 316-pub enum MandateIdType { 317- MandateId(String), 318- ConnectorMandateId(String), 319-} 320- 321-#[derive(serde::Serialize, serde::Deserialize, Clone, Debug)] 322-pub enum AuthenticationIdType { 323- AuthenticationId(common_utils::id_type::AuthenticationId), 324- ConnectorAuthenticationId(String), 325-} 326- 327-#[cfg(feature = "payouts")] 328-#[derive(serde::Serialize, serde::Deserialize, Clone, Debug)] 329-pub enum PayoutIdType {
467: Self::RecoveryPaymentFailure 468- | Self::RecoveryPaymentSuccess 469- | Self::RecoveryPaymentPending 470- ) 471- } 472-}
Assistant
<is_displaying_contents> true </is_displaying_contents>