SampleMdl
The holder of a sample mobile driving licence (see com.wallet.clients.WalletClient.addSampleMdl).
Every field is optional: null keeps the built-in sample value for that ISO 18013-5 data element, so SampleMdl() is a complete licence with a fictional holder, photo and driving privileges. The names in national characters (given_name_national_character, family_name_national_character) have no built-in value: they are only on the licence when values sets them.
Parameters
the holder's given names (given_name).
the holder's family name (family_name).
date of birth as YYYY-MM-DD (birth_date); the age elements follow it.
the licence number printed on the card (document_number).
who issued it, e.g. a licensing authority's name (issuing_authority).
ISO 3166-1 alpha-2 code, e.g. "SG" (issuing_country).
the holder's photo as JPEG bytes (portrait).
any other org.iso.18013.5.1 element by its ISO name, as text, e.g. "nationality", "resident_city", "sex" ("1" male, "2" female), "given_name_national_character" (the name in the holder's own script, e.g. Arabic). Each is stored as the element's kind, like addSampleCredential values; an unknown element or a value that doesn't parse fails with PARSE. Applied last, so they also override the fields above and the age elements.
the holder's signature image as PNG or JPEG bytes (signature_usual_mark).
Constructors
The holder's main fields only (Swift: SampleMdl(givenName:familyName:birthDate:documentNumber:issuingAuthority:issuingCountry:portrait:)).