Skip to main content

Interface: CandidateInvoice

Defined in: src/lib/reconcile/target.ts:35

An outstanding invoice in the payer's facility set, with the fields targeting needs.

Properties

anchorDate

readonly anchorDate: string | null

Defined in: src/lib/reconcile/target.ts:41

Date anchor for matching: coalesce(period_end, sent_at) as ISO (null if neither exists).


createdAt

readonly createdAt: string

Defined in: src/lib/reconcile/target.ts:45

Stable final tiebreak for ordering (ISO timestamp).


dueDate

readonly dueDate: string | null

Defined in: src/lib/reconcile/target.ts:43

Used to order the oldest-first fallback (nulls last).


facilityId

readonly facilityId: string

Defined in: src/lib/reconcile/target.ts:37


invoiceId

readonly invoiceId: string

Defined in: src/lib/reconcile/target.ts:36


invoiceNumber

readonly invoiceNumber: string

Defined in: src/lib/reconcile/target.ts:38


outstandingCents

readonly outstandingCents: number

Defined in: src/lib/reconcile/target.ts:39