[Snippet rust]
```rust
fn from(req: StripeCreateRefundRequest) -> Self {
        Self {
            refund_id: req.refund_id,
            amount: req.amount.map(common_utils::types::MinorUnit::new),
            payment_id: req.payment_intent,
```
Path: hyperswitch/crates/router/src/compatibility/stripe/refunds/types.rs :: from (function, crate=router)

Negatives:
- hyperswitch/crates/router/tests/connectors/utils.rs :: default
- hyperswitch/crates/hyperswitch_connectors/src/connectors/square.rs :: common_get_content_type
- hyperswitch/crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs :: convert_to_additional_payment_method_connector_response
- hyperswitch/crates/hyperswitch_connectors/src/utils.rs :: get_optional_shipping_first_name
- hyperswitch/crates/router/src/routes/admin.rs :: merchant_account_list