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(...):

// 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:

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