Skip to main content

Function: resolvePayerFacilities()

resolvePayerFacilities(payerName, facilities, rules?): PayerResolution

Defined in: src/lib/facility-match/index.ts:82

Resolve a check's payer name to the set of facilities it may pay for.

Parameters

payerName

string | null | undefined

Raw payer/account-holder name read off the check or envelope.

facilities

readonly FacilityRef[]

Active facilities (id + name) for the company.

rules?

readonly PayerRule[] = DEFAULT_PAYER_RULES

Payer rules; defaults to DEFAULT_PAYER_RULES.

Returns

PayerResolution