Closed irrationalism closed 1 year ago
setting the issuing date setIssuingDate(Date date) will also set the issuingYear.
setIssuer(...) will set either issuerNum or IssuerIA5 depending on whether the value is numeric or not. Setting different values in the xxxNum and xxxIA5 fields is not permitted by the specification and would be an error. The Num/IA5 split is only for optimizing the data size, not for different content.
I am not able to generate a fully compliant Deutschlandticket (specs are just drafts for now) from this library.
Considering
org.uic.barcode.Encoder
as entry point and the high level constructor in it, we needorg.uic.barcode.ticket.api.spec.IUicRailTicket
as one of the parameters. InIUicRailTicket
we can specifyorg.uic.barcode.ticket.api.spec.IIssuingDetail
which does not provide fields likeissuerNum
,issuingYear
etc. that are needed for Deutschlandticket.Only parts of
org.uic.barcode.ticket.api.asn.omv3.IssuingData
(andUicRailTicketData
) are exposed to the high level interface.Is there another way to fill those fields without writing a new
Encoder
,UFLEXDataRecord
,StaticFrame
etc.?Spec (draft):