Variable: X12_ACK_DISPOSITION_CODES
constX12_ACK_DISPOSITION_CODES:object
AK9-01 (functional group) + IK5-01 (transaction set) disposition codes.
Sourced from ASC X12 code list 715. The implementation acknowledges the
inbound functional group / transaction set with one of these dispositions;
the LIBRARY does not decide accept-vs-reject - the application does.
build999 / buildTA1 MECHANICALLY build the cited disposition; a
fabricated A against a non-empty error list is a bug and refused at
build time (see "./errors.js".AckBuildError).
A- Accepted.E- Accepted, but errors were noted.P- Partially accepted: at least one transaction set was rejected while the functional group as a whole was accepted.R- Rejected.M- Rejected: message authentication code (MAC) failed.W- Rejected: assurance failed validity tests.X- Rejected: content after decryption could not be analyzed.
Type Declaration
A
readonlyA:"A"="A"
E
readonlyE:"E"="E"
M
readonlyM:"M"="M"
P
readonlyP:"P"="P"
R
readonlyR:"R"="R"
W
readonlyW:"W"="W"
X
readonlyX:"X"="X"
Example
import type { X12AckDispositionCode } from "@cosyte/x12";
const accept: X12AckDispositionCode = "A";