There are hooks that ensure that stock is increased whenever an invoice status changes to cancelled or failed, but not when it is refunded. Doesn’t it make sense to release the stock held by an invoice when it is refunded? Like so in GetPaid_Item_Inventory
add_action( 'getpaid_invoice_status_wpi-refunded', array( $this, 'increase_stock' ) );
]]>