Core concepts of ISO 8583 message specifications
masterTo work with ISO 8583, you must define a MessageSpec. The library maps ISO 8583 concepts to several key types:
MessageSpec: Defines the complete message format including all fields.field.Spec: Defines the structure and behavior of an individual field.field.Field: Represents a data element with specific handling logic. Common types include:field.String: Alphanumeric data.field.Numeric: Numeric data.field.Binary: Binary data.field.Composite: Structured data like TLV/BER-TLV or fields with positional subfields.
Each field specification requires elements like Length, Description, Enc (encoding type), Pref (length prefix/type), and optionally Pad (padding).