Skip to main content

Interface: CandidateInvoice

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

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:42

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:46

Stable final tiebreak for ordering (ISO timestamp).


dueDate​

readonly dueDate: string | null

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

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


facilityId​

readonly facilityId: string

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


invoiceId​

readonly invoiceId: string

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


invoiceNumber​

readonly invoiceNumber: string

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


outstandingCents​

readonly outstandingCents: number

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