Skip to main content

Interface: SentInvoiceResult

Defined in: src/server/services/invoice/send.ts:37

One invoice that the send RPC committed to status='sent'. emailStatus is the SEPARATE delivery outcome of the per-invoice email (best effort), not the issuance state: the invoice is issued even when the email is 'skipped' or 'failed', so the UI keeps it resendable. 'failed' also covers an exception during the email step (e.g. PDF attachment load threw) after issuance.

Properties

emailSkipReason?

optional emailSkipReason?: "unconfigured" | "disabled"

Defined in: src/server/services/invoice/send.ts:43

Present only when emailStatus is 'skipped': 'unconfigured' (no provider/sender set up) vs 'disabled' (email turned off for this process), so the UI can distinguish "not set up" from "turned off".


emailStatus

emailStatus: "sent" | "skipped" | "failed"

Defined in: src/server/services/invoice/send.ts:41

Delivery outcome: 'sent' (provider accepted), 'skipped' (email suppressed — see emailSkipReason), or 'failed' (provider rejected or the email step threw).


facilityName

facilityName: string

Defined in: src/server/services/invoice/send.ts:40

Billed facility's display name.


id

id: string

Defined in: src/server/services/invoice/send.ts:38

Invoice UUID.


invoiceNumber

invoiceNumber: string

Defined in: src/server/services/invoice/send.ts:39

Human-facing invoice number on the bill.