mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Self-service refund form (#1135)
* Auto-refund * Add missing template * Notification for requested refund * Model-level tests * Add front-end tests * Default to notify
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import json
|
||||
from collections import OrderedDict
|
||||
from datetime import datetime
|
||||
from decimal import Decimal
|
||||
from typing import Any
|
||||
|
||||
from django.conf import settings
|
||||
@@ -224,6 +225,30 @@ DEFAULTS = {
|
||||
'default': 'True',
|
||||
'type': bool
|
||||
},
|
||||
'cancel_allow_user_until': {
|
||||
'default': None,
|
||||
'type': RelativeDateWrapper,
|
||||
},
|
||||
'cancel_allow_user_paid': {
|
||||
'default': 'False',
|
||||
'type': bool,
|
||||
},
|
||||
'cancel_allow_user_paid_keep': {
|
||||
'default': '0.00',
|
||||
'type': Decimal,
|
||||
},
|
||||
'cancel_allow_user_paid_keep_fees': {
|
||||
'default': 'False',
|
||||
'type': bool,
|
||||
},
|
||||
'cancel_allow_user_paid_keep_percentage': {
|
||||
'default': '0.00',
|
||||
'type': Decimal,
|
||||
},
|
||||
'cancel_allow_user_paid_until': {
|
||||
'default': None,
|
||||
'type': RelativeDateWrapper,
|
||||
},
|
||||
'contact_mail': {
|
||||
'default': None,
|
||||
'type': str
|
||||
|
||||
Reference in New Issue
Block a user