Interface: Build277StatusSpec
One decoded STC segment - the headline status fields plus the up-to-three Build277StatusCodeSpec composites (STC-01, STC-10, STC-11). The first composite (STC-01) is required and must carry a category code. Mirrors "./types.js".X12StatusInfo.
Example
import type { Build277StatusSpec } from "@cosyte/x12";
import { X12Decimal } from "@cosyte/x12";
const s: Build277StatusSpec = {
statuses: [{ categoryCode: "A2", statusCode: "20" }],
statusEffectiveDate: "20260627",
totalChargeAmount: X12Decimal.fromString("150.00")!,
};
Properties
actionCode?
readonlyoptionalactionCode?:string
STC-03 - action code.
adjudicationDate?
readonlyoptionaladjudicationDate?:string
STC-06 - adjudication / payment date.
message?
readonlyoptionalmessage?:string
STC-12 - free-form message.
paymentAmount?
readonlyoptionalpaymentAmount?:X12Decimal
STC-05 - claim payment amount.
statusEffectiveDate?
readonlyoptionalstatusEffectiveDate?:string
STC-02 - status information effective date.
statuses
readonlystatuses: readonlyBuild277StatusCodeSpec[]
STC-01 / STC-10 / STC-11 - 1..3 status composites (first is required).
totalChargeAmount?
readonlyoptionaltotalChargeAmount?:X12Decimal
STC-04 - total claim charge amount.