Skip to main content
Version: v0.0.7

Function: unknownCarc()

unknownCarc(position): X12ParseWarning

Build an X12_UNKNOWN_CARC warning. Emitted when a CAS adjustment carries a CARC code outside the bundled snapshot (see "../code-lists/carc.js".CARC). The verbatim code is preserved on the parsed adjustment (adjustment.reasonCode); only the description is missing.

Parameters

position

X12Position

Returns

X12ParseWarning

Example

import { unknownCarc } from "@cosyte/x12";
const w = unknownCarc({ segmentIndex: 14, groupIndex: 0, transactionIndex: 0 });