Interface: X12PremiumPaymentHeader
Decoded BPR - Financial Information / payment header (identical segment
shape to the 835). totalPremiumAmount is BPR-02, the aggregate premium
the bank actually moved; method is BPR-04 (ACH / CHK / NON / …).
Example
import type { X12PremiumPaymentHeader } from "@cosyte/x12";
declare const p: X12PremiumPaymentHeader;
p.totalPremiumAmount.toString(); // "12500.00"
p.method; // "ACH"
p.paymentDate; // "20260601" (CCYYMMDD, verbatim)
Properties
creditDebitFlag
readonlycreditDebitFlag:string
BPR-03 credit/debit flag. Spec-defined "C" (credit) or "D" (debit);
typed string to preserve any verbatim non-spec value from a quirky
sender.
method
readonlymethod:string
paymentDate
readonlypaymentDate:string
paymentFormatCode
readonlypaymentFormatCode:string|undefined
totalPremiumAmount
readonlytotalPremiumAmount:X12Decimal
transactionHandlingCode
readonlytransactionHandlingCode:string