SUMMARY It’s nice to be able to save my health certificate in the application, but it should also propose to save discount cards that we have to show along with the ticket. It can be just saving&showing arbitrary codes like the Catima application is doing, it is enough to be useful. Ideally be able to store expiration date and some information along with it.
Something in that direction has just been implemented, for the discount program cards of Deutsche Bahn ("BahnCard") and anything that is an Apple Wallet pass file this should work already. We could extend that to also support arbitrary barcodes (direct barcode scanning in the app is also not far away anymore), but I think we can make this even better by understanding the content at least a bit. For the BahnCards we for example know when a ticket was booked with such a card, can check if you have a suitable card stored in the app and directly offer that for the ticket then. I'm not familiar with SNCF's discount system, but I'd guess it's a very similar workflow there? What's in the barcodes of those discount cards, anything that would allow to at least detect the type of the card? Do the corresponding tickets contain any indication the card is required? Expiration dates aren't implemented yet, but that already came up as something useful to have as well.
(In reply to Volker Krause from comment #1) > For the BahnCards we for example know when a ticket was booked with such a > card, can check if you have a suitable card stored in the app and directly > offer that for the ticket then. I'm not familiar with SNCF's discount > system, but I'd guess it's a very similar workflow there? Yes it’s the same, a passenger on a ticket is noted as having a given card, or accompanying a holder of the card. > What's in the barcodes of those discount cards, anything that would allow to > at least detect the type of the card? Do the corresponding tickets contain > any indication the card is required? I will send you an example by email
Git commit 141af23a9b0a8b1ddf92d432b0a2b910650dfd91 by Volker Krause. Committed on 04/05/2022 at 15:30. Pushed by vkrause into branch 'release/22.04'. Extract SNCF discount program information from tickets M +4 -0 autotests/extractordata/sncf/ticket-barcode-single-leg.txt.json M +23 -2 src/lib/scripts/sncf.js https://invent.kde.org/pim/kitinerary/commit/141af23a9b0a8b1ddf92d432b0a2b910650dfd91
Git commit c7e4dee7d0f6d4fb5c3499bcbd8fcc18642dd021 by Volker Krause. Committed on 04/05/2022 at 15:30. Pushed by vkrause into branch 'release/22.04'. Extract SNCF discount card barcodes M +9 -0 src/lib/scripts/sncf.js M +12 -0 src/lib/scripts/sncf.json https://invent.kde.org/pim/kitinerary/commit/c7e4dee7d0f6d4fb5c3499bcbd8fcc18642dd021
Git commit d62695c849ed806f4d1cdf571432d32ec734577e by Volker Krause. Committed on 05/05/2022 at 17:03. Pushed by vkrause into branch 'release/22.04'. Add PDF extractor stage for SNCF discount cards This augments what we get from the barcode, e.g. the owner name and (once the data model supports that) the validity range. M +10 -0 src/lib/scripts/sncf.js M +12 -0 src/lib/scripts/sncf.json https://invent.kde.org/pim/kitinerary/commit/d62695c849ed806f4d1cdf571432d32ec734577e
This is now working correctly