[Snippet rust]
```rust
fn foreign_from(status: storage_enums::RefundStatus) -> Self {
        match status {
            storage_enums::RefundStatus::Failure
            | storage_enums::RefundStatus::TransactionFailure => Self::Failed,
            storage_enums::RefundStatus::ManualReview => Self::Review,
```
Path: hyperswitch/crates/router/src/types/api/refunds.rs :: foreign_from (function, crate=router)

Negatives:
- hyperswitch/crates/storage_impl/src/payment_method.rs :: find_payment_method_by_locker_id
- hyperswitch/crates/openapi/src/routes/api_keys.rs :: api_key_revoke
- hyperswitch/crates/router/src/core/payments.rs :: get_setup_mandate
- hyperswitch/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs :: get_adyen_split_request
- hyperswitch/crates/router/tests/connectors/paypal.rs :: should_sync_refund