Replace `input.amount!` with `input.amount ?? Number(payment.amount)`, which is behaviour-identical (undefined amount = full refund = full amount) but satisfies lint/style/noNonNullAssertion. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>