> This is Payabli documentation. For a complete page index, fetch https://docs.payabli.com/llms.txt — append .md to any page URL for lightweight markdown. For section-level indexes, query parameters, and other AI-optimized access methods, see https://docs.payabli.com/ai-agents.md

## v2.0.10

### Refund methods now take an optional request body

`MoneyIn::refundv_2` and `MoneyIn::refundv_2_amount` now take `Option<&RefundV2Request>` instead of `&RefundV2Request`. Wrap existing request bodies in `Some(...)`:

```rust
// Before
client
    .money_in
    .refundv_2(
        &trans_id,
        &RefundV2Request { amount: Some(60.0), ..Default::default() },
        None,
    )
    .await?;

// After
client
    .money_in
    .refundv_2(
        &trans_id,
        Some(&RefundV2Request { amount: Some(60.0), ..Default::default() }),
        None,
    )
    .await?;
```

You can also pass `None` for a standard refund with no request body:

```rust
client.money_in.refundv_2(&trans_id, None, None).await?;
```