Skip to main content
Version: v0.0.2

Variable: X12_ACK_DISPOSITION_CODES

const X12_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

readonly A: "A" = "A"

E

readonly E: "E" = "E"

M

readonly M: "M" = "M"

P

readonly P: "P" = "P"

R

readonly R: "R" = "R"

W

readonly W: "W" = "W"

X

readonly X: "X" = "X"

Example

import type { X12AckDispositionCode } from "@cosyte/x12";
const accept: X12AckDispositionCode = "A";