[Snippet rust]
```rust
pub fn is_transaction_event(event: &Shift4WebhookEvent) -> bool {
    matches!(
        event,
        Shift4WebhookEvent::ChargeCaptured
            | Shift4WebhookEvent::ChargeFailed
```
Path: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs :: is_transaction_event (function, crate=hyperswitch_connectors)

Negatives:
- hyperswitch/crates/diesel_models/src/query/capture.rs :: find_by_capture_id
- hyperswitch/crates/router/src/core/payments/operations/payment_get.rs :: validate_status_for_operation
- hyperswitch/crates/router/tests/connectors/prophetpay.rs :: should_partially_refund_manually_captured_payment
- hyperswitch/crates/hyperswitch_connectors/src/connectors/klarna/transformers.rs :: get_checkout_status
- hyperswitch/crates/test_utils/tests/connectors/shift4_ui.rs :: should_make_ideal_payment