Skip to main content
Version: v0.0.8

Variable: SEGMENT_ID_LENGTH

const SEGMENT_ID_LENGTH: 2 = 2

Wire width of the Segment Identification (111-AM) code: two characters in the Telecommunication standard, which both halves of this library treat as a structural shape rather than a hint. The parser will not promote an AM value of any other length to TelecomSegment.segmentId, and the builder refuses to construct one, so the bound holds however a transaction was made.

Example

import { SEGMENT_ID_LENGTH } from "@cosyte/ncpdp/telecom";
SEGMENT_ID_LENGTH; // 2