square.onInvoiceRefunded subscribes to invoice.refunded for the selected seller. It requires INVOICES_READ.
Example
automations/square-on-invoice-refunded.automation.ts
Event
A refund was processed for an invoice. The signal resolves to the officialSquare.InvoiceRefundedEvent payload with type narrowed to invoice.refunded.