[Snippet rust]
```rust
fn get_payment_intent(&self) -> &storage::PaymentIntent {
        &self.payment_intent
    }
```
Path: hyperswitch/crates/router/src/core/payments.rs :: get_payment_intent (function, crate=router)

Negatives:
- hyperswitch/crates/hyperswitch_connectors/src/connectors/payme.rs :: get_content_type
- hyperswitch/crates/hyperswitch_connectors/src/connectors/payload.rs :: handle_response
- hyperswitch/crates/router/src/middleware.rs :: new_transform
- hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs :: batch_decrypt_via_api
- hyperswitch/crates/hyperswitch_connectors/src/connectors/dlocal.rs :: get_url