[Snippet rust]
```rust
fn set_surcharge_details(&mut self, surcharge_details: Option<types::SurchargeDetails>) {
        self.surcharge_details = surcharge_details;
    }
```
Path: hyperswitch/crates/router/src/core/payments.rs :: set_surcharge_details (function, crate=router)

Negatives:
- hyperswitch/crates/router/tests/connectors/paystack.rs :: should_only_authorize_payment
- hyperswitch/crates/diesel_models/src/organization.rs :: new
- hyperswitch/crates/hyperswitch_connectors/src/connectors/payu.rs :: get_error_response
- hyperswitch/crates/router/src/core/user.rs :: reset_password_token_only_flow
- hyperswitch/crates/diesel_models/src/query/payment_method.rs :: find_by_global_customer_id