generateTD3
Encodes a TD3 (passport) MRZ from field values.
Joins the identifiers with <<, or uses only the primary if the secondary is empty, and replaces spaces with <. The name field holds up to 39 characters. Pads short fields with < and computes every check digit.
Return
GenerationResult.Success with the MRZ lines, or GenerationResult.Failure with MrzGenerationNumericInNameField, MrzGenerationUnsupportedCharacters, or MrzGenerationFieldOverflow. The result metadata holds the transliteration details when the profile processed a non-empty identifier.
Parameters
the document type code, up to 2 characters.
the issuing state code, up to 3 characters.
the document number, up to 9 characters.
the primary identifier (surname). Must not contain digits.
the secondary identifier (given names). Must not contain digits.
the nationality code, up to 3 characters.
the date of birth. Only the last two digits of the year are written.
the sex. Sex.UNSPECIFIED is written as <.
the date of expiry. Only the last two digits of the year are written.
the personal number, up to 14 characters.
the profile that maps both identifiers to the MRZ alphabet, or null to use them as given. Defaults to null.