UnionInternationalCheminsdeFer / UIC-barcode

implementation of the FCB barcode (IRS 90918-9)
Other
28 stars 8 forks source link

Mappings for Deutschlandticket #56

Closed irrationalism closed 1 year ago

irrationalism commented 1 year ago

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 need org.uic.barcode.ticket.api.spec.IUicRailTicket as one of the parameters. In IUicRailTicket we can specify org.uic.barcode.ticket.api.spec.IIssuingDetail which does not provide fields like issuerNum, issuingYear etc. that are needed for Deutschlandticket.

Only parts of org.uic.barcode.ticket.api.asn.omv3.IssuingData (and UicRailTicketData) 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):

drawing
CGantert345 commented 1 year ago