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

Negatives:
- hyperswitch/crates/pm_auth/src/connector/plaid/transformers.rs :: from
- hyperswitch/crates/router/tests/connectors/facilitapay.rs :: should_fail_payment_for_invalid_exp_month
- hyperswitch/crates/common_utils/src/types.rs :: get_major
- hyperswitch/crates/test_utils/tests/connectors/mollie_ui.rs :: should_make_mollie_giropay_payment_test
- hyperswitch/crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs :: try_from