Skip to main content
Version: v0.0.2

Interface: Build820OpenItemSpec

RMR open item - the premium line unit: a policy / invoice reference plus the amount paid and (optionally) the amount due. Mirrors "./types.js".X12PremiumOpenItem. At least one of qualifier / referenceId must be non-empty (an RMR with no identity is dropped on the read side, so the builder refuses it).

Example

import type { Build820OpenItemSpec } from "@cosyte/x12";
import { X12Decimal } from "@cosyte/x12";
const o: Build820OpenItemSpec = {
qualifier: "AZ", referenceId: "POL-0001", amountPaid: X12Decimal.fromString("250.00")!,
};

Properties

amountDue?

readonly optional amountDue?: X12Decimal

RMR-05 - amount due / original (situational).


amountPaid

readonly amountPaid: X12Decimal

RMR-04 - amount paid.


paymentActionCode?

readonly optional paymentActionCode?: string

RMR-03 - payment action code (situational).


qualifier

readonly qualifier: string

RMR-01 - reference id qualifier (11, IK, AZ, …).


referenceId

readonly referenceId: string

RMR-02 - reference id (policy / invoice number).