yeah, this logic would read better if it was `status == succeeded and refunded_amount < amount`