Deref ticket in tournament/me in order to get the ticket id
Change ticket /get/{username}/{token} to /get/{id}/{token}
Add a generate ticket pdf from ticket method
Add a send ticket by mail method
Send ticket on payment
The ticket generation use reportlab. This is pretty hard to maintains imo but no serious alternatives were available. I tried a bunch of tools to convert html to pdf so we could had only a html template but they were all not supporting CSS3 or based on webdrivers hard to maintains.
This PR :
/get/{username}/{token}
to/get/{id}/{token}
The ticket generation use reportlab. This is pretty hard to maintains imo but no serious alternatives were available. I tried a bunch of tools to convert html to pdf so we could had only a html template but they were all not supporting CSS3 or based on webdrivers hard to maintains.