Commit Graph

83 Commits

Author SHA1 Message Date
Raphael Michel
b2d4bea1d0 Refs #314 -- Read-only REST API (#513)
* initial commit

* API auth

* Hierarchical URLs

* Add session auth

* Strong hierarchy

* Add filters

* Add i18n fields, questions

* More viewsets and serializers

* Ticket download

* Add OrderPosition serializer

* View-level permissions

* More tests

* More tests

* Add basic API docs

* Add REST API to docs frontpage

* Tests for order endpoints

* Add invoice tests

* Voucher and waitinglist tests

* Doc draft

* order docs

* Docs on all viewsets

* Disable DRF docs, style sphinx, style browsable API

* Fix tests

* deprecated imports

* Test foo

* Attendee names

* Fix migration problems

* Remove browsable API, plugin integration

* Doc fixes
2017-06-19 11:16:04 +02:00
Raphael Michel
d6e213d51a Disable inline pdfs again due to Safari issues 2017-05-25 14:43:31 +02:00
Raphael Michel
127086a50e Fix bug that lead to wrong payment amount when switching payment method to PayPal later 2017-05-10 19:12:55 +02:00
Raphael Michel
4561b7dce2 Try to fix PDF display problems in Safari 2017-05-10 15:02:28 +02:00
Raphael Michel
3de85975d6 Allow inline PDF display in CSP header 2017-05-09 11:10:10 +02:00
Ian Williams
d929b163db Fix #456 -- Allow products to be excluded from ticket-generation (#483)
* Added non-admission setting to event

`ticket_download_nonadm` now setting in storage. Still need logic for
order page/PDF generation.
Works on pretix/pretix#456.

* Download button considers `ticket_download_nonadm`

Modified Django tags to look at item admission attribute and
`ticket_download_nonadm` setting.
Works on pretix/pretix#456.

* Ticket output for non-admission disabled

PDFs/etc. will only be permitted/generated for items with the
`admission` attribute, or if the `ticket_download_nonadm` event setting
is true. Applies to single and whole-order ticket downloads.
Works on pretix/pretix#456.

* Fixed product exclusion in PDF output

Forgot PDF output was a plugin, now includes same check as base
`BaseTicketOutput.generate_order`.
Works on pretix/pretix#456
2017-05-06 11:11:11 +02:00
Raphael Michel
b52f2f5a9e Improve add-on products 2017-04-17 14:54:15 +02:00
Raphael Michel
887152a0e2 Fix retry logic for failed order downloads 2017-03-29 14:36:09 +02:00
Jakob Schnell
c251a48e31 Fix #248 -- Failed Payment error handling (#333)
* [WIP] Failed Payment error handling

When finished, this should fix #248

* rename PaymentFailedException to PaymentException\nimported Exception where neccessary

* comments fixed

* minor style fixes

* Fixed a name error
2017-02-24 14:11:41 +01:00
Raphael Michel
ea807239b1 Fix #356 -- Download all tickets from an order 2017-01-13 16:10:53 +01:00
Raphael Michel
b6e42d64da Upgrade to Celery 4 2017-01-04 20:12:50 +01:00
Raphael Michel
a4218fa1b9 Improve file download UX 2016-12-25 22:26:45 +01:00
Raphael Michel
c5ec918e78 Fix a PDF generation loop 2016-12-23 13:44:11 +01:00
Raphael Michel
d698313f1d Do not allow initiating stripe/paypal payments after the last payment
date
2016-12-23 13:29:41 +01:00
Raphael Michel
873c7dc65d Race conditions can lead to duplicate CachedTickets 2016-12-23 11:02:29 +01:00
Raphael Michel
77e917345c Decouple CachedTicket from CachedFile 2016-12-21 18:37:12 +01:00
Raphael Michel
fdbe71ff63 Fix #141 -- Caching improvements for ticket outputs 2016-11-29 15:52:16 +01:00
Raphael Michel
b30a3b5bee Fix problem with modifying orders 2016-11-08 18:31:24 +01:00
Raphael Michel
7b48a17b51 Reduce number of redundant SQL queries 2016-11-06 19:59:19 +01:00
Raphael Michel
ad35110166 Offer download options per position, not per order 2016-11-02 14:51:05 +01:00
Raphael Michel
f3509707d7 Use CachedTicket.get_or_create to avoid duplicates 2016-10-18 19:00:44 +02:00
Raphael Michel
58f7ddb13d Renamed and documented payment views 2016-10-02 19:13:55 +02:00
Raphael Michel
84fd7cb166 Merge remote-tracking branch 'remotes/flaviabastos/187_unify_canceled_spelling' 2016-09-21 19:07:15 +02:00
Flavia Bastos
8ef6439c44 Unify spelling of 'canceled'
Issue 187
Remove typeahead JS file.
2016-09-21 10:35:41 -06:00
Raphael Michel
1faacef9d4 Always process tasks through celery (#245) 2016-09-21 10:38:31 +02:00
Raphael Michel
988340400d Only show "change payment method" if another one is available 2016-09-19 18:06:07 +02:00
Raphael Michel
a1d92f9740 Fixed a fatal bug in payment method changing 2016-09-12 20:39:34 +02:00
Raphael Michel
01f0673683 Fixed a possible timing attack channel 2016-09-12 20:38:41 +02:00
Raphael Michel
d13e146429 Fixed misleading query parameters 2016-09-11 14:38:01 +02:00
Raphael Michel
e0ece9c18a Stripe checkout: Fixed retry order 2016-09-09 10:38:58 +02:00
Raphael Michel
78358c6cda Directly serve invoice PDFs via Django 2016-09-05 23:49:50 +02:00
Raphael Michel
022e02d913 Fix #177 - Allow to change the payment method 2016-08-31 19:54:45 +02:00
Tobias Kunze
96dbfc304a Fix #195 -- Add message explaining invoice address updating process (#196)
Adds messages both pre- and post-update explaining to the user that the
invoice itself will not be automatically regenerated and that support
interaction is required for this step. Might reduce user frustration.
2016-08-30 13:22:24 +02:00
Tobias Kunze
87a77989e7 Disallow cancelling an expired order
as per discussion on #165
2016-08-24 15:26:54 +02:00
Raphael Michel
1cb956d508 Added setting to disable order cancelling for users 2016-08-15 16:42:39 +02:00
Tobias Kunze
34212841e2 Fixed typos and a little phrasing. (#175)
Mostly in German translation, some small fixes in English text, too.
2016-08-13 21:16:16 +02:00
Raphael Michel
47682fd243 Refs #131 -- Allow manual reissuing of invoices 2016-08-05 11:34:02 +02:00
Raphael Michel
a61792ed4e Do not issue invoices for free payments 2016-08-05 11:06:22 +02:00
Raphael Michel
2541855948 Fixed missing or unused imports 2016-07-18 23:12:16 +02:00
Raphael Michel
fd2c293521 Correctly display payment fee on the order detail page 2016-06-06 23:56:26 +02:00
Raphael Michel
4d886b3d98 Fixed invoice generation 2016-06-05 18:14:58 +02:00
Raphael Michel
4496f19a68 Supporting invoice-on-demand instead of autogeneration 2016-06-05 18:01:10 +02:00
Raphael Michel
eafbe95370 Fixed a problem with cancellations 2016-04-10 16:01:55 +02:00
Raphael Michel
cc77f4bc5c Adjusted a test to fit the last commit 2016-03-20 10:45:45 +01:00
Raphael Michel
0355d22114 Refs #118 -- Asynchronous order cancelling 2016-03-20 10:40:18 +01:00
Raphael Michel
8a2c2db6c8 Fixed wrong prefetch_related parameter 2016-03-15 17:12:04 +01:00
Raphael Michel
108b518a50 Fixed an AttributeError 2016-03-15 17:01:31 +01:00
Raphael Michel
5ab78b4576 Refs #131 -- Basic implementation of invoicing 2016-03-13 16:05:31 +01:00
Raphael Michel
10233071c4 Fixed a bug concerning the FreeOrderProvider 2016-03-10 00:43:18 +01:00
Raphael Michel
0fd519df4d Catch RelatedObjectDoesNotExist error 2016-02-22 13:55:06 +01:00