[Snippet rust]
```rust
fn foreign_from(refund: diesel_refund::Refund) -> Self {
        let refund = refund;

        Self {
            payment_id: refund.payment_id,
```
Path: hyperswitch/crates/router/src/core/refunds.rs :: foreign_from (function, crate=router)

Negatives:
- hyperswitch/crates/hyperswitch_connectors/src/connectors/bluesnap.rs :: build_error_response
- hyperswitch/crates/analytics/src/refunds/distribution/sessionized_distribution/refund_error_message.rs :: load_distribution
- hyperswitch/crates/hyperswitch_connectors/src/connectors/mollie.rs :: get_error_response
- hyperswitch/crates/common_utils/src/id_type/authentication.rs :: get_external_authentication_request_poll_id
- hyperswitch/crates/pm_auth/src/connector/plaid.rs :: handle_response